DLL problem.

i.senol

Member
Hi

I have written a well ORACLE8 application (test.exe) using the DOA3.3 and Borland C++ Builder4 Professional a few weeks ago. Now, I need it compiled in DLL format.

Although I compile a DLL (test.dll) without errors, I cannot call it in another program (try.exe) without any error. When I include "test.dll" in try.exe application (in its *.lib form) and make the application, I got lots of errors that I did not take before. I must have missed some steps.

How can I build a DLL which contains components from DOA ?

Regards,

ersin
 
Okay,

I have solved the issue.

The problem was due to the Compile|Options|Directories' settings.
When I tidy the mass in there, it worked all along.

Thank you for nothing.
 
I have a problem with DLLs as well when
I try to pass a session to a dll. I get
the error "Not logged on" even if I tested
TCheckConnectionResult r = OracleSession1->CheckConnection(false);

Which returned ccOK. Any ideas?

Originally posted by ersin:
Okay,

I have solved the issue.

The problem was due to the Compile|Options|Directories' settings.
When I tidy the mass in there, it worked all along.

Thank you for nothing.
 
CheckConnection does not help in this situation, because it will determine if a connected (!) session is still alive. In your situation, the Connected property will be False. You must first call LogOn, or set Connected to True, or call Share for the session of the host application.

------------------
Marco Kalter
Allround Automations
 
Back
Top