Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Internet Explorer是 Automation server嗎?

0 views
Skip to first unread message

躍上海面的心情

unread,
Jan 4, 2001, 12:39:34 AM1/4/01
to
Dear all:

我一直無法成功連接Internet Explorer,我是用 C++ Builder,
程式碼如下

CLSID clsid;
CLSIDFromProgID(L"InternetExplorer.Application", &clsid);
IUnknown *pUnk = NULL;
IDispatch *pDisp = NULL;
HRESULT hr = GetActiveObject(clsid, NULL, (IUnknown**)&pUnk);

正確的執行結果hr的值應該是0,可是我試驗的結果等於是小於零,
假如是用在 Word,Excel卻沒問題,有人知道為什麼嗎?
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

0 new messages