NO

Author Topic: Run Google Earth  (Read 4184 times)

Offline anatolewilson

  • Member
  • *
  • Posts: 1
Run Google Earth
« on: July 02, 2024, 04:32:10 AM »
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?

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Run Google Earth
« Reply #1 on: July 02, 2024, 10:31:33 AM »
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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Run Google Earth
« Reply #2 on: July 02, 2024, 10:46:41 AM »
« Last Edit: July 02, 2024, 10:51:15 AM by TimoVJL »
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 860
Re: Run Google Earth
« Reply #3 on: July 03, 2024, 10:44:54 AM »
Thanks TimoVJL!

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

John Z