C# DLL in Delphi

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

    #1

    C# DLL in Delphi

    is it anyway to call C# DLL (manage) with Delphi ?

    Thanks


  • Jon Skeet [C# MVP]

    #2
    Re: C# DLL in Delphi

    On Nov 29, 12:11 pm, "Iwan Budihalim" <iwan_budiha... @visuallabs.net >
    wrote:
    is it anyway to call C# DLL (manage) with Delphi ?
    If you're using the .NET version of Delphi, you should be able to call
    into a C# DLL in the same way as you'd call into any other managed
    library (System.dll, mscorlib.dll etc)

    Jon

    Comment

    • Kerem Gümrükcü

      #3
      Re: C# DLL in Delphi

      Hi Iwan,
      >is it anyway to call C# DLL (manage) with Delphi ?
      yes, make the DLL COM Visible and your Delphi App
      can invoke its methods with COM Interaction,...


      Regards

      Kerem

      --
      -----------------------
      Beste Grüsse / Best regards / Votre bien devoue
      Kerem Gümrükcü
      Microsoft Live Space: http://kerem-g.spaces.live.com/
      Latest Open-Source Projects: http://entwicklung.junetz.de
      -----------------------
      "This reply is provided as is, without warranty express or implied."


      Comment

      • Iwan Budihalim

        #4
        Re: C# DLL in Delphi

        Hi there,
        I'm using Delphi 6.0 which is not .NET version.

        "Jon Skeet [C# MVP]" <skeet@pobox.co mwrote in message
        news:0d28605f-0eec-4b24-bf13-f50b6b29a0d7@e6 7g2000hsc.googl egroups.com...
        On Nov 29, 12:11 pm, "Iwan Budihalim" <iwan_budiha... @visuallabs.net >
        wrote:
        >is it anyway to call C# DLL (manage) with Delphi ?
        >
        If you're using the .NET version of Delphi, you should be able to call
        into a C# DLL in the same way as you'd call into any other managed
        library (System.dll, mscorlib.dll etc)
        >
        Jon

        Comment

        • Iwan Budihalim

          #5
          Re: C# DLL in Delphi

          Does it mean, we have to Register Server (regsvr32) the DLL COM ?
          any example or tutorial to do this ?

          many thanks

          "Kerem Gümrükcü" <kareem114@hotm ail.comwrote in message
          news:e7J3pGoMIH A.4476@TK2MSFTN GP06.phx.gbl...
          Hi Iwan,
          >
          >>is it anyway to call C# DLL (manage) with Delphi ?
          >
          yes, make the DLL COM Visible and your Delphi App
          can invoke its methods with COM Interaction,...
          >
          >
          Regards
          >
          Kerem
          >
          --
          -----------------------
          Beste Grüsse / Best regards / Votre bien devoue
          Kerem Gümrükcü
          Microsoft Live Space: http://kerem-g.spaces.live.com/
          Latest Open-Source Projects: http://entwicklung.junetz.de
          -----------------------
          "This reply is provided as is, without warranty express or implied."
          >

          Comment

          • Willy Denoyette [MVP]

            #6
            Re: C# DLL in Delphi

            "Iwan Budihalim" <iwan_budihalim @visuallabs.net wrote in message
            news:%23qn$5D3M IHA.3852@TK2MSF TNGP06.phx.gbl. ..
            Does it mean, we have to Register Server (regsvr32) the DLL COM ?
            any example or tutorial to do this ?
            >
            Please read the docs, MSDN has everything you need to know about COM
            Interop, start here :
            http://msdn2.microsoft.com/en-us/lib...12(VS.71).aspx and here:
            <http://msdn2.microsoft .com/en-us/library/bd9cdfyx(vs.71) .aspx>

            Willy.

            Comment

            Working...