Print Page | Close Window

Using ActiveX and RAD 2009 - 2010 C++

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: Sample Code
Forum Description: Share Debenu Quick PDF Library sample code with other forum members
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1298
Printed Date: 05 May 24 at 2:20AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Using ActiveX and RAD 2009 - 2010 C++
Posted By: duffo
Subject: Using ActiveX and RAD 2009 - 2010 C++
Date Posted: 24 Dec 09 at 3:27PM
Hello,
 
I scratched my head a lot, but never found some hint for QPDF under Borland / Codegear / Embarcadero C++.
 
So:
Import the QuickPDF type library. Be sure to check the "create component wrappers" option.
This operation will create:
QuickPDFAX0717_OCX.cpp
QuickPDFAX0717_TLB.cpp
 
Create a new project and tell the project manager to use the unit QuickPDFAX0717_OCX.h
You have now the PDF power in your hands. Use the class:
 
 TPDFLibrary *QP = new TPDFLibrary(this);
Remember: use only OLEstrings (e.g.: using StringToOleStr(string)) to "talk" with the ActiveX.
 
HTH
 
Claudio
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk