Re:ORA_FFI TO RETURN FILE HANDLE

From: Harvey Mark <IMCEAMS-EARTH_PO1_msmrh>
Date: 1997/12/10
Message-ID: <14D46DF9FC08D111AF8700805F68C0CF055CC4_at_CONNERY>#1/1


        I've found one "funny" using the Oracle FFI Interface when tring to access WIN32 Dll's

        which is that any parameters I pass, have to be declared as IN OUT, even though no

        explicit change to them is made.

        If that does'nt fix it, I would keep simplifying the calling interface until it works and

        the gradually build it up again.

        I also found that for certain API calls the registering of parameter types just does

        not work for some of the bigger Visual C++ datatypes ie. DWORD, LPTSTR ...etc.

        I ended up writing wrap around functions which called the required dll's and calling

        those from Oracle ( I made the Interfaces to theses much much simpler ).

                Mark Harvey.                  

> ----------
> From: Kevin Kravantka[SMTP:kevkrav_at_home.com]
> Posted At: 10 December 1997 00:05
> Posted To: tools
> Conversation: ORA_FFI TO RETURN FILE HANDLE
> Subject: ORA_FFI TO RETURN FILE HANDLE
>
> I AM SETTING UP A SCANNER ON A WINDOWS95 PC AND WANT TO SCAN DIRECTLY
> TO
> A FILE NAME THAT MY FORMS 4.5 (WIN 95) WILL DETERMINE.
> I SCAN CALLING A TWAIN.DLL WHICH WORKS FINE BUT NEEDS A FILE HANDLE TO
> CREATE THE FILE DIRECTLY.
> I AM CURRENTLY WORKING ON GETTING THE FILE HANDLE USING A CALL TO
> KERNEL32.DLL(CREATEFILE). I CANNONT SEEMED TO PASS THE RIGHT
> PARAMETER
> SINCE THE HANDLE COMES BACK -1 AND BLOWS UP THE FORM.
> ANY HELP WOULD BE GREATLY APPRECIATED.
>
> THANKS IN ADVANCE
> KEVIN KRAVANTKA
>
Received on Wed Dec 10 1997 - 00:00:00 CET

Original text of this message