Click here to Skip to main content
16,012,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it possible ? Pin
Ahmed Charfeddine11-Jun-08 5:34
Ahmed Charfeddine11-Jun-08 5:34 
GeneralRe: Is it possible ? Pin
CPallini11-Jun-08 9:30
mveCPallini11-Jun-08 9:30 
GeneralRe: Is it possible ? Pin
Ahmed Charfeddine11-Jun-08 23:44
Ahmed Charfeddine11-Jun-08 23:44 
AnswerRe: Is it possible ? Pin
KarstenK11-Jun-08 4:01
mveKarstenK11-Jun-08 4:01 
GeneralRe: Is it possible ? Pin
Ahmed Charfeddine11-Jun-08 5:36
Ahmed Charfeddine11-Jun-08 5:36 
GeneralRe: Is it possible ? Pin
Ahmed Charfeddine11-Jun-08 5:37
Ahmed Charfeddine11-Jun-08 5:37 
AnswerRe: Is it possible ? Pin
jhwurmbach11-Jun-08 4:13
jhwurmbach11-Jun-08 4:13 
GeneralRe: Is it possible ? Pin
Ahmed Charfeddine11-Jun-08 5:44
Ahmed Charfeddine11-Jun-08 5:44 
yes yes I am totally with you.
but for primitive types I needed that sort of trick which M Pillini game me so to automatically grad the variablke name and not oblige the developer to explicitly put a key name next to the var value.
it is also useful since he may forget to supply the wrong key name in the reverse process (reading process as opposed to storing, or receiving as opposed to sending the primitive var).

As for object, yes indeed I have the things that you explianed. More thnat that and since I may have differente types of objects serialized in same stream to be sent or saved to disk, which havce same key, then I need to add a type data member to the base class.

class CSerializeObjBase
{
public:
CSerializeObjBase(CString key,CString objType)
{
this->key=key;
this->objType=objType;
}
CSerializeObjBase(int key,CString objType)
{
this->key.Format(_T("%d"),key);
this->objType=objType;
}
~CSerializeObjBase(void){};
private:
CString key;
CString objType;
public:
void setObjKey(CString key){
this->key=key;
};
CString getObjKey(){
return key;
};
CString getObjType(){
return objType;
}
virtual bool serializeObject(CPacketBase* pStore){
return false;
};
};


Thk you for your intervention; and forgive the bad words, bcuase i am arab and consume time to formulate right sentences in english ans i am hurry now but i recognize the necessity of replying to you and thanking you.
So Thank you for your help.

Our Philosophy, Mohammed Baqir Al Sadr

AnswerRe: Is it possible ? Pin
Ahmed Charfeddine11-Jun-08 5:52
Ahmed Charfeddine11-Jun-08 5:52 
QuestionHow to change icon appearing in taskbar in "grouped state" ? Pin
cagespear11-Jun-08 2:44
cagespear11-Jun-08 2:44 
QuestionRe: How to change icon appearing in taskbar in "grouped state" ? Pin
David Crow11-Jun-08 3:26
David Crow11-Jun-08 3:26 
AnswerRe: How to change icon appearing in taskbar in "grouped state" ? Pin
cagespear11-Jun-08 5:59
cagespear11-Jun-08 5:59 
GeneralRe: How to change icon appearing in taskbar in "grouped state" ? Pin
David Crow11-Jun-08 6:07
David Crow11-Jun-08 6:07 
GeneralRe: How to change icon appearing in taskbar in "grouped state" ? Pin
cagespear11-Jun-08 19:46
cagespear11-Jun-08 19:46 
AnswerRe: How to change icon appearing in taskbar in "grouped state" ? Pin
KarstenK11-Jun-08 3:51
mveKarstenK11-Jun-08 3:51 
GeneralRe: How to change icon appearing in taskbar in "grouped state" ? Pin
Graham Shanks11-Jun-08 23:34
Graham Shanks11-Jun-08 23:34 
QuestionCString to float conversion or Vice-Versa. Pin
Le@rner11-Jun-08 2:36
Le@rner11-Jun-08 2:36 
AnswerRe: CString to float conversion or Vice-Versa. Pin
toxcct11-Jun-08 2:42
toxcct11-Jun-08 2:42 
GeneralRe: CString to float conversion or Vice-Versa. Pin
Le@rner11-Jun-08 2:45
Le@rner11-Jun-08 2:45 
AnswerRe: CString to float conversion or Vice-Versa. Pin
Graham Shanks11-Jun-08 2:44
Graham Shanks11-Jun-08 2:44 
GeneralRe: CString to float conversion or Vice-Versa. Pin
Le@rner11-Jun-08 2:49
Le@rner11-Jun-08 2:49 
GeneralRe: CString to float conversion or Vice-Versa. Pin
Graham Shanks11-Jun-08 3:02
Graham Shanks11-Jun-08 3:02 
AnswerRe: CString to float conversion or Vice-Versa. Pin
Jijo.Raj11-Jun-08 3:02
Jijo.Raj11-Jun-08 3:02 
AnswerRe: CString to float conversion or Vice-Versa. Pin
KarstenK11-Jun-08 3:55
mveKarstenK11-Jun-08 3:55 
AnswerRe: CString to float conversion or Vice-Versa. Pin
krmed11-Jun-08 4:01
krmed11-Jun-08 4:01 

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.