Subj : 32 bit Application calling a procedure inside a 32 bit DLL without link to it. To : borland.public.cpp.borlandcpp From : "akuma" Date : Fri Jan 30 2004 07:49 pm Hi, I want to call a dll function dynamicly just if the dll file exist. The following is what I want to do: HINSTANCE hlib; FARPROC proc1; hlib = LoadLibrary("mydll.dll"); if (hlib) //the library exists { proc1 = GetProcAddress(hlib, "myfunc"); //need to call the procedure proc1 //I can't found any API can do this like CallProc32W or CallProcEx32W //which designed for 16 bit application to call a 32 bit dll //So, I would like to know which API and how to do this if //myfunc have the prototype: //int myfunc(int para1, LPSTR para2); //... FreeLibrary(hlib); } .