p:=ExtractFilePath(application.ExeName);
usepath:=Copy(p,1,3);
usepath:=usepath+'分析化验-原始\'+ form1.DBGrid1.DataSource.DataSet.FieldByName('文件原位置').AsString;
u:=string(usepath);
ShellExecute(Handle,'open','Explorer.exe',u,nil,1);
最后一句报错:
Incompatible types:'String and PAnsiChar'我该怎么改?请指点!!
usepath:=Copy(p,1,3);
usepath:=usepath+'分析化验-原始\'+ form1.DBGrid1.DataSource.DataSet.FieldByName('文件原位置').AsString;
u:=string(usepath);
ShellExecute(Handle,'open','Explorer.exe',u,nil,1);
最后一句报错:
Incompatible types:'String and PAnsiChar'我该怎么改?请指点!!
解决方案 »
- 多线程为什么出错?
- 最简单的问题!
- 高手请指教 delphi WebBrowser.Document 使用问题
- 报表fastreport中一直没解决掉的问题,急
- 简单问题:DateTimePicker1 中的值 赋予一个 string
- 源代码解释??急用呀??
- 一个关于自定义类的问题!请高手指点.property Items[Index: integer]:TMyClass read GetItems write SetItems;报错??????为什么!
- 怎样在另一个程序的 EDIT 填上文本?请帮助
- 强烈建议开个新板块, 专门讲移动开发的
- 有谁碰到这样的问题?
- 让exe支持命令运行的delphi语法,求完整代码 谢谢
- !!!!关于string转换的问题
亮剑很负责任吗