Hi,
When I write a plugin for naviswork, and I use DllImport to interget a unmanaged wrap C++ library, it crashed all the time. It works when I create a seperate C# windows form application.
Class Function
{
[DllImport("MyDll.dll",
CallingConvention = CallingConvention.Cdecl,
CharSet = CharSet.Unicode)]
public static extern void MyFunc(int a);
}
Function.MyFunc(2)
It cause crash in naviswork with unhandle exception.
Anyone has idea why this happen? or naviswork plugin doesn't support DllImport?
Thanks
Solved! Go to Solution.
Solved by firemousefish. Go to Solution.
solved, check the naviswork 32bit or 64bit, it need to be consistent with dll