Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I convert CString and int to CObject?

Status
Not open for further replies.

Aunthas

Programmer
Oct 8, 2002
7
0
0
TH
How can I convert CString and int to CObject?
Thank you very much.
 
What exactly are you trying to do? To take these to a cobject would require you to write a class that behaves properly. Overload the operators etc...

Matt
 
Hello Aunthas.

You can use multiple inheritance to create a class child of CObject and of CString (i.e. CMyClass. So you can easily convert from a CString to a CMyClass.

Regards.

Polu Nacho Vargas.
Consultant.
D.M.R. Consulting (a Fujitsu Company)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top