Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

what's wrong with OO4O and delphi

319250Apr 7 2003
I am trying usint OO4O to fetch the spatial data in delphi,but I can not use the opendatabase function.
here is the code

var
OO4OSession:variant;
OraDatabase:variant;

begin
OO4OSession:= CreateOLEObject('oracleInProcServer.XOraSession');
OraDatabase:=OO4OSession.OpenDatabase('ExampleDb','scott/tiger', 0);
end;

the code is from the help.the error says that the opendatabase member function is not find.
and when I trying to import type library of Oracle InProc Server 4.0 Type Library,when compile the unit,the error messages are like below
[Error] OracleInProcServer_TLB.pas(2548): Undeclared identifier: 'CreateDatabase'
[Error] OracleInProcServer_TLB.pas(2553): Undeclared identifier: 'OpenDatabase'
[Error] OracleInProcServer_TLB.pas(2573): Undeclared identifier: 'Open'
[Error] OracleInProcServer_TLB.pas(2578): Undeclared identifier: 'Close'
[Error] OracleInProcServer_TLB.pas(2706): Undeclared identifier: 'Name'
[Error] OracleInProcServer_TLB.pas(2712): Undeclared identifier: 'OpenDatabase'
[Error] OracleInProcServer_TLB.pas(2717): Undeclared identifier: 'Client'
[Fatal Error] dclusr50.dpk(41): Could not compile used unit '..\Imports\OracleInProcServer_TLB.pas'

Realy strange,can some one help me on this ,Thank u very much.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2003
Added on Apr 7 2003
0 comments
260 views