Prod.: Engine, ver.: 6, ID: 60001246, HowTo : How can I add the VDF Wrapper component in VS2008 C++ unmanaged ?

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

Article60001246
TypeHowTo
ProductEngine
Version6
Date Added10/13/2010
Submitted byThomas Honore
Keywords

Subject

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

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);