ceena
asked on
How can i use putfile fn properly?
hi !
I have used 'PutFile' fn to upload a file.But if the fn fails how will i know the exact cause of failure?I used GetLastError(),but i don't know what error the value points to.
Is there any other method?
can anyone help?
Thanks in advance
ceena.
I have used 'PutFile' fn to upload a file.But if the fn fails how will i know the exact cause of failure?I used GetLastError(),but i don't know what error the value points to.
Is there any other method?
can anyone help?
Thanks in advance
ceena.
U can find Error Codes description in MSDN
ASKER
Thanks. it is 120131.
ASKER
Thanks. it is 120131.
You're giving us the wrong error number; 120131 is not a valid Windows error number.
many errors from WinINet functions are in the range 12000 to 12500 or so. 12130 thru 12138 are errors specific to the GOPHER protocol. FTP errors area 12110 thru 12112.
12031 is ERROR_INTERNET_CONNECTION_ RESET, which means the server abruptly reset the connection with your app.
Please give us the correct error number, or maybe show some code. Otherwise, we can't give you much advice.
..B ekiM
many errors from WinINet functions are in the range 12000 to 12500 or so. 12130 thru 12138 are errors specific to the GOPHER protocol. FTP errors area 12110 thru 12112.
12031 is ERROR_INTERNET_CONNECTION_
Please give us the correct error number, or maybe show some code. Otherwise, we can't give you much advice.
..B ekiM
ASKER
really sorry abt it. it is 12031 .thanks for the info.
ASKER
Adjusted points from 50 to 100
ASKER
How can i know how much % of file has been transferred......i want to introduce a progress bar
for the file transfer....so how will i know the file transfer rate....How can i use onstatus call back fn properly.....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is the error code u get after GetLastError()??
Bye
Abdij