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

C / C++ / MFC

 
GeneralRe: bmp and jpg Pin
pubududilena21-Apr-04 18:29
pubududilena21-Apr-04 18:29 
GeneralRe: bmp and jpg Pin
NewtonOfComputers21-Apr-04 19:25
NewtonOfComputers21-Apr-04 19:25 
QuestionHow to determine a classname of a program? Pin
IronMaiden42021-Apr-04 15:17
IronMaiden42021-Apr-04 15:17 
AnswerRe: How to determine a classname of a program? Pin
Prakash Nadar21-Apr-04 16:02
Prakash Nadar21-Apr-04 16:02 
GeneralRe: How to determine a classname of a program? Pin
IronMaiden42021-Apr-04 21:28
IronMaiden42021-Apr-04 21:28 
GeneralRe: How to determine a classname of a program? Pin
Jonas Larsson22-Apr-04 1:46
Jonas Larsson22-Apr-04 1:46 
General[q]win32 mouse message problem. Pin
yahooii21-Apr-04 14:21
yahooii21-Apr-04 14:21 
GeneralRe: [q]win32 mouse message problem. Pin
John M. Drescher21-Apr-04 15:59
John M. Drescher21-Apr-04 15:59 
QuestionHow to programmatically start the Search Assistant. Pin
Defenestration21-Apr-04 13:46
Defenestration21-Apr-04 13:46 
AnswerRe: How to programmatically start the Search Assistant. Pin
ThatsAlok22-Apr-04 4:26
ThatsAlok22-Apr-04 4:26 
GeneralCustomDraw a bitmap in a ListView Pin
Hanleyk121-Apr-04 13:42
Hanleyk121-Apr-04 13:42 
GeneralMFC 7 and Windows 95 Pin
Irish_GUI21-Apr-04 12:10
Irish_GUI21-Apr-04 12:10 
GeneralRe: MFC 7 and Windows 95 Pin
Christian Graus21-Apr-04 12:53
protectorChristian Graus21-Apr-04 12:53 
Generalquestion about DWORD Pin
Ryan McDermott21-Apr-04 12:00
Ryan McDermott21-Apr-04 12:00 
GeneralRe: question about DWORD Pin
toxcct21-Apr-04 12:06
toxcct21-Apr-04 12:06 
GeneralRe: question about DWORD Pin
toxcct21-Apr-04 12:10
toxcct21-Apr-04 12:10 
GeneralRe: question about DWORD Pin
Tim Smith21-Apr-04 15:46
Tim Smith21-Apr-04 15:46 
QuestionHow to deploy VC++ .NET debug symbols? Pin
ICantChangeMyAcct21-Apr-04 11:35
ICantChangeMyAcct21-Apr-04 11:35 
Generalimport funcs name Pin
lukhas21-Apr-04 11:32
lukhas21-Apr-04 11:32 
GeneralParsing.. Pin
Laing,James21-Apr-04 10:50
Laing,James21-Apr-04 10:50 
GeneralRe: Parsing.. Pin
Anthony_Yio21-Apr-04 16:06
Anthony_Yio21-Apr-04 16:06 
GeneralRe: Parsing.. Pin
Laing,James23-Apr-04 13:31
Laing,James23-Apr-04 13:31 
GeneralSize of Object in Serialization Pin
Peter Krankl21-Apr-04 10:46
sussPeter Krankl21-Apr-04 10:46 
GeneralCheck Last-Modified when downloading files from Internet Pin
Alexander Bischofberger21-Apr-04 10:36
Alexander Bischofberger21-Apr-04 10:36 
Hi!

I think it's just a simple question, but I haven't found any code that helps me...

I like to download a file from the internet using the InternetConnect & HttpOpenRequest which works fine. My problem is, that I want to check if the file is newer than a specific date, and if not use a local file.

My first solution was to use some kind of "Only if newer" field in the HTTP header, but I haven't figured out how this works... So now I try to send the request, parse the headers from HttpQueryInfo() and check for the "Last-Modified: " line and parse it. Works fine - except that the whole file is transferred before I can check the date&time.

So I'll be glad if you have some code like
BOOL IsInternetFileNewerThan(CTime tmCompareTo);

Thanks + Ciao,
Alexander
GeneralFractal Image Compression Pin
zscuffha21-Apr-04 10:08
zscuffha21-Apr-04 10:08 

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.