15,867,453 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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. :-)
Sunil P V
10-Jun-12 0:09am
View
But is there a way to hack this. I want the logged on user's environment variables even though the application is invoked as an admin user. I suppose impersonation would not work because the admin account does not fall under local system account...
Sunil P V
10-Jun-12 0:08am
View
Deleted
Thanks Dave.
But is there a way to hack this. I want the logged on user's environment variables even though the application is invoked as an admin user. I suppose impersonation would not work because the admin account does not fall under local system account...
Show More