Hello guys i need your help.
I am trying to load a Dll written in C# through an isl code on Micros Simphony 2.
My problem is that i can not call the method that there is in the dll.
I successfully load the dll but i can not run the method.
The error is "Dll Undefined Function" on line 7.
I have already tried the DLLCall, DLLCall_Cdecl, DLLCall_STDCall and DLLCallW keywords.
Can anyone help me?
I am trying to load a Dll written in C# through an isl code on Micros Simphony 2.
My problem is that i can not call the method that there is in the dll.
I successfully load the dll but i can not run the method.
The error is "Dll Undefined Function" on line 7.
I have already tried the DLLCall, DLLCall_Cdecl, DLLCall_STDCall and DLLCallW keywords.
Can anyone help me?
Code:
VAR result : N9
VAR dll_handle : N9
DLLLoad dll_handle, "C:\micros\simphony\WebServer\NickTest.dll"
IF dll_handle <> 0
DLLCall dll_handle, Test( ref result)
ENDIF
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NickTest
{
public class Class1
{
public void Test(ref int result)
{
result = 2;
}
}
}