Archived

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

Shag

VC/C++ Function Addresses

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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...

Share this post


Link to post
Share on other sites