Explicit DLL Linking
DLL Interfacing
E1852B Operating Guide
95
if (fname == NULL) \
{ \
ShowWin32Error(#fname " not found in " E1852B_DLL_NAME); \
return FALSE; \
}
/
******************************************************************
* Enumerations/Type definitions/Structs
**************************************************************
/
/
******************************************************************
* Global variables/const
**************************************************************
/
/
******************************************************************
* Local variables/const
**************************************************************
/
static HINSTANCE DllHandle;
char ScpiStr[200];
char ResponseStr[200]
/
******************************************************************
* Local Function prototypes
**************************************************************
/
/
******************************************************************
* Implementation
******************************************************************
/
/
******************************************************************
* DESCRIPTION:
******************************************************************
/
boolean LoadDll(void)
{
// First load the DLL library
if (DllHandle == NULL)
{
DllHandle = LoadLibrary(E1852B_DLL_NAME);
if (DllHandle == NULL)
E1852-90007.book Page 95 Monday, February 4, 2002 2:09 PM
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com