
Using Clipboard through API, why GlobalLock
1997 04:16:32 GMT):
Quote:
>I'm writing something that would write a string to a clipboard for later
>use, so can anybody tell me why one has to GlobalLock the memory allocated
>by GlobalAlloc before you can lstrcpy a string to it?
No need to you the API with VB:
Clipboard.SetText = "Hello! I'm getting copied now!", 1
IWantMyStringBack$ = Clipboard.GetText(1)
BTW, STOP CROSSPOSTING!
Mathias Schiffer, Germany
----------------------------------------------
VB-FAQ: http://www.rat.de/metty/bin/vb-faq.zip