Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: wrong use of delete here? Pin
Ravi Bhavnani13-Aug-02 14:46
professionalRavi Bhavnani13-Aug-02 14:46 
AnswerRe: wrong use of delete here? Pin
Daniel Lohmann14-Aug-02 0:08
Daniel Lohmann14-Aug-02 0:08 
Generalsave and load dynamic struct, need help ... Pin
includeh1013-Aug-02 8:15
includeh1013-Aug-02 8:15 
GeneralRe: save and load dynamic struct, need help ... Pin
Alexander Wiseman13-Aug-02 8:42
Alexander Wiseman13-Aug-02 8:42 
GeneralRe: save and load dynamic struct, need help ... Pin
includeh1013-Aug-02 8:53
includeh1013-Aug-02 8:53 
GeneralRe: save and load dynamic struct, need help ... Pin
Alexander Wiseman13-Aug-02 10:47
Alexander Wiseman13-Aug-02 10:47 
GeneralRe: save and load dynamic struct, need help ... Pin
Daniel Turini13-Aug-02 9:29
Daniel Turini13-Aug-02 9:29 
GeneralRe: save and load dynamic struct, need help ... Pin
Bill Wilson13-Aug-02 13:20
Bill Wilson13-Aug-02 13:20 
No. You cannot use a struct in the way you are seeking. They are not dynamic. You could add a data array or vector to your struct to hold the variable data fields. You would need a second array to keep track of which position in the data array holds which field values.

If the fields vary from one record to another, this technique would require use of a sparse array so that each new field could have its own slot in the array. If a given record doesn't have data for a given field, just leave that array element empty.

If this doesn't answer the question, please be more specific about the file and how the fields get changed in it (timing relative to your apps operation is the important information).
GeneralCListCtrl arrow key navigation Pin
dennisV13-Aug-02 7:59
dennisV13-Aug-02 7:59 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 8:53
sitebuilderShog913-Aug-02 8:53 
GeneralRe: CListCtrl arrow key navigation Pin
dennisV13-Aug-02 9:04
dennisV13-Aug-02 9:04 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 9:10
sitebuilderShog913-Aug-02 9:10 
GeneralRe: CListCtrl arrow key navigation Pin
dennisV13-Aug-02 9:32
dennisV13-Aug-02 9:32 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 9:36
sitebuilderShog913-Aug-02 9:36 
GeneralKill a screensaver... Pin
Matt Eckerson13-Aug-02 7:49
Matt Eckerson13-Aug-02 7:49 
GeneralRe: Kill a screensaver... Pin
Alexander Wiseman13-Aug-02 8:35
Alexander Wiseman13-Aug-02 8:35 
GeneralRe: Kill a screensaver... Pin
Matt Eckerson13-Aug-02 10:42
Matt Eckerson13-Aug-02 10:42 
GeneralRe: Kill a screensaver... Pin
Alexander Wiseman13-Aug-02 10:47
Alexander Wiseman13-Aug-02 10:47 
GeneralRe: Kill a screensaver... Pin
Matt Eckerson17-Aug-02 12:26
Matt Eckerson17-Aug-02 12:26 
GeneralISAPI File Writing Pin
John Pepper13-Aug-02 7:26
John Pepper13-Aug-02 7:26 
GeneralRe: ISAPI File Writing Pin
Jason Henderson13-Aug-02 9:14
Jason Henderson13-Aug-02 9:14 
GeneralRe: ISAPI File Writing Pin
John Pepper13-Aug-02 9:30
John Pepper13-Aug-02 9:30 
GeneralRe: ISAPI File Writing Pin
Jason Henderson13-Aug-02 15:59
Jason Henderson13-Aug-02 15:59 
GeneralRe: ISAPI File Writing Pin
Tomasz Sowinski13-Aug-02 9:20
Tomasz Sowinski13-Aug-02 9:20 
GeneralRe: ISAPI File Writing Pin
John Pepper13-Aug-02 9:28
John Pepper13-Aug-02 9:28 

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.