communication between DLL & EXE RRS feed

  • Question

  • There is an EXE with a browser(CHtmlView) on it

    I need to send the URL to that EXE to open using CHtlmlView and want to get the browser handle(CHtmlView) back to download the contents in the browser.

    What is the best way to do this. The DLL function need to start the exe, pass the URL to it and get the handle back.


    Tuesday, November 16, 2010 2:18 PM


  • From your question, it looks like the DLL and EXE are different processes.

    The DLL can start the EXE using CreateProcess and pass in the URL.

    It can also create some communication mechanism like a pipe and pass in the pipe handle.

    The exe after starting can take the URL from its command line and navigate to that URL.

    It can use the pipe handle to send back the handle to the CHTMLView window.

    Microsoft MVP (Visual C++)
    • Marked as answer by rp_suman Wednesday, November 17, 2010 6:30 AM
    Tuesday, November 16, 2010 3:06 PM