错误! if copyfile('c:\123.ndb','d:\456.mdb',true) then showmessage('ok');编译时就错 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Delphi里面有在个函数吗?我怎么没见过:copyfile uses 段包含了Windows没有?我这里可以通过编译! string 转 pchar怎么转? 刚才找到copyfile的定义unit FmxUtils;procedure CopyFile(const FileName, DestName: string);只有两个参数! string 转 pchars:string;pc:pchar;pc:=pchar(s); copyfile()应该有三个参数!比如copyfile('d:\aa.txt','e:\aa.txt',true);我想你的问题应该没有错啊,我的能够编译!! 我知道我的问题了copyfile('d:\aa.txt','e:\aa.txt',true);是没有错误的但我是想用变量例如:var s1,s2 : pchar;s1:='c:\aa.txt';s2:='d:\bb.txt';copyfile(s1,s2,true);但为什么不行呢? 如何实现按回车键dbgrideh的checkbox打勾 求sql语句的写法 edit.txt='123456',现在我在'4'的后面输入'9'时,它却成了'1234956',而我想要的是'123496',有什么办法 怎样获取文件夹 加密后的内容如何进行查询? 我想用程序控制数码相机照相不知道如何编写或有没有其它控件? 当我鼠标离开Form1的时候就让Form1自动关闭 问关于接口的问题 帮帮我啊!! 请问:在一台计算机上如何调试网络数据库程序 有哪位大侠知道‘带统计显示功能的加强dbgrid‘控件下载吗? 能否使用浏览器浏览统计图?
我这里可以通过编译!
怎么转?
unit FmxUtils;procedure CopyFile(const FileName, DestName: string);
只有两个参数!
pc:pchar;pc:=pchar(s);
copyfile('d:\aa.txt','e:\aa.txt',true);
我想你的问题应该没有错啊,我的能够编译!!
copyfile('d:\aa.txt','e:\aa.txt',true);
是没有错误的
但我是想用变量
例如:
var s1,s2 : pchar;
s1:='c:\aa.txt';
s2:='d:\bb.txt';
copyfile(s1,s2,true);
但为什么不行呢?