[C#][VS 2005 Bete 2] creating & using a C++ in a C# project
I try to create a unmanaged dll in C++ with visualt studio 2005 and the i want to use it in a c# project.
My first question is hoaw to create a C++ (unmanaged) dll project for smartphone ? in visual stuido 2005. I create a Win32 projecdt>>dll project but i supopose it's only for deskop.
After that i wrote my dll. #include
.CPP
// This is an example of an exported function.
MYDLL_APIint fnMyDll()
{return 42;}.H
#ifdef MYDLL_EXPORTS Then i use it in my C# project
#define MYDLL_API__declspec(dllexport)
#else
#define MYDLL_API __declspec(dllimport)
#endif
MYDLL_APIint fnMyDll();
[DllImport("MyDll.dll",EntryPoint="fnMyDll",CharSet=CharSet.Unicode)]
privatestaticexternint fnMyDll();
int GetInt()
{
return fnMyDll();
} -- But at run time i get aMissing Methode Exception. So does anyone knows how to make such a thing (creat a C++ dll project for smartphoen and then use it i a C# project) with visual 2005 ?
For running my app i direclty dowload the dll in the exe folder, so the exe should find the methode :s

