就像微软的帮助文件一样,所有的链接和图片等都在同一个文件中保存,还有一些电子书等,请问他们是如何实现的,用的是什么格式或原理?
解决方案 »
- 在vc中使用blitz的问题,求解
- 在VC中如何不连接数据库创建一个RecordSet?
- 那位大虾有《深入浅处MFC》配套光盘中的第一章中线程的那个源程序,能给我吗?
- 哪种报表控件比较好用?如何用VC编程检测本机上的SQL Server实例?
- 增样将ActiveX组件(即生成的DLL文件)生成.msi文件,高分回赠!!!!!
- 为什么我提的问题的页面打不开
- vs2005 调试一个组件单步速度执行很慢,是什么原因阿?
- 请教:如何设置控件的属性为可见和不可见
- 诸位帮忙看看这段代码有什么毛病?
- 向大家请教一个oracle问题!
- jennyvenus(JennyVenus)看进来
- VC1.0下编的程序如何编译?
The CreateFile function creates or opens the following objects and returns a handle that can be used to access the object: HANDLE CreateFile(
LPCTSTR lpFileName, // file name
DWORD dwDesiredAccess, // access mode
DWORD dwShareMode, // share mode
LPSECURITY_ATTRIBUTES lpSecurityAttributes, // SD
DWORD dwCreationDisposition, // how to create
DWORD dwFlagsAndAttributes, // file attributes
HANDLE hTemplateFile // handle to template file
);WriteFile
The WriteFile function writes data to a file and is designed for both synchronous and asynchronous operation. The function starts writing data to the file at the position indicated by the file pointer. After the write operation has been completed, the file pointer is adjusted by the number of bytes actually written, except when the file is opened with FILE_FLAG_OVERLAPPED. If the file handle was created for overlapped input and output (I/O), the application must adjust the position of the file pointer after the write operation is finished. BOOL WriteFile(
HANDLE hFile, // handle to file
LPCVOID lpBuffer, // data buffer
DWORD nNumberOfBytesToWrite, // number of bytes to write
LPDWORD lpNumberOfBytesWritten, // number of bytes written
LPOVERLAPPED lpOverlapped // overlapped buffer
);
ReadFile
The ReadFile function reads data from a file, starting at the position indicated by the file pointer. After the read operation has been completed, the file pointer is adjusted by the number of bytes actually read, unless the file handle is created with the overlapped attribute. If the file handle is created for overlapped input and output (I/O), the application must adjust the position of the file pointer after the read operation. This function is designed for both synchronous and asynchronous operation. The ReadFileEx function is designed solely for asynchronous operation. It lets an application perform other processing during a file read operation.BOOL ReadFile(
HANDLE hFile, // handle to file
LPVOID lpBuffer, // data buffer
DWORD nNumberOfBytesToRead, // number of bytes to read
LPDWORD lpNumberOfBytesRead, // number of bytes read
LPOVERLAPPED lpOverlapped // overlapped buffer
);