Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need some Bits/Bytes and Types information Pin
gabbana8-Dec-08 22:32
gabbana8-Dec-08 22:32 
GeneralRe: Need some Bits/Bytes and Types information Pin
gabbana8-Dec-08 22:35
gabbana8-Dec-08 22:35 
GeneralRe: Need some Bits/Bytes and Types information Pin
Code-o-mat8-Dec-08 23:00
Code-o-mat8-Dec-08 23:00 
GeneralRe: Need some Bits/Bytes and Types information Pin
gabbana9-Dec-08 0:51
gabbana9-Dec-08 0:51 
Questiondifference between CreateThread & AfxBeginThread Pin
Nikesh Jagtap8-Dec-08 21:17
Nikesh Jagtap8-Dec-08 21:17 
AnswerRe: difference between CreateThread & AfxBeginThread Pin
Roger Stoltz8-Dec-08 21:27
Roger Stoltz8-Dec-08 21:27 
AnswerRe: difference between CreateThread & AfxBeginThread [modified] Pin
Defenestration8-Dec-08 22:32
Defenestration8-Dec-08 22:32 
AnswerRe: difference between CreateThread & AfxBeginThread Pin
Roger Stoltz8-Dec-08 22:42
Roger Stoltz8-Dec-08 22:42 
Defenestration wrote:
You should use beginthreadex() as it gives you more control, and endthreadex() as endthread() is fundamentally flawed.


As I wrote, this was a quote from MSDN as a hint when using Kernel32.dll from other languages than C/C++ and a different calling convention is used.

Regarding the use of any of the functions for "ending" a thread, neither of them should be used. You should simply return from the thread controlling function and if that turns out to be a problem, the design should be corrected.

Regarding beginthreadex(), you may use it unless you're building an MFC application. The only correct option is to use AfxBeginThread() when building with MFC support. This is not a matter of opinion.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: difference between CreateThread & AfxBeginThread Pin
Defenestration8-Dec-08 22:51
Defenestration8-Dec-08 22:51 
QuestionHow to write string values in .csv file Pin
MsmVc8-Dec-08 20:40
MsmVc8-Dec-08 20:40 
AnswerRe: How to write string values in .csv file Pin
Cedric Moonen8-Dec-08 20:51
Cedric Moonen8-Dec-08 20:51 
AnswerRe: How to write string values in .csv file Pin
SandipG 8-Dec-08 20:52
SandipG 8-Dec-08 20:52 
GeneralRe: How to write string values in .csv file Pin
MsmVc8-Dec-08 21:10
MsmVc8-Dec-08 21:10 
QuestionRe: How to write string values in .csv file Pin
Rajesh R Subramanian8-Dec-08 21:01
professionalRajesh R Subramanian8-Dec-08 21:01 
QuestionWindows Installer for a C++/MFC application Pin
Puneet Kulkarni8-Dec-08 19:46
Puneet Kulkarni8-Dec-08 19:46 
QuestionWhy do some combinations of port settings fail ? Pin
kapardhi8-Dec-08 19:34
kapardhi8-Dec-08 19:34 
AnswerRe: Why do some combinations of port settings fail ? Pin
Roger Stoltz8-Dec-08 21:43
Roger Stoltz8-Dec-08 21:43 
QuestionSafe way to initialize LARGE_INTEGER with int ? PinPopular
Defenestration8-Dec-08 18:42
Defenestration8-Dec-08 18:42 
Questionconnect to MS Excel database on windows XP from winCE device Pin
parthsarathy8-Dec-08 18:01
parthsarathy8-Dec-08 18:01 
QuestionDo you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 17:42
Defenestration8-Dec-08 17:42 
AnswerRe: Do you put :: in front of every Windows API call ? Pin
_AnsHUMAN_ 8-Dec-08 18:15
_AnsHUMAN_ 8-Dec-08 18:15 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 18:31
Defenestration8-Dec-08 18:31 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
_AnsHUMAN_ 8-Dec-08 18:38
_AnsHUMAN_ 8-Dec-08 18:38 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 18:46
Defenestration8-Dec-08 18:46 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
_AnsHUMAN_ 8-Dec-08 18:53
_AnsHUMAN_ 8-Dec-08 18:53 

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.