Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to deal with SafeArrayDestroy error? Pin
liuyue28-Aug-05 14:40
liuyue28-Aug-05 14:40 
Questionlinking error! Pin
alias001827-Aug-05 21:50
alias001827-Aug-05 21:50 
AnswerRe: linking error! Pin
Garth J Lancaster28-Aug-05 0:24
professionalGarth J Lancaster28-Aug-05 0:24 
AnswerRe: linking error! Pin
Trollslayer28-Aug-05 6:22
mentorTrollslayer28-Aug-05 6:22 
GeneralRe: linking error! Pin
Garth J Lancaster28-Aug-05 15:52
professionalGarth J Lancaster28-Aug-05 15:52 
GeneralRe: linking error! Pin
Anonymous30-Aug-05 0:28
Anonymous30-Aug-05 0:28 
QuestionHandling 2 threads Pin
Watertreader27-Aug-05 21:05
Watertreader27-Aug-05 21:05 
AnswerRe: Handling 2 threads Pin
Gary R. Wheeler28-Aug-05 3:24
Gary R. Wheeler28-Aug-05 3:24 
Watertreader wrote:
Would it also work if I only create one thread and put the coding of one hardware into the main function?

It is probably best to have a worker thread for each piece of hardware. This would leave your main thread free to act as a control for the other threads, and to do a controlled shutdown of the application. If you use your primary thread to control one piece of hardware, it is more difficult to regain control of the application if that hardware causes the thread to lock up.

Watertreader wrote:
Or does the running of the main thread has piority over the subthread?

This is not usually the case. You can alter thread priorities if you need to, however.


Software Zen: delete this;
Questionwhen "GlobalAlloc(GPTR, 100);" excute, why a "int 3" apear in Ntdll.dll? Pin
yanping wang27-Aug-05 20:27
yanping wang27-Aug-05 20:27 
QuestionActivating "Execl XML toolbox" functionalities from C++ Pin
Hillel27-Aug-05 20:16
Hillel27-Aug-05 20:16 
Questiongetting drive type in .NET Pin
/*Trucker*\27-Aug-05 19:32
/*Trucker*\27-Aug-05 19:32 
QuestionIAddrBook::OpenEntry Pin
PJ Arends27-Aug-05 12:59
professionalPJ Arends27-Aug-05 12:59 
AnswerRe: IAddrBook::OpenEntry Pin
Jose Lamas Rios27-Aug-05 16:56
Jose Lamas Rios27-Aug-05 16:56 
GeneralRe: IAddrBook::OpenEntry Pin
PJ Arends27-Aug-05 17:54
professionalPJ Arends27-Aug-05 17:54 
GeneralRe: IAddrBook::OpenEntry Pin
Jose Lamas Rios27-Aug-05 17:57
Jose Lamas Rios27-Aug-05 17:57 
Questionfile access Pin
Ali Tavakol27-Aug-05 12:52
Ali Tavakol27-Aug-05 12:52 
AnswerRe: file access Pin
David Crow28-Aug-05 4:49
David Crow28-Aug-05 4:49 
QuestionInternetGetConnectedState problem Pin
Spiritofamerica27-Aug-05 11:26
Spiritofamerica27-Aug-05 11:26 
AnswerRe: InternetGetConnectedState problem Pin
Jose Lamas Rios27-Aug-05 17:11
Jose Lamas Rios27-Aug-05 17:11 
GeneralRe: InternetGetConnectedState problem Pin
Spiritofamerica27-Aug-05 21:53
Spiritofamerica27-Aug-05 21:53 
AnswerRe: InternetGetConnectedState problem Pin
includeh1027-Aug-05 21:30
includeh1027-Aug-05 21:30 
GeneralRe: InternetGetConnectedState problem Pin
Spiritofamerica27-Aug-05 21:54
Spiritofamerica27-Aug-05 21:54 
GeneralRe: InternetGetConnectedState problem Pin
includeh1028-Aug-05 13:52
includeh1028-Aug-05 13:52 
AnswerRe: InternetGetConnectedState problem Pin
David Crow28-Aug-05 4:50
David Crow28-Aug-05 4:50 
QuestioncryptImportkey Pin
Member 207257827-Aug-05 5:31
Member 207257827-Aug-05 5:31 

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.