hi guys,
I need to use a function in a c# dll from delphi. I have written a
sample:
<code>
using System;
using System.Data;
using System.Runtime.InteropServices;
namespace DelphiTest
{
public interface IDelphiTest
{
void getparam(string IN_Param, out string OUT_Param, string IN_Ini,
out int OUT_int);
}
[ClassInterface(ClassInterfaceType.None)]
public class DelphiTestClass : IDelphiTest
{
public DelphiTestClass()
{
}
public void getparam(string IN_Param, out string OUT_Param, string
IN_Ini, out int OUT_int)
{
OUT_int=100;
OUT_Param= "hello";
}
}
}
</code>
I registered the dll with regasm. Now I created a *.tlb and then
imported it in my delphi 6 application. Then in delphi I created a
little function which creates a new instance of the c# class and then
calls the function getparam. It all works fine but there is no
function getparam. Why? What is wrong?