calling dlls from activex - ok to do?
Posted on 2000-02-27
Is it OK to call a dll from within an activeX (built with vc++). Is there anything to watch out for, or anything unusual that I need to watch out for? Is it exactly the same as calling a dll from a regular window app?
PS. I plan to build my dll using delphi 4 and declare the functions 'stdcall' calling convention. And I plan to use LoadLibrary and GetProcAddress from within the VC++ active X.
hDLL = LoadLibrary("a1.dll");
ProcAdd = GetProcAddress(hDLL,"ANDY0");
if (ProcAdd == NULL) return 0;
ProcAdd; // call to dll