oracle forms ffi problem invoking a c++ dll

From: Arti Potnis <artpot78_at_yahoo.com>
Date: 6 Aug 2004 03:18:38 -0700
Message-ID: <ece8ea46.0408060218.46f62f64_at_posting.google.com>



Hi,
I am trying to invoke a 3GL dll from Oracle Forms 6i (viz.D2K), using the Foreign Function Interface.

Platform: WIN NT
Dll: Visual C++ dll.

While trying to compile the form I am getting the following error.  

"Error 201 at line .. col ..
identifier FORMSAMPLE.WRITEFILE needs to be declared"  

Details:


1)The dll has been copied to the directory where forms module is present.

2) This dll has a function int writefile() which opens a file, test.txt and writes a line of text into it.

[Quoted] 3)The Form has an associated PL/SQL Library, "LIB_002", which has a package "FORMSAMPLE". This package has a function "WRITEFILE" which invokes the dispatcher function "dispatcher_writefile" which in turn makes a call to the function writefile() present in the dll.

[Quoted] 4)The Form has a Command Button. On clicking this button a trigger is invoked. This trigger has a call to the FORMSAMPLE.WRITEFILE function in the library "LIB_002". When I try to compile this trigger I am getting the above mentioned error.  

Does anyone know how to get rid of this error?  

Thanks in advance
Arti Received on Fri Aug 06 2004 - 12:18:38 CEST

Original text of this message