Click here to Skip to main content
       

ATL / WTL / STL

 
AnswerRe: STL map issue in VS2010 PinmvpRichard MacCutchan30-Oct-12 6:04 
Questionhow do i copy a CImage DIB to clipboard PinmemberMember 951640015-Oct-12 11:15 
AnswerRe: how do i copy a CImage DIB to clipboard PinmemberAndrew Cherednik15-Oct-12 11:41 
QuestionWhy does this fail - CFile / SeekToEnd? [modified] Pinmembercharlieg10-Oct-12 6:43 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pinmembercharlieg10-Oct-12 9:31 
AnswerRe: Why does this fail - CFile / SeekToEnd? PinmemberAndrew Cherednik10-Oct-12 11:23 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pinmembercharlieg11-Oct-12 2:20 
AnswerRe: Why does this fail - CFile / SeekToEnd? PinmvpRichard MacCutchan10-Oct-12 21:45 
FilePath = (CString)directoryBuf;
FilePath += (CString)"\\uncompressed.unc";
What is the purpose of the casts in the above statements?
 
In the rest of your code you are not checking the contents of fe after the open so you cannot be sure you have a valid handle at that point. It is always advisable to check the return status of every function call dealing with files, rather than assuming they all succeed.
One of these days I'm going to think of a really clever signature.

GeneralRe: Why does this fail - CFile / SeekToEnd? Pinmembercharlieg11-Oct-12 2:30 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pinmembercharlieg11-Oct-12 4:53 
GeneralRe: Why does this fail - CFile / SeekToEnd? PinmvpRichard MacCutchan11-Oct-12 11:19 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pinmembercharlieg11-Oct-12 11:34 
GeneralRe: Why does this fail - CFile / SeekToEnd? PinmvpRichard MacCutchan11-Oct-12 12:01 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pinmembercharlieg12-Oct-12 5:54 
AnswerRe: Why does this fail - CFile / SeekToEnd? PinmemberStephen Hewitt11-Oct-12 12:58 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pinmembercharlieg18-Jan-13 1:47 
QuestionKeep program open and running PinmemberLucidation8-Oct-12 11:23 
AnswerRe: Keep program open and running PinmvpRichard MacCutchan8-Oct-12 22:14 
GeneralRe: Keep program open and running PinmemberLucidation9-Oct-12 11:14 
GeneralRe: Keep program open and running PinmvpRichard MacCutchan9-Oct-12 11:19 
AnswerRe: Keep program open and running PinmemberStephen Hewitt11-Oct-12 21:45 
QuestionUSBView Compile Error PinmemberJim Fell5-Oct-12 10:17 
AnswerRe: USBView Compile Error PinmemberWes Aday5-Oct-12 10:33 
GeneralRe: USBView Compile Error PinmemberJim Fell10-Oct-12 8:04 
QuestionFree memory allocated by std::multimap Pinmemberkhaliloenit4-Oct-12 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 15 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid