Try with one.
In the Stub make sure to include the LIB hte DLL produces. Then call LoadLibrary() (loads DLL) and then GetProcAddress() (creates a pointer to a function in DLL) and finally ReleaseLibrary()
To use a function (ThisFunctionFromDLL) from a DLL (ThisDLL) where the path is stored in sThis_Dll_Path.
Define a function 'type' to match the ThisFunctionFromDLL prototype
Code:
//if this is your function prototype
//int ThisFunctionFromDLL(HINSTANCE hWndParent, char* sWorkingDir, char* sText);
//use a type define like
typedef int (CALLBACK* FuncDefine)(HINSTANCE , char*, char*);
//declare function prototype
FuncDefine ThisFunctionFromDLL;
//load lib
hThisDLLInst = LoadLibrary(sThis_Dll_Path);
if(hThisDLLInst)//loaded without error
{
ThisDLLFunction = (FuncDefine) GetProcAddress(hThisDLLInst,"ThisFunctionFromDLL");// lock function down
//error check then use
}
//when finished clean up
FreeLibrary(hThisDLLInst); add error check