can't find Pinvoke dll

X

Xavier PACOTTE

Hello,

I have a message sometimes under windows mobile 5 when I start my
application : can't find Pinvoke dll ..
I use differents external librairies. (not a windows librairies).
Can you help me?

Best regrads.
 
C

Christian Resma Helle

Do those external libraries exist on the device (e.g. under \Windows or the
applications directory) ?
 
X

Xavier PACOTTE

I tried to copy dll under Windows directory and the application directory,
same problem.
 
G

Guest

What error are you getting? Ensure in your P/Invoke declaration you are
declaring SetLastError = true; ie:

[DllImport("CoreDll.DLL", EntryPoint = "PlaySound", SetLastError = true)]
public static extern int WCE_PlaySoundBytes(byte[] szSound, IntPtr hMod,
int flags);

Then call coredll.dll GetLastError().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top