Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Invoke function from DLL (c#) in Oracle Forms

994255Mar 4 2014 — edited Apr 10 2014

Hello,

I've got big problem with invoking method from DLL in Oracle Forms 6i. DLL has been written in

C#, and it is code:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using OnlineFPCommon;

using System.Windows.Forms;

namespace TestNamespace

{

    public class TestClass

    {

        public static void testMethod()

        {

            MessageBox.Show("testMethod");

        }

    }

}

I try to invoke it using Oracle Forms code:

testlib_lhandle := Ora_Ffi.Load_library('C:\libdir\','test.dll');

getresult_fhandle := ora_ffi.register_function(testlib_lhandle,'testMethod');

but the second line, when I try to register function fails. Why? How Can I properly invoke that function?

This post has been answered by Michael Ferrante-Oracle on Mar 4 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2014
Added on Mar 4 2014
6 comments
1,735 views