Hi there,
I have no experience with borland C but I use Microsoft Visual C++6.0. And
I have some DLLs written user C++ and called under CVI. I hope my words will
help.
First of all, as far as I know only CVI 5.5 can load *.lib of DLL created
from other cimpiler such as Microsoft, borland without any change under CVI.
I remeber in lower version of CVI, you need to create the *.lib for the DLL
under CVI. I hope I am wrong on this point but I got it from the online manuals
and experence.
In your CVI program, you need include "utility.h" at first. Then define a
function pointer which must according to the function's Prototype that you
want to call. After that, use the function 'int LoadExternalModule(char Pathname[])'
to load your *.lib but not *.dll, 'cause unlike other com
pilers, CVI can
only load *.lib or *.obj. The return value is the handle of the *.lib. Then
use function 'void *GetExternalModuleAddr (int Module_ID, char Name[],int
*Status);', the function return a function pointer. At last, run the returned
function pointer. You can llok up into the help files or select 'Utility'
from menu 'Library'.
I don't know if how many types of DLL created under Borland C++. You'd better
look up some related articles about the restriction of the DLLs 'Cause for
some kind of DLLs created under MS Visual C++ can only be called under MS
Visual C++ application.
Hope this will helps!
Shrimp