oh.
Both a struct with data members, and a class with methods will be uesd.
For example:
there is a function in DLL:
ReturnData GetData(InputData data)
{..... }
the definition of ReturnData is:
struct ReturnData
{
char* buf;
unsigned long length;
//and so on.
};
struct InputData
{
int left;
int right;
//and so on.
};
In C++/CLI. the InputData and ReturnData will be recognized,
But C# will not.
In addition:
There are some Callbacks in my DLL.
So a class with methods will be uesd.
Thank U!
|