|
해당 어플리케이션에서 DLL File을 어떻게 사용하나요?
windecl.h의 내용은 다음과 같습니다
#ifdef _WINDOWS
#ifndef _WIN32 /* if (WINVER < 0x0400) */
#define GPIBAPI _far _pascal
#else
#define GPIBAPI __stdcall
#endif
#else
#define GPIBAPI __stdcall
#endif
/* Global status variables */
#if defined (__cplusplus)
extern "C" {
#endif
/* Global status variables */
#ifdef _WIN32
__declspec( dllimport ) int ibsta;
__declspec( dllimport ) int iberr;
__declspec( dllimport ) int ibcnt;
__declspec( dllimport ) long ibcntl;
#else
extern int ibsta;
extern int iberr;
extern int ibcnt;
extern long ibcntl;
#endif
#if defined (__cplusplus)
}
#endif
/* GPIB function prototypes */
#if defined (__cplusplus)
extern "C" {
#endif
int GPIBAPI ibask(int board, int item, int *value);
(__stdcall *Callback)(),void *CBRefData);
VOID GPIBAPI Send(int board, short listener, void FAR *databuf, long datacnt, int
#if defined (__cplusplus)
}
#endif
DLL File name은 GPIB-32.dll입니다
Application에서 Send함수를 사용하고자 하면 어떻게 해야합니까?
|