Jump to content
  • Advertisement

Archived

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

devnul

C++ API

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

How do I declare Win32 APIs in C++? I mean what do so that I can use an API function?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Include the header file? Add the static library to your project?

What do you want to do? Maybe you''ll get more useful (and better informed) replies if you say.

Share this post


Link to post
Share on other sites
You know how in VB you declare an API such as PtInRect and then you can use it in your program? How do I do that in C++?

Share this post


Link to post
Share on other sites
  
#include <windows.h>


That''ll get you most of the Win32 API functions.
Then you just call the function you want...

I still hate html

I you want to get at an undocumented api call, then you need to use LoadLibrary and hook up to the appro. .dll yourself.


Magmai Kai Holmlor
- The disgruntled & disillusioned

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!