Click here to Skip to main content
15,917,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: modal dialog range checking Pin
jimNLX13-Aug-02 10:57
jimNLX13-Aug-02 10:57 
Questionwrong use of delete here? Pin
ns13-Aug-02 8:17
ns13-Aug-02 8:17 
AnswerRe: wrong use of delete here? Pin
includeh1013-Aug-02 8:25
includeh1013-Aug-02 8:25 
AnswerRe: wrong use of delete here? Pin
Tomasz Sowinski13-Aug-02 8:27
Tomasz Sowinski13-Aug-02 8:27 
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 
Hello!

You could try and save the names or codes of the fields before you save the data inside them. Then, when you load the information from a file, you create a struct with the correct fields based upon the names/codes that you load for each struct.

For instance, you have one customer with this struct:
struct Customer
{
char name[20];
int age;
}

And another with this struct:
struct Customer
{
char name[50];
int ID;
int age;
}

When you save it to a file, your file could look like this:
Customer1
     name:20;age
     "customer name";27
Customer2
     name:50;ID;age
     "longer customer name";100T67;35


Hope that helps!

Sincerely,
Alexander Wiseman

Est melior esse quam videri
It is better to be than to seem
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 
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 

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.