Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2004

Tip: Looking for answers? Try searching our database.

question about CObjet inherit...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lauro - 21 Dec 2004 04:01 GMT
I'm starting whit C++, so I don't andestand too much about .

I would like to know how can I inherit a generic class fron
CObjet class, all the time I try I recibe a message telling that
CObjet class is not defined,
I have tried making this with SDI, MDI, but nothing work,
according with a a book that I have, say that the header of CObject class
is already included, but I always encouter this problem.
CAN SAMBODY HELP ME TO SOLVE THIS PROBLEM??????.
I realy will apreciate your help, ...(ljaureguil@netzero.com or
ljaureguil@yahoo.com)
Nishant S - 21 Dec 2004 05:03 GMT
It's spelt CObject (you missed a 'c'). Try again with this spelling :-)

Signature

Regards,
Nish [VC++ MVP]
http://www.voidnish.com /* MVP tips tricks and essays web site */
http://blog.voidnish.com /* My blog on C++/CLI, MFC, Whidbey, CLR... */

> I'm starting whit C++, so I don't andestand too much about .
>
[quoted text clipped - 7 lines]
> I realy will apreciate your help, ...(ljaureguil@netzero.com or
> ljaureguil@yahoo.com)
sergega4@yahoo.fr - 21 Dec 2004 20:41 GMT
OK !
In MSDN you one can read
"
CObject is the principal base class for the Microsoft Foundation Class
Library. It serves as the root not only for library classes such as CFile and
CObList, but also for the classes that you write. CObject provides basic
services, including

Serialization support
Run-time class information
Object diagnostic output
Compatibility with collection classes

Note that CObject does not support multiple inheritance. Your derived
classes can have only one CObject base class, and that CObject must be
leftmost in the hierarchy. It is permissible, however, to have structures and
non-CObject-derived classes in right-hand multiple-inheritance branches.

You will realize major benefits from CObject derivation if you use some of
the optional macros in your class implementation and declarations.
"
Maybe it will help.

In addition I should say that in the "Add class" part of the "classView" (in
"Workspace")
if it's not possible to set the CObject Class as "base class", you can
derive you class from derived class of CObject which is indirectely what you
ask for.
Just decide which one is relevant to your will.
If I understood you well, the trouble is fixed !
Regards
XL

> I'm starting whit C++, so I don't andestand too much about .
>
[quoted text clipped - 7 lines]
> I realy will apreciate your help, ...(ljaureguil@netzero.com or
> ljaureguil@yahoo.com)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.