uses  shellapi
就是它

解决方案 »

  1.   

    有些函数的使用,必须在uses中引用相应的单元文件的,主要的api函数一般得uses shellapi 或windows
      

  2.   

    uses
      Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,Shellapi, StdCtrls, ExtCtrls, Menus;ShellApi包括了很多Api函数,在你的Unit的开始处的uses中添上就可
      

  3.   

    在uses里面加上shellapi这个单元,就像楼上的一样,然后就可以使用了,但是好像没有shellexec这个函数,只有shellexecute这个函数,其用法举例如下:
    shellexecute(form1.Handle,'open','notepad.exe','','',SW_MAXIMIZE)
    可以用来打开记事本,winexec的用法更简单,例如:
    winexec('notepad.exe',3)便可以打开记事本。
      

  4.   

    在uses中引用
    uses shellapi
      

  5.   

    你直接将shellapi加到interface下的uses后就可以了;
    interface
    uses
      ....,shellapi;
     type
     ...