开发者

Can't find PInvoke DLL on Windows Mobile

开发者 https://www.devze.com 2023-01-18 05:57 出处:网络
I am working on Windows Mobile application. Whenever I download some sample which is using wrapper around native code (using DllImport), it always g开发者_运维百科ives \"Can\'t find PInvoke DLL\" err

I am working on Windows Mobile application.

Whenever I download some sample which is using wrapper around native code (using DllImport), it always g开发者_运维百科ives "Can't find PInvoke DLL" error.

I am using VS 2005 with C# on 64-bit Windows 7 OS.

I have checked many of solution on stackoverflow as well as othersites, but with no solution to my problem.

If its 64-bit OS problem, what are the steps to get that dll compiled for 64-bit? I tried to change platform to x64 through Configuration Manager, but not working.


What are you talking about with 64-bit? All WinMo and WinCE devices are 32-bit. Did you build MAPILib.dll? Is it on the device in a folder where the loader can find it (like \Windows)? Did you build MAPILib for the correct processor/OS (i.e. you didn't build it for the desktop)?

0

精彩评论

暂无评论...
验证码 换一张
取 消