pierremans
New Member
(Progress V9.1D09)
(.NET Framework 2.0.50727)
Hi,
I am trying to build a dll from MS Visual Studio and use that from within my Progress app.
Simple source in C#:

I tried this:
Can someone tell me how to make this work?
TIA
Pieter Brouwer
(.NET Framework 2.0.50727)
Hi,
I am trying to build a dll from MS Visual Studio and use that from within my Progress app.
Simple source in C#:
Now the question is: how can I use pEcho from within Progress?!?using System;
//using System.Collections.Generic;
using System.Text;
namespace pvbb
{
public class Class1
{
static public String pEcho (String txt) {
return txt + "\n" + txt + " " + txt;
}
}
}

I tried this:
But that gives me an error in finding the correct entrypoint. Even with CDECL.PROCEDURE pecho EXTERNAL "h:\ff\pvbb.dll":
DEFINE INPUT PARAMETER cTxt AS CHARACTER NO-UNDO.
DEFINE RETURN PARAMETER cReturn AS CHARACTER NO-UNDO.
END.
DEFINE VARIABLE c AS CHARACTER NO-UNDO.
RUN pEcho (INPUT "this is a test", OUTPUT c).
Can someone tell me how to make this work?
TIA
Pieter Brouwer