CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2013
    Posts
    2

    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 ?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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.

  3. #3
    Join Date
    Oct 2013
    Posts
    2

    Re: Calling ATL COM DLL Method (that opens a dialog) from Browser

    Quote Originally Posted by Arjay View Post
    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

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    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
  •  





Click Here to Expand Forum to Full Width

Featured