Calling a windows DLL function
Posted on 2000-05-04
I have been sent a DLL and a snippet of C code that calls into its function.
I try to port this into Visual Basic 6.0 without much success.
Sample source will be appreciated
Here is the snippet for the C code if it is useful
if (LoadLibrary("ETIWRD32.DLL"))!= NULL)
lpFunc = (lpFunction) (GetProcAddress(hLibrary, (LPSTR) "ConvertFile"));
if (lpFunc != NULL)
iRes = (*lpFunc)((LPSTR) "aaa.doc", (LPSTR) "aaa.txt", (FARPROC) NULL);