🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1977

Re: Creating MS Access Database (revisited)

#1977
From: Simon Elliott
Date: Thu, 08 Jan 2004 20:23
23 lines
1612 bytes
Viatcheslav V. Vassiliev <support@oledbdirect.com> writes
>You may also need to add
>
>#include <comobj.hpp>
>
>namespace System
>{
> void __fastcall CheckSafecallResult(HRESULT hr)
> {
>  OleCheck(hr);
> }
>}

What does the above do?

>CoInitialize()/CoUninitialize() - do not call them, just include ComObj
>unit. They are needed only in dlls.

I've found that when running ADO in a separate thread, or in a console
mode program, an exception is thrown if CoInitialize is not called. 
-- 
Simon Elliott
http://www.ctsn.co.uk/
Technical Details
Message-ID: <zPKJWAAuwb$$IwSU@courtlands.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!courtlands.demon.co.uk!simon
References: <DlNlsBA9AB8$Iwut@courtlands.demon.co.uk> <3ffd3ee0@newsgroups.borland.com> <3ffd7a14@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,1386b963f53820e2
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-01-08 12:32:32 PST
Message-ID: <zPKJWAAuwb$$IwSU@courtlands.demon.co.uk>
Date: Thu, 8 Jan 2004 20:23:10 +0000
From: Simon Elliott <simon@nospam.demon.co.uk>
Reply-To: Simon Elliott <news@nospam.demon.co.uk>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Creating MS Access Database (revisited)
References: <DlNlsBA9AB8$Iwut@courtlands.demon.co.uk>
 <3ffd3ee0@newsgroups.borland.com> <3ffd7a14@newsgroups.borland.com>
Lines: 29
Organization: Courtlands Technical Services
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 4.02 U <aLIvuQCpEWZ0Tu7eytpxRhrSSE>
NNTP-Posting-Host: 158.152.154.121
X-Trace: newsgroups.borland.com 1073593405 158.152.154.121 (8 Jan 2004 12:23:25 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!courtlands.demon.co.uk!simon