Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> OpenDatabase will fail

OpenDatabase will fail

From: <yoden_at_hr.hm.rd.sanyo.co.jp>
Date: Wed, 27 Oct 1999 02:08:10 GMT
Message-ID: <7v5mqa$1no$1@nnrp1.deja.com>

I found that OpenDatabase method to fail under the following condition using Oracle Objects for OLE 2.3 on Oracle 8.05. Is this possible?

(1)VB app creates OraSession(=ObjA) and OraDatabase(=ObjB) objects
(2)ObjA.CreateObject("OracleInProcServer.XOraSession")
(3)ObjB.OpenDatabase(dbname,username & "/" & password, &H1&)
(4)Call "test" method from MyOCX.ocx.

   MyOCX links a dll that has only one method("test").    "test" method calls "test_cpp" in the dll.    The dll uses msvcrt.lib (i.e., compiled with _MT and _DLL options).

      #include <fcntl.h>
      extern __declspec(dllexport) void test_cpp()
      { _fmode = O_BINARY; }

(5)The second call to ObjB.OpenDatabase will fail.



Yoden, Naoyuki
Sanyo Electric Co.
Osaka Japan

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Oct 26 1999 - 21:08:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US