Hi guys,
I have been trying to get powerbuilder to use custom dlls I have created in C#. I have created a simple c# dll with this code-
using System;
using System.Text;
namespace DllTest
{
public class Numbers
{
public int AddNumbers(int num1, int num2)
{
int result = num1 + num2;
return result;
}
}
}
I then signed it with a strong key moved it to the system32 folder and successfully registered it with the GAC. (as a off note I have created a c# program that successfully uses this dll from from the GAC).
I then added the following code to the global external functions-
Function int AddNumbers(int num1, int num2)
Library "DllTest.dll"
How ever when ever i try to call this function I get this message "Error calling external function AddNumbers ...."
Anyone got any ideas where I am going wrong, I have been at this for a couple of days now!!
Thanks in advance.
I have been trying to get powerbuilder to use custom dlls I have created in C#. I have created a simple c# dll with this code-
using System;
using System.Text;
namespace DllTest
{
public class Numbers
{
public int AddNumbers(int num1, int num2)
{
int result = num1 + num2;
return result;
}
}
}
I then signed it with a strong key moved it to the system32 folder and successfully registered it with the GAC. (as a off note I have created a c# program that successfully uses this dll from from the GAC).
I then added the following code to the global external functions-
Function int AddNumbers(int num1, int num2)
Library "DllTest.dll"
How ever when ever i try to call this function I get this message "Error calling external function AddNumbers ...."
Anyone got any ideas where I am going wrong, I have been at this for a couple of days now!!
Thanks in advance.