MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only

I am using mapinfo runtime 15 32-bit. I would like to upgrade my application mapinfo runtime 15 to 64-bit. But I have some problems. I introduce the same panel sizes to the mapinfo, but the size of the 64-bit is too small. What is the problem?

  • 1.  I am using mapinfo runtime 15 32-bit. I would like to upgrade my application mapinfo runtime 15 to 64-bit. But I have some problems. I introduce the same panel sizes to the mapinfo, but the size of the 64-bit is too small. What is the problem?

    Posted 03-22-2018 16:15
      |   view attached

    the codes I use;

    Type mapinfotype = Type.GetTypeFromProgID("MapInfo.Runtime");

     _instance = (DMapInfo1) Activator.CreateInstance(mapinfotype);

    ...

    ...

    _instance .Do("Set Next Document Parent {handleId} Style 1")

    _instance.Do("Set Application Window {handleId}")

    Operating System : Windows 10 64-bit

     

    See Attachment



  • 2.  RE: I am using mapinfo runtime 15 32-bit. I would like to upgrade my application mapinfo runtime 15 to 64-bit. But I have some problems. I introduce the same panel sizes to the mapinfo, but the size of the 64-bit is too small. What is the problem?

    Employee
    Posted 03-28-2018 09:32

    Hi. I believe you need to modify your 64b R/T application to migrate away from the use of "set next document parent", which has been deprecated. If you refer to the Sample Applications delivered with v16 MapBasic, you can find examples of re-parenting windows using the IMapInfoPro.CreateUnattachedWindow() api. Specifically, refer to  

    • SAMPLES/RIBBONINTERFACE/DotNet/UnattachedWindow
      • SAMPLES/RIBBONINTERFACE/DotNet/UnattachedWindowMB 

    Once you've had a look at these, or if you already have, and you still have problems, please post again with more details.

    Thanks.