void MyUnmanagedFunc(
开发者_开发百科 CustomClass& szOutputData
, ICustomObject* pDataObject
, const LPCWSTR szTag
, const LPCWSTR szDisplay = NULL
, const BOOL bAdd = TRUE
);
I have the above signature of a function defined in a C++ DLL say, abc.dll
. I am not able to create the proper method signature in C#. Note, that the CustomClass
is defined in sometherfile, say, xyz.dll
and with __declspec(dllexport)
. I tried this tool to generate the signature.
Sorry, if I have repeated the question. I have tried to search over before posting.
Possible solution is to create mixed assembly written in C++. It can include any necessary headers and call method above from abc.dll and it can expose managed wrapper in the same time.
精彩评论