BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What's a CString?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Compatibility with MFC)
View previous topic :: View next topic  
Author Message
Nate Lockwood
Guest





PostPosted: Sat Feb 25, 2006 12:03 am    Post subject: What's a CString? Reply with 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
Darko Miletic
Guest





PostPosted: Sat Feb 25, 2006 12:03 am    Post subject: Re: What's a CString? Reply with quote



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





PostPosted: Sat Feb 25, 2006 1:03 am    Post subject: Re: What's a CString? Reply with quote



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





PostPosted: Tue May 02, 2006 9:03 pm    Post subject: Re: What's a CString? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Compatibility with MFC) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.