Can .Net call an eMbedded Dll?

Can a VB.Net v2005 application use a dll created with eMbedded Visual C++ 3.0?
[78 byte] By [army] at [2008-1-13]
# 1
The generic answer to "Can CF code use native dlls" is yes. You can use the platform invocation services (PInvoke) via the DllImport attribute (or Declare in VB) and that allows you to call exported functions from native (C/C++) dlls.

You specifically mentioned eVC 3.0. That tool cannot be used to create dlls for the same platforms that VB2005 via the CF supports (WM2003 & CE 5.0 and above). You need to create the native dll with eVC 4.0 and the appropriate service pack or with VS2005 unmanaged C++.

Bottom line, if your dll already runs on the same platform as your CF code then you can call it via PInvoke. With CF 2.0 you can even use COM Interop.

Cheers
Daniel

DanielMoth at 2007-8-21 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2
Thanks Daniel, the response you gave was right on target! The dlls do not run on the Pocket PC Second Edition and I hoped for a COM interopt type solution.

Thank You!
ARMY/Navy/USMC

army at 2007-8-21 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...