problem with loading dll programmed by Delphi7
- From: "Jak" <cnlohmann@xxxxxxxx>
- Date: Thu, 18 Jan 2007 17:38:10 +0800
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
.
- Follow-Ups:
- Re: problem with loading dll programmed by Delphi7
- From: Jani Järvinen [MVP]
- Re: problem with loading dll programmed by Delphi7
- Prev by Date: INotifyPropertyChanged Bug ?
- Next by Date: Re: More detailed information about Exception Error?
- Previous by thread: INotifyPropertyChanged Bug ?
- Next by thread: Re: problem with loading dll programmed by Delphi7
- Index(es):
Relevant Pages
|