Entwickler-Ecke

Andere .NET-Sprachen - DLL in Delphi.NET einbinden???


futti - Di 13.06.06 10:58
Titel: DLL in Delphi.NET einbinden???
Hallo Leute,

ich bin am verzweifeln.
Wie binde ich in Delphi.NET eine DLL ein?


DLL einbinden
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
type
  IMyFunctions = interface
  function SetupTable(iNumber : integer) : LongInt;
end;
{...}
bSup : boolean;
MyFunctions : IMyFunctions;

bSup := Supports ('Table.dll', IMyFunctions, MyFunctions);
ShowMessage (booltostr(bSup));


ShowMessage lilefert: 0 (=> bSup = false)
Aber was muss ich anders machen, damit die DLL richtig geladen wird?

Vielen Dank,
Futti


Robert_G - Mi 14.06.06 20:47

Warum machst du es nicht einfach so, wie man es normalerweise in .Net macht?
Indem du die mal die Doku zu DllImportAttribute ansiehst.