Sign in to follow this  

RegisterHotkey help!

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

This topic is 3466 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this