-
October 11th, 2013, 10:36 AM
#1
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 ?
-
October 11th, 2013, 06:09 PM
#2
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?
Last edited by Arjay; October 11th, 2013 at 06:14 PM.
-
October 12th, 2013, 01:03 AM
#3
Re: Calling ATL COM DLL Method (that opens a dialog) from Browser
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
-
October 12th, 2013, 06:40 AM
#4
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.
Best regards,
Igor
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|