This discussion is archived
2 Replies Latest reply: Nov 19, 2012 11:33 PM by Motorolo RSS

Using WEBUTIL_C_API to call C functions [SOLVED]

Motorolo Newbie
Currently Being Moderated

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 knows how can I resolve this?

Thanks. Sorry for my English, it isn't good.

Edited by: Motorolo on 19-nov-2012 23:30


  • Correct Answers - 10 points
  • Helpful Answers - 5 points