![]() |
| | #1 |
| Registered User Join Date: Mar 2008 Location: vancouver bc
Posts: 28
| What is a virtual function pointer? Function pointer-questions: 1) Can function pointer point to a static function? 2) Can function pointer point to a member function? 3) Can function pointer point to a virtual member function? 4) Why use function pointer? can i just use if/then to avoid the use of function pointer completely? (because i really am afraid of using function pointer) generic-questions: 1) how to use ' extern "C" ' ? is it necessary ? 2) Why do we need multiple inheritance? --TING |
| ting is offline | |
| | #2 |
| Just Lurking Join Date: Oct 2002
Posts: 5,005
| You may find some of the answers here: http://www.google.com/search?q=funct....parashift.com
__________________ 7. It is easier to write an incorrect program than understand a correct one. 40. There are two ways to write error-free programs; only the third one works.* |
| Dave_Sinkula is offline | |
| | #3 | |||||
| C++ Witch Join Date: Oct 2003 Location: Singapore
Posts: 11,296
| Quote:
Quote:
Quote:
Quote:
Quote:
__________________ C + C++ Compiler: MinGW port of GCC Build + Version Control System: SCons + Bazaar Look up a C/C++ Reference and learn How To Ask Questions The Smart Way | |||||
| laserlight is offline | |
| | #4 |
| CSharpener Join Date: Oct 2006
Posts: 5,311
| You have to use function pointers to call some function in exe from dll - you cannot link directly, because dll does not knows about your exe... Look at any win32 API that uses CallBack functions.
__________________ If I have eight hours for cutting wood, I spend six sharpening my axe. |
| vart is offline | |
| | #5 |
| Registered User Join Date: Nov 2006
Posts: 510
| You can link, I do it all the time. For plugin systems for example it could be useful. For code modularizing/reusing it isn't
__________________ http://sourceforge.net/projects/path-finder-as |
| pheres is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Which Library Files for these unreferenced functions? | lehe | C++ Programming | 3 | 01-31-2009 10:30 PM |
| Compiling sample DarkGDK Program | Phyxashun | Game Programming | 6 | 01-27-2009 03:07 AM |
| Problem in compiling targa2.c: error: field `ip' has incomplete type.. | Moony | C Programming | 0 | 03-20-2008 07:59 AM |
| Calling a Thread with a Function Pointer. | ScrollMaster | Windows Programming | 6 | 06-10-2006 08:56 AM |
| structure vs class | sana | C++ Programming | 13 | 12-02-2002 07:18 AM |