I am working in a proprietary 4GL that has very specific requirements for compatibility with DLL's. I have received a DLL from a vendor that is fine, but that does not conform to the compatiblity requirements of my 4GL. I want to write a "wrapper" DLL that conforms to the compatibility requirements and calls a function from the DLL provided by the vendor. I am using the free Borland command line compiler. When I try to compile my DLL I get Unresolved External <vendor DLL function name> . . .
It seems that the compiler does not know how to link to the library when it is referenced from inside a function.
Here is some sample code:
#include <windows.h>
#include <EXPINTFC.H>
int FAR PASCAL _export 4GL_DLL(char* InputParm)
{
VendorFunction(InputParm, 0);
return 0;
}
In this sample, 4GL_DLL is my "wrapper" and VendorFunction is the function provided in the library from the vendor.
Thanks.
Tom
It seems that the compiler does not know how to link to the library when it is referenced from inside a function.
Here is some sample code:
#include <windows.h>
#include <EXPINTFC.H>
int FAR PASCAL _export 4GL_DLL(char* InputParm)
{
VendorFunction(InputParm, 0);
return 0;
}
In this sample, 4GL_DLL is my "wrapper" and VendorFunction is the function provided in the library from the vendor.
Thanks.
Tom