i will calculate the size of an allocated memory block. I found "GlobalSize()" in API - under Windows 98 the function returns NULL
Code: Select all
*adress_bas = AllocateMemory(20200)
*adress_api = GlobalAlloc_(#GMEM_FIXED, 20200)
Debug GlobalSize_(*adress_bas) ; = 20200 (under Win98 = 0 !!!)
Debug GlobalSize_(*adress_api) ; = 20200
Debug LocalSize_(*adress_bas) ; = 20200 (under Win98 = 0 !!!)
Debug LocalSize_(*adress_api) ; = 20200 



