Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: about static linking and dynamic linking Pin
George_George20-Apr-06 19:26
George_George20-Apr-06 19:26 
AnswerRe: about static linking and dynamic linking Pin
David Crow20-Apr-06 3:28
David Crow20-Apr-06 3:28 
GeneralRe: about static linking and dynamic linking Pin
George_George20-Apr-06 19:28
George_George20-Apr-06 19:28 
QuestionAbout threading Pin
Aqueel19-Apr-06 21:14
Aqueel19-Apr-06 21:14 
AnswerRe: About threading Pin
Stephen Hewitt19-Apr-06 21:18
Stephen Hewitt19-Apr-06 21:18 
GeneralRe: About threading Pin
Aqueel19-Apr-06 21:31
Aqueel19-Apr-06 21:31 
GeneralRe: About threading Pin
Stephen Hewitt19-Apr-06 22:13
Stephen Hewitt19-Apr-06 22:13 
GeneralRe: About threading Pin
Aqueel20-Apr-06 2:33
Aqueel20-Apr-06 2:33 
GeneralRe: About threading Pin
Stephen Hewitt20-Apr-06 23:39
Stephen Hewitt20-Apr-06 23:39 
AnswerRe: About threading Pin
David Crow20-Apr-06 3:31
David Crow20-Apr-06 3:31 
QuestionTree Control & List Control just like Window Explorer style. Pin
kiran janaswamy19-Apr-06 20:49
kiran janaswamy19-Apr-06 20:49 
AnswerRe: Tree Control & List Control just like Window Explorer style. Pin
YaronNir19-Apr-06 21:04
YaronNir19-Apr-06 21:04 

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.