如何用库函数或者API函数打开某个目录下的指定文件
盛世小码哥 2012-08-29 09:51:18 小弟想试用库函数或API函数打开指定目录下的某一个文件,使用过FileOpen函数不行,后来在书本中找到fopen这个函数,使用过程中还是出现错误,请哪位高手指点两招。
代码:
file *op;
String d;
d=GetCurrentDir()+"\\BE_Setup"+"Setup.exe";
op=fopen(d,"r+");
错误显示:
[C++ Error] Form.cpp(39): E2268 Call to undefined function 'fopen'
[C++ Error] Form.cpp(39): E2034 Cannot convert 'int' to 'void * *'