I'm developing a SmartDevice project in C# (Windows Mobile 6.1 - Visual Studio 2008 - Pocket PC) and I want to use PInvoke. I have a native DLL written in C++.
When I run the application on my device I place the native DLL in \Program Files\My Project directory (on my divice) and it works, but I need to use the emulator and I don't know where to place my navive DLL (on my computer) in this case.
I tried to the working directory with relative path, i tried to DllImport the absolute path:
[DllImport(@"C:\John\VMDLLDevice.dll", EntryPoint = "Write")]
public static extern bool Write(char[] FileName);
But when I pinvoke the native DLL i got an Exception because the emulator can't find the DLL.
Where have I to place my native DLL to use the emulator?