🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

database connection for consol application

#453
From: VVV
Date: Wed, 19 Apr 2006 23:29
19 lines
1672 bytes
I must connect to an oracle database in a consol application :
this is may code
                   TDatabase  *sin;
                    .
                    .
                   sin->Exclusive = false;
                   sin->HandleShared=false;
                   sin->KeepConnection=true;
                   sin->ReadOnly=false;
                   sin->DatabaseName="local";
                   sin->LoginPrompt=false;
                   sin->Params->Values["User_Name"] = "link";
                   sin->Params->Values["Password"] =  "clear";
                   sin->LoginPrompt=false;
                   sin->Connected=true;

  but on the first I receve an access violation messagge error.

 Help me please. 
Technical Details
Message-ID: <4446c7be@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,19ee76292acdfb2a,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "VVV" <the.consultant@tiscali.net>
From: "VVV" <the.consultant@tiscali.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: database connection for consol application
Date: Thu, 20 Apr 2006 01:29:03 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 87.6.229.161
Message-ID: <4446c7be@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145489342 87.6.229.161 (19 Apr 2006 16:29:02 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail