Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCWebBrowser2 scrollbar question. Pin
Maximilien16-Jul-03 3:16
Maximilien16-Jul-03 3:16 
GeneralKeyboard indicator problems Pin
Artem Moroz16-Jul-03 3:16
Artem Moroz16-Jul-03 3:16 
GeneralProblem with WM_CTLCOLOR Pin
Cheickna16-Jul-03 2:56
Cheickna16-Jul-03 2:56 
GeneralRe: Problem with WM_CTLCOLOR Pin
Ryan Binns16-Jul-03 3:01
Ryan Binns16-Jul-03 3:01 
GeneralRe: Problem with WM_CTLCOLOR Pin
wb16-Jul-03 3:16
wb16-Jul-03 3:16 
QuestionAny effective way to know a process is dead? Pin
anqin15-Jul-03 16:06
anqin15-Jul-03 16:06 
AnswerRe: Any effective way to know a process is dead? Pin
Phil Martin15-Jul-03 17:51
professionalPhil Martin15-Jul-03 17:51 
GeneralSMTP in MFC Pin
DougW4815-Jul-03 15:41
DougW4815-Jul-03 15:41 
I am attempting to send e-mails using SMTP out of an MFC application. I am able to connect to a server just fine, and I receive the opening "greeting" from the server-- 220..... I am using the CSocket class to make my connection to the mail servers, and CArchive classes to pass the information to and from the server. For some reason, after I send the "HELO <server>" message, I am not receiving anything back from the server...which obviously leads me to believe that either I need to send my messages as something different than the CStrings that I am using now, or that I may need to use something other than CArchives to pass my messages. If anybody has had experience using SMTP out of an MFC application and knows what I'm doing wrong, I'd love some help.


Here is the function I am using to pass my HELO greeting to the e-mail servers. arOut and arIn are CArchive objects, and are both pointers that get created when a connection is made to the server. The application is currently waiting forever on the arIn->ReadString( InString ) line, as the server isn't responding to my attempt to pass a string to it.

BOOL SMTP::HELO( )
{
if ( arOut )
{
arOut->WriteString( "HELO SIR" );
arOut->Flush();
if ( arIn )
{
CString InString;
arIn->ReadString( InString );
return TRUE;
}
}
return FALSE;
}

Douglas A. Wright
dawrigh3@kent.edu
GeneralRe: SMTP in MFC Pin
Ryan Binns15-Jul-03 20:44
Ryan Binns15-Jul-03 20:44 
GeneralRe: SMTP in MFC Pin
markkuk16-Jul-03 3:32
markkuk16-Jul-03 3:32 
GeneralRe: SMTP in MFC Pin
Ryan Binns16-Jul-03 4:19
Ryan Binns16-Jul-03 4:19 
GeneralRe: SMTP in MFC Pin
Ravi Bhavnani16-Jul-03 4:08
professionalRavi Bhavnani16-Jul-03 4:08 
GeneralRe: SMTP in MFC Pin
Lhenno Ferrari16-Jul-03 6:44
Lhenno Ferrari16-Jul-03 6:44 
Generaldrawing line numbers in MFC Pin
mcguile25715-Jul-03 15:12
mcguile25715-Jul-03 15:12 
GeneralRe: drawing line numbers in MFC Pin
Ryan Binns15-Jul-03 20:40
Ryan Binns15-Jul-03 20:40 
QuestionString Factorial?? Pin
Paul Farry15-Jul-03 15:06
professionalPaul Farry15-Jul-03 15:06 
AnswerRe: String Factorial?? Pin
David Crow16-Jul-03 3:20
David Crow16-Jul-03 3:20 
AnswerRe: String Factorial?? Pin
wb16-Jul-03 3:29
wb16-Jul-03 3:29 
GeneralCompressing &amp; then Overlaying one image on top of another Pin
Nirav Thakkar15-Jul-03 13:22
Nirav Thakkar15-Jul-03 13:22 
GeneralIMAPI Sample Code Pin
Martin Hinchy15-Jul-03 12:18
Martin Hinchy15-Jul-03 12:18 
GeneralStart menu button text... Pin
adamUK15-Jul-03 12:02
adamUK15-Jul-03 12:02 
GeneralRe: Start menu button text... Pin
Ryan Binns15-Jul-03 15:02
Ryan Binns15-Jul-03 15:02 
GeneralRe: Start menu button text... Pin
David Crow16-Jul-03 3:33
David Crow16-Jul-03 3:33 
GeneralClickety Police! Pin
Ryan Binns16-Jul-03 4:25
Ryan Binns16-Jul-03 4:25 
GeneralRichEdit Creation Problems Pin
Sundy15-Jul-03 11:35
Sundy15-Jul-03 11:35 

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.