Click here to Skip to main content
15,913,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Recognize the programming language used to create an EXE File Pin
kakan20-Apr-06 0:16
professionalkakan20-Apr-06 0:16 
AnswerRe: Recognize the programming language used to create an EXE File Pin
Stephen Hewitt23-Apr-06 0:09
Stephen Hewitt23-Apr-06 0:09 
QuestionRecognize the programming language of an EXE Files Pin
sdancer7519-Apr-06 22:28
sdancer7519-Apr-06 22:28 
AnswerRe: Recognize the programming language of an EXE Files Pin
Xing Chen19-Apr-06 23:31
Xing Chen19-Apr-06 23:31 
GeneralRe: Recognize the programming language of an EXE Files Pin
toxcct19-Apr-06 23:40
toxcct19-Apr-06 23:40 
GeneralRe: Recognize the programming language of an EXE Files Pin
Xing Chen20-Apr-06 0:20
Xing Chen20-Apr-06 0:20 
AnswerRe: Recognize the programming language of an EXE Files Pin
includeh1019-Apr-06 23:34
includeh1019-Apr-06 23:34 
Questionping Pin
Paperbackwriter19-Apr-06 22:19
Paperbackwriter19-Apr-06 22:19 
AnswerRe: ping Pin
_AnsHUMAN_ 19-Apr-06 22:54
_AnsHUMAN_ 19-Apr-06 22:54 
Questionvisual studio 2005, exe file Pin
msgm6919-Apr-06 22:16
msgm6919-Apr-06 22:16 
AnswerRe: visual studio 2005, exe file Pin
YaronNir19-Apr-06 22:31
YaronNir19-Apr-06 22:31 
QuestionCompression/Decompression Wave File to MP3 and vice versa Pin
cindy_1605198819-Apr-06 21:58
cindy_1605198819-Apr-06 21:58 
AnswerRe: Compression/Decompression Wave File to MP3 and vice versa Pin
Russell'19-Apr-06 23:46
Russell'19-Apr-06 23:46 
GeneralRe: Compression/Decompression Wave File to MP3 and vice versa Pin
cindy_1605198820-Apr-06 15:14
cindy_1605198820-Apr-06 15:14 
AnswerRe: Compression/Decompression Wave File to MP3 and vice versa Pin
Remco Hoogenboezem20-Apr-06 6:01
Remco Hoogenboezem20-Apr-06 6:01 
GeneralRe: Compression/Decompression Wave File to MP3 and vice versa Pin
cindy_1605198820-Apr-06 15:22
cindy_1605198820-Apr-06 15:22 
AnswerRe: Compression/Decompression Wave File to MP3 and vice versa Pin
cindy_1605198824-Apr-06 21:55
cindy_1605198824-Apr-06 21:55 
QuestionPlease tell me what is CicMarshalWndClass(window class name)? Pin
FlyWithYou19-Apr-06 21:42
FlyWithYou19-Apr-06 21:42 
QuestionXML SCHEMA VALIDAION IN DOM using MSXML 3.0 Pin
prabhakar83cse19-Apr-06 21:24
prabhakar83cse19-Apr-06 21:24 
Questionproblem with Invalid socket(error no:10038) Pin
QuickDeveloper19-Apr-06 21:19
QuickDeveloper19-Apr-06 21:19 
hi
we are implementing SMTP protocol in MFC.

We are using the CSMTPConnection v1.36 code provided by PJ Naughter

http://www.codeproject.com/internet/csmtpconn.asp[^]



The problem is while sending mails sometimes mails are not sent.

1)we are connecting ,sending mail and then disconnecting.

The above step is repeated 6 times hence 6 mails.Sometimes only 4 or 5 mails are sent.But sometimes all 6 mails are sent!!!

The problem seems to be while Sending the MAIL command in SendMessage()function

The return value of GetLastError() was 10038 i.e Socket operation on nonsocket.

the code snippet is as follows

BOOL CSMTPConnection::SendMessage(CSMTPMessage& Message)
{
.......

if (!m_SMTP.Send(pszMailFrom, nCmdLength)) //returns FALSE sometimesFrown | :(
{
TRACE(_T("Failed in call to send MAIL command, GetLastError returns: %d\n"), GetLastError());

CString str;
str.Format(_T("%d"),GetLastError());
AfxMessageBox(str); //displays error code 10038
return FALSE;
}

why is that the mails are sent sometimes but not delivered other time??

thanx in advance

"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 3:20 Thursday 20th April, 2006
AnswerRe: problem with Invalid socket(error no:10038) Pin
YaronNir19-Apr-06 21:39
YaronNir19-Apr-06 21:39 
GeneralRe: problem with Invalid socket(error no:10038) Pin
QuickDeveloper19-Apr-06 22:15
QuickDeveloper19-Apr-06 22:15 
GeneralRe: problem with Invalid socket(error no:10038) Pin
YaronNir19-Apr-06 23:13
YaronNir19-Apr-06 23:13 
Questionabout static linking and dynamic linking Pin
George_George19-Apr-06 21:17
George_George19-Apr-06 21:17 
AnswerRe: about static linking and dynamic linking Pin
toxcct19-Apr-06 21:40
toxcct19-Apr-06 21:40 

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.