













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Review of Last Lecture
What is a Thread?
contd…
Dynamic Link Libraries
BOOL WINAPI DllMain( HINSTANCE hinstDLL, // handle to DLL module DWORD fdwReason, // reason for calling function LPVOID lpvReserved // reserved );
Load-time vs. Runtime Dynamic Linking
Loading a DLL and calling functions in it
HMODULE LoadLibrary( LPCTSTR lpFileName // file name of module );
FreeLibrary(hModule);
FARPROC GetProcAddress( HMODULE hModule, // handle to DLL module LPCSTR lpProcName // function name );
The Import Libraries .LIB
DLL versions
The comctl32.dll example
statement
VERSIONINFO resource statement VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,0, PRODUCTVERSION 1,0,0, FILEFLAGSMASK 0x3fL FILEFLAGS 0x1L FILEOS 0x40004L FILETYPE 0x1L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "CompanyName", "Virtual University\0" VALUE "LegalCopyright", "Copyright © 2002 Virtual University\0" END ... ... ... ... END END