C# to ABL DLL Call

Posted by Paul Mowat on 17-Feb-2017 03:03

Hi,

How do i go about converting the following C# to ABL in order to use a tool called XLSGen without having to register it through regsrv32.

See:xlsgen.arstdesign.com/.../comfreezone.html

[DllImport(@".\..\..\..\..\..\xlsgen.dll")]
static extern IXlsEngine Start();

/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
  IXlsEngine engine = Start();

I have been trying to get it to work with calling the dll using a PROCEDURE EXTERNAL command but just can't get it right.

PROCEDURE Start EXTERNAL "xlsgen/bin/xlsgen.dll" PERSISTENT CDECL: 
DEFINE RETURN PARAMETER result AS MEMPTR.
END PROCEDURE.

Any help/advice is much appreciated.

Thanks

Paul

All Replies

This thread is closed