🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to use TADOQuery in TIdTCPserver OnExecute

#3341
From: roger wang
Date: Sat, 28 Sep 2002 10:52
26 lines
1382 bytes
CoInitialize(NULL);
 
   TADOConnection *conn=new TADOConnection(NULL);
   TADOQuery *query= new TADOQuery(NULL);

   conn->ConnectionString = connStr; //it is ok for Access 2000 database connect
   conn->ConnectionTimeout=15;
   conn->LoginPrompt=false;
   
   conn->Connected=true;  //here the program will waitting for ever,no error info

   query->Connection=conn;
   ....
   
   delete  conn;
   delete  query;
   
   CoUninitialize();


  
   What is the reason?

   I spent two days for this.Thank you in advance.

   Roger
Technical Details
Message-ID: <23c651fa.0209280252.770c92fb@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,f69f5bdae68aefbb,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-09-28 03:52:58 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: roger_wang@airzip.com.cn (roger wang)
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to use TADOQuery in TIdTCPserver OnExecute
Date: 28 Sep 2002 03:52:57 -0700
Organization: http://groups.google.com/
Lines: 26
Message-ID: <23c651fa.0209280252.770c92fb@posting.google.com>
NNTP-Posting-Host: 211.101.197.99
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1033210377 27198 127.0.0.1 (28 Sep 2002 10:52:57 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 28 Sep 2002 10:52:57 GMT