Jump to content
  • Advertisement


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


VC/C++ Function Addresses

This topic is 6160 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

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

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!