writing a wrapper for c++ unmanged dll
-
Hi, I have an unmanged c++ dll and need to write a c# wrapper for it so I can add it to my c# application I have this in c++ extern "C" BOOL WINAPI GetDeviceID(DWORD dwDevice, DWORD* pdwID); and in my wrapper I have [DllImport("MDBEngine.dll")] unsafe public static extern bool GetDeviceID(uint dwDevice, uint* pdwID); my question is what is the * for in c++ and do I need it in my reference in c#?
-
Hi, I have an unmanged c++ dll and need to write a c# wrapper for it so I can add it to my c# application I have this in c++ extern "C" BOOL WINAPI GetDeviceID(DWORD dwDevice, DWORD* pdwID); and in my wrapper I have [DllImport("MDBEngine.dll")] unsafe public static extern bool GetDeviceID(uint dwDevice, uint* pdwID); my question is what is the * for in c++ and do I need it in my reference in c#?
-
Hi, I have an unmanged c++ dll and need to write a c# wrapper for it so I can add it to my c# application I have this in c++ extern "C" BOOL WINAPI GetDeviceID(DWORD dwDevice, DWORD* pdwID); and in my wrapper I have [DllImport("MDBEngine.dll")] unsafe public static extern bool GetDeviceID(uint dwDevice, uint* pdwID); my question is what is the * for in c++ and do I need it in my reference in c#?
Hi You can use from SWIG (Simplified Wrapper and Interface Generator).SWIG is an interface compiler that connects programs written in C and C++ with scripting languages such as Perl, Python, Ruby,C# and Tcl. It works by taking the declarations found in C/C++ header files and using them to generate the wrapper code that scripting languages need to access the underlying C/C++ code. In addition, SWIG provides a variety of customization features that let you tailor the wrapping process to suit your application. http://www.swig.org/ -- modified at 5:55 Monday 10th July, 2006