• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8342
  • Last Modified:

How to call C# .net dll in Delphi Win32 Application

Hi,
    I need to call C# .net dll in Delphi win32 Application. I'm using Delphi 2005 and Visual Studio 2005 with .net 2.0. How can i call the dll without register the dll in registry? Can anyone give the the code sample for these two files(.net dll & Delphi exe).
   
Thanks.
0
cwtang
Asked:
cwtang
  • 3
  • 2
1 Solution
 
mikelittlewoodCommented:
Unless Im mistaken, the whole point of a .dll file that you need to use functionality from, is that you register it first otherwise even with code, your application does not know where to find it.
0
 
aikimarkCommented:
I think you have to create a COM wrapper around the C# application.
0
 
cwtangAuthor Commented:
Hi,
   I know that COM wrapper can do that but i just don't know how to do it. Can you provide the code for this two files. Thanks.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
aikimarkCommented:
http://msdn2.microsoft.com/en-us/library/5dxz80y2.aspx

I'm not sure that you can avoid any registry updating.  Some of the registry updates happen automatically.
0
 
aikimarkCommented:
Another route to consume a .Net assembly from Borland:
http://cc.borland.com/Item.aspx?id=16439
0
 
cwtangAuthor Commented:
Thanks
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now