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

C / C++ / MFC

 
GeneralRe: Calibration in ATM machines Pin
GKarRacer4-Aug-05 9:03
GKarRacer4-Aug-05 9:03 
GeneralRe: Calibration in ATM machines Pin
celllllllll4-Aug-05 11:15
celllllllll4-Aug-05 11:15 
GeneralRe: Calibration in ATM machines Pin
GKarRacer4-Aug-05 11:42
GKarRacer4-Aug-05 11:42 
GeneralRe: Calibration in ATM machines Pin
celllllllll4-Aug-05 12:13
celllllllll4-Aug-05 12:13 
GeneralRe: Calibration in ATM machines Pin
celllllllll5-Aug-05 5:58
celllllllll5-Aug-05 5:58 
GeneralRe: Calibration in ATM machines Pin
GKarRacer5-Aug-05 10:11
GKarRacer5-Aug-05 10:11 
GeneralRe: Calibration in ATM machines Pin
celllllllll5-Aug-05 11:53
celllllllll5-Aug-05 11:53 
Generalproblem in CFtpConnection::OpenFile() Pin
Aditya Rao3-Aug-05 7:47
Aditya Rao3-Aug-05 7:47 
hi,
i am creating a FTP application in which i have used a progress bar for showing the status of the download. for doing this i used the CFtpConnection::OpenFile() method so that i will read the data in small number of bytes and then display the status. the problem here is that when i try to open the file using this method the return value which should be in the form of a CInternetFile is being returned as a null value. hence i am not able to read the file and there is an excepetion
the syntax i have used is as follows:

the completePath is a CString and contains the path as ftp://homepc/test.txt
i have used IIS to create a ftp site and stored some text files as well as other file in the ftp root directory

try
{
srcFile = pftp->OpenFile(completePath, GENERIC_READ,
INTERNET_FLAG_TRANSFER_BINARY, 1);
}
catch(CInternetException *IE)
{
display the exception
}

when i debugged the program i found out that the srcFile had nothing in it i.e it was NULL with some "?????" in the watch window. can anyone tell me why am i getting this problem or is there any other way to use the progress bar?


aditya
GeneralRe: problem in CFtpConnection::OpenFile() Pin
Anonymous3-Aug-05 12:13
Anonymous3-Aug-05 12:13 
Generalremoving spaces in string Pin
Anonymous3-Aug-05 7:39
Anonymous3-Aug-05 7:39 
GeneralRe: removing spaces in string Pin
David Crow3-Aug-05 7:52
David Crow3-Aug-05 7:52 
GeneralRe: removing spaces in string Pin
Anonymous3-Aug-05 12:15
Anonymous3-Aug-05 12:15 
GeneralRe: removing spaces in string Pin
Jose Lamas Rios3-Aug-05 19:06
Jose Lamas Rios3-Aug-05 19:06 
GeneralRe: removing spaces in string Pin
David Crow7-Aug-05 8:15
David Crow7-Aug-05 8:15 
General,remove spaces in a string Pin
Anonymous3-Aug-05 7:38
Anonymous3-Aug-05 7:38 
GeneralRe: ,remove spaces in a string Pin
Chris Meech3-Aug-05 8:16
Chris Meech3-Aug-05 8:16 
GeneralSoapToolkit Pin
Ed K3-Aug-05 7:37
Ed K3-Aug-05 7:37 
GeneralRe: SoapToolkit Pin
basementman3-Aug-05 8:06
basementman3-Aug-05 8:06 
GeneralCCombo :( Pin
Smith#3-Aug-05 7:17
Smith#3-Aug-05 7:17 
GeneralRe: CCombo :( Pin
Marc Soleda3-Aug-05 7:30
Marc Soleda3-Aug-05 7:30 
QuestionHow can i send a command to cmd.exe? Pin
Lagwagon563-Aug-05 7:04
Lagwagon563-Aug-05 7:04 
AnswerRe: How can i send a command to cmd.exe? Pin
David Crow3-Aug-05 7:46
David Crow3-Aug-05 7:46 
AnswerRe: How can i send a command to cmd.exe? Pin
Gurra_Koo3-Aug-05 9:48
Gurra_Koo3-Aug-05 9:48 
GeneralRe: How can i send a command to cmd.exe? Pin
Lagwagon563-Aug-05 10:18
Lagwagon563-Aug-05 10:18 
GeneralRe: How can i send a command to cmd.exe? Pin
Gurra_Koo3-Aug-05 10:22
Gurra_Koo3-Aug-05 10:22 

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.