Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: new comer Pin
Alvaro Mendez10-Mar-03 7:37
Alvaro Mendez10-Mar-03 7:37 
Generalsave increment filenames... Pin
macmac3810-Mar-03 5:10
macmac3810-Mar-03 5:10 
GeneralRe: save increment filenames... Pin
Maximilien10-Mar-03 5:24
Maximilien10-Mar-03 5:24 
GeneralRe: save increment filenames... Pin
Renjith Ramachandran10-Mar-03 7:54
Renjith Ramachandran10-Mar-03 7:54 
GeneralAdding icons to an imagelist that is used in a listctrl Pin
Jochem10-Mar-03 5:01
Jochem10-Mar-03 5:01 
GeneralRe: Adding icons to an imagelist that is used in a listctrl Pin
RobJones10-Mar-03 6:27
RobJones10-Mar-03 6:27 
GeneralRe: Adding icons to an imagelist that is used in a listctrl Pin
Jochem11-Mar-03 1:15
Jochem11-Mar-03 1:15 
QuestionHow to store a set of data while each data has several kinds of type ? Pin
adapterJohn10-Mar-03 4:56
adapterJohn10-Mar-03 4:56 
Hello,
I am creating a DLL, which I get a set of data, while within every data, there are several kinds of data type, something like:

Data1
int i=2;
String s="John";
Date d="1980/10/10";

Date3
int i=3;
String s="kevin";
Date d="2003/11/05";

Data3
...
...


I am trying to load these data in memory and offer method like GetData() to application programmer who is going to use my DLL.
Can someone give me little hint that which type should I use to store these day?
Is it correct that I use struct to store each "Data", and create a template to store all these "Data"s?
Thanks!

AnswerRe: How to store a set of data while each data has several kinds of type ? Pin
Tim Smith10-Mar-03 5:08
Tim Smith10-Mar-03 5:08 
AnswerRe: How to store a set of data while each data has several kinds of type ? Pin
valikac10-Mar-03 11:26
valikac10-Mar-03 11:26 
GeneralRe: How to store a set of data while each data has several kinds of type ? Pin
adapterJohn10-Mar-03 11:36
adapterJohn10-Mar-03 11:36 
GeneralRe: How to store a set of data while each data has several kinds of type ? Pin
valikac10-Mar-03 12:39
valikac10-Mar-03 12:39 
Generalclass template declaration in seperate files Pin
Julian Churchill10-Mar-03 4:51
Julian Churchill10-Mar-03 4:51 
GeneralRe: class template declaration in seperate files Pin
Tim Smith10-Mar-03 5:11
Tim Smith10-Mar-03 5:11 
GeneralProblem with string limitation Pin
Andrea Ferraro10-Mar-03 4:32
Andrea Ferraro10-Mar-03 4:32 
GeneralRe: Problem with string limitation Pin
AlexO10-Mar-03 4:42
AlexO10-Mar-03 4:42 
GeneralRe: Problem with string limitation Pin
Tim Smith10-Mar-03 4:43
Tim Smith10-Mar-03 4:43 
GeneralRe: Problem with string limitation Pin
Andrea Ferraro10-Mar-03 5:52
Andrea Ferraro10-Mar-03 5:52 
GeneralRe: Problem with string limitation Pin
Tim Smith10-Mar-03 6:26
Tim Smith10-Mar-03 6:26 
GeneralRe: Problem with string limitation Pin
dlhson210-Mar-03 7:09
dlhson210-Mar-03 7:09 
GeneralBitmap to Icon Pin
Jason Hooper10-Mar-03 4:27
Jason Hooper10-Mar-03 4:27 
GeneralRe: Bitmap to Icon Pin
Baris Kurtlutepe10-Mar-03 5:16
Baris Kurtlutepe10-Mar-03 5:16 
GeneralProblem when creating instance of class in case structure. Pin
adapterJohn10-Mar-03 4:00
adapterJohn10-Mar-03 4:00 
GeneralRe: Problem when creating instance of class in case structure. Pin
krism10-Mar-03 4:07
krism10-Mar-03 4:07 
GeneralRe: Problem when creating instance of class in case structure. Pin
adapterJohn10-Mar-03 4:16
adapterJohn10-Mar-03 4:16 

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.