ActiveX in C++
Hi,
I need to do something like this: when the user click on a button (onClick in the html code), it will execute an application (in which this application has been installed in the first place in the local machine). And it is prefer no need user's involvement in changing the security setting to low. I am not sure if this is called ActiveX plug in. Is it?
I have no idea how to do it? Or at least where to start?
Anyone has any idea, any link or good example recommended to me, or any starting skeleton code for me to start of?
Thanks in advance,
PM
[596 byte] By [
puffmuff] at [2007-11-19 19:41:13]

# 1 Re: ActiveX in C++
I need to do something like this: when the user click on a button (onClick in the html code)
In a web application ? You normally do that in Javascriptor or VBScript .
In Javascript it's done this way.
var someVar = new ActiveXObject("Libname.ClassName");
someVar.foo();
Sahir at 2007-11-9 0:57:33 >

# 2 Re: ActiveX in C++
Hi Sahir,
Thanks!
Yeah, I need to do it in the web application. I will look into the ActiveXObject function soon (my machine crashed this morning :-( ).
Actually I was reading a few articles last night, and then I realize that most example on the Internet are designed in the way where the ActiveX control is embedded in a webpage. For example, Quicktime is as an object in a webpage. But for my case, it is a bit different:
In a webpage, I have a button on a web page (let's say the web developers can add in this for me if they want their user to use my system in his web page). Whenever the user clicks on that button, it will launch my application which the user already downloaded and installed in their machine.
Is this possible to be done in ActiveX? I asked around and most people suggest me maybe ActiveX is the one I should be using, but they are not sure how it can be done.
I looked through the examples, and most of them giving instruction on how to create ActiveX control, but as I mentioned above, I don't need any new object on the web page, only after the user clicks on the button then will launch my application.
Any idea?
Thanks,
PM.
# 3 Re: ActiveX in C++
In a webpage, I have a button on a web page (let's say the web developers can add in this for me if they want their user to use my system in his web page). Whenever the user clicks on that button, it will launch my application which the user already downloaded and installed in their machine.
If you mean, make your application visible on the web page, the answer is no. The web page must use an object tag to embed your Activex application visible on the web page.
Sahir at 2007-11-9 0:59:35 >

# 4 Re: ActiveX in C++
1. What I am thinking is to have my application in a ActiveX application. Is this possible? I just want that, whenever the user clicks on a button in a web page, then it will download or call the ActiveX application which contains my own application. I don't know if this is possible and how could I do that and the most important, where should I start?
2. If let's say I want the button to start of the download of the ActiveX application, do I need to embed the ActiveX object in that web page which contains the button? Or can I embed the ActiveX application in another web page after pressing the button?
3. Is every ActiveX needs to use ActiveX controls?
4. And also, is every ActiveX must be written using MFC? For my case, do I need to start of with MFC?
Really needs some helps here...
Thanks,
PM.