DanielP
16 years ago
All,
I am trying to wrap a traditional C++ dll, that I don't have the source for, in C#. I do have the header files listing what's exposed. The dll accesses a DB and provides access to the data. The problem I have is that the data is strored in a class and not a struct. As a result, some of the functions have pointers to classes as parameters. Does anyone know how to handle this on the c# side.
C++:
BOOL get_record(LPCSTR ap_id,CRecord *pRec,BOOL anyways = FALSE);
class DllExport CRecord : public CDBRecord
{
}
Thanks in advance for any and all help
From http://www.developmentnow.com/g/21_0_0_0_0_0/dotnet-framework-interop.ht
Posted via DevelopmentNow.com Group
http://www.developmentnow.com/g/
I am trying to wrap a traditional C++ dll, that I don't have the source for, in C#. I do have the header files listing what's exposed. The dll accesses a DB and provides access to the data. The problem I have is that the data is strored in a class and not a struct. As a result, some of the functions have pointers to classes as parameters. Does anyone know how to handle this on the c# side.
C++:
BOOL get_record(LPCSTR ap_id,CRecord *pRec,BOOL anyways = FALSE);
class DllExport CRecord : public CDBRecord
{
}
Thanks in advance for any and all help
From http://www.developmentnow.com/g/21_0_0_0_0_0/dotnet-framework-interop.ht
Posted via DevelopmentNow.com Group
http://www.developmentnow.com/g/