Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow could I get attributes of remote file ? Pin
Bigapple23-Sep-02 15:24
Bigapple23-Sep-02 15:24 
AnswerRe: How could I get attributes of remote file ? Pin
Todd Smith23-Sep-02 16:03
Todd Smith23-Sep-02 16:03 
GeneralRe: How could I get attributes of remote file ? Pin
Bigapple23-Sep-02 18:36
Bigapple23-Sep-02 18:36 
GeneralURGENT required help on Printing Text size! Pin
23-Sep-02 15:13
suss23-Sep-02 15:13 
GeneralRe: URGENT required help on Printing Text size! Pin
Tomasz Sowinski23-Sep-02 23:49
Tomasz Sowinski23-Sep-02 23:49 
GeneralRe: URGENT required help on Printing Text size! Pin
ATC24-Sep-02 13:13
ATC24-Sep-02 13:13 
QuestionCArchive File Format? Pin
Matthew R. Miller23-Sep-02 14:46
Matthew R. Miller23-Sep-02 14:46 
AnswerRe: CArchive File Format? Pin
Neville Franks23-Sep-02 16:21
Neville Franks23-Sep-02 16:21 
Hi Mathew,
I'm reasonably sure CArchive is only a streaming format, which means you can't selectively write to a part of the file. ie. In your example the count of objects at the start. Appending to an existing archive should work ok.

I use a similar technique to the one you describe to manage an array of Style Sheets in ED (see sig). When I want to save the style sheets array I recreate the file from scratch as follows:

if ( bStat = SSfile.Open( m_SSFileName, CFile::modeCreate | CFile::modeWrite | CFile::shareExclusive, &FileException ) )

The count is written at the start of the file.

If you want to be able to append to the file and modify a header record I don't think CArchive is appropriate.

Neville Franks, Author of ED for Windows. www.getsoft.com
AnswerRe: CArchive File Format? Pin
Ravi Bhavnani23-Sep-02 17:42
professionalRavi Bhavnani23-Sep-02 17:42 
GeneralEnumWindows... Pin
adamUK23-Sep-02 11:56
adamUK23-Sep-02 11:56 
GeneralRe: EnumWindows... Pin
Joaquín M López Muñoz23-Sep-02 12:00
Joaquín M López Muñoz23-Sep-02 12:00 
GeneralRe: EnumWindows... Pin
adamUK23-Sep-02 21:45
adamUK23-Sep-02 21:45 
GeneralMake sure it's a static function Pin
TyMatthews23-Sep-02 12:57
TyMatthews23-Sep-02 12:57 
GeneralRe: Make sure it's a static function Pin
adamUK23-Sep-02 21:43
adamUK23-Sep-02 21:43 
GeneralRe: Make sure it's a static function Pin
Daniel Lohmann24-Sep-02 8:28
Daniel Lohmann24-Sep-02 8:28 
Generalwindow smoothing on static controls Pin
Anonymous23-Sep-02 11:42
Anonymous23-Sep-02 11:42 
GeneralRe: window smoothing on static controls Pin
Shog923-Sep-02 12:35
sitebuilderShog923-Sep-02 12:35 
Questionlocation of dll on users machine. Where to put it? Pin
ns23-Sep-02 11:22
ns23-Sep-02 11:22 
AnswerRe: location of dll on users machine. Where to put it? Pin
Joaquín M López Muñoz23-Sep-02 11:30
Joaquín M López Muñoz23-Sep-02 11:30 
Generalthanks very much Pin
ns23-Sep-02 11:32
ns23-Sep-02 11:32 
Generalproblem with pasting bitmap into a clipboard Pin
Mariusz Popiolek23-Sep-02 9:57
sussMariusz Popiolek23-Sep-02 9:57 
GeneralRe: problem with pasting bitmap into a clipboard Pin
Joaquín M López Muñoz23-Sep-02 11:18
Joaquín M López Muñoz23-Sep-02 11:18 
GeneralRe: problem with pasting bitmap into a clipboard Pin
Mariusz Popiolek24-Sep-02 0:28
sussMariusz Popiolek24-Sep-02 0:28 
GeneralRe: problem with pasting bitmap into a clipboard Pin
Tomasz Sowinski24-Sep-02 0:07
Tomasz Sowinski24-Sep-02 0:07 
GeneralAttn: Shell Gurus Pin
Turtle needs Shell help23-Sep-02 9:53
sussTurtle needs Shell help23-Sep-02 9:53 

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.