Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

C++ Builder and ActiveX

Question

Are there any code samples for how to instantiate the ActiveX component in CodeGear C++ Builder 2007?

OleVariant QP2;
QP2 = Variant::CreateObject("QuickPDFAX0724.PDFLibrary");

This works but I actually want to instantiate the object so my intellisense works with it.

AnsiString DLL = "C:\component\Quick PDF Library\DLL\QuickPDFDLL0724.dll";
QuickPDFDLL0724 QP(DLL.c_str());

This works for the DLL but I need the Variant method that is only available in the OCX. Any help would be appreciated.

Answer

Try installing the ActiveX component as a component (i.e. from the menu choose "Component, Import Component" and then select to import an ActiveX control). I suspect that should add the intellisense help you are looking for.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum