Autor Beitrag
futti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44

WIN 2000
D3 Prof, Delphi 2005 Prof
BeitragVerfasst: Di 13.06.06 10:58 
Hallo Leute,

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

ausblenden 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
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416


Delphi32 (D2005 PE); Chrome/C# (VS2003 E/A, VS2005)
BeitragVerfasst: 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.