Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTransparent Drawing Pin
Anonymous24-Jul-03 15:22
Anonymous24-Jul-03 15:22 
GeneralRe: Transparent Drawing Pin
Ryan Binns24-Jul-03 16:01
Ryan Binns24-Jul-03 16:01 
GeneralRe: Transparent Drawing Pin
Anonymous24-Jul-03 16:06
Anonymous24-Jul-03 16:06 
GeneralRe: Transparent Drawing Pin
Ryan Binns24-Jul-03 16:08
Ryan Binns24-Jul-03 16:08 
GeneralMultithreading Pin
Gaurs24-Jul-03 14:30
Gaurs24-Jul-03 14:30 
GeneralRe: Multithreading Pin
Beer2624-Jul-03 15:03
Beer2624-Jul-03 15:03 
GeneralRe: Multithreading Pin
Ryan Binns24-Jul-03 15:05
Ryan Binns24-Jul-03 15:05 
GeneralRe: Multithreading Pin
Anonymous24-Jul-03 15:51
Anonymous24-Jul-03 15:51 
You should use _beginthreadex and not _beginthread neither CreateThread.

The difference is that the first one create a TIB structure type aka Thread Information Block.
This structure is important to correctly identify a thread and it's resources. After setting the TIB for the thread it ultimately calls CreateThread Smile | :)
Without this TIB, the c/c++ runtime engine couldn't guarante the properly cleanning of the associated thread resources.

Jeffrey Ricther in his book "Programming Windows Applications" explains it well. To check this assumptions do a search on google ... with both _beginthreadex , CreateThread and TIB ...


Joao Vaz
GeneralEdit box focus problem.. Pin
IrishSonic24-Jul-03 12:34
IrishSonic24-Jul-03 12:34 
GeneralRe: Edit box focus problem.. Pin
Ryan Binns24-Jul-03 15:08
Ryan Binns24-Jul-03 15:08 
GeneralRe: Edit box focus problem.. Pin
David Crow25-Jul-03 2:38
David Crow25-Jul-03 2:38 
QuestionBook? Pin
Tom Archer24-Jul-03 12:25
Tom Archer24-Jul-03 12:25 
AnswerRe: Book? Pin
Beer2624-Jul-03 15:52
Beer2624-Jul-03 15:52 
GeneralAccess violation only in release build with debug info Pin
s_k24-Jul-03 10:54
s_k24-Jul-03 10:54 
GeneralRe: Access violation only in release build with debug info Pin
AlexO24-Jul-03 11:37
AlexO24-Jul-03 11:37 
GeneralRe: Access violation only in release build with debug info Pin
s_k24-Jul-03 11:44
s_k24-Jul-03 11:44 
GeneralRe: Access violation only in release build with debug info Pin
AlexO25-Jul-03 3:47
AlexO25-Jul-03 3:47 
GeneralRe: Access violation only in release build with debug info Pin
s_k25-Jul-03 3:52
s_k25-Jul-03 3:52 
GeneralRe: Access violation only in release build with debug info Pin
AlexO25-Jul-03 4:04
AlexO25-Jul-03 4:04 
GeneralRe: Access violation only in release build with debug info Pin
s_k25-Jul-03 4:07
s_k25-Jul-03 4:07 
GeneralRe: Access violation only in release build with debug info Pin
Neville Franks24-Jul-03 11:47
Neville Franks24-Jul-03 11:47 
GeneralRe: Access violation only in release build with debug info Pin
s_k24-Jul-03 11:51
s_k24-Jul-03 11:51 
GeneralRe: Access violation only in release build with debug info Pin
Neville Franks24-Jul-03 12:11
Neville Franks24-Jul-03 12:11 
GeneralRe: Access violation only in release build with debug info Pin
Anthony_Yio24-Jul-03 16:38
Anthony_Yio24-Jul-03 16:38 
QuestionWhy does my Dialog app exit when enter key is pressed? Pin
Terry O'Nolley24-Jul-03 10:50
Terry O'Nolley24-Jul-03 10:50 

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.