c++ builder vcl库函数(类型转换)(c + + builder vcl库函数 (类型转换)).docVIP

  • 12
  • 0
  • 约1.43万字
  • 约 21页
  • 2017-07-24 发布于河南
  • 举报

c++ builder vcl库函数(类型转换)(c + + builder vcl库函数 (类型转换)).doc

cbuildervcl库函数(类型转换)(cbuildervcl库函数(类型转换))

c++ builder vcl库函数(类型转换)(c + + builder vcl库函数 (类型转换)) C++ Builder VCL库函数简介 2002-07-05····C++ Builder资源中心 1 2 3下一页 一。Borland C++ Builder VCL的内存管理函数 1。allocmem 在队中分配指定字节的内存块,并将分配的每一个字节初始化为函数原型如下0: void * __fastcall allocmem(基本尺寸); 2。sysfreemem 释放所指定的内存块。函数原型如下: 国际__fastcall sysfreemem(void * P); 三.sysreallocmem 要求重新分配参数所指定的内存函数原型如下大小: void * __fastcall sysreallocmem(void * P,int的大小); 二。Borland C++ Builder VCL的文件操作函数 1。打开文件 打开指定的文件,如果返回为正数,表示操作成功,返回值为文件句柄:如果返回值为- 1,表示操作失败,函数原型如下: __fastcall(const int文件系统:文件名:AnsiString,中断方式); 2。创建文件 以指定的文件名称创建一个新的文件,如果返回为正数,表示操作成功,返回值为文件句柄,如果返回值为- 1,表示操作失败。函数原型如下: __fastcall(const int创建文件系统:文件名:AnsiString); 三.些 从文件中读取指定字节的数据到缓冲区中,函数返回实际读取的字节数,函数原型如下; 国际__fastcall些(int处理,无效的缓冲,int数); 4。写入文件 将缓冲区的数据写入到指定的文件的当前位置中去如果操作成功,函数返回实际写入的字节数,如果返回为- 1,则表示操作产生错误,函数原型如下: 国际__fastcall写文件(int处理,const void *缓冲数组的个数); 5。文件内容查找 调整文件指针到新的位置,如果操作成功,则返回新的文件位置,如果操作失败,则函数返回- 1,函数原型如下: 国际__fastcall文件内容查找(int处理,int offset,int的起源); 6。关闭文件 关闭指定的文件,函数原型如下: 无效__fastcall FileClose(int处理); 7。fileage 返回指定文件的时间标签,如果操作失败,则返回- 1,函数原型如下: fileage(const int __fastcall系统::AnsiString文件名); 8。否存在 用于测试指定的文件是否存在,如果存在返回真,否则返回假,函数原型如下: 布尔__fastcall FileExists(const系统::AnsiString文件名); 9。 FileGetDate Returns the DOS time label of the specified file. If the operation fails, it returns to -1, and the function prototype is as follows: Int __fastcall FileGetDate (int Handle); 10.FileSetDate Change the DOS time label of the specified file. If the operation succeeds, return 0. Otherwise, the error code is returned. The function prototype is as follows: Int, __fastcall, FileSetDate (int, Handle, int, Age); 11.FileGetAttr Returns the property of the specified file. If the operation fails, the function returns -1, and the function prototype is as follows; Int __fastcall FileGetAttr (const System:: AnsiString, FileName); 12.FileSetAttr Change the property parameters of the specified file. If the operation succeeds, return 0. The function prototype is as follows; Int __fastcall FileSetAttr (con

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档