/***********************************************************************/
/*          API-GPIB(98/PC)W95,NT                 Header  File         */
/*                                                File Name SUBCLASS.H */
/***********************************************************************/

#ifndef __SUBFUNC_H__
#define __SUBFUNC_H__

// ************************************************************* [Check֐] ***
long CheckRet(CString Func, long Ret, CString *csBuf);

//************************************************************* [ׂ֐] ***
int Square(int x, int y);

//******************************************************* [ -> 16i] ***
DWORD chr2hex(char *ch);

//************************************************************* [֐] ***
long GpibInit(CString *TextRet);

//************************************************************* [GpTalk֐] ***
long GpibPrint(long DevAddr, CString TextRet);

//*********************************************************** [GpListen֐] ***
long GpibInput(long DevAddr, CString *TextRet);

//********************************************************* [oCiMp] ***
long GpibInputB(long DevAddr, BYTE *IntData);

//******************************************************* [R}hM֐] ***
long GpibCommand(CString *TextRet);

//*************************************************************** [I֐] ***
void GpibExit(void);

//************************************************************ [WaitOPC֐] ***
void WaitOPC(long Dev);

//***************************************************** [𐔎ɕϊ] ***
void Str2Num(char *str, DWORD str_len, int *num, DWORD num_len);

//*********************************************************** [Ot`] ***
// QŃOtpsN`[_CAOgpĂ܂B
void DrawGraph(HWND hDlg, DWORD Picture, int *num, DWORD num_len, int min, int max);

//********************************************************** *[wv\] ***
void ShowHelp(HWND hDlg,LPCTSTR szTopic);

#endif
