Sign in to follow this  

Loading .lib

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

hi, my last post wasnt very clear. can anybody tell me how a game engine (for instance, the Irrlicht engine) loads a .lib file for it's use? because i created a very simple engine and i compiled it to create a .lib and a .dll . . . . . but how do you use it? any help (including some source) will be highly appreciated thanks

Share this post


Link to post
Share on other sites
include the header file that defines what symbols are in the library.

link your new project with that library.

make sure the dll is in the same directory as your new project's exe.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
To include the lib you whant to use type in this in the header.

#pragma comment(lib, "thebil.lib")

Share this post


Link to post
Share on other sites
He mentions a game engine specifically. I'm going to say he actually meant how to load the DLL.

If that's what he meant to say, you can either link with the lib (directions are given) or load the DLL dynamically with LoadLibrary, obtaining the functions inside with GetProcAddress.

Share this post


Link to post
Share on other sites

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