Jump to content
  • Advertisement
Sign in to follow this  
jeremic

RegisterHotkey help!

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

Hello, for some weird reason my program cannot access the RegisterHotkey function defined in user32.dll I keep getting C3861 errors but I have included Windows.h and made a #pragma comment(lib, "user32.lib") ... What else do I need to include to be able to use this function ?!?!

Share this post


Link to post
Share on other sites
Advertisement
C3861 is a compiler error, if the problem was that user32.lib wasnt being linked that would be a linker error.

As long as you've included windows.h before using RegisterHotKey() you shouldnt have problems. Can you post a minimal code example that displays the problem and the exact error?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!