Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to set Icon? Pin
Ștefan-Mihai MOGA6-Apr-06 1:48
professionalȘtefan-Mihai MOGA6-Apr-06 1:48 
JokeRe: How to set Icon? Pin
James R. Twine6-Apr-06 4:01
James R. Twine6-Apr-06 4:01 
QuestionHaving trouble with painting view with multithread in a SDI application. Pin
zhonglin.liang5-Apr-06 23:53
zhonglin.liang5-Apr-06 23:53 
AnswerRe: Having trouble with painting view with multithread in a SDI application. Pin
Cedric Moonen6-Apr-06 0:58
Cedric Moonen6-Apr-06 0:58 
AnswerRe: Having trouble with painting view with multithread in a SDI application. Pin
YaronNir6-Apr-06 1:42
YaronNir6-Apr-06 1:42 
Question"WMVideo9 Encoder DMO" Filter Pin
Andy Rama5-Apr-06 23:40
Andy Rama5-Apr-06 23:40 
Question"WMVideo9 Encoder DMO" Filter Pin
Andy Rama5-Apr-06 23:39
Andy Rama5-Apr-06 23:39 
QuestionWindows Socket Problem Pin
QuickDeveloper5-Apr-06 23:22
QuickDeveloper5-Apr-06 23:22 
hi

i am implementing SMTP in MFC for sending mails.if i specify the correct mail server name(eg: mail.yahoo.com) i get the response from the server immediately.However if i specify invalid mail server name, the application hangs & control returns after 20 seconds.

ABC() //calls Connect function as given below
{
return Connect((SOCKADDR*)&sockAddr, sizeof(sockAddr));
}

BOOL CSMTPSocket::Connect(const SOCKADDR* lpSockAddr, int nSockAddrLen)
{
return (connect(m_hSocket, lpSockAddr, nSockAddrLen) != SOCKET_ERROR); //problem is while calling this Windows Socket function.
}

i need to reduce the time to check for invalid mail server name to less than 20 seconds.how is it possible??


"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"



-- modified at 5:22 Thursday 6th April, 2006
AnswerRe: Windows Socket Problem Pin
Ștefan-Mihai MOGA6-Apr-06 0:57
professionalȘtefan-Mihai MOGA6-Apr-06 0:57 
AnswerRe: Windows Socket Problem Pin
abbiyr6-Apr-06 5:34
abbiyr6-Apr-06 5:34 
Questionlinker error for ScriptStringAnalyse ??? Pin
jayart5-Apr-06 23:14
jayart5-Apr-06 23:14 
QuestionQueue and Stacks Pin
KOOOSHA5-Apr-06 23:05
KOOOSHA5-Apr-06 23:05 
AnswerRe: Queue and Stacks Pin
parichaybp5-Apr-06 23:11
parichaybp5-Apr-06 23:11 
AnswerRe: Queue and Stacks Pin
toxcct5-Apr-06 23:21
toxcct5-Apr-06 23:21 
AnswerRe: Queue and Stacks Pin
Cedric Moonen5-Apr-06 23:32
Cedric Moonen5-Apr-06 23:32 
GeneralRe: Queue and Stacks Pin
toxcct5-Apr-06 23:33
toxcct5-Apr-06 23:33 
AnswerRe: Queue and Stacks Pin
Bob Stanneveld5-Apr-06 23:43
Bob Stanneveld5-Apr-06 23:43 
GeneralRe: Queue and Stacks Pin
Eytukan5-Apr-06 23:45
Eytukan5-Apr-06 23:45 
JokeRe: Queue and Stacks Pin
toxcct5-Apr-06 23:46
toxcct5-Apr-06 23:46 
GeneralRe: Queue and Stacks Pin
Bob Stanneveld5-Apr-06 23:48
Bob Stanneveld5-Apr-06 23:48 
JokeRe: Queue and Stacks Pin
toxcct5-Apr-06 23:50
toxcct5-Apr-06 23:50 
JokeRe: Queue and Stacks Pin
Bob Stanneveld5-Apr-06 23:53
Bob Stanneveld5-Apr-06 23:53 
AnswerRe: Queue and Stacks Pin
Stephen Hewitt6-Apr-06 0:56
Stephen Hewitt6-Apr-06 0:56 
GeneralRe: Queue and Stacks Pin
toxcct6-Apr-06 1:03
toxcct6-Apr-06 1:03 
GeneralRe: Queue and Stacks Pin
Sebastian Schneider6-Apr-06 2:19
Sebastian Schneider6-Apr-06 2:19 

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.