I have a window into which I would like to run Google Earth.
With CreateProcess Google Earth runs but outside my program.
How could I do?
I thought searching for the window hadle of Google Earth and setting it has a child window of my program.
Is it a solution?
Hi anatolewilson,
Welcome to the forum!
To do what you are thinking you can invoke a COM object/method to open a web interface from within your program.
I think the attached webbrowser project will get you started. I am not the author and I am embarrassed to say I don't recall where I originally found it. Possibly here: http://www.johnfindlay.plus.com/pellesc/ but I'm not sure.
Unzip it and run BrowseApp.exe. If it looks workable to you dive into the code by opening the Pelles C BrowseApp.ppj file, and modify to your hearts content.
Hope it helps.
John Z
For external exe, use WinAPI FindWindow()
@John Z
OLE & COM (Component Object Model) (http://www.johnfindlay.plus.com/pellesc/COM/com.html)
WebView2
https://forum.pellesc.de/index.php?topic=11041.msg38710#msg38710
Thanks TimoVJL!
I had forgotten webview and all the work you and frankie did getting it functional.
John Z