Article View: borland.public.cppbuilder.database.ado
Article #3016TADOXXX in Win32 Service
From: Vistac
Date: Wed, 29 Jan 2003 16:52
Date: Wed, 29 Jan 2003 16:52
14 lines
1414 bytes
1414 bytes
Hi All, I have some problem when I try to implement some ADO in Win32 Service. I need to write a application run as win32 service, and this service need to read and write some data in my database server. but when I try to active TADOConnection connection in TSevice OnStart Event, there will have some problem occour, the exception message like "CoInitialize not run ...", Can someone give me a sample code to teach me how to use the TADOXXX in TService. Thanks. Vistac Wu
Technical Details
Message-ID:
<3e3806d9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,da8c0e778a45fde0,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-01-29 09:08:11 PST Reply-To: "Vistac" <vistac@ms10.hinet.net> From: "Vistac" <vistac@ms10.hinet.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: TADOXXX in Win32 Service Date: Thu, 30 Jan 2003 00:52:38 +0800 Lines: 16 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: 211.75.138.87 Message-ID: <3e3806d9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1043859161 211.75.138.87 (29 Jan 2003 08:52:41 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail