Hi,
i have created an MFC DLL for windows mobile..
i have exposed only a function in MFC DLL... if i try to load DLL in c#,in debug mode it is telling Remote connection lost message box appears and app quits
i have kept the DLL at .exe level only.. how to load ?
Steps i have taken to make project.
1)create smart device MFC DLL 2)choosen win mo 6 pocket PC SDK 3)Regular DLL with statically linked
then i worte a function in DLL like
extern "C" _declspec(dllexport) void Test(CString tetsstr)
add the method " Test" to .dif file ..
in my c# project calling way
[DllImport("Test.dll")]
public static extern void Test(string teststr);
This is the way i have created
Thanks