Re: user exits in Forms 6

From: DriftWood <drift_wood_at_my-deja.com>
Date: Tue, 05 Dec 2000 18:05:24 GMT
Message-ID: <90jaot$ek7$1_at_nnrp1.deja.com>


[Quoted] This may not be possible. A user exit (as you have noted) is able to share the connection context with forms (and thus transaction state). A mechanism to do this is provided for connecting code with the Precompilers (such as Pro*C) and within the scope of the call into the Pro*C code this will hold. Trying to call external 3rd party code (or even the Windows API) DIRECTLY FROM WITHIN FORMS is handled through the Foriegn Function Interface (Ora_FFI) which does NOT share the connection context.

My gut instinct for the best way to make this work would be to suggest exactly what it sounds like you are trying -- writing a USER exit that then (from the C/C++ side) calls the Delphi code/DLLs.

Big caveat here though, you will still need to control the transaction handling from within the C/C++ code as there will be no way to pass the connection information off to the Delphi code in any form that it could reasonably use, but you could invoke code in the Delphi DLLs from the C/C++ side.

I don't know enough about Delphi to comment on that part of it, but the only mechanisms that I am aware of for getting the Forms connection information are built into the Precompilers and their libraries.

--
-cheers

  DW



"It is a kind of good deed to say well; and yet words are not deeds.   -William Shakespeare"

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Dec 05 2000 - 19:05:24 CET

Original text of this message