Load DLL Library

c, codeblocks, dll, gcc, winapi

Solution

`HMODULE hModule = LoadLibrary(<dll file name>)` followed by `GetProcAddress(hModule, <function name>)` will do this job using the WinAPI.

An example could be found here.

Problem

Is it possible to load a DLL with C and use its functions? I am new in C, and I am trying to search some good references on the internet for this; but I can't find any. Any help would be appreciated! I am using GNU GCC in Code::Blocks on Windows 7, 64 Bit.

Original source