Calling VB.Net Class File from Delphi

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Three

    Calling VB.Net Class File from Delphi

    Hi there,

    I have to integrate a .Net application into a Delphi application somehow.
    The simplest method is to get the Delphi app to call a .Net console app,
    however it would be better for various reasons if I could make the .Net side
    a DLL and this is what I am wondering about.

    Is there any way to call a VB.Net Class project from a Delphi application? I
    seem to recall there is a way to call a .Net DLL from VB6 but vague on
    details (or imagining things) and not sure if this would also make it usable
    from Delphi.

    Any help appreciated...

    Cheers


  • Drakkhen

    #2
    Re: Calling VB.Net Class File from Delphi

    Can you use COM?


    --
    Drakkhen




    Comment

    • Bill McCarthy

      #3
      Re: Calling VB.Net Class File from Delphi

      Hi Three,

      The .NET class is only callable from .NET code, unless the class exposes COM
      interfaces, then you can access it from COM applications. If you can't modify
      the existing classes and they do not expose COM interfaces, you could always
      write a .NET wrapper that does expose the COM interfaces and passes calls
      through to the .NET classes. Alternatively, if you are using Delphi, you could
      try using Delphi for .NET.


      Bill






      "Three" <3@three.com> wrote in message
      news:eKetjr8FEH A.692@TK2MSFTNG P09.phx.gbl...[color=blue]
      > Hi there,
      >
      > I have to integrate a .Net application into a Delphi application somehow.
      > The simplest method is to get the Delphi app to call a .Net console app,
      > however it would be better for various reasons if I could make the .Net side
      > a DLL and this is what I am wondering about.
      >
      > Is there any way to call a VB.Net Class project from a Delphi application? I
      > seem to recall there is a way to call a .Net DLL from VB6 but vague on
      > details (or imagining things) and not sure if this would also make it usable
      > from Delphi.
      >
      > Any help appreciated...
      >
      > Cheers
      >
      >[/color]


      Comment

      • Cor

        #4
        Re: Calling VB.Net Class File from Delphi

        Hi Three,

        Kudzu is busy with .Net he seems to be a very knowledged person in delphi it
        seems.

        Here is his website.



        I hope this helps

        Cor


        Comment

        • Chris Dunaway

          #5
          Re: Calling VB.Net Class File from Delphi

          On Thu, 1 Apr 2004 19:17:02 +1000, Three wrote:
          [color=blue]
          > Hi there,
          >
          > I have to integrate a .Net application into a Delphi application somehow.
          >
          > Is there any way to call a VB.Net Class project from a Delphi application? I[/color]

          AFAIK, if your not talking about Delphi.Net which is the new version, you
          will have to expose your .Net classes as COM objects and import them into
          Delphi that way. The new version of Delphi is fully .Net compatible so you
          should be able to use any .net assembly with it.


          --
          Chris

          To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
          address.

          Comment

          • Bob

            #6
            Re: Calling VB.Net Class File from Delphi

            Ok, so how do I do that?


            "Chris Dunaway" <dunawayc@_lunc hmeat_sbcglobal .net> wrote in message
            news:nmtz7saexq hy.hgnhjd19c3jr $.dlg@40tude.ne t...[color=blue]
            > On Thu, 1 Apr 2004 19:17:02 +1000, Three wrote:
            >[color=green]
            > > Hi there,
            > >
            > > I have to integrate a .Net application into a Delphi application[/color][/color]
            somehow.[color=blue][color=green]
            > >
            > > Is there any way to call a VB.Net Class project from a Delphi[/color][/color]
            application? I[color=blue]
            >
            > AFAIK, if your not talking about Delphi.Net which is the new version, you
            > will have to expose your .Net classes as COM objects and import them into
            > Delphi that way. The new version of Delphi is fully .Net compatible so[/color]
            you[color=blue]
            > should be able to use any .net assembly with it.
            >
            >
            > --
            > Chris
            >
            > To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
            > address.[/color]


            Comment

            • Bob

              #7
              Re: Calling VB.Net Class File from Delphi

              Ok, so how do I do that?


              "Chris Dunaway" <dunawayc@_lunc hmeat_sbcglobal .net> wrote in message
              news:nmtz7saexq hy.hgnhjd19c3jr $.dlg@40tude.ne t...[color=blue]
              > On Thu, 1 Apr 2004 19:17:02 +1000, Three wrote:
              >[color=green]
              > > Hi there,
              > >
              > > I have to integrate a .Net application into a Delphi application[/color][/color]
              somehow.[color=blue][color=green]
              > >
              > > Is there any way to call a VB.Net Class project from a Delphi[/color][/color]
              application? I[color=blue]
              >
              > AFAIK, if your not talking about Delphi.Net which is the new version, you
              > will have to expose your .Net classes as COM objects and import them into
              > Delphi that way. The new version of Delphi is fully .Net compatible so[/color]
              you[color=blue]
              > should be able to use any .net assembly with it.
              >
              >
              > --
              > Chris
              >
              > To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
              > address.[/color]


              Comment

              Working...