Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hide the MFC application in Task Manager Pin
zahid_ash17-May-06 2:24
zahid_ash17-May-06 2:24 
GeneralRe: Hide the MFC application in Task Manager Pin
ThatsAlok17-May-06 3:13
ThatsAlok17-May-06 3:13 
AnswerRe: Hide the MFC application in Task Manager Pin
Naveen17-May-06 2:19
Naveen17-May-06 2:19 
GeneralRe: Hide the MFC application in Task Manager Pin
zahid_ash17-May-06 3:14
zahid_ash17-May-06 3:14 
GeneralRe: Hide the MFC application in Task Manager Pin
Naveen17-May-06 3:22
Naveen17-May-06 3:22 
GeneralRe: Hide the MFC application in Task Manager Pin
zahid_ash17-May-06 3:40
zahid_ash17-May-06 3:40 
GeneralRe: Hide the MFC application in Task Manager Pin
Naveen17-May-06 19:56
Naveen17-May-06 19:56 
QuestionMoving a line Pin
Wim Engberts17-May-06 2:04
Wim Engberts17-May-06 2:04 
AnswerRe: Moving a line Pin
_AnsHUMAN_ 17-May-06 3:07
_AnsHUMAN_ 17-May-06 3:07 
AnswerRe: Moving a line Pin
Russell'17-May-06 3:10
Russell'17-May-06 3:10 
QuestionHow to get the taskbar icon for an invisible main window Pin
Smitha Rao17-May-06 1:52
Smitha Rao17-May-06 1:52 
AnswerRe: How to get the taskbar icon for an invisible main window Pin
Naveen17-May-06 1:58
Naveen17-May-06 1:58 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
NiceNaidu17-May-06 3:00
NiceNaidu17-May-06 3:00 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
Naveen17-May-06 3:19
Naveen17-May-06 3:19 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
Smitha Rao17-May-06 5:05
Smitha Rao17-May-06 5:05 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
Naveen17-May-06 17:14
Naveen17-May-06 17:14 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
Smitha Rao17-May-06 18:25
Smitha Rao17-May-06 18:25 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
Naveen17-May-06 18:29
Naveen17-May-06 18:29 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
Smitha Rao25-May-06 7:06
Smitha Rao25-May-06 7:06 
GeneralRe: How to get the taskbar icon for an invisible main window Pin
Smitha Rao17-May-06 7:24
Smitha Rao17-May-06 7:24 
QuestionHow to encrypt folder? Pin
westdawn17-May-06 1:28
westdawn17-May-06 1:28 
QuestionPolymorphic pointer points to what? Pin
G_urr_A17-May-06 1:12
G_urr_A17-May-06 1:12 
I'm programming a little game, an Asteroids clone. I need to do some collision detection. In order to determine what should happen when two objects collide, I need to know which types of objects they are.

I've got a few different classes, one for the player ship, one for asteroids and another for the bullets that the player can shoot. All of these are children of a base class containing some generic physics code.
I've got a vector of *base_class which keeps track of all objects, meaning that regardless of whether the object is of class ship or class asteroid or whatever, it is stored and accessed through a vector of *base_class.
What I need to do now is to go through this vector and find objects of certain types, i.e. find all asteroids. I could of course just add another member variable and set it accordingly, but I was wondering if there is a way to determine what type of object the pointer is pointing at.

Does anyone have any suggestions?
AnswerRe: Polymorphic pointer points to what? Pin
Cedric Moonen17-May-06 1:21
Cedric Moonen17-May-06 1:21 
GeneralRe: Polymorphic pointer points to what? Pin
Stephen Hewitt17-May-06 5:06
Stephen Hewitt17-May-06 5:06 
GeneralRe: Polymorphic pointer points to what? Pin
Cedric Moonen17-May-06 5:15
Cedric Moonen17-May-06 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.