SmileNet and .Net Compact Framework

The engine.
Post Reply
YL
Posts: 3
Joined: Sun Aug 22, 2010 10:31 pm

SmileNet and .Net Compact Framework

Post by YL »

Hi, all

I am new to GeNIe and SMILE engine. However, I'd like to ask a question related with the topic.

Currently, I am trying to develop a C# program for WM6, and part of that program will work with DBN. As I know, SMILE is written in C++, and SmileNet is a wrapper for C#.

One thing I am not sure is whether or not SmileNet is compatible with .NET compact framework.

Based on two threads, the answer looks like NO. But are there any possibilities that can make SMILE engine, SmileNet work together with .NET Framework?

Also, druing my research, I found the SMILE engine is the most closest reasoning engine for my project. But in case of impossible to use C# with SMILE engine for WM6, are there any similar reasoning engines that be coded with C# and run with .NET framework?

Note: other parts of this program are coded in C#, so it is hard to rewrite all those codes in C++. However, is there possible to write this part, i.e. related with SMILE engine, in C++, and then let other parts of C# codes to call those C++ coded functions.

Thanks,

Y
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: SmileNet and .Net Compact Framework

Post by shooltz[BayesFusion] »

But are there any possibilities that can make SMILE engine, SmileNet work together with .NET Framework?
I assume you mean .NET Compact Framework (.NET CF) in the quoted sequence above. If this is the case, then the answer is negative, because MS C++ compilers do not support targetting .NET CF.

As described in the forum threads you've found, the only way to get access to SMILE functionality from .NET CF is through native DLL linking with provided SMILE binaries for Windows Mobile. Instead of exposing entire functionality, you can limit this DLL to features relevant to your application. Then, use P/Invoke from your C# program to call the functions exported from the DLL.
YL
Posts: 3
Joined: Sun Aug 22, 2010 10:31 pm

Post by YL »

Thanks for the reply. I will play with P/Invoke.
Post Reply