- 12
- 0
- 约1.43万字
- 约 21页
- 2017-07-24 发布于河南
- 举报
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
您可能关注的文档
- fpga ddr2读写控制器时序代码(FPGA DDR2 read and write controller timing code).doc
- fp机械轴承hhe(FP mechanical bearing HHE).doc
- from 天涯 今天在食堂遇到了高手...(From Tianya meets a superior in the cafeteria today...).doc
- frontpage网页制作作业题目(Frontpage web page production exercises).doc
- frontpage 新增14道题(Frontpage added 14 questions).doc
- fttb+lan宽带小区的几种布线设计方法(Several routing design methods for fttb+lan broadband cell).doc
- frountpage(frountpage).doc
- ft社评普京的赌博(FT editorial Putin gamble).doc
- freeglut安装(freeglut安装).doc
- fttblan宽带小区的几种布线设计方法(Several routing design methods for fttblan broadband cell).doc
- 25-26学年政治(部编版)选择性必修第二册课件:第1单元 周清1 民法中的人身权及财产权.pptx
- 25-26学年政治(部编版)选择性必修第二册课件:1.4.1 权利保障 于法有据.pptx
- 2025北京丰台区高二(上)期中地理(A卷)含答案.docx
- 2025北京三帆中学初三(上)开学考英语试题含答案.docx
- 2025北京一零一中初三9月月考语文试题含答案.docx
- 2025北京海淀区初三(上)期中道法试题含答案.docx
- 2025北京丰台区高一(上)期中政治(A卷)含答案.docx
- 25-26学年政治统编版必修4课件:3.3 唯物辩证法的实质与核心.pptx
- 25-26学年政治统编版必修4课件:7.2 正确认识中华传统文化.pptx
- 湖北省部分高中2026届高三上学期二模联考 历史试卷.docx
最近下载
- J B-T 8577-2015 内燃机水散热器技术条件.pdf VIP
- 王明新数学物理方程习题解答.pdf VIP
- 云网融合的多云网络架构.pdf VIP
- 20220301电缆行业SAP解决方案.pptx VIP
- 【精选】0深圳生态规划0深圳生态规划.pdf VIP
- KA_T 22.1-2024 矿山隐蔽致灾因素普查规范 第1部分:总则.docx VIP
- GDBD-2025-12 输变电工程环保水保监测与验收费用计列指导意见.pdf VIP
- 手把手教你做应付票据审计底稿.pdf VIP
- 《商务英语:职场进阶》教师用书 完整版.pdf VIP
- 深度:短期看新车型销量及FSD,中期看能源,长期看Optimus.pdf VIP
原创力文档

文档评论(0)