Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

How to start or Initialize a DLL file at app. start?

Hi all,

I'm using Delphi 7.0 to build a database application using Oracle
and use a Direct Oracle Access 4.0.1.0 (DOA) component to connect to the database.

in a desgin time I set value to OCIDLL=c:\oracle\ora81\bin\oci.dll in the Parameters to complete the connection.

but when using application EXE file in another machine the connection not complete whrere as i can connect to the database from SQL*plus from the same new machine.

So, how can I start or Initialize OCIDLL with it's value in the run time.

Thanks,
khalid.
0
Qosai_DBA
Asked:
Qosai_DBA
  • 2
2 Solutions
 
kretzschmarCommented:
just left out this parameter,
doa will then retrieve self,
which dll is needed by evaluating the registry
(usual the oracle_home key)

meikl ;-)

0
 
DeerBearCommented:
Hi,

DOA will do it all by itself.

HTH,

Andrew
0
 
Qosai_DBAAuthor Commented:
Hi kretzschmar,
Hi DeerBear,

OCIDLL must be Initialized to connect either in the desgin time or in the run time.

if it is not initialize in the desgin time the connection don't Complete therefore i set
OCIDLL=c:\oracle\ora81\bin\oci.dll as a parameter

also in the run time it must be initailized to connect or an error message occure 'TNS can't resolve service name'.

thanks
khalid.
0
 
Qosai_DBAAuthor Commented:
Hi kretzschmar,
Hi DeerBear,

I got distracted because useing a Trial version of DOA that is not working out of Delphi. ;-)

Regards,
Khalid.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now