60001246 How can I add the VDF Wrapper component in VS2008 C++ unmanaged ?

Article 60001246
Type HowTo
Product Engine
Version 6
Date Added 10/13/2010 12:00:00 AM
Fixed (10/13/2010 12:00:00 AM)
Submitted by Thomas Honore

Summary

How can I add the VDF Wrapper component in VS2008 C++ unmanaged ?

Solution

If you want to add a new VectorDraw.Professional(6.x) (vdraw.ocx) in unmanaged VC++ 2005/2008/2010 project follow these steps:
    1. Contact us to provide you with a zip/rar file that contains the VDF .cpp and .h files.
    2. Extract the .h and .cpp files in a folder of your project.
    3. In your project properties->C/C++->Additional Include Directories-> add the path where the files of the zip was exctracted.
    4. Add the control on a Form by right-clicking on the Form and select "Insert ActiveX Control..." and browse VectorDraw.Professional(6.x) (vdraw.ocx)
    5. Add a member variable of your Form class project of type CVdraw example CVdraw mVdraw;
    6. After that in your cpp implementation file add the directive #include "vdallp.h"
    7. Inside a member method of your Form you can now call VectorDraw functionality, like:
          mVdraw.GetActiveDocument().Open("",0);

Send comments on this topic.