I tried to load DLL system user32.dl and import function MessageBoxA - no problem run (I tried only in virtualrob).
I made library in Visual C++. Library was compiled for Win32. If I run in virtualrob, I’ll copy into “WINDOW” folder. But problem is coming when I want to run on real robot. Because on robot run WINCE. I don’t know what version and kind of processor (ARM, x86 … ):grinning:( It isn’t such problem. I have SDK for Win CE5) and next problem can be access WINDOW folder (or start path app)
It possible to access other unmanaged library ? :stuck_out_tongue_winking_eye:
Hi,
here are some hints based on my experience from .NET.
I have not tried this on Compact Framework though.
You can dynamically load an unmanaged DLL using Win32 GetProcAddress, which you can call using P/Invoke.
Then you can call a function in this DLL using some interop-magic.
I have never tried to use P/Invoke directly to call methods in my own DLL’s.
Probably it is possible but I’m not sure how the DllImport attribute searches for the DLL file, which is basically what you are asking;)