X
xinyulyg
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么一执行,就总是提示“类没有注册”。怎么注册类啊?
有关代码如下:
uses SHDocVw;
......
var
ShellWindow: IShellwindows;
i:integer;
web:IWebBrowser2;
begin
shellwindow:= CoShellWindows.Create;//执行到这里就有问题,提示“类没有注册”
for i:=0 to shellwindow.Count-1 do
begin
Web:=shellwindow.Item(i) as IWebbrowser2;
Web.xxx
end;
end;
有关代码如下:
uses SHDocVw;
......
var
ShellWindow: IShellwindows;
i:integer;
web:IWebBrowser2;
begin
shellwindow:= CoShellWindows.Create;//执行到这里就有问题,提示“类没有注册”
for i:=0 to shellwindow.Count-1 do
begin
Web:=shellwindow.Item(i) as IWebbrowser2;
Web.xxx
end;
end;