Rational Dev

C++ Programming Tips

Adding an ActiveX DLL to a C++ Project with Wrappers

Adding an ActiveX DLL to your Visual C++ project instructions:

Open the "Classwizard" (menu View/Classwizard)

Use the "Add Class" button and select "From a Type Library".

Select the DLL and click OK.

Visual C++ will then create class (.cpp) and header (.h) file wrappers for your ActiveX DLL.

Posted On: July 27, 2005 - 11:31am by Rational
( categories: )

Error LNK2005: <method> already defined in LIBCMT.lib

If you get a link error like error LNK2005: _free already defined in LIBCMT.lib it is probably related to your library type.

Make sure you are using the same library types, eg all Release, or all Debug builds.

Make sure your run-time library threading compartments are of the same type for libraries you are linking.

Posted On: July 15, 2005 - 6:40am by Rational
( categories: )
Syndicate content

User login

Google

Navigation