Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDebugging wchar_t in VC6.0 Pin
LasVegasGuy19-Jun-04 10:54
LasVegasGuy19-Jun-04 10:54 
GeneralRe: Debugging wchar_t in VC6.0 Pin
Graham Bradshaw19-Jun-04 11:33
Graham Bradshaw19-Jun-04 11:33 
GeneralRe: Debugging wchar_t in VC6.0 Pin
LasVegasGuy19-Jun-04 15:00
LasVegasGuy19-Jun-04 15:00 
GeneralDialup: cancelling InternetAttemptConnect() Pin
PJ Arends19-Jun-04 8:52
professionalPJ Arends19-Jun-04 8:52 
GeneralRe: Dialup: cancelling InternetAttemptConnect() Pin
palbano19-Jun-04 9:51
palbano19-Jun-04 9:51 
GeneralRe: Dialup: cancelling InternetAttemptConnect() Pin
Nish Nishant19-Jun-04 20:31
sitebuilderNish Nishant19-Jun-04 20:31 
GeneralRe: Dialup: cancelling InternetAttemptConnect() Pin
PJ Arends20-Jun-04 9:16
professionalPJ Arends20-Jun-04 9:16 
GeneralRe: Dialup: cancelling InternetAttemptConnect() Pin
Neville Franks20-Jun-04 12:32
Neville Franks20-Jun-04 12:32 
Hi PJ,
Tis early monday morning here and I've only had one cup of coffee.;) How about one thread that looks after the dialip etc. and it has a flag along the lines Nish mentioned. Other threads would query a flag back in the main app thread to test if the dialup is active.

TerminateThread() is bad as you indicate. Peter Hancock's article "An exception safe OO thread-pool framework" http://www.codeproject.com/threads/threadlibrary.asp[^] uses a neat trick of raising an exception in the thread to kill it. The thread pool itself is very good IMO.

Instead of a separate thread for each email, how about a single thread with a queue. Once an email has been successfully sent it would be removed from the queue. Iterate the queue untill all emails have been sent.

Hope that helps.

Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
GeneralRe: Dialup: cancelling InternetAttemptConnect() Pin
PJ Arends21-Jun-04 8:31
professionalPJ Arends21-Jun-04 8:31 
GeneralBug tracking Pin
Nevering19-Jun-04 8:41
Nevering19-Jun-04 8:41 
GeneralRe: Bug tracking Pin
PJ Arends19-Jun-04 9:14
professionalPJ Arends19-Jun-04 9:14 
GeneralRe: Bug tracking Pin
Ravi Bhavnani19-Jun-04 17:23
professionalRavi Bhavnani19-Jun-04 17:23 
GeneralRe: Bug tracking Pin
Trollslayer20-Jun-04 1:01
mentorTrollslayer20-Jun-04 1:01 
Questionhow to find dll for active x control cab Pin
19-Jun-04 7:00
suss19-Jun-04 7:00 
AnswerRe: how to find dll for active x control cab Pin
Blake Miller21-Jun-04 3:32
Blake Miller21-Jun-04 3:32 
QuestionHow to use customized static text in Dailog Box Pin
auur19-Jun-04 5:29
auur19-Jun-04 5:29 
AnswerRe: How to use customized static text in Dailog Box Pin
Johan Rosengren19-Jun-04 6:38
Johan Rosengren19-Jun-04 6:38 
GeneralDialog in a DLL Pin
MHillary19-Jun-04 5:16
MHillary19-Jun-04 5:16 
GeneralRe: Dialog in a DLL Pin
Johan Rosengren19-Jun-04 5:20
Johan Rosengren19-Jun-04 5:20 
GeneralRe: Dialog in a DLL Pin
MHillary19-Jun-04 7:11
MHillary19-Jun-04 7:11 
GeneralRe: Dialog in a DLL Pin
Johan Rosengren19-Jun-04 7:19
Johan Rosengren19-Jun-04 7:19 
GeneralRe: Dialog in a DLL Pin
wb19-Jun-04 6:53
wb19-Jun-04 6:53 
GeneralRe: Dialog in a DLL Pin
ThatsAlok21-Jun-04 1:06
ThatsAlok21-Jun-04 1:06 
GeneralDrawing an arrow Pin
kfaday19-Jun-04 5:13
kfaday19-Jun-04 5:13 
GeneralRe: Drawing an arrow Pin
PJ Arends19-Jun-04 6:45
professionalPJ Arends19-Jun-04 6:45 

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.