Forms 4.5 - ORA_FFI problem

From: Ian Birch <ian_at_ibirch.demon.co.uk>
Date: Fri, 22 May 1998 19:32:15 GMT
Message-ID: <3565d004.187905_at_news.demon.co.uk>



Hi,

I'm currently trying to develop a way that Oracle can call a 'C' function. Oracle recommend use of the Oracle ORA_FFI package, and the use of the FFIGEN utility to create a custom wrapper.

I am very familiar with C but unfamiliar with C++ and Windows and the MFC. I'm using Windows NT, Forms 1.3.2 and MS Visual C++ 5 (the FFIGEN directory is missing off the CD, does it matter if I use the 16bit version from a Windows 3.1 Dev2K CD I have?). Can anyone give me source code examples of a simple DLL that I can compile and build and use to test against ORA_FFI so that I can base my DLL on it, just something like adding two numbers will do.

Any help would be greatly appreciated.

Thanks

Ian

N.B. I've tried using the DLL wizard in Visual C++ and adding a class which contains my C function, but although ORA_FFI loaded the DLL it could not find the function. Does this mean that ORA_FFI can only use DLL's which use the old Windows API as opposed to object based DLL's that use the MFC? Received on Fri May 22 1998 - 21:32:15 CEST

Original text of this message