Click here to Skip to main content
15,917,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp! about 2 threads share one com port Pin
stans8019-Dec-04 22:12
stans8019-Dec-04 22:12 
GeneralRe: Help! about 2 threads share one com port Pin
Blake Miller20-Dec-04 7:08
Blake Miller20-Dec-04 7:08 
GeneralThread Termination Pin
sudiptam19-Dec-04 21:17
sudiptam19-Dec-04 21:17 
GeneralRe: Thread Termination Pin
David Crow20-Dec-04 6:18
David Crow20-Dec-04 6:18 
GeneralThread Termination Pin
sudiptam19-Dec-04 21:17
sudiptam19-Dec-04 21:17 
GeneralRe: Thread Termination Pin
stans8019-Dec-04 22:03
stans8019-Dec-04 22:03 
GeneralSuggestions Please Pin
Neelesh K J Jain19-Dec-04 20:28
Neelesh K J Jain19-Dec-04 20:28 
GeneralProblem when Copying Text content to Clipboard Pin
SivaramanDhamodharan19-Dec-04 19:33
SivaramanDhamodharan19-Dec-04 19:33 
HiSuspicious | :suss: , I'am copying some text content into the Clipboard. But I'm getting error at the SetClipboardData(CF_TEXT, h_glbl); function call. This is the code I'm using

CString str; <br />
HGLOBAL h_glbl;<br />
char * buff_data ;<br />
EmptyClipboard();<br />
m_ctrl_edit_cliptextdata.GetWindowText(str);<br />
if ( OpenClipboard() != 0 )<br />
{<br />
h_glbl = GlobalAlloc(GMEM_DDESHARE, str.GetLength() );<br />
buff_data = (char * ) GlobalLock(h_glbl);<br />
strcpy(buff_data, (LPCSTR) str) ;<br />
GlobalUnlock(h_glbl);<br />
SetClipboardData(CF_TEXT, h_glbl);<br />
CloseClipboard();<br />
}


Thanks in Advance.Smile | :)
GeneralRe: Problem when Copying Text content to Clipboard Pin
Anonymous19-Dec-04 19:39
Anonymous19-Dec-04 19:39 
GeneralRe: Problem when Copying Text content to Clipboard Pin
David Crow20-Dec-04 8:18
David Crow20-Dec-04 8:18 
GeneralRe: Problem when Copying Text content to Clipboard Pin
SivaramanDhamodharan20-Dec-04 19:44
SivaramanDhamodharan20-Dec-04 19:44 
Generalcompile hangs Pin
Anonymous19-Dec-04 19:28
Anonymous19-Dec-04 19:28 
QuestionHow to associate one string to Flex's input buffer? Pin
chenbuaa19-Dec-04 19:15
chenbuaa19-Dec-04 19:15 
Questionhow to show the menu when the app is minisized Pin
lowiq19-Dec-04 19:01
lowiq19-Dec-04 19:01 
AnswerRe: how to show the menu when the app is minisized Pin
ThatsAlok19-Dec-04 20:01
ThatsAlok19-Dec-04 20:01 
GeneralRe: how to show the menu when the app is minisized Pin
lowiq19-Dec-04 22:03
lowiq19-Dec-04 22:03 
GeneralRe: how to show the menu when the app is minisized Pin
ThatsAlok20-Dec-04 0:51
ThatsAlok20-Dec-04 0:51 
GeneralRe: how to show the menu when the app is minisized Pin
lowiq20-Dec-04 15:46
lowiq20-Dec-04 15:46 
GeneralInherite from a extended Dialog Class Pin
ty cheng19-Dec-04 18:24
ty cheng19-Dec-04 18:24 
GeneralCapturing the keys pressed on the keyboard Pin
ledallam19-Dec-04 16:52
ledallam19-Dec-04 16:52 
GeneralRe: Capturing the keys pressed on the keyboard Pin
Member 58088119-Dec-04 17:10
Member 58088119-Dec-04 17:10 
Generalxvoice.dll Pin
tiem19-Dec-04 15:21
tiem19-Dec-04 15:21 
GeneralRe: xvoice.dll Pin
Joeinorange223-Mar-10 10:35
Joeinorange223-Mar-10 10:35 
Generalxvoice.dll Pin
tiem19-Dec-04 15:21
tiem19-Dec-04 15:21 
GeneralManaged DLL Pin
BeerFizz19-Dec-04 15:11
BeerFizz19-Dec-04 15:11 

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.