It may very well be the programs. What applications are crashing? Have you tried re-installing them? How often do they crash? If you delete the tmp files, how often do they re-appear? etc.
I meant a way that wouldn't interfere with the users keyboard... See, if I check to see if the alt or control keys areheld down(I'm using a hotkey here..) and then I put them up(I have to or else I can't invoke a copy/paste etc.) and then I put them back down afterwards, it doesnt work many...
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.
Yes I read that and I DO check to make sure the clipboard contains text before I use it.
This isn't the problem. I test it by copying text to the clipboard, and that is when I get the access violations.
Is there a way I can have the access violation just not show up?...
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 was searching the web and found this site that displays how to do it in VB:
http://www.vbweb.co.uk/show/224
I don't know visual basic, but if the winapi calls are all the same, I believe this can be converted to C++ code without too much trouble?
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 BTecho, I noticed in CBuilder5 ExtractShortPathName does NOT work correctly in some circumstances. I forget which exactly, but I believe it was circumstances with spaces and/or ()s in the file name.
I believe when you copy a file (like from Explorer) to the windows clipboard the contents of the file are not dealt with at all- only the file name. When you decide to paste, then it initiates a copy (or move) process that deals with the contents of the file, but only then.
I need to be able to...
Yes hennep, hat I need it to do is copy the file onto the clipboard like when you press Ctrl-C in windows explorer, not copy the contents of the file whatsoever.
Uhh, I wish it was that easy, but it's not. I need to copy a file itself onto the clipboard, not text, not an image, not raw data, but a file (e.x. C:\readme.txt), where the user can just press ctl-v and paste it someplace else.
I'm going to be astonished if no one knows how to do that!
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.