Anyone Successful Getting FC.GEPluginCtrls to work in C++.NET?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: Anyone Successful Getting FC.GEPluginCtrls to work in C++.NET?

  1. #1
    Join Date
    Oct 2011
    Posts
    8

    Anyone Successful Getting FC.GEPluginCtrls to work in C++.NET?

    I came across the winforms-geplugin-control-library project (http://code.google.com/p/winforms-ge...ntrol-library/) and it is just what I need for my C++.NET windows forms application. The examples are written in C# however, and some of the code I can't figure out how to translate to the C++.NET language. The last bit isn't surprising because I am completely an ameteur at programming and I do this just as a hobby.

    With that said, I can get Google Earth to appear in the application and do the default scrolling and zooming, but not without runtime errors. I click continue on the errors and the program continues to run and I can manipulate the Earth without trouble.

    Attached is the Form1.cs file from the author's sample application available for download at the project website. I am only concerned with the initialization of the plugin in the Form1 section at the top, except for the debug and server related items, as well as the geWebBrowser1_PluginReady and TestEvents functions. Additionally, on line 16 "ge" initialized as "private dynamic ge = null;", is there an equivalent in C++.NET? I had tried "Object^ ge;" which compiled without error but later on during runtime a first chance exception occured saying that "ge" wasn't of type "GEPlugin".

    The Form1.cs isn't exactly a small file but of it's parts I would like to use only a couple things that I mentioned earlier. The result I want to achieve is to display Google Earth in the application then add markers and lines.

    Is it possible that the FC.GEPluginCtrls.dll just isn't compatible with C++.NET?

    Any help is appreciated, even if nobody has the full answer sometimes a shove in the right direction can help me find the solution.

    Thanks,
    Justin
    Attached Files Attached Files
    Last edited by nwadc10; March 21st, 2012 at 02:12 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center