|
Purepage SDK MFC Visual C++ Wrapper & Sample
Written in Visual C++ for use with Microsoft Foundation Classes (MFC).
Download the MFC wrapper Download the MFC sample application
This example demonstrates how to convert a sample document using Purepage SDK and Microsoft Visual C++ with MFC. You can use this example as a base to build your own code around.
This sample can be found in the MFC sub-folder when you download the trial version of Purepage SDK.
Main points of interest include:
- C++ use of Purepage SDK via a simple MFC class.
- Takes you through the process of converting a printed job into HTML.
- Simple use of the Purepage COM objects methods.
NOTE: The MFC wrapper class was generated automatically using the Visual C++ Class Wizard.
To create your own wrapper, simply create a new MFC based project, Open the Class Wizard and import a new class from a Type Library. When asked to select a Type Library select the PurePage.exe file from the Windows system folder. Visual C++ will automatically create the wrapper class for you.
To use the MFC wrapper in your MFC application:
- Create a new MFC based application using Visual C++ (5.0 or later).
- Unzip the files from MFCWrapper.zip into the same folder as your newly created MFC application.
- Add “purepage.h” to the includes of your cpp files.
- Add “purepage.cpp” to the project.
- Add code to use the Purepage wrapper class (see MFCClientApp.zip for a simple example). IMPORTANT: make sure you add OleInitialize(NULL) to your code before using Purepage.
<< Previous Example Return to Samples page
|