Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to store data of distinct datatype in one object? Pin
Cedric Moonen23-Oct-07 22:49
Cedric Moonen23-Oct-07 22:49 
GeneralRe: How to store data of distinct datatype in one object? Pin
manish.patel23-Oct-07 23:37
manish.patel23-Oct-07 23:37 
QuestionRe: How to store data of distinct datatype in one object? Pin
Hamid_RT23-Oct-07 21:06
Hamid_RT23-Oct-07 21:06 
AnswerRe: How to store data of distinct datatype in one object? Pin
manish.patel23-Oct-07 21:14
manish.patel23-Oct-07 21:14 
GeneralRe: How to store data of distinct datatype in one object? Pin
CPallini23-Oct-07 22:00
mveCPallini23-Oct-07 22:00 
QuestionRe: How to store data of distinct datatype in one object? Pin
manish.patel23-Oct-07 22:32
manish.patel23-Oct-07 22:32 
AnswerRe: How to store data of distinct datatype in one object? Pin
CPallini23-Oct-07 22:42
mveCPallini23-Oct-07 22:42 
AnswerRe: How to store data of distinct datatype in one object? Pin
Sameerkumar Namdeo23-Oct-07 23:06
Sameerkumar Namdeo23-Oct-07 23:06 
now data can be anything
-int
-float
-char*
-an object of your class (object will also contain data in the form of int, float, char* )
etc..

So all the data can be converted in the form of char*

like this

<br />
char data[4]<br />
int i<br />
float f<br />
memcpy(data, &i, sizeof(i));<br />
memcpy(data, &f, sizeof(f));<br />


if there is any object of a class
provide a member function which will
- take char*
- allocate memory that is used by all the data in class
- and finally convert all the data in the form of char *

just a kind of Serialization that is provided by MFC
QuestionRe: How to store data of distinct datatype in one object? Pin
David Crow24-Oct-07 3:18
David Crow24-Oct-07 3:18 
QuestionTimer in MFC Pin
jossion23-Oct-07 20:32
jossion23-Oct-07 20:32 
AnswerRe: Timer in MFC Pin
__yash__23-Oct-07 21:01
professional__yash__23-Oct-07 21:01 
AnswerRe: Timer in MFC Pin
Nishad S23-Oct-07 21:17
Nishad S23-Oct-07 21:17 
AnswerRe: Timer in MFC Pin
KarstenK23-Oct-07 21:22
mveKarstenK23-Oct-07 21:22 
GeneralRe: Timer in MFC Pin
jossion24-Oct-07 1:09
jossion24-Oct-07 1:09 
GeneralRe: Timer in MFC Pin
KarstenK24-Oct-07 1:26
mveKarstenK24-Oct-07 1:26 
GeneralRe: Timer in MFC Pin
David Crow24-Oct-07 3:22
David Crow24-Oct-07 3:22 
AnswerRe: Timer in MFC Pin
David Crow24-Oct-07 3:20
David Crow24-Oct-07 3:20 
QuestionEfficiency of Software(MFC) Pin
__yash__23-Oct-07 20:28
professional__yash__23-Oct-07 20:28 
AnswerRe: Efficiency of Software(MFC) Pin
Peter Weyzen24-Oct-07 13:41
Peter Weyzen24-Oct-07 13:41 
Questionsafe to delete immediately following CWnd::DestroyWindow? Pin
Peter Weyzen23-Oct-07 19:22
Peter Weyzen23-Oct-07 19:22 
AnswerRe: safe to delete immediately following CWnd::DestroyWindow? Pin
Nishad S23-Oct-07 20:17
Nishad S23-Oct-07 20:17 
AnswerRe: safe to delete immediately following CWnd::DestroyWindow? Pin
Naveen23-Oct-07 23:20
Naveen23-Oct-07 23:20 
GeneralRe: safe to delete immediately following CWnd::DestroyWindow? Pin
Nishad S24-Oct-07 0:00
Nishad S24-Oct-07 0:00 
GeneralRe: safe to delete immediately following CWnd::DestroyWindow? Pin
Naveen24-Oct-07 0:17
Naveen24-Oct-07 0:17 
GeneralRe: safe to delete immediately following CWnd::DestroyWindow? Pin
Nishad S24-Oct-07 0:20
Nishad S24-Oct-07 0:20 

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.