关于createComObject 问题(100分)

H

hllu

Unregistered / Unconfirmed
GUEST, unregistred user!

诸位大虾,在下有一问题请教。
俺用 createcomobject(iss_shellwindows) 总说‘unregisted class', 但我的
registry里
的确有 iss_shellwindows 这个 guid, 不知道是何缘故?
主要是想得到已经在运行的IE的reference, 因为ie不在ROT 中。。
多谢指教

 
应该使用 CLSID_ShellWindows
 
被Pipi 抢了先
 
to pipi:

clsid_shellwindows is not defined in shdocvw_tlb.pas
here is it's defined TGUID
IIS_IShellWindows: TGUID = '{85CB6900-4D95-11CF-960C-0080C7F4EE85}';
CLASS_ShellWindows: TGUID = '{9BA05972-F6A8-11CF-A442-00A0C90A8F39}';

I find {85CB6900-4D95-11CF-960C-0080C7F4EE85} in my registry, but it still told me that 'unregistered class error'. so I change to

const ISS : TGUID = '{85CB6900-4D95-11CF-960C-0080C7F4EE85}';
sw:=CreateComObject(ISS) ;
still the same error.

or you can tell me in which file the CLSID_ShellWindows is defined?


 
CLASS_ShellWindows: TGUID = '{9BA05972-F6A8-11CF-A442-00A0C90A8F39}';
你应该用class_shellwindows
别的都不是
 
to hubdog:
same runtime error,
 
uses shdocvw;
var
Ashellwindows:Ishellwindows;
begin
AShellWindows:=CoShellWindows.create;
end;
如果还不行,重新装ie,最好是先装ie4,然后再装ie5
 
to hubdog:
你说的方法我以前已经试过了,不行。
IE5 我不想重装,因为是98SE自带的,我懒得去DOWN IE5

再等一天没人解决,我给各位分分。
 
多人接受答案了。
 
顶部