From: Bryan Richardson Date: 2008-09-12T03:37:34+09:00 Subject: WIN32OLE Question on Accessing an Enum Hello all, I'm trying to interact with the Google Earth application through its COM interface on a Windows machine. I'm able to start the application using WIN32OLE.new 'GoogleEarth.ApplicationGE'. I'm now trying to set the camera using the OLE method setCameraParams. One of the parameters for this method is an AltitudeModeGE enumeration defined in the COM interface (see below). HRESULT IApplicationGE::SetCameraParams([in] double lat, [in] double lon, [in] double alt, [in] AltitudeModeGE altMode, [in] double range, [in] double tilt, [in] double azimuth, [in] double speed ) How do I go about creating the AltitudeModeGE enum to pass into the setCameraParams method? -- Thanks! Bryan -- Posted via http://www.ruby-forum.com/.