Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GlobalLock() returning NULL but NO ERROR?

Status
Not open for further replies.

Chris8852

Programmer
Jan 15, 2003
16
0
0
GB
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(),MAKELANGID( LANG_ENGLISH, SUBLANG_ENGLISH_US ),(LPTSTR)&ptr,0, NULL);

It says "The operation completed successfully"
In other words, it's returning a NULL pointer???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top