convert.h
来自「SERCOSII卡驱动,通过该驱动程序可以在windowXp与RTX环境下运行自」· C头文件 代码 · 共 61 行
H
61 行
// diese Klasse konvertiert die Eingaben in g黮tige Parameter
// wurde aus SXNAX SW portiert
// wird nur wo n鰐ig beschrieben
#ifndef CONVERT_H
#define CONVERT_H
// damit es l鋟ft:
#include <windows.h>
// strcpy etc.
#include <string.h>
// itoa etc.
#include <stdlib.h>
#include <stdio.h>
// ULONG_MAX
#include <limits.h>
// ERANGE etc.
#include <errno.h> /* Definiert Fehlercodes fuer Library-Funkt. */
// f黵 isdigit:
#include <ctype.h>
// Struktur CHECK_ARGS
#include "..\include\SoftSercansdefs.h"
// WR: please define _EXPORTING in projektoptions of DLL
// as preprocessor
#ifdef _EXPORTING
// from DLL
#define CLASS_DECLSPEC __declspec(dllexport)
#else
// from Delphi/C++ application
#define CLASS_DECLSPEC __declspec(dllimport)
#endif
class CLASS_DECLSPEC CConvert
{
public:
// members
unsigned short dat2asc( char* chDest,
CHECK_ARGS* pSConvert,
unsigned char ucStringLength);
unsigned short asc2dat( CHECK_ARGS* pSConvert,
char* chSource,
unsigned char* ucParameterTyp);
// nur lokal!
private:
long string2long( const char* str, char** ptr,
long base, unsigned long* error );
unsigned long string2ulong( const char* str, char** ptr,
long base, unsigned long* error );
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?