Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUpgrading from VC++ 6.0 to VC++ 2005 Pin
Sugan V16-Feb-06 22:44
Sugan V16-Feb-06 22:44 
AnswerRe: Upgrading from VC++ 6.0 to VC++ 2005 Pin
Ganesh_T16-Feb-06 23:24
Ganesh_T16-Feb-06 23:24 
AnswerRe: Upgrading from VC++ 6.0 to VC++ 2005 Pin
Ganesh_T16-Feb-06 23:24
Ganesh_T16-Feb-06 23:24 
GeneralRe: Upgrading from VC++ 6.0 to VC++ 2005 Pin
toxcct16-Feb-06 23:29
toxcct16-Feb-06 23:29 
GeneralRe: Upgrading from VC++ 6.0 to VC++ 2005 Pin
Ganesh_T16-Feb-06 23:32
Ganesh_T16-Feb-06 23:32 
Questionmultithreading Pin
bolleperdu16-Feb-06 22:05
bolleperdu16-Feb-06 22:05 
AnswerRe: multithreading Pin
Naveen16-Feb-06 22:45
Naveen16-Feb-06 22:45 
AnswerRe: multithreading Pin
Steve S17-Feb-06 0:23
Steve S17-Feb-06 0:23 
If you plan on using any CRT functions (C/C++ runtime) like malloc etc, then rather than using CreateThread, you should use _beginthreadex. You need to make sure that you're building a multithreaded app and using the right versions of the runtime libraries. A simple check is

#if !defined(_MT)
#error "Not building correctly"
#endif

since selecting multithreaded runtine libraries will defined _MT as a preprocessor symbol. Of the arguments to _beginthreadex, you are usually best passing 'security' as NULL, stack_size as zero.

If you've never used multiple threads before, then you're in for a treat, since it will involve an element of synchronisation.

Steve S
Developer for hire
AnswerRe: multithreading Pin
ThatsAlok17-Feb-06 21:46
ThatsAlok17-Feb-06 21:46 
QuestionRe: multithreading Pin
bolleperdu27-Feb-06 22:29
bolleperdu27-Feb-06 22:29 
QuestionHelp me Hook Copy/Paste Action. Pin
huynhnb16-Feb-06 19:22
huynhnb16-Feb-06 19:22 
AnswerRe: Help me Hook Copy/Paste Action. Pin
John R. Shaw16-Feb-06 19:49
John R. Shaw16-Feb-06 19:49 
GeneralRe: Help me Hook Copy/Paste Action. Pin
huynhnb16-Feb-06 20:11
huynhnb16-Feb-06 20:11 
GeneralRe: Help me Hook Copy/Paste Action. Pin
huynhnb16-Feb-06 20:43
huynhnb16-Feb-06 20:43 
GeneralRe: Help me Hook Copy/Paste Action. Pin
John R. Shaw16-Feb-06 21:44
John R. Shaw16-Feb-06 21:44 
Questionwindow design Pin
prabhathgk16-Feb-06 19:05
prabhathgk16-Feb-06 19:05 
AnswerRe: window design Pin
John R. Shaw16-Feb-06 19:31
John R. Shaw16-Feb-06 19:31 
QuestionQuestion about Threads Pin
Aqueel16-Feb-06 18:42
Aqueel16-Feb-06 18:42 
AnswerRe: Question about Threads Pin
Nick_Kisialiou16-Feb-06 19:12
Nick_Kisialiou16-Feb-06 19:12 
AnswerRe: Question about Threads Pin
QuickDeveloper16-Feb-06 19:16
QuickDeveloper16-Feb-06 19:16 
AnswerRe: Question about Threads Pin
Stephen Hewitt16-Feb-06 19:47
Stephen Hewitt16-Feb-06 19:47 
GeneralRe: Question about Threads Pin
Nick_Kisialiou16-Feb-06 19:54
Nick_Kisialiou16-Feb-06 19:54 
GeneralRe: Question about Threads Pin
Stephen Hewitt16-Feb-06 19:58
Stephen Hewitt16-Feb-06 19:58 
GeneralRe: Question about Threads Pin
Nick_Kisialiou16-Feb-06 20:14
Nick_Kisialiou16-Feb-06 20:14 
GeneralRe: Question about Threads Pin
Stephen Hewitt19-Feb-06 11:11
Stephen Hewitt19-Feb-06 11: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.