🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: database connection for consol application

#454
From: Mike Knoblock
Date: Thu, 20 Apr 2006 01:48
31 lines
1821 bytes
Is your TDatabase pointer actually pointing to anything?

TDatabase *sin = new TDatabase;

sin->Exclusive = false;

etc.


VVV wrote:
> 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: <4446e855$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4446c7be@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,19ee76292acdfb2a
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 19 Apr 2006 18:48:25 -0700
From: Mike Knoblock <mknoblock@gmail.com>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: database connection for consol application
References: <4446c7be@newsgroups.borland.com>
In-Reply-To: <4446c7be@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.84.230.72
Message-ID: <4446e855$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145497685 71.84.230.72 (19 Apr 2006 18:48:05 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail