⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 convert.h

📁 SERCOSII卡驱动,通过该驱动程序可以在windowXp与RTX环境下运行自己编写的数控软件实现对数控设备的驱动。
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -