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

C / C++ / MFC

 
QuestionHow to store data of distinct datatype in one object? Pin
manish.patel23-Oct-07 20:35
manish.patel23-Oct-07 20:35 
AnswerRe: How to store data of distinct datatype in one object? Pin
Cedric Moonen23-Oct-07 20:51
Cedric Moonen23-Oct-07 20:51 
GeneralRe: How to store data of distinct datatype in one object? Pin
manish.patel23-Oct-07 21:10
manish.patel23-Oct-07 21:10 
GeneralRe: How to store data of distinct datatype in one object? Pin
Cedric Moonen23-Oct-07 21:16
Cedric Moonen23-Oct-07 21:16 
GeneralRe: How to store data of distinct datatype in one object? Pin
manish.patel23-Oct-07 21:22
manish.patel23-Oct-07 21:22 
GeneralRe: How to store data of distinct datatype in one object? Pin
Cedric Moonen23-Oct-07 21:27
Cedric Moonen23-Oct-07 21:27 
QuestionRe: How to store data of distinct datatype in one object? Pin
manish.patel23-Oct-07 22:39
manish.patel23-Oct-07 22:39 
AnswerRe: How to store data of distinct datatype in one object? Pin
Cedric Moonen23-Oct-07 22:49
Cedric Moonen23-Oct-07 22:49 
Well, you don't give a lot of information do you ?



Manish_mnp wrote:
packet can contain array or object


And how are you supposed to make the difference ? How do you know that the packet contains an object or an array ?


Manish_mnp wrote:
If it is a objet then it can contain many values like int, double, char *, or another object, etc.


Same, how do you know which kind of data it is ? How is this information coded ? Qnd zhqt qre the other objects you can put in the packet ?

Manish_mnp wrote:
Thats not problem, my program can identify it at run time


Yeah, but that's my problem. I cannot understand your problem until you explain it clearly. How can you identify what is contained in this damn packet ?


Manish_mnp wrote:
Is there any facility of assigning properties of object at runtime?


Ok, stop focusing on that and try to explain your problem as if it was impossible to do that. Then, we can discuss a possible solution. But honnestly, I hardly see a reason to use things like VARIANT because it will probably cause a lot of troubles.


Please, post some code snippet and the description of a typical packet. Without more information it is quite difficult to help you. And what are you supposed to do with what is contained in the packet ??


Cédric Moonen
Software developer

Charting control [v1.2]

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 
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 

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.