ecryptic
04-14-2003, 09:30 PM
I'm trying to lock a clipboard object, and GlobalLock returns NULL...
I use this to get the last error:
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER |FORMAT_MESSAGE_FROM_SYSTEM,NULL,GetLastError(),MA KELANGID( LANG_ENGLISH, SUBLANG_ENGLISH_US ),(LPTSTR)&ptr,0, NULL);
It says "The operation completed successfully"
In other words, it's returning a pointer to the memory object, and the address is zero? I don't believe that one bit....
I use this to get the last error:
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER |FORMAT_MESSAGE_FROM_SYSTEM,NULL,GetLastError(),MA KELANGID( LANG_ENGLISH, SUBLANG_ENGLISH_US ),(LPTSTR)&ptr,0, NULL);
It says "The operation completed successfully"
In other words, it's returning a pointer to the memory object, and the address is zero? I don't believe that one bit....