I use this in MSVC,
Both gcc and borland compilers complain at the three lines immediately above.Code:HMODULE __TESTDLL_DLL; typedef void (WINAPI*__TestProc1) (); __TestProc1 TestProc1; typedef Integer (WINAPI*__TestProc2) (Integer Num1,Integer Num2); __TestProc2 TestProc2; typedef void (WINAPI*__TestProc3) (); __TestProc3 TestProc3; . . . __TESTDLL_DLL= LoadLibrary("TESTDLL.DLL"); *TestProc1 = (__TestProc1)GetProcAddress(__TESTDLL_DLL,"TestProc1"); *TestProc2 = (__TestProc2)GetProcAddress(__TESTDLL_DLL,"TestProc2"); *TestProc3 = (__TestProc3)GetProcAddress(__TESTDLL_DLL,"TestProc3");
What am I doing wrong here?
Mike




Reply With Quote