🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by VVV Wed, 19 Apr 2006 23:29
database connection for consol application
#453
Author: 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. 
Re: database connection for consol application
#454
Author: 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. 
> 
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads