Click here to Skip to main content
15,867,453 members

Comments by Sunil P V (Top 7 by date)

Sunil P V 13-Oct-14 3:24am View    
You question is open ended. When you say variable names does it mean within a class or a text contained in some sort of an editor. Please be very explicit for members to help you out.
Sunil P V 21-Sep-12 1:16am View    
Also the to mention the file to be downloaded is around 50Mb.
Sunil P V 21-Sep-12 1:14am View    
Well sorry if I wasn't clear. These are my conditions:
- The file will be hosted in a webserver
- Server doesn't have any logic to control the download parameters.
- The download client connects to this URL (hosted file) and starts reading this file in 5096 bytes every second.
- If the network connection is lost then the client utility saves to registry the total bytes read.
- Once network connection is back, the client resumes downloading from the point where it lost connection. The logic that I have implemented to determine resuming is:
1) Get from registry the number of bytes (say N) read previously.
2) Call the CHttpfile::Seek() method to seek to position N bytes of the source file
3) Continue calling the CHttpfile::Read method to continue download from that N position onwards.

From point 3 the CHttpfile::Read takes a long time to read 5096bytes. If N value is around 20Mb then CHttpfile::Read takes even longer say around 10minutes.

This is the issue. How can this be resolved? Any pointers?
Sunil P V 16-Aug-12 5:58am View    
Reason for my vote of 5
Simple and effective!!!
Sunil P V 11-Jun-12 4:52am View    
Mehdi, Got a hack for this: Using WMI we can get the active logged in user, even if the application is invoked (run-as) as any other user. :-)