I'm developing an application where I need to make another application copy/cut/paste to the clipboard.
I didn't think this would work, but I tried it and it didn't...
PostMessage(GetForegroundWindow(),WM_KEYDOWN,'C',NULL);
PostMessage(GetForegroundWindow(),WM_KEYUP,'C',NULL);
WM_COPY paste etc...
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...
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...
Whenever I post in here I don't seem to get any (meaningful) replies. So I'd like to know if this is a beginner's forum or an intermediate/expert forum?
I'm no expert, but if no one here can help me I might as well be.
In my program I use code like
AnsiString b1 = Clipboard()->AsText;
and
int i = Clipboard()->AsText.Length();
Both cause access violations. My program uses AsText hundreds of times in it, but not all the time does it cause an access violation. I check to see if the Clipboard() == NULL and if...
I have created a network application that unifies the clipboards of multiple computers over a network, it will even detect URL links clicked on and mailto: links clicked on and run the associated program on another computer if you want it to, as well as many other advanced options... now my...
Hello there, I'm programming an application that needs to copy a file onto the clipboard so the user can paste it in a folder of their choice. As far as I can tell the TClipboard won’t do that, and I've Ole implementation but its just one maze of code and structures after another... If anyone...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.