Global Mapper v24.1

Create Windows form in a GM extension (C++)

I'm a really beginner in GM SDK, and I'm trying to open a Windows Form by clicking on a toobar button.
When I create a Windows Form, Visual Studio doesn't recognize it (because I'm not in the CLR compiler which is uncompatible with the debugger chosen).

Could you tell me if I can use Windows Forms in exensions for GM (and how) ? Or should I use ressources (create dialogs,...)?

Thank you

Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    Answer ✓
    Hello,

    You will need to use Windows resources to create a dialog in a Global Mapper extension.  You can't use Windows Forms.  You can use an MFC CDialog-based class to implement a dialog.  The Overview Extension sample included with the SDK shows how to use a modeless dialog.  You can also use a Modal dialog, if that is what you need.

    Cheers,

    Bob
  • Thank you very much Bob!