📄 readfile.h
字号:
//*-----------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*-----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*-----------------------------------------------------------------------------
//* File Name : ReadFile.h
//* Object : Read Binary file
//*
//* 1.0 02/05/99 JPP : Creation
//*-----------------------------------------------------------------------------
#ifndef ReadFile_h
#define ReadFile_h
#include <windows.h>
typedef struct FileName
{
OPENFILENAME ofn; //* Windows file description
long size; //* Size of file
HANDLE hBin; //* Handle to memory buffer
HANDLE hf; //* file handle
unsigned char data[10];
char filter [100]; //* filter *.bin
char File[256]; //* file with path
char TemplateName[256];
char InitialDir[256];
char FileTitle[256];
char Title[256];
char DefExt[256];
}FileName;
extern HLOCAL readBinFile(OPENFILENAME ofn);
extern void openBinaryFile(HWND hwnd);
extern void printFileInfo ( char *message,int * len);
extern void closeBinFile(void);
extern long readDataFile(char * buffer,long size);
extern BOOL openBinFile(void);
extern HLOCAL writeBinaryFile(unsigned char padding,long file_size,BOOL type);
#endif /* ReadFile_h */
//* End of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -