Click here to Skip to main content
15,899,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PreTranslateMessage and WM_SETFOCUS Pin
PJ Arends3-Aug-06 10:26
professionalPJ Arends3-Aug-06 10:26 
AnswerRe: PreTranslateMessage and WM_SETFOCUS Pin
William.Wang3-Aug-06 19:09
William.Wang3-Aug-06 19:09 
AnswerRe: PreTranslateMessage and WM_SETFOCUS Pin
PJ Arends4-Aug-06 8:12
professionalPJ Arends4-Aug-06 8:12 
GeneralRe: PreTranslateMessage and WM_SETFOCUS Pin
Jim Crafton4-Aug-06 8:43
Jim Crafton4-Aug-06 8:43 
QuestionHow to keep system tray icon active all the time? Pin
Madhu Kavali3-Aug-06 8:38
Madhu Kavali3-Aug-06 8:38 
QuestionHow to release the mouse holding from the scroll thump in CListCtrl using MFC? Pin
SelvaKr3-Aug-06 7:18
SelvaKr3-Aug-06 7:18 
AnswerRe: How to release the mouse holding from the scroll thump in CListCtrl using MFC? Pin
Viorel.3-Aug-06 21:00
Viorel.3-Aug-06 21:00 
QuestionCFtpConnection ???? Pin
racing573-Aug-06 6:11
racing573-Aug-06 6:11 
Hi Everyone.... i am trying to get this piece of code working over a WAN connection, when i use it on a LAN it works ok.. but when i use it on a wan i can create the connection etc, create and remove directories etc, but as soon as i try to use the openfile function it crashes, does anyone have any ideas why ??

oh, i have tried to use passive rather than Active mode, when i do this i cant use the FtpFindFile function ??

just wondered if anyone had any pointers....

this is the snippet of code..

<br />
CInternetSession oISession(AfxGetAppName());<br />
CFtpConnection* poFtpConnection;<br />
<br />
//FALSE = Passive<br />
//TRUE = Active<br />
poFtpConnection = oISession.GetFtpConnection(csSite,"xxx","xxxxx",2001,FALSE);<br />
<br />
poFtpConnection->GetCurrentDirectory(csCurDir);<br />
			<br />
poFtpConnection->CreateDirectory(csDir);<br />
poFtpConnection->SetCurrentDirectory(csCurDir + csDir);<br />
<br />
CInternetFile* pInternetFile = poFtpConnection->OpenFile(csFile, GENERIC_WRITE,FTP_TRANSFER_TYPE_BINARY);<br />
<br />


The bold part is where it is falling down...

Any help would be appreciated..

Thanks
Lee
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 6:13
racing573-Aug-06 6:13 
QuestionRe: CFtpConnection ???? Pin
David Crow3-Aug-06 6:14
David Crow3-Aug-06 6:14 
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 6:35
racing573-Aug-06 6:35 
QuestionRe: CFtpConnection ???? Pin
David Crow3-Aug-06 6:57
David Crow3-Aug-06 6:57 
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 7:28
racing573-Aug-06 7:28 
QuestionRe: CFtpConnection ???? Pin
David Crow3-Aug-06 7:32
David Crow3-Aug-06 7:32 
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 10:51
racing573-Aug-06 10:51 
GeneralRe: CFtpConnection ???? Pin
racing573-Aug-06 22:57
racing573-Aug-06 22:57 
GeneralRe: CFtpConnection ???? Pin
David Crow4-Aug-06 2:31
David Crow4-Aug-06 2:31 
GeneralRe: CFtpConnection ???? Pin
racing574-Aug-06 3:15
racing574-Aug-06 3:15 
GeneralRe: CFtpConnection ???? Pin
racing574-Aug-06 3:22
racing574-Aug-06 3:22 
GeneralRe: CFtpConnection ???? Pin
racing5715-Aug-06 4:14
racing5715-Aug-06 4:14 
QuestionWriting different language into VC6 Pin
Stan the man3-Aug-06 5:20
Stan the man3-Aug-06 5:20 
AnswerRe: Writing different language into VC6 Pin
Ștefan-Mihai MOGA3-Aug-06 14:00
professionalȘtefan-Mihai MOGA3-Aug-06 14:00 
QuestionKeeping an MDI file locked with CFile::shareExclusive Pin
bob169723-Aug-06 4:50
bob169723-Aug-06 4:50 
AnswerRe: Keeping an MDI file locked with CFile::shareExclusive Pin
Viorel.3-Aug-06 5:13
Viorel.3-Aug-06 5:13 
GeneralRe: Keeping an MDI file locked with CFile::shareExclusive Pin
bob169723-Aug-06 5:47
bob169723-Aug-06 5:47 

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.