Archived

This topic is now archived and is closed to further replies.

I forgot something.. help :)

This topic is 5531 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

say you''re declaring something like the following: function(whatever *hitme) I''m just wondering what the *hitme would represent. Would it be a pointer to whatever? I''ve seem to have a memory lapse

Share this post


Link to post
Share on other sites
Yes.

Also...

CHelp Help;
CHelp* m_pHelp;

m_pHelp = &Help; //Sets the m_pHelp pointer to the Help object

Call your aforementioned function Value(...) like this
Value(m_pHelp);
or like this:
Value(&Help);

Also you can create a new CHelp dynamically and assign it to a CHelp pointer like this...
m_pHelp = new CHelp();

Share this post


Link to post
Share on other sites