| View previous topic :: View next topic |
| Author |
Message |
Nate Lockwood Guest
|
Posted: Sat Feb 25, 2006 12:03 am Post subject: What's a CString? |
|
|
I've downloaded a couple of classes that use CString and would like to
convert them to Builder CPP 6.
One class overrides a CString like this:
CMessageString::CMessageString(const CString& string)
: CString(string)
{
m_Manager.Add(this);
}
What should I use for CString?
Thanks
Nate |
|
| Back to top |
|
 |
Darko Miletic Guest
|
Posted: Sat Feb 25, 2006 12:03 am Post subject: Re: What's a CString? |
|
|
Nate Lockwood wrote:
| Quote: | I've downloaded a couple of classes that use CString and would like to
convert them to Builder CPP 6.
One class overrides a CString like this:
CMessageString::CMessageString(const CString& string)
: CString(string)
{
m_Manager.Add(this);
}
What should I use for CString?
|
CString is a class from MFC which is Microsoft C++ class framework.
There is no direct replacement for CString AFAIK. However you have STL
string (std::string) and AnsiString that ship with Borland compiler. You
could try to experiment with any of them.
Darko |
|
| Back to top |
|
 |
Nate Lockwood Guest
|
Posted: Sat Feb 25, 2006 1:03 am Post subject: Re: What's a CString? |
|
|
Darko Miletic wrote:
| Quote: | CString is a class from MFC which is Microsoft C++ class framework.
There is no direct replacement for CString AFAIK. However you have STL
string (std::string) and AnsiString that ship with Borland compiler. You
could try to experiment with any of them.
|
OK, I'm not surprised.
Thanks
Nate |
|
| Back to top |
|
 |
Cees Guest
|
Posted: Tue May 02, 2006 9:03 pm Post subject: Re: What's a CString? |
|
|
A little late maybe, but you can use CString (and more of the MS MFC
classes) in your CPP program if you link in the MFC library, and use the
right headers (which are supplied by Borland). If you require details, drop
me a mail, or check my site www.ckns-meijer.demon.nl where I have a short
description on how I do it.
Cees
"Nate Lockwood" <RNLockwoodREMOVE (AT) attglobal (DOT) net> schreef in bericht
news:43ff914d$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I've downloaded a couple of classes that use CString and would like to
convert them to Builder CPP 6.
One class overrides a CString like this:
CMessageString::CMessageString(const CString& string)
: CString(string)
{
m_Manager.Add(this);
}
What should I use for CString?
Thanks
Nate |
|
|
| Back to top |
|
 |
|