我的电脑怎么回事啊,请进来帮我。(50分)

北狼

Unregistered / Unconfirmed
GUEST, unregistred user!
我在窗体上放一个按钮,写如下事件:
shellexecute(handle,nil,pchar('C:/My do
cuments/my.txt'),nil,nil,sw_shownormal);
编译后运行,点击按钮没反映啊,请问是怎么回事啊。
 
shellexecute(handle,'open',pchar('C:/My do
cuments/my.txt'),nil,nil,sw_shownormal);
 
Use ShellAPI
 
同意楼上
 
同意khaki的写法
 

看看帮助,知道每个参数的含义再写程序。
shellexecute(handle,'open','notepad.exe',pchar('C:/My do
cuments/my.txt'),nil,sw_shownormal);
 
同意khaki的写法
 
是不是文件 C:/My do
cuments/my.txt 不存在呀?
 
顶部