D
daniel77
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.CreateShortcut(lpszExe, lpszLnk: string);
var
psl:IShellLink;
ppf:IPersistFile;
hr:HRESULT;
begin
CoInitialize(nil);
try
psl:=nil;
ppf:=nil;
hr:=CoCreateInstance(
CLSID_ShellLink,
NULL,
CLSCTX_INPROC_SERVER,
IID_IShellLink,
psl);
程序执行到这里,就进行不下去了,报错:Undeclared identifier:'IID_IShellLink'
请教需要引用哪个单元呢?
var
psl:IShellLink;
ppf:IPersistFile;
hr:HRESULT;
begin
CoInitialize(nil);
try
psl:=nil;
ppf:=nil;
hr:=CoCreateInstance(
CLSID_ShellLink,
NULL,
CLSCTX_INPROC_SERVER,
IID_IShellLink,
psl);
程序执行到这里,就进行不下去了,报错:Undeclared identifier:'IID_IShellLink'
请教需要引用哪个单元呢?