Board index » cppbuilder » How to get the instance of AcitveX running?

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.
 
 

Re:How to get the instance of AcitveX running?

"Miller Lee" < XXXX@XXXXX.COM >wrote in message
Quote
anyone know how to reference to class TMyFormImpl instance?
Where are you trying to access it from exactly? Please provide more
details.
Gambit
 

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

"Miller Lee" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>anyone know how to reference to class TMyFormImpl instance?

Where are you trying to access it from exactly? Please provide more
details.


Gambit


 

{smallsort}

Re:How to get the instance of AcitveX running?

"Miller Lee" < XXXX@XXXXX.COM >wrote in message
Quote
Has it any global instance like "Application" in c++
builder application?
No, it does not. What EXACTLY are you trying to accomplish? Please show an
actual example.
Gambit
 

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

"Miller Lee" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>Has it any global instance like "Application" in c++
>builder application?

No, it does not. What EXACTLY are you trying to accomplish? Please show
an
actual example.


Gambit