|
Basically you are dealing with inheritance and you need the base class to call a member function in a derived class. What that means: if you convert a pointer to a derived class to that of the base class and call a virtual function that is defined in both classes, the one in the derived class will be called.
class A { virtual const void printName() { cout << "class A" << endl; }
class B: public A { virtual void char printName() { cout << "class B" << endl; }
class C: public B { virtual void char printName() { cout << "class C" << endl; }
C c;
A* pa = dynamic_cast<A*>&c;
pa->printName();
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
<emp>
<name>white</name>
<adress>amsterdam</adress>
<company>avaya tenovis</company>
</emp>
coding in vc++ but looks like above
biswajit nayak
trainee engineer
|
|
|
|
|
OK. This is a good representation for an XML document. BTW the question is?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I dont know whats your purpose of these messages but do you need to TinyXML[^]
|
|
|
|
|
hi all
sorry i think no body geting my question
my question is there is a root tag called employee
sub tags are his name , adreess , id or some more features
which looks like xml format but i can't write it here as it will be not displaying this format so that's why i think no body geting my question
coding should be in vc++
plz don't mind it as i am a new to this code project
biswajit nayak
|
|
|
|
|
Ok, Let's suppose that you have a XML document. What do you want to do using C++?
(and please note that you can use HTML escape codes to post your document here).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
emp
name
adress
emp is the root tag
name and adress are the sub tag
coding in vc++ but looks like xml format
biswajit nayak
|
|
|
|
|
<emp>
<name>biswa
<adress>abc
code in vc++ looks like above
biswajit nayak
|
|
|
|
|
Do you have a question to ask ? If not, spam in the forum is not welcome.
|
|
|
|
|
sorry,
i think u didn't see my question
my question is coding in vc++ but looks like this
<emp>
<name>abc
<adress>marathahali
biswajit nayak
|
|
|
|
|
That doesn't like coding in any lanquage that I recognize and I still don't see a question.
WHAT IS YOUR QUESTION ?
|
|
|
|
|
Ah.. I see you haven't received the new Code Project mind reading unit yet. Don't worry, you'll have it soon!
--
Raaaaaaaaaaaaaaaaaaaaa!
|
|
|
|
|
Joergen Sigvardsson wrote: Ah.. I see you haven't received the new Code Project mind reading unit yet.
ummm...is this something one has to order, or should I receive mine automatically?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Think and you shall receive!
--
Raaaaaaaaaaaaaaaaaaaaa!
|
|
|
|
|
If I had my Code Project mind reading unit I would have known that!
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Maybe his question is hide or transparent
|
|
|
|
|
WhiteSky wrote: Maybe his question is ... transparent
Yeah, but we'd see right through that...
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
ooh - that's a groaner.
|
|
|
|
|
Do you have any question or no?
|
|
|
|
|
i want to set a path in config file, and use it to init
GetOpenFileName() dialog , so user only visit the sub-directory of it , can not go upper level via press up button. how to implement it ?
|
|
|
|
|
|
it is SHBrowseOfFolder(), i want GetOpenFileName(), to select file, not directory
|
|
|
|
|
GetOpenFileName() lets you set a 'hook' function. Inside that hook function, you would need to intercept and prevent navigation outside the desired directory structure.
Software Zen: delete this;
|
|
|
|
|
hi all i need to write a routine where i need to know the speed of the internet at any given time. i.,e the actual speed the user is getting from his provider, i have referred the article,"traffic watcher"from codeproject.com but i cudnot run it .
thanks in advance
regards
sudhir m
|
|
|
|
|
sudhir.marni wrote: i cudnot run it .
Why not? What happened?
|
|
|
|