Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstrangely modeles dialog box working even when i didnt destroy object Pin
sayup27-Jul-05 1:02
sayup27-Jul-05 1:02 
GeneralRe: strangely modeles dialog box working even when i didnt destroy object Pin
Rage27-Jul-05 1:35
professionalRage27-Jul-05 1:35 
GeneralRe: strangely modeles dialog box working even when i didnt destroy object Pin
sayup27-Jul-05 2:27
sayup27-Jul-05 2:27 
GeneralRe: strangely modeles dialog box working even when i didnt destroy object Pin
sayup27-Jul-05 18:56
sayup27-Jul-05 18:56 
GeneralSSL security for website Pin
Sushant Patil27-Jul-05 0:55
Sushant Patil27-Jul-05 0:55 
GeneralCDialogBar and CFrameWnd Pin
Maverick27-Jul-05 0:43
Maverick27-Jul-05 0:43 
GeneralRe: CDialogBar and CFrameWnd Pin
James R. Twine27-Jul-05 3:08
James R. Twine27-Jul-05 3:08 
GeneralFTP Problem Pin
Richard Hudson27-Jul-05 0:06
Richard Hudson27-Jul-05 0:06 
Could some please please help me with the following:

I'm using the following simple code to connect to an ftp site.

CInternetSession sess(_T("TestProgram/1.0"));

sess.SetOption (INTERNET_OPTION_CONNECT_TIMEOUT, 30);
sess.SetOption (INTERNET_OPTION_RECEIVE_TIMEOUT, 30);
sess.SetOption (INTERNET_OPTION_SEND_TIMEOUT, 30);

CFtpConnection* pConnect = NULL;

try
{
pConnect = sess.GetFtpConnection"serveraddress", "user", "password", 21, 0);
}

catch (CInternetException* pEx)
{
TCHAR sz[1024];
pEx->GetErrorMessage(sz, 1024);
AfxMessageBox(sz);
pEx->Delete();
}

It works fine for several ftp sites. However, when I go to a customers internal network and try to connect to their ftp site I get 'The operation has timed out' everytime.

If I go to a cmd window.
'ftp'
'open servername 21'
Connects fine with anonymous (but no permissions to do anything).
Then specify user
'user username password'
Connects fine allowing me to read write etc...

Under dos I can do it, but windows I can't!!!

I haven't a clue why?
Could some one give me a clue to what I am doing wrong.

Really appreciate any help or pointers!

Eternally grateful

Richard Hudson
GeneralRe: FTP Problem Pin
mark novak27-Jul-05 1:21
mark novak27-Jul-05 1:21 
GeneralCListCtrl / Select item Pin
P-Rex27-Jul-05 0:03
P-Rex27-Jul-05 0:03 
GeneralRe: CListCtrl / Select item Pin
mark novak27-Jul-05 1:10
mark novak27-Jul-05 1:10 
GeneralRe: CListCtrl / Select item Pin
Marc Soleda27-Jul-05 1:18
Marc Soleda27-Jul-05 1:18 
GeneralRe: command linens error MIDL1004 Pin
Anonymous27-Jul-05 2:57
Anonymous27-Jul-05 2:57 
GeneralRe: command linens error MIDL1004 Pin
toxcct27-Jul-05 3:57
toxcct27-Jul-05 3:57 
GeneralTree control selection Pin
dittygrail26-Jul-05 23:28
dittygrail26-Jul-05 23:28 
GeneralRe: Tree control selection Pin
mark novak27-Jul-05 1:00
mark novak27-Jul-05 1:00 
GeneralRe: Tree control selection Pin
Anonymous27-Jul-05 2:58
Anonymous27-Jul-05 2:58 
GeneralBrowse dialog question Pin
Mukhan26-Jul-05 23:19
Mukhan26-Jul-05 23:19 
GeneralRe: Browse dialog question Pin
mark novak27-Jul-05 0:59
mark novak27-Jul-05 0:59 
GeneralRe: Browse dialog question Pin
Mukhan27-Jul-05 1:15
Mukhan27-Jul-05 1:15 
GeneralRe: Browse dialog question Pin
David Crow27-Jul-05 3:01
David Crow27-Jul-05 3:01 
Generalconnect router question . Pin
buhuiba26-Jul-05 23:00
buhuiba26-Jul-05 23:00 
GeneralName of File which is opened in window Pin
Shivaji Patil26-Jul-05 22:48
professionalShivaji Patil26-Jul-05 22:48 
GeneralRe: Name of File which is opened in window Pin
David Crow27-Jul-05 3:03
David Crow27-Jul-05 3:03 
GeneralRe: Name of File which is opened in window Pin
Shivaji Patil27-Jul-05 19:10
professionalShivaji Patil27-Jul-05 19:10 

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.