in reply to Controlling Google Earth via COM interface

Can anyone tell me what I'm doing wrong here?

You seem to be guessing at the API.

  • Comment on Re: Controlling Google Earth via COM interface

Replies are listed 'Best First'.
Re^2: Controlling Google Earth via COM interface
by jjorsett (Initiate) on Jun 13, 2009 at 03:44 UTC
    You seem to be guessing at the API.

    The API description of ICameraInfoGE is right here. I've used the Google Earth API extensively in C++, including ICameraInfoGE. I've used the iTunes API to examine and set Track info using Perl in the same manner as my first example and it works just dandy. So something specific to Perl and Google Earth seems to be going on.

      How would you use that in VB?
      $cameraInfo->{Range}= 500; $cameraInfo->->LetProperty( Range => 500);
        How would you use that in VB?

        I don't use VB so I don't know the syntax in that language, but in C++, this works:
        CoInitialize(NULL); IApplicationGEPtr smpGoogleEarth(__uuidof(ApplicationGE)); pCIGE = smpGoogleEarth->GetCamera(false); // (try/catch block left out +) pCIGE->Range = 500.;