I tried out the sample described in MSDN "extern (C# reference)" (Example 2 and 3, the one which created an unmanaged dll called Cmdll.dll, then used it in cm.cs)
It doesn't work. I'm guessing path problem. Following is the error message.
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'Cmdll': Th
e specified module could not be found. (Exception from HRESULT: 0x8007007E)
ÃÂ ÃÂ at MainClass.SampleMethod(Int32 x)
ÃÂ ÃÂ at MainClass.Main()
The generated dll is in the same folder as the cm.exe. I copied the dll to the System32 folder. None works.
Any help appreciated.
View Complete Post