Board index » cppbuilder » How to get the instance of AcitveX running?
Miller Lee
![]() CBuilder Developer |
Miller Lee
![]() CBuilder Developer |
How to get the instance of AcitveX running?2003-12-10 11:25:24 PM cppbuilder57 Hello, I Create an activex named TMyForm, anyone know how to reference to class TMyFormImpl instance? I found a line of code "extern PACKAGE TMyForm *MyForm;" in file MyFormImpl.h, and I try to cast it to TMyFormImpl like this: TMyFormImpl *pt = (TMyFormImpl *)MyForm; the code is right, but pt point to 0 address. |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2003-12-11 01:31:38 AM
Re:How to get the instance of AcitveX running?
"Miller Lee" < XXXX@XXXXX.COM >wrote in message
Quoteanyone know how to reference to class TMyFormImpl instance? Gambit |
Miller Lee
![]() CBuilder Developer |
2003-12-11 07:22:39 AM
Re:How to get the instance of AcitveX running?
Hello,
I am trying to access this instance from another class write myself. Has it any global instance like "Application" in c++ builder application? Thanks for your response. "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >дÈëÓʼþ Quote
{smallsort} |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2003-12-11 07:36:06 AM
Re:How to get the instance of AcitveX running?
"Miller Lee" < XXXX@XXXXX.COM >wrote in message
QuoteHas it any global instance like "Application" in c++ Gambit |
Miller Lee
![]() CBuilder Developer |
2003-12-13 12:56:42 AM
Re:How to get the instance of AcitveX running?
I wrote a class which hook the IE's activity, and fire an event wrote in
ActiveX myself. To fire that event, I invoke member function Fire_OnDoSomething in the instance of TXXXXImpl. I've solved this problem now, with the help of setting a pointer "TXXXXImpl *". Thanks for your response. "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >дÈëÓʼþ Quote
|