I have following problem statement.
- Export a C++ class in the dll (un-managed).
- Create and use an object of this class in C# code.
For the first part I have the classDLL.h as follows
“
#include <iostream>
__declspec(dllexport)
class pABC{
private:
int x;
public:
void func();
};
The respective cpp is also there. On compiling I get the dll.For thesecond part of the problem I am not getting how to proceed.
Thanks.
1 Answer