123456789
typedef VOID (*DLLPROC) (LPTSTR); HINSTANCE hinstDLL= LoadLibrary("C:\\Users\\Cambalinho\\Documents\\CodeBlocks\\DLL\\testdll\\bin\\Debug\\testdll.dll"); DLLPROC SomeFunction; BOOL fFreeDLL; //on main: SomeFunction = (DLLPROC) GetProcAddress(hinstDLL, "SomeFunction"); //free it: fFreeDLL = FreeLibrary(hinstDLL);