G
Guest
Hi all!
I am trying to use an unmanaged Dll in C# CF. Most of it is object oriented, and - as constructors can't be invoked with dllimport - I added TestClass* CreateTestClass() and DeleteTestClass(TestClass* obj) functions and used IntPtr in C# to hold the instance.
In .NET Framework, it is possible to call all class methods by passing this IntPtr as first parameter if CallingConvention.ThisCall is specified. This property is not available in CF, does anyone know a workaround? Or will the only solution be to make changes to the DLL?
Any ideas or suggestions are welcome!
Thanks,
claudia
I am trying to use an unmanaged Dll in C# CF. Most of it is object oriented, and - as constructors can't be invoked with dllimport - I added TestClass* CreateTestClass() and DeleteTestClass(TestClass* obj) functions and used IntPtr in C# to hold the instance.
In .NET Framework, it is possible to call all class methods by passing this IntPtr as first parameter if CallingConvention.ThisCall is specified. This property is not available in CF, does anyone know a workaround? Or will the only solution be to make changes to the DLL?
Any ideas or suggestions are welcome!
Thanks,
claudia