Click here to Skip to main content
16,011,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to read a file correctly ;) Pin
Bob Stanneveld29-Jul-03 1:01
Bob Stanneveld29-Jul-03 1:01 
GeneralRe: how to read a file correctly ;) Pin
David Crow29-Jul-03 2:28
David Crow29-Jul-03 2:28 
AnswerRe: how to read a file correctly ;) Pin
David Chamberlain29-Jul-03 3:05
David Chamberlain29-Jul-03 3:05 
GeneralDelete profilestring Pin
JensB28-Jul-03 22:34
JensB28-Jul-03 22:34 
GeneralRe: Delete profilestring Pin
Manfred Staiger29-Jul-03 0:49
Manfred Staiger29-Jul-03 0:49 
GeneralRe: Delete profilestring Pin
David Chamberlain29-Jul-03 3:11
David Chamberlain29-Jul-03 3:11 
GeneralRe: Delete profilestring Pin
Andy Bantly20-Aug-13 8:18
Andy Bantly20-Aug-13 8:18 
GeneralAbout ftp Pin
Scozturk28-Jul-03 22:32
professionalScozturk28-Jul-03 22:32 
Hi!

I am creating an application which connects to a ftp server and put a file on the server. When I press the send button it sends the file without problem but it seems to me like my application is freezed until the send operation is done! When I click on something on my program before the send operation is terminated my program just crashes down! This is the code I use:
--------------------
CInternetSession InternetSession;
CFtpConnection *m_pFtpConnection;

try
{
m_pFtpConnection = InternetSession.GetFtpConnection(m_serv, m_user, m_pass, INTERNET_INVALID_PORT_NUMBER, m_passsive);
}

catch ( CInternetException *pEx )
{
TCHAR szError [1024];
if ( pEx -> GetErrorMessage ( szError, 1024 ) )
AfxMessageBox ( szError );
else
AfxMessageBox ( "There was an exception." );
pEx -> Delete ();
m_pFtpConnection = NULL;
}
m_pFtpConnection->PutFile("...............", "............." );

if ( m_pFtpConnection != NULL )
{
m_pFtpConnection->Close ();
delete m_pFtpConnection;
}
---------------------------------------
How can I fix this?

Thank you for your future answers!


Well... I am a beginner ...
GeneralRe: About ftp Pin
David Crow29-Jul-03 2:35
David Crow29-Jul-03 2:35 
GeneralOnAfterPrint Event Pin
Keith Worden28-Jul-03 22:25
Keith Worden28-Jul-03 22:25 
Questionhow I show *.mdb table on a dialog ? Pin
Emre Zorlu28-Jul-03 21:02
Emre Zorlu28-Jul-03 21:02 
AnswerRe: how I show *.mdb table on a dialog ? Pin
Exceter28-Jul-03 21:46
Exceter28-Jul-03 21:46 
GeneralRe: how I show *.mdb table on a dialog ? Pin
Emre Zorlu28-Jul-03 22:27
Emre Zorlu28-Jul-03 22:27 
GeneralRe: how I show *.mdb table on a dialog ? Pin
Cheickna28-Jul-03 23:31
Cheickna28-Jul-03 23:31 
AnswerRe: how I show *.mdb table on a dialog ? Pin
Toni7829-Jul-03 15:42
Toni7829-Jul-03 15:42 
QuestionHow to use GridCtrl Pin
Kanghongyuan28-Jul-03 20:00
Kanghongyuan28-Jul-03 20:00 
GeneralProblem with MFC code with ActiveX Pin
harinath28-Jul-03 19:24
professionalharinath28-Jul-03 19:24 
GeneralRe: Problem with MFC code with ActiveX Pin
Cedric Moonen28-Jul-03 20:06
Cedric Moonen28-Jul-03 20:06 
GeneralRe: Problem with MFC code with ActiveX Pin
harinath28-Jul-03 23:09
professionalharinath28-Jul-03 23:09 
GeneralSetting Image to ClistCtrl Pin
modular28-Jul-03 18:39
modular28-Jul-03 18:39 
GeneralRe: Setting Image to ClistCtrl Pin
Michael Dunn28-Jul-03 18:45
sitebuilderMichael Dunn28-Jul-03 18:45 
GeneralRe: Setting Image to ClistCtrl Pin
modular29-Jul-03 2:54
modular29-Jul-03 2:54 
GeneralRe: Setting Image to ClistCtrl Pin
modular29-Jul-03 3:23
modular29-Jul-03 3:23 
GeneralRe: Setting Image to ClistCtrl Pin
Arjan Schouten29-Jul-03 3:54
Arjan Schouten29-Jul-03 3:54 
GeneralRe: Maybe some hints how to realise it !?? Pin
wb28-Jul-03 23:36
wb28-Jul-03 23:36 

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.