use dll wrote on Delphi RRS feed

  • Question


    Good day. I have some problem with dll on Delphi. How i can import this dll use C#?

    And how translate this function from Delphi on C#

    function h1(var handle : Point,f1 : PChar,data:integer):hresult;stdcall;


    function h2(var handle : point,h2 : dword):hresult;stdcall;


    Please help me.

    Wednesday, February 6, 2008 1:56 PM


All replies

  • What version of Delphi?


    Wednesday, February 6, 2008 9:27 PM
  • I don't know. But it now important. I ask you how I can translate from Delphi to C#.

    Point equality what type on C#



    Thursday, February 7, 2008 7:19 AM
  • Do you want to use this functions in .NET C# or do you want to convert Delphi code to C#?


    Thursday, February 7, 2008 9:19 AM
  • yes.

    I want use this function from dll wrote on Delphi. I know than we can use function from dll. We must wrote import and other function. What I must wrote?

    Thursday, February 7, 2008 10:05 AM
  • Makes sure, that within dll this functions are visible outside.


    Use P/invoke in order to access this functions.



    Thursday, February 7, 2008 10:24 AM