Hi,
I have a call c# Dll VS2010 .Net Framework 4 from Delphi 7 Professional "add(a+b)".
C# code:
namespace dll_01
{
public interface Iadd
{
Int32 add_dll(Int32 a, Int32 b);
}

public class Class1:Iadd
{
public Int32 add_dll()
{
return 0;
}

public Int32 add_dll(Int32 a, Int32 b){
ws_linux_dll.CalculatorWSClient proxy = new ws_linux_dll.CalculatorWSClient();
return Convert.ToInt32(proxy.add(a,b));
}
}
}
After command:
regasm dll_01.dll /tlb
and "Project -> Import Type Library -> Add -> Install" create file: dll_01_TLB.pas - see next

--------------------------------------------------------------------------------
unit dll_01_TLB;

// ************************************************************************ //
// WARNING
//
--------------------------------------------------------------------------------

// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //

// PASTLWTR : 1.2
// File generated on 19.4.2012 11:01:11 from Type Library described below.

// ************************************************************************ //
// Type Lib: C:\Program Files\Borland\Delphi7\Projects\test\Lib\dll_01.tlb (1)
// LIBID: {7570E134-5AEE-4E6B-BB0F-02A93A1C16DA}
// LCID: 0
// Helpfile:
// HelpString:
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
// *************************************************************************//
// NOTE:
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
// which return objects that may need to be explicitly created via a function
// call prior to any access via the property. These items have been disabled
// in order to prevent accidental use from within the object inspector. You
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
// removing them from the $IFDEF blocks. However, such items must still be
// programmatically created via a method of the appropriate CoClass before
// they can be used.
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
dll_01MajorVersion = 1;
dll_01MinorVersion = 0;

LIBID_dll_01: TGUID = '{7570E134-5AEE-4E6B-BB0F-02A93A1C16DA}';


implementation

uses ComObj;

end.



--------------------------------------------------------------------------------

How to use on button click method ?

procedure TForm1.Button1Click(Sender: TObject);
begin

end

--------------------------------------------------------------------------------

can you help me please ?
Thanks