HINSTANCE h;
if((h = LoadLibrary( "mydll.dll" )) != NULL){
int (FAR WINAPI *MyFunc)(int,int);
MyFunc = (int (FAR WINAPI *)(int,int))GetProcAddress(h,"MyFunc");
int res = (*MyFunc)(0,0);
FreeLibrary(h);
}else{
MessageBox(NULL,"DLLが見つかりません。","Load Error",MB_OK);
}GetProcAddressで関数のポインタを得、FreeLibraryで解放する。
関数のポインタの使い方はなれないと少々とまどう(まあ、真似ればいいんだけど・・・)。