LoadImage返回0,GetLastError也返回0.
翅膀又硬了 2012-08-03 04:42:25 如题 加载某图片LoadImage返回0,GetLastError也返回0. LoadImage返回正常handle值时,GetLastError却返回8(存储空间不足,无法处理此命令。).
但是MSDN里面对该函数返回值的描述是:
Return Value
If the function succeeds, the return value is the handle of the newly loaded image.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
谁知道是怎么回事?
补充下,我的环境是VC6.0 那段MSDN描述摘自vs2008的MSDN