Calling ATL COM DLL Method (that opens a dialog) from Browser
I have a COM Object created using ATL (without MFC Support)
The Object has 1 method that opens a Dialog (that does all the rest) and when finish - returns 2 values back (1 is enough)
Currently I call it from another EXE:
hr = CoCreateInstance(
CLSID_MyControl,
NULL,
CLSCTX_INPROC_SERVER,
IID_IMyControl,
(void**) &pMyControl
);
and then:
hr = pMyControl->MyMethod (ATL::CComBSTR(InputString1), ATL::CComBSTR(InputString2), &IntReturned, &IntReturned);
Is it possible to call it as is from a browser ?
How can I Instantiate the object and invoke my method (with params) from the browser ?
will it open the dialog ?
Re: Calling ATL COM DLL Method (that opens a dialog) from Browser
Do you want to run the COM component on the web server or the web client?
Never mind, because your COM component displays a dialog box, it's going to have to run on the web client. Do you realize that you will need to have your users download and install the COM component?
Re: Calling ATL COM DLL Method (that opens a dialog) from Browser
Quote:
Originally Posted by
Arjay
Do you want to run the COM component on the web server or the web client?
Never mind, because your COM component displays a dialog box, it's going to have to run on the web client. Do you realize that you will need to have your users download and install the COM component?
It must run on the client as it needs to access local resources.
I will have to package it like any other activex and the user should approve Installation and running.
Before climbing that mountain I don't know yet how to call my method from the browser.... and get back an event or something similar when the method returns....
dani
Re: Calling ATL COM DLL Method (that opens a dialog) from Browser
ActiveX limits it to be used in IE only. You need to learn about <object> html tag to embed your activex into web page.