Autor Beitrag
John Sanson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72

WinXP,WinVista
Delphi(BDS2006, 5), C#(VS2005, BDS2006), VB6
BeitragVerfasst: So 13.05.07 13:18 
Hallo,

Ich habe ein VB.Net Modul und würde die Funktionen daraus auch gern in meiner C# Anwendung benutzen. Ist das möglich das Modul einzubinden und die Funktionen aufzurufen?


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

Win 10
C# (VS 2019)
BeitragVerfasst: So 13.05.07 13:23 
Das sollte problemlos gehen. Mach ein Assembly (Klassenbibliothek) draus und binde diese über die Referenzen Deines C#-Projektes in selbiges ein. Halt so, wie Du es mit anderen Assemblies auch machen würdest.

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

WinXP,WinVista
Delphi(BDS2006, 5), C#(VS2005, BDS2006), VB6
BeitragVerfasst: So 13.05.07 13:30 
das ging schnell...

ja das geht. Würde aber gern direkt die Modul Datei (z.B. Modul1.vb) verwenden.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 13.05.07 13:50 
Das dürfte über verschiedene Sprachen hinweg nicht funktionieren.

IMHO hat sowas bei der Arbeit mit .NET auch nichts verloren, denn da sollte man keine sprachspezifischen Dinge verwenden. Damit würde man auch einen großen Vorteil von .NET wegwerfen.

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

WinXP,WinVista
Delphi(BDS2006, 5), C#(VS2005, BDS2006), VB6
BeitragVerfasst: Mo 14.05.07 17:56 
Habs jetzt in einer Klassenbibliothek drin.