Advertisement

VC/C++ Function Addresses

Started by August 08, 2001 05:43 AM
0 comments, last by Shag 23 years, 6 months ago
is it possible to call a function by address? i know you can use GetProcAddress to get the address of a function in a DLL, but what about within the exe file? i want to use different code depending on what features are available on a given graphics card. but rather than use conditional branching code, i''d rather be able to reasign which function is called ... much like the wglGetProcAddress. is this possible?
Hiya...

What you want is to use function pointers, that should be exactly what you''re looking for

I can''t remember how to declare them properly cos'' it''s been a couple of years since I used them at uni BUT have a search on Google for "function pointers" there seems to be few tutorials on there...

Hope this sorts you out or puts you in the right direction...

This topic is closed to new replies.

Advertisement