By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,335 Members | 2,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,335 IT Pros & Developers. It's quick & easy.

How to call a non static function from a static function

P: n/a
Hi
I need to go to a non static function from a static function?can
anybody suggest me how to do it?any kind of help will be greatly
appreciated.

Aug 6 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
bh***************@gmail.com wrote:
Hi
I need to go to a non static function from a static function?can
anybody suggest me how to do it?any kind of help will be greatly
appreciated.
You can't unless you pass an object of your class to the static
function. Which then begs the design question "Should I be using a
static member function?"

--
Ian Collins.
Aug 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.