Hello to all I have a question from Noob. I'm studying how to create a DLL in Visual Studio C # and invoke it in Powerbuilder. Unfortunately I have an error: Bad runtime function reference .... What am I doing wrong? Thanks for the reply. I copy under the code Gimmy
VS.C#
====
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AMGenerale
{
public class AMUtility
{
public int AMSomma(int _n1, int _n2)
{
int totale = _n1 + _n2;
return totale;
}
}
}
Powerbuilder 2017R2
==================
- Global External Function: FUNCTION integer AMSomma(int a1, int a2) library 'AMgenerale.dll'
- Code: commanButton.Event
int a1, a2, a3
string s3
a1 = 1
a2 = 2
a3=AMSomma(a1, a2)
s3 = string(a3)
messagebox('', s3)