10-24-2007 06:02 AM
10-24-2007
08:02 AM
- last edited on
10-02-2025
03:47 PM
by
Content Cleaner
Hi Ido,
You don't need to register anything when working with Win32 DLLs. You only need to worry about registration when you enter the realm of ActiveX (i.e. creating an ActiveX DLL).
So in order for you to use the C++ code in CVI, you need to create a DLL out of that code and make sure its C compliant (i.e. via the extern "C" statement). Additionally, if your DLL has exported C++ class methods and properties, you need to go back to your C++ and export wrapper C Style functions (functions exported with extern "C") to be able to use them in CVI. The extern "C" statement is required to instruct the VC++ compiler to not mangle the exported function names, which is what a C++ compiler does by default.
Hope this helps!
Best Regards,