//flex table opened by JP

Click to See Complete Forum and Search --> : C++ GlobalLock() returning NULL but NO ERROR?


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....

fishybawb
04-15-2003, 10:02 AM
Post your code :t