lib and dll usage
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..
hey that is what i am looking for! Thank you...
and are there any other one about *.lib files?
i intermediate on c++.
and are there any other one about *.lib files?
i intermediate on c++.
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?
Quote: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?
VC++:
#ifdef YOURDLL_OR_LIB_NAME_EXPORTS#define DLL_INTERFACE __declspec(dllexport)#else#define DLL_INTERFACE __declspec(dllimport)#endifDLL_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.
Regards,
Pat.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement