Article View: borland.public.cppbuilder.database.ado
Article #4446Question about class TADOTable (Run Time Exception)
From: Joe Lam
Date: Wed, 02 Jan 2002 06:44
Date: Wed, 02 Jan 2002 06:44
28 lines
1860 bytes
1860 bytes
Hi, I am using BC++ 5.0 and developing some application with Maces DB, but I faced the following error during my development: Runtime Error: -------------- Project Project.exe raised exception class EOleException with message 'CoInitialize has not been called'. Process stopped. Use Step or Run to continue. Error occurs when running the following codes: ---------------------------------------------- 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; ----------------------------------------------- I used ADOTable to connection to a MSAccess database, it works properly several months before, but it causes this run time error. Can anyone tell why I got this error message? Regards, joe_kplam@hkem.com
Technical Details
Message-ID:
<3c32ab35_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,ec16423596252d1a,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-01-01 22:44:18 PST Reply-To: "Joe Lam" <joe_kplam@hkem.com> From: "Joe Lam" <joe_kplam@hkem.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Question about class TADOTable (Run Time Exception) Date: Wed, 2 Jan 2002 14:44:39 +0800 Lines: 31 Organization: HKUST 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: 143.89.20.58 Message-ID: <3c32ab35_1@dnews> X-Trace: dnews 1009953589 143.89.20.58 (1 Jan 2002 22:39:49 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews