Click here to Skip to main content
15,906,285 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: copying string from CString to BYTE*. How ? Pin
Hamid_RT5-Dec-06 18:29
Hamid_RT5-Dec-06 18:29 
AnswerRe: copying string from CString to BYTE*. How ? Pin
kanduripavan5-Dec-06 18:30
kanduripavan5-Dec-06 18:30 
GeneralRe: copying string from CString to BYTE*. How ? Pin
ThatsAlok5-Dec-06 22:06
ThatsAlok5-Dec-06 22:06 
AnswerRe: copying string from CString to BYTE*. How ? Pin
Mark Salsbery5-Dec-06 20:56
Mark Salsbery5-Dec-06 20:56 
AnswerRe: copying string from CString to BYTE*. How ? Pin
Mark Salsbery5-Dec-06 21:01
Mark Salsbery5-Dec-06 21:01 
QuestionHow to stop a thread from a primary thread Pin
cy163@hotmail.com5-Dec-06 17:51
cy163@hotmail.com5-Dec-06 17:51 
AnswerRe: How to stop a thread from a primary thread Pin
Hamid_RT5-Dec-06 18:06
Hamid_RT5-Dec-06 18:06 
GeneralRe: How to stop a thread from a primary thread Pin
Stephen Hewitt5-Dec-06 20:14
Stephen Hewitt5-Dec-06 20:14 
That is very bad advice. See here[^] for one explaination or note the following from MSDN:
TerminateThread is a dangerous function that should only be used in the most extreme cases.
You should call TerminateThread only if you know exactly what the target thread is doing, and you
control all of the code that the target thread could possibly be running at the time of the
termination. For example, TerminateThread can result in the following problems:
If the target thread owns a critical section, the critical section will not be released.
If the target thread is allocating memory from the heap, the heap lock will not be released.
If the target thread is executing certain kernel32 calls when it is terminated, the kernel32 state
 for the thread's process could be inconsistent.
If the target thread is manipulating the global state of a shared DLL, the state of the DLL could
 be destroyed, affecting other users of the DLL.


In short don't use this API; it is not intended for general use and using it as if it is is one of the most frequent mistakes Windows programmers make.


Steve

GeneralRe: How to stop a thread from a primary thread Pin
cy163@hotmail.com5-Dec-06 23:52
cy163@hotmail.com5-Dec-06 23:52 
AnswerRe: How to stop a thread from a primary thread Pin
Stephen Hewitt5-Dec-06 20:18
Stephen Hewitt5-Dec-06 20:18 
AnswerRe: How to stop a thread from a primary thread Pin
Roger Stoltz5-Dec-06 20:34
Roger Stoltz5-Dec-06 20:34 
Questionshell programming Pin
sanwalz5-Dec-06 17:46
sanwalz5-Dec-06 17:46 
AnswerRe: shell programming Pin
Joe Woodbury5-Dec-06 17:51
professionalJoe Woodbury5-Dec-06 17:51 
QuestionHow to LPCTSTR Convert to char * Pin
rxgmoral5-Dec-06 15:23
rxgmoral5-Dec-06 15:23 
QuestionRe: How to LPCTSTR Convert to char * Pin
David Crow5-Dec-06 16:29
David Crow5-Dec-06 16:29 
AnswerRe: How to LPCTSTR Convert to char * Pin
ThatsAlok5-Dec-06 22:07
ThatsAlok5-Dec-06 22:07 
AnswerRe: How to LPCTSTR Convert to char * Pin
Stephen Hewitt5-Dec-06 17:06
Stephen Hewitt5-Dec-06 17:06 
GeneralRe: How to LPCTSTR Convert to char * Pin
rxgmoral5-Dec-06 17:55
rxgmoral5-Dec-06 17:55 
AnswerRe: How to LPCTSTR Convert to char * Pin
Hamid_RT5-Dec-06 17:50
Hamid_RT5-Dec-06 17:50 
QuestionOnCancel problem Pin
celllllllll5-Dec-06 13:45
celllllllll5-Dec-06 13:45 
AnswerRe: OnCancel problem Pin
Leah_Garrett5-Dec-06 14:01
Leah_Garrett5-Dec-06 14:01 
GeneralRe: OnCancel problem Pin
celllllllll5-Dec-06 14:10
celllllllll5-Dec-06 14:10 
GeneralRe: OnCancel problem Pin
Leah_Garrett5-Dec-06 14:13
Leah_Garrett5-Dec-06 14:13 
GeneralRe: OnCancel problem Pin
celllllllll5-Dec-06 14:19
celllllllll5-Dec-06 14:19 
QuestionRe: OnCancel problem Pin
David Crow5-Dec-06 16:32
David Crow5-Dec-06 16:32 

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.