Back to product page
Getting Started in VC
Working with the COM object
In order to insert the wodCrypt COM object into your project, follow these steps:- Install the component on your system by starting its setup program.
- In the Visual C++ Compiler IDE, create a project or open an existing one.
- Recompile and then open ClassWizard
- Click on the 'Add Class' button and then on 'From a type library'
- Locate wodCrypt.DLL and select it. Select all offered interfaces. Click on 'Ok'. VC will now generate wrapper classes for all interfaces.
- wodCrypt is now declared as COleDispatchDriver - you can initialize it from the code like this:
// in header file
IwodCryptCom m_Crypt1;
// in CPP file
OleInitialize(NULL);
m_Crypt1.CreateDispatch("WeOnlyDo.wodCryptCom.1");
- Do not forget to distribute wodCrypt.DLL when using the COM object!
Working with the ActiveX control
In order to insert the wodCrypt ActiveX control in your project, follow these steps:- Install the component on your system by starting its setup program.
- In the Visual C++ Compiler IDE, create a new project or open an existing one.
- Click on 'Project', then on 'Add To Project', then on the 'Components and Controls' menu
- in the 'Registered ActiveX Controls' directory select 'wodCrypt Class', click on the 'Insert' button, close the dialog
- The compiler will insert the control into the project and create appropriate wrapper classes.
- Do not forget to distribute wodCrypt.OCX when using the ActiveX control!