用winexec是打开可执行文件,好像不行。
用SHELLEXECUTEINFO的话再哪声明,怎么找不到它

解决方案 »

  1.   

    uses
    shellapi
    function ShellExecute; external shell32 name 'ShellExecuteA';
      

  2.   

    uses
    shellapi;
    ……
    ShellExecute //是api函数  在shellapi单元
      

  3.   

    没成功,不知API: PromptDataSource()怎么用
      

  4.   

    var
      ConnStr: string;begin
      ConnStr:= PropmtDataSource(Self.Handle, '');  //''是从udl文件读出的字串
    end;
      

  5.   

    ShellExecute(self.Handle,'open',PChar('test.udl'),nil,nil,SW_SHOW)
      

  6.   

    PropmtDataSource 摆渡和 股沟  居然找不到?