Hi,
I have a DLL written in Delphi that is called by a 4GL language called ProIV.
I wish to write a simialr DLL in VB, but I dont know what the Delphi equivalant is in VB.
I only need to know how to convert the parameters for the function.
The Delphi code is...
uses
Classes,
SysUtils;
type
TPCharArray = array of PChar;
//------------------------------------------------------------------------------
function MsgToFile(argc: ShortInt; argv: TPCharArray): integer; stdcall; export;
end;
exports
MsgToFile index 1;
Does anyone have any knowledge of how the function and parameters should be coded in VB, to make the VB DLL the same as the Delphi one?
I've tried a few things in VB, like...
Public Function MsgToFile(intC as Integer, strVal() As Byte) As Long
But the ProIV language does not like calling it, it just core dumps. So I must have something wrong.
Thanks,
Rob Donovan
ProIV Resource Centre <a href='
I have a DLL written in Delphi that is called by a 4GL language called ProIV.
I wish to write a simialr DLL in VB, but I dont know what the Delphi equivalant is in VB.
I only need to know how to convert the parameters for the function.
The Delphi code is...
uses
Classes,
SysUtils;
type
TPCharArray = array of PChar;
//------------------------------------------------------------------------------
function MsgToFile(argc: ShortInt; argv: TPCharArray): integer; stdcall; export;
end;
exports
MsgToFile index 1;
Does anyone have any knowledge of how the function and parameters should be coded in VB, to make the VB DLL the same as the Delphi one?
I've tried a few things in VB, like...
Public Function MsgToFile(intC as Integer, strVal() As Byte) As Long
But the ProIV language does not like calling it, it just core dumps. So I must have something wrong.
Thanks,
Rob Donovan
ProIV Resource Centre <a href='