Sign in to follow this  

lib and dll usage

Recommended Posts

hi i want some articles about lib and dll files usage. how can i make them, what is the rules, how can i make a function that will be called from lib, bla bla... i search google again and again but cant find any good one. can you recommend a good book or article/tutorial for this?? Thank you..

Share this post

Link to post
Share on other sites
Original post by BigBadBob
when I look for information about DLLs etc like this it only ever seems to refer to global scope variables or functions. How do you export classes and their member functions?


#define DLL_INTERFACE __declspec(dllexport)
#define DLL_INTERFACE __declspec(dllimport)

DLL_INTERFACE class ClassName {
// declare members

The your-dll-or-lib-name_EXPORTS symbol will be generated by the IDE. So export/import of classes works exactly the same as with functions and data.


Share this post

Link to post
Share on other sites

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