Re: delphi 6 and .net dlls
From: barney (b-gumble_at_gmx.net)
Date: 06/28/04
- Next message: Nicolai Hansen: "Re: Simple delphi IF statement."
- Previous message: Maarten Wiltink: "Re: Tab***.Tabvisible:=false;"
- In reply to: Rick Francken: "Re: delphi 6 and .net dlls"
- Next in thread: Rick Francken: "Re: delphi 6 and .net dlls"
- Reply: Rick Francken: "Re: delphi 6 and .net dlls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jun 2004 01:00:12 -0700
Thanks very much Rick,
> > Is there a import wizzard or something that
> > shows the classes and functions of the .net-dll ??
> ILDasm.exe is included in the SDK, and does exactly that.
thanks to ILDasm.exe I found out that the .dll has got 1 namespace
called "nsXml" with 3 classes. One class called "XmlValidator" has got
a static function called:
sValidate : string (string,string)
thats the function I have to call.
> One way you could do it is to register the assembly. Then you could use the
> assembly the same way that you would use a COM automation server DLL.
I tried to do following:
// define:
type
TValidator = function ( a: string; b: string) : string; stdcall ;
...
...
a := LoadLibrary('C:\Xml.dll');
// a is not null, so I think this works
...
XmlValidator : TValidator;
...
@XmlValidator := GetProcAddress(a, 'XmlValidator.sValidate');
// the pointer to the function is nil because the
// function is not found ( error 127 )
do you know how i have to pass the function name of the static
function to GetProcAddress ?
Maybee what I did is complete nonsense ??
Any help would be great.
thanks in advance
tobias
- Next message: Nicolai Hansen: "Re: Simple delphi IF statement."
- Previous message: Maarten Wiltink: "Re: Tab***.Tabvisible:=false;"
- In reply to: Rick Francken: "Re: delphi 6 and .net dlls"
- Next in thread: Rick Francken: "Re: delphi 6 and .net dlls"
- Reply: Rick Francken: "Re: delphi 6 and .net dlls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]