|
go round a problem won't fix it.
the OP has a problem of design in his code, and he'd better fix that first...
|
|
|
|
|
We have seen many posts of questions by you. We know your level.
Maxwell Chen
|
|
|
|
|
But if i have to change it to MultiByte char other codes have to be converted to MultiByte.
Changing those codes are more work than fixing this conversion.
I just download sample source code and combine them altogether but problem such this arises due to this.
Hope you can help me.
Thanks.
|
|
|
|
|
read the other replies.
this guy answered you, but he doesn't even know what he talks about.
so don't take his post in consideration; it's useless.
|
|
|
|
|
Since you have to adapt different pieces of code, IMHO the best approach is to uniform the whole project to generic text mappings [^], as already suggested by toxcct. It should be not such a daunting task (hopefully).
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
When I run the program the output is:
Foo of derived 2
Foo of derived 2
Foo of derived 2
Why is it so? Shouldnt the output be:
Foo of derived 2
Foo of derived
Foo of base
#include<iostream.h>
class CBaseX
{
public:
virtual void foo()
{
cout<<" Foo of base";
}
};
class CBaseY:public CBaseX
{
public:
void foo()
{
cout<<" Foo of derived";
}
};
class CBaseZ:public CBaseY
{
public:
void foo()
{
cout<<" Foo of derived 2";
}
};
void main()
{
CBaseX* bx = new CBaseZ();
bx->foo();
CBaseY* by=dynamic_cast<CBaseY*>(bx);
by->foo();
CBaseX* bx1=dynamic_cast<CBaseX*>(bx);
bx1->foo();
}
|
|
|
|
|
because
Member 4090406 wrote: virtual void CBaseX::foo()
foo is virtual function
|
|
|
|
|
Nope. The output is correct. That's all the magic of polymorphism.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Hi all,
I need to use SQL server via the internet in C++ app, 2 questions:
1) what info do I need? such as domain name, ip address, database name etc.
2) actural C++ code or C++ samples
thx
|
|
|
|
|
hi everyone,
i am savitri here.i am having one more problem that is how to set the cursor to the first block or first text bor in the form. like in VB we use set focus and get focus but how to do in VC++. please help me out.
thanku in advanced,
savitri
|
|
|
|
|
|
SetFocus function [^] if you're using Win32 API or SetFocus method [^] if you're using MCF .
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: if you're using MCF.
That must be one cool technology.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
hey, have you noticed ?
he's now coding with MFC, but 2 days ago, he was asking how to write a switch statement !
wooowwwww, this guy is learning damn fast, hey !
|
|
|
|
|
toxcct wrote: he's now coding with MFC, but 2 days ago, he was asking how to write a switch statement !
BTW, it's a girl and not a guy. (Assumed from the display name)
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
It's a framework.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
ROTFL. You're such a bad guy.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
savitri wrote: am savitri here.i am having one more problem
déja vu
|
|
|
|
|
|
savitri wrote: i am having one more problem
I am holding my breath waiting for the next one....
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
We all are
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: We all are
at least we never have to hold it for long!
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Next time it's not gonna be easy man!
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
hello everyone,
i am facing the same problem... my text box variable are m_memid,m_memname, m_balance and m_date for thie i have to fix the cursor and text... how shall i do it please give some solutions please..as we do in VB like txtmemid.text and so on.. if i compile the program line by line then values are there in memory but they are not printing in the text boxes.. please help me out
THANKU IN ADVANCE,
savitri,
|
|
|
|