Home » Developer & Programmer » Forms » Using WEBUTIL_C_API to call C functions
Using WEBUTIL_C_API to call C functions [message #570759] Thu, 15 November 2012 07:12
Messages: 1
Registered: November 2012
Junior Member

I'm trying to migrate some forms from 6i to 11g and I'm replacing ORA_FFI commands by WEBUTIL_C_API commands to call C functions but when I'm calling to WEBUTIL_C_API.Invoke_Int the form inmediately close. Well... all forms close except the browser.
Looking for the problem, I notice that if I change my C function header, it works. For example, the header of my C function is like this:

int _stdcall Ejecutor(BSTR, BSTR, BSTR, BSTR, BSTR, BSTR, BSTR, BSTR, BSTR);

If I remove "_stdcall", calling from the form works but I don't know why.

I would resolve just removing "_stdcall" but I need it because I call this function from a Word document macro too and if I remove this, the call from Word doesn't work.

Anybody know how can I resolve this without to duplicate my functions with diferent header?

Thanks. Sorry for my English, it isn't good.
Previous Topic: How can i sort data in the execute Query mode during runtime
Next Topic: 11g forms and report
Goto Forum:

Current Time: Sat Jul 22 10:13:50 CDT 2017

Total time taken to generate the page: 0.06483 seconds