Global Mapper v25.0

Problem with parameter NULL in function of SDK (C#)

Aplies Global Mapper UserTrusted User
edited March 2013 in SDK

I don't know how give a NULL parameter for GM_Rectangle_t in the function "GM_DrawLayerList".
I tried lots of solutions and i read lots of posts on this forum but I have not been able to do it.
How do you declare a GM_Rectangle_t with a value NULL in C#?

Thanks in advance.


  • BMGJustin
    BMGJustin Global Mapper User
    edited March 2013
    If you want to pass it in as NULL you would need to declare it as an IntPtr rather than a GM_Rectangle_t. There isn't much point in passing it in as NULL though. If you pass it as NULL it would just draw everything that is loaded. You need it non-NULL to provide it a rectangle for any sort of zooming or panning.
  • Aplies
    Aplies Global Mapper User Trusted User
    edited March 2013
    Thank you for your answer.