MapInfo Pro Developers User Group

 View Only
Expand all | Collapse all

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.