|
Uff, you are asking questions. I was wrong about inheritance and it was not the first time I was wrong about C++, so I'm floating in some sort of Lack-Of-Self-Confidence cloud right now. I would rather prefer to end this embarrassing post.
Though, on the bright side, it's better to embarrass myself here rather then later in my CV. So thank you guys for your time.
|
|
|
|
|
that was a rethorical question indeed... no need to answer it.
it was just to show you the "wrongness" of your last assertion.
|
|
|
|
|
Cyon111 wrote: Simple but effective
maybe.
now with C++, your slogan will become "Effective at any cost !"
|
|
|
|
|
toxcct wrote: Effective at any cost !
I'm sure the customer would like to hear that slogan, tox'...
How about exchanging "any" for "less"?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
f*ck the customers off ! lol.
we work for a better code and I don't like people telling me to code crap because a moron wants it earlier...
|
|
|
|
|
toxcct wrote: we work for a better code and I don't like people telling me to code crap because a moron wants it earlier...
I'm right beside you on the barricades, possibly with my back full of arrows 'cause that's how the pioneers are recognized.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Cyon111 wrote: In short terms, I HATE INHERITANCE.
So then why do you use it?
Cyon111 wrote: So I'm looking for a good reason(excuse ) to keep it out of my code.
That's not possible.
Cyon111 wrote: I'm working on a project right now and so far I'm not using inheritance...
I doubt that.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
DavidCrow wrote: So then why do you use it?
I have the feeling that I have to. I can't be the only one in a developer team who does not use inheritance. I guess it simply belongs to C++ and I have to accept it.
DavidCrow wrote: That's not possible.
I was afraid of that!
DavidCrow wrote: I doubt that.
Well, the Gunman project is smaller than you think and it's at the beginning. However, id Software programmed Quake 3 Arena without even using classes! Though, the newer game, Doom 3, has classes. I just had a look at it in order to learn how to use inheritance and well it's interesting. So far it seems that they only inherit classes and only 1 class at a time. Here is such a inheritance chain:
idAFEntity_WithAttachedHead -> idAFEntity_Gibbable -> idAFEntity_Base -> idAnimatedEntity -> idEntity -> idClass
|
|
|
|
|
Cyon111 wrote: I guess it simply belongs to C++...
Not necessarily. In C, a struct can be inherited.
Cyon111 wrote: Well, the Gunman project is smaller than you think and it's at the beginning.
Does it use objects like string , vector , list , or ostream ?
Cyon111 wrote: However, id Software programmed Quake 3 Arena without even using classes!
But do they claim it to be written in C++ (or any OO language for that matter)?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
DavidCrow wrote: Does it use objects like string, vector, list, or ostream?
Nope, none of them. At least not yet. Why?
DavidCrow wrote: But do they claim it to be written in C++?
Nope, they don't claim it to be a C++ code.
|
|
|
|
|
Cyon111 wrote: Why?
Because those basic classes all use inheritance.
Cyon111 wrote: Nope, they don't claim it to be a C++ code.
Then why mention it?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
DavidCrow wrote: Then why mention it?
I said: "I'm working on a project right now and so far I'm not using inheritance...", you said: "I doubt that.", so, I concluded(wrongly I assume ) that you don't believe that it's possible to write the game without inheritance. So I gave you an example of a game that does not use inheritance because it does not even use classes at all.
|
|
|
|
|
My point was, if you are using C++ but without any classes, then it's really just C.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi All
I am in big problem.I asked more two time same question but i havn't found any result.
My problem is,i want to show MessageBox when any one Copy file/folde from any drive(System Drive) and past into USB Drive.I have information about USB Drive like Drive Name and USB Type.Realy i need help from forum.I am new in Progrraming...
Plz help me..
singh
|
|
|
|
|
polopo wrote: My problem is,i want to show MessageBox when any one Copy file/folde from any drive(System Drive) and past into USB Drive.I have information about USB Drive like Drive Name and USB Type.Realy i need help from forum.I am new in Progrraming...
Take a look at the ICopyHook COM interface.
More on ICopyHook...[^]
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
i need some source code..Plz help me
singh
|
|
|
|
|
Sample from CP[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
This is in an ALT/COM.And my rest of code in MFC.So it will work.And when i compile this code then i am geting error
error C2259: 'ATL::CComObject<Base>' : cannot instantiate abstract class
Plz help me
singh
|
|
|
|
|
polopo wrote: ...when any one Copy file/folde from any drive(System Drive) and past into USB Drive.
Are you wanting to know when a file or folder is pasted to a USB drive?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Friends,
In my application, i like to have UI control which can display time in 24hour or AM/PM format.
I used CDateTimeCtrl of MFC, but is is able to diplay only in AM/PM format.
Does one have ANY IDEA???
Thanks,
Prasanth
|
|
|
|
|
Call CDateTimeCtrl::SetFormat()[^] function. Check here[^] for the list of valid format specifiers.
In your case, for setting 24hr clock just call -
m_DateTime.SetFormat("HH:mm:ss");
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi all,
In one of my application I want to decide a string is in RTF format or Plain Text format. How can I solve it using C++
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
|
Thanks for the reply.
I go through the doc you send. But there is no direct way, I mean any windows API or something. Do you know such a way, something like IsTextUnicode used to identify UNICODE and ASCII?
I appreciate your help all the time...
CodingLover
|
|
|
|
|
I don't know of something like IsTextRTF(). But you can make one yourself. For instance, the specifications say that the RTF should have a Header ^, without which, the text won't be RTF.
You can search for articles on an RTF reader application and know how the header is parsed.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|