Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. can we use .net dlls in win32 applications

can we use .net dlls in win32 applications

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdelphidata-structurestutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abyclassic
    wrote on last edited by
    #1

    Dear all, I have developed a .NET dll. I wants to use this dll in Win32(Delphi) applications. Is it possible to do the same. The data type of arguments passed to the functions in the dll & returned from it are compatible. The return type is a byte array & the arguments passed are string. But, when i used this dll in a Win32 application(developed using Delphi), EAccessViolation exception occurs. Can anyone suggest me how to use the .net dll in win32 applications? Thanks & regards, Abhilash

    S 1 Reply Last reply
    0
    • A abyclassic

      Dear all, I have developed a .NET dll. I wants to use this dll in Win32(Delphi) applications. Is it possible to do the same. The data type of arguments passed to the functions in the dll & returned from it are compatible. The return type is a byte array & the arguments passed are string. But, when i used this dll in a Win32 application(developed using Delphi), EAccessViolation exception occurs. Can anyone suggest me how to use the .net dll in win32 applications? Thanks & regards, Abhilash

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      I'm afraid that's not possible, unless you can host the CLR inside your application. Be warned that it's not for the faint hearted. This[^] link describes how you can do that. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      N 1 Reply Last reply
      0
      • S S Senthil Kumar

        I'm afraid that's not possible, unless you can host the CLR inside your application. Be warned that it's not for the faint hearted. This[^] link describes how you can do that. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        S. Senthil Kumar wrote:

        I'm afraid that's not possible, unless you can host the CLR inside your application. Be warned that it's not for the faint hearted. This[^] link describes how you can do that.

        Why not just use CCW? Regards, Nish

        My blog : Nish’s thoughts on MFC, C++/CLI and .NET

        S 1 Reply Last reply
        0
        • N Nish Nishant

          S. Senthil Kumar wrote:

          I'm afraid that's not possible, unless you can host the CLR inside your application. Be warned that it's not for the faint hearted. This[^] link describes how you can do that.

          Why not just use CCW? Regards, Nish

          My blog : Nish’s thoughts on MFC, C++/CLI and .NET

          S Offline
          S Offline
          S Senthil Kumar
          wrote on last edited by
          #4

          You're right, CCW is the way to go. "Win32 Applications" put me off track, I mistakenly inferred he didn't want to use COM. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups