News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Run Google Earth

Started by anatolewilson, July 02, 2024, 04:32:10 AM

Previous topic - Next topic

anatolewilson

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?

John Z

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

TimoVJL

#2
May the source be with you

John Z

Thanks TimoVJL!

I had forgotten webview and all the work you and frankie did getting it functional.

John Z