I have a c# class that connects to the dll that works good.
Now I need the same functions in Delphi. what is the best way to do it? I don't want to write all the imports again in Delphi. is there a way to import the c# class in delphi or any other way of doing that quick and easy..
This is one function in my c# class:
/// Return Type: ABS_STATUS->ABS_LONG->int
///pszDsn: ABS_CHAR*
///phConnection: ABS_CONNECTION*
[System.Runtime.InteropServices.DllImportAttribute("bsapi.dll", EntryPoint = "ABSOpen", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
public static extern int ABSOpen([System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string pszDsn, ref uint phConnection);