🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Question on using class TADOTable

#4449
From: Big Stew
Date: Wed, 02 Jan 2002 13:41
25 lines
1459 bytes
Try this instead;

try
    {
    CoInitialize(NULL);

    MainFrm->ADOTable1->Active=true;
    MainFrm->ADOTable1->Last();
    MainFrm->ADOTable1->Append();
    MainFrm->ADOTable1->FieldValues["ID"]=id+1;
    MainFrm->ADOTable1->FieldValues["Name"]=_Name;
    MainFrm->ADOTable1->Post();
    MainFrm->ADOTable1->Active=false;
    }
__finally
    {
    CoUninitialize();
    }


> RunTime Error:
> --------------
> Project Project.exe raised exception class EOleException
> with message 'CoInitialize has not been called'.
> Process stopped. Use Step or Run to continue.
Technical Details
Message-ID: <3c330f06_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!KWeb!dnews
References: <3c32ac06_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,19d7752252351ccc,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-01-02 05:52:13 PST
From: "Big Stew" <Big_Stew@talk21.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3c32ac06_2@dnews>
Subject: Re: Question on using class TADOTable
Date: Wed, 2 Jan 2002 13:41:50 -0000
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.19.90.97
Message-ID: <3c330f06_2@dnews>
X-Trace: dnews 1009979142 212.19.90.97 (2 Jan 2002 05:45:42 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!KWeb!dnews