Possible Duplicate:
C++/CLI Mixed Mode DLL Creation
I'm wrapping a C++ class using c++ cli. The header file looks like this:
pabcon.h
class PABCon {
private:
unsigned int maxIndex;
long byteSize;
public:
__declspec(dllexport) inline unsigned int GetMaxIndex() { return this->maxIndex; };
__declspec(dllexport) void invertData();
};
I'm wrapping non-inline functions this way:
pabconwrapper.h
public ref class PABConWrapper
{
private:
PABCon *pabc;
public:
PABConWrapper();
~PABConWrapper();
void invertData();
};
pabconwrapper.cpp
PABConWrapper::PABConWrapper() : pabc(new PABCon())
{
}
void PABConWrapper::invertData()
{
pabc->invertData();
}
PABConWrapper::~PABConWrapper()
{
delete pabc;
}
My questions are:
1) What is the best way to wrap the inline c++ functions?
2) What should I do with private variables defined in pabcon.h? Should I wrap them too somehow?
Thanks
P.S. I've touched C++ last time 4 years ago and coded in C# since then.