S
Sam
I have a .dll with "C" functions that I need to call. One of the
functions returns a simple struct(2 doubles)
If I try to use DllImport like this:
[ DllImport("somedll.dll]
SomeStruct1 f1(SomeStruct1 *pS);
I get compiler error C3385 "a function that has a DllImport Custom
Attribute cannot return an instance of a class"
How can I import a function from a DLL that returns a struct???
Thanks a ton,
Sam
functions returns a simple struct(2 doubles)
If I try to use DllImport like this:
[ DllImport("somedll.dll]
SomeStruct1 f1(SomeStruct1 *pS);
I get compiler error C3385 "a function that has a DllImport Custom
Attribute cannot return an instance of a class"
How can I import a function from a DLL that returns a struct???
Thanks a ton,
Sam