Autor Beitrag
Neidhard von Reuental
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Mo 13.02.06 18:24 
Hallo,
ich versuche z.Z. ein Assembly in ein Testprojekt ein zu fügen. Leider stellen sich mir da Probleme in den weg.
Ich hab die compilierte Assembly in das Testprojekt-Verzeichnis kopiert, es über Referenz hinzufügen eingefügt und versucht es in die Uses-Klauses einzubauen. Da wird mir bereits angezeigt das D2006 den Assemblynamen nicht "auflösen" kann.
Beim Versuch das Projekt zu compilieren bekomme ich die Fehlermeldung
"[Pascal Fataler Fehler] WinForm.pas(7): F2063 Verwendete Unit 'MPSystems_de.pas' kann nicht compiliert werden"

MPSystems_de ist dabei der Name der Assembly.
Irgendwie funktioniert das Zusammenspiel zwischen Assemblys und D2006 nicht.

Kann mir jemand erklären wie ich es am besten lösen kann?

MfG
Neid
Neidhard von Reuental Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Sa 11.03.06 11:15 
Hat keiner eine Ahnung wie man Assemblys in Delphi .Net verwenden kann?
In C# geht das ohne Probleme nur in Delphi nicht :/
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 11.03.06 13:03 
Wenn es sich um ein per Delphi erstelltes Assembly handelt, musst Du in Delphi weiterhin die kompletten Namen der darin enthaltenen pas-Dateien in die uses-Klausel schreiben. Nur in anderen .NET-Sprachen braucht man das dann nicht. Liegt es eventuell daran?

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Neidhard von Reuental Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Sa 11.03.06 13:26 
Oki, thx.
Nun geht es endlich :)
winx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Fr 31.03.06 15:26 
Hallo,

wie kann man denn mit Delphi.Net ein Assembly erstellen?

Danke,
winx
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 31.03.06 15:33 
Hallo!

Assemblies werden in Delphi .NET als "Package" erstellt. Dort kannst Du dann Deine Klassen, etc. einfügen. Die Packages sind auch in anderen Sprachen nutzbar, bei Bibliotheken gab es da IIRC Probleme.

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
winx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Mo 03.04.06 08:45 
Hi,

ich habe jetzt einfach die exe eingebunden...und was soll ich sagen: es funktioniert :-)

ist das dann genau der weg, den man gehen muß???

Gruß,
winx
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 03.04.06 09:45 
user profile iconwinx hat folgendes geschrieben:
ist das dann genau der weg, den man gehen muß???
Wenn ich oben schreibe, dass man ein Package erstellt, bin ich natürlich nicht der Meinung, man solle stattdessen eine Exe erstellen :gruebel:

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
winx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Mo 03.04.06 09:57 
kannst du mir dann genau schreiben wie ich vorgehen sollte???

danke :roll: