The following procedure may be used to insert DLLs into a new C++ 6.0 project:
Open Class Wizard.
On the Message Maps tab select "Add Class"....."From type library"
Browse to the directory where the DLL is located and select the DLL.
A dialog will show the classes that will be generated, these classes are the interface to the DLL. Click OK.
Assign a member variable to the encoder class.
Insert the "AfxOleInit();" function in one of your constructor classes (View, Dlg, etc) to initialize the OLE handler.
You can now access the DLL functions by using the member variable of the encoder class.
Use the project provided in this ZIP file as an example.
Copyright © IDAutomation.com, Inc. 2001 All rights reserved. All trademarks mentioned are the property of their respective owners.