Click here to Skip to main content
15,896,402 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending a packet using PostMessage Pin
Gary R. Wheeler4-Jan-04 6:53
Gary R. Wheeler4-Jan-04 6:53 
GeneralRe: Sending a packet using PostMessage Pin
__Cerb4-Jan-04 11:06
__Cerb4-Jan-04 11:06 
GeneralRe: Sending a packet using PostMessage Pin
Gary R. Wheeler5-Jan-04 15:32
Gary R. Wheeler5-Jan-04 15:32 
QuestionHow to drag from control to Explorer Pin
Anonymous4-Jan-04 3:47
Anonymous4-Jan-04 3:47 
GeneralRemotely starting and stopping a service programmatically Pin
luyaz4-Jan-04 3:05
luyaz4-Jan-04 3:05 
GeneralRe: Remotely starting and stopping a service programmatically Pin
valikac4-Jan-04 6:28
valikac4-Jan-04 6:28 
GeneralRe: Remotely starting and stopping a service programmatically Pin
Renjith Ramachandran4-Jan-04 8:05
Renjith Ramachandran4-Jan-04 8:05 
GeneralWindows Copy to Clipboard problem Pin
impeham4-Jan-04 2:30
impeham4-Jan-04 2:30 
i'm using the following:

HGLOBAL hmem;
LPTSTR local_buf;

hmem = GlobalAlloc(GMEM_MOVEABLE,500);
local_buf = (LPTSTR)GlobalLock(hmem);
lstrcpy(local_buf,"My Test");
GlobalUnlock(hmem);

if (OpenClipboard(NULL)) // i don't have a window
{
EmptyClipboard();
SetClipboardData(CF_TEXT,hmem);
}

////////////


When debugging, the OpenClipboard,EmptyClipboard worked fine, but SetClipboardData returns NULL.
After formatting the message, i got "Thread does not have a clipboard open."
i need to generally copy a CF_TEXT string to the clipboard.

I checked MSDN, but everything looks fine. What is the problem?

Thanks.

GeneralRe: Windows Copy to Clipboard problem Pin
valikac4-Jan-04 6:32
valikac4-Jan-04 6:32 
GeneralRe: Windows Copy to Clipboard problem Pin
impeham8-Jan-04 0:39
impeham8-Jan-04 0:39 
Generalhelp my project, please Pin
IT student4-Jan-04 1:27
IT student4-Jan-04 1:27 
GeneralRe: help my project, please Pin
Prakash Nadar4-Jan-04 4:21
Prakash Nadar4-Jan-04 4:21 
QuestionBug in CMonthCalCtrl class ?? Pin
Qadddd4-Jan-04 0:55
Qadddd4-Jan-04 0:55 
AnswerRe: Bug in CMonthCalCtrl class ?? Pin
Qadddd5-Jan-04 1:55
Qadddd5-Jan-04 1:55 
Generaluse dll in another dll Pin
johnsmith3-Jan-04 19:46
johnsmith3-Jan-04 19:46 
GeneralRe: use dll in another dll Pin
Prakash Nadar3-Jan-04 19:51
Prakash Nadar3-Jan-04 19:51 
GeneralRe: use dll in another dll Pin
Wolfram Steinke3-Jan-04 22:52
Wolfram Steinke3-Jan-04 22:52 
GeneralRe: use dll in another dll Pin
johnsmith6-Jan-04 14:12
johnsmith6-Jan-04 14:12 
GeneralSplitter window. Pin
Prakash Nadar3-Jan-04 19:28
Prakash Nadar3-Jan-04 19:28 
GeneralRe: Splitter window. Pin
abc8763-Jan-04 23:44
abc8763-Jan-04 23:44 
GeneralMy application is not receiving focus! Pin
Houdini3-Jan-04 16:54
Houdini3-Jan-04 16:54 
GeneralRe: My application is not receiving focus! Pin
valikac3-Jan-04 17:01
valikac3-Jan-04 17:01 
GeneralRe: My application is not receiving focus! Pin
Houdini3-Jan-04 17:44
Houdini3-Jan-04 17:44 
GeneralRe: My application is not receiving focus! Pin
valikac4-Jan-04 6:35
valikac4-Jan-04 6:35 
GeneralRe: My application is not receiving focus! Pin
Houdini4-Jan-04 11:08
Houdini4-Jan-04 11:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.