Microsoft Visual C++ 6

Top  Previous  Next

Steps for Microsoft Visual C++ 6

 

 

 

1.        Start Microsoft Visual C++ and create a new project.

 

2.        To insert a component, there are two ways:

 

i)   On the Project menu, choose Add to Project, then choose Components and Controls. The Gallery dialog appears, select Registered ActiveX Controls folder from Gallery dialog.

 

è Project Menu è Add to Project è Components and Controls è Registered ActiveX Controls

 

 

 

 

 

OR

 

ii)  Secondary click (right click) on the user form. From the options list, select Insert ActiveX Control.

 

3.Select "Gnostice PDFtoolkit ActiveX Control" from the list and click OK.  Depending on the edition chosen by you a list of the controls will be visible. For more information see Editions of PDFtoolkit ActiveX.

 

 

 

4.The Confirm Classes dialog appears, click OK to confirm the classes.

 

 

 

 

5.To enter the member variable, Ctrl+double click the control in the user form or on the View menu, choose ClassWizard, then select Member Variables tab from the popup and click Add Variable.

 

 

 

 

On clicking the OK button to the dialog box, the user will be displayed the Confirm Classes dialog box. This will happen only when the control is used for the first time.

 

 

 

6.Thereafter the Member Variable Name box will appear, type a member variable.

 

 

7.Add gtPDFkitEnum.h and gtPDFkitUtils.h files from Include folder to the project.

 

gtPDFkitEnum.h Consists of enumerations required by the engine.

 

gtPDFkitUtils.h Consists of helper functions required for specific conversation eg., In between Variants and Basic Data Types.

 

 

8.Following is a sample code for loading and saving an existing document to a new file:

 

 

m_PDF.LoadFromFile("Sample.pdf");

 

m_PDF.SaveToFile("NewFile.pdf");