使用winexec执行大智慧程序时出错解决思路
使用winexec执行大智慧程序时出错
大智慧股票程序放在了internet文件夹中,我自己写的程序 run.exe 是在大智慧程序的上一层, 我使用winexec('internet\hypmain.exe',WS_ACTIVECAPTION); 但运行时出现错误提示""
但我将我自己写的程序放在internet 文件夹中,然后使用winexec('hypmain.exe',WS_ACTIVECAPTION); 然后大智慧程序就执行正常,,
请问如何解决在上一层运行程序出错的问题..
谢谢
------解决方案--------------------
你自己写的Run.exe跟那个internet文件夹在同一目录下?
我测试没问题啊
------解决方案--------------------
先用
SetCurrentDirectory('c:\internet');
再用
winexec('hypmain.exe',WS_ACTIVECAPTION);
大智慧股票程序放在了internet文件夹中,我自己写的程序 run.exe 是在大智慧程序的上一层, 我使用winexec('internet\hypmain.exe',WS_ACTIVECAPTION); 但运行时出现错误提示""
但我将我自己写的程序放在internet 文件夹中,然后使用winexec('hypmain.exe',WS_ACTIVECAPTION); 然后大智慧程序就执行正常,,
请问如何解决在上一层运行程序出错的问题..
谢谢
------解决方案--------------------
你自己写的Run.exe跟那个internet文件夹在同一目录下?
我测试没问题啊
------解决方案--------------------
先用
SetCurrentDirectory('c:\internet');
再用
winexec('hypmain.exe',WS_ACTIVECAPTION);