J
Jak
I made a dll file,Delphi.dll, with Delphi7, the sourcecode is:
library Delphi;
uses
SysUtils,
Classes;
{$R *.res}
function GetStr(s:ShortString ):ShortString ;stdcall;
begin
result:= s;
end;
exports
GetStr;
begin
end.
In the VB.NET2005 I declared the function as 'Declare Auto Function GetStr
Lib "Delphi.dll" (ByVal s As String) As String', but I would run into the
exception of not being able to load the function because could not find the
entry point of the function (translated from the error message in Chinese).
But I tested the dll within Delphi application, it worked well there.
Are there any special rules to program dll for VS.NET with Delphi or any
other languages?
Best regards,
Jack Zhong
library Delphi;
uses
SysUtils,
Classes;
{$R *.res}
function GetStr(s:ShortString ):ShortString ;stdcall;
begin
result:= s;
end;
exports
GetStr;
begin
end.
In the VB.NET2005 I declared the function as 'Declare Auto Function GetStr
Lib "Delphi.dll" (ByVal s As String) As String', but I would run into the
exception of not being able to load the function because could not find the
entry point of the function (translated from the error message in Chinese).
But I tested the dll within Delphi application, it worked well there.
Are there any special rules to program dll for VS.NET with Delphi or any
other languages?
Best regards,
Jack Zhong