Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to invoke bios service in vc++ Pin
vimal_q5-Dec-06 20:31
vimal_q5-Dec-06 20:31 
AnswerRe: how to invoke bios service in vc++ Pin
Rajesh R Subramanian5-Dec-06 23:37
professionalRajesh R Subramanian5-Dec-06 23:37 
AnswerRe: how to invoke bios service in vc++ Pin
Stephen Hewitt6-Dec-06 15:22
Stephen Hewitt6-Dec-06 15:22 
QuestionHTTP & Telnet Data Interpreter Component/Control in VC++? Pin
yeya5-Dec-06 20:22
yeya5-Dec-06 20:22 
QuestionCan i progrmmatically select specific list items? Pin
radhika285-Dec-06 20:00
radhika285-Dec-06 20:00 
AnswerRe: Can i progrmmatically select specific list items? Pin
Hamid_RT5-Dec-06 20:16
Hamid_RT5-Dec-06 20:16 
GeneralRe: Can i progrmmatically select specific list items? Pin
radhika285-Dec-06 20:26
radhika285-Dec-06 20:26 
QuestionHelp! How to forbid copy and paste function? Pin
qiaohongbo5-Dec-06 19:27
qiaohongbo5-Dec-06 19:27 
AnswerRe: Help! How to forbid copy and paste function? Pin
ThatsAlok5-Dec-06 22:05
ThatsAlok5-Dec-06 22:05 
Question0x00AE - unknown message in XP theme Pin
Ajay L D5-Dec-06 19:19
Ajay L D5-Dec-06 19:19 
QuestionSetting minimum and maximum value for a editbox control in mfc Pin
zareee5-Dec-06 18:37
zareee5-Dec-06 18:37 
AnswerRe: Setting minimum and maximum value for a editbox control in mfc Pin
Hamid_RT5-Dec-06 18:39
Hamid_RT5-Dec-06 18:39 
GeneralRe: Setting minimum and maximum value for a editbox control in mfc Pin
zareee5-Dec-06 18:51
zareee5-Dec-06 18:51 
AnswerRe: Setting minimum and maximum value for a editbox control in mfc Pin
Mark Salsbery5-Dec-06 20:48
Mark Salsbery5-Dec-06 20:48 
Questioncopying string from CString to BYTE*. How ? Pin
Sakthiu5-Dec-06 18:19
Sakthiu5-Dec-06 18:19 
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 

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.