Frequently Asked Question:
C++ Builder and ActiveX
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.
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.