Article View: borland.public.cppbuilder.nativeapi
Article #10190Re: Weird api function behavior question...Help
From: Remy Lebeau (TeamB)
Date: Mon, 03 May 2004 03:06
Date: Mon, 03 May 2004 03:06
25 lines
1685 bytes
1685 bytes
"Martin C" <martincplus@hotmail.com> wrote in message
news:40959dea@newsgroups.borland.com...
> CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
When the code fails, what is the actual return value of CoInitializeEx()?
Also, when initialing a thread for Apartment threading, you can use
CoInitialize() instead of CoInitializeEx():
CoInitializeEx(NULL);
> result = CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_INPROC,
> IID_IUrlHistoryStg2, reinterpret_cast<void**>(&UrlHistoryStage2_ptr));
When the code fails, what is the actual return value of CoCreateInstance()?
> { result = UrlHistoryStage2_ptr->ClearHistory();
When the code fails, what is the actual return value of ClearHistory()?
Does your code even reach that far to begin with?
Gambit
Technical Details
Message-ID:
<4095b89b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40959dea@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,db8edbdaa454f2dc X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40959dea@newsgroups.borland.com> Subject: Re: Weird api function behavior question...Help Date: Sun, 2 May 2004 20:06:36 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <4095b89b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1083553947 67.22.138.253 (2 May 2004 20:12:27 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail