Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> OpenDatabase will fail
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.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Oct 26 1999 - 21:08:10 CDT