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

📄 afxhead.h

📁 C51访问西门子MC55做的透传模块, 支持远程注册和配置, 仅支持TCP协议, 其他请参考MC55说明书.
💻 H
字号:
#ifndef _AfxHead_H__
#define _AfxHead_H__
#include <io.h>
#include <stdio.h>
//#include "AfxHead.h"
//


#define ULongInt(s)   (*(unsigned long int *)(s))
#define UShortInt(s)  (*(unsigned short int *)(s))
#define LongInt(s)    (*(long int *)(s))
#define ShortInt(s)   (*(signed short int *)(s))
#define ULongInt(s)   (*(unsigned long int *)(s))
#define UShortInt(s)  (*(unsigned short int *)(s))
#define LongInt(s)    (*(long int *)(s))
#define ShortInt(s)   (*(signed short int *)(s))


#define DbsFileName "\\MeterDBS.DBS"
#define SwpFileName "\\MeterDBS.SWP"
#define IniFileName "\\Meter.INI"

//清楚文件缓冲期
inline void flush(FILE *stream)
{
   fflush(stream);
   close(dup(fileno(stream)));
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -