title: How to pass an object from Delphi 7 to a C++ dll?
body: <p>I am creating a DLL in C++ to be used in a Delphi 7 project, this dll will use OpenMP and will replace some methods that already exist in the project, this in order to hopefully get a speed up in the application.</p>
  
  <p>One of the functions is defined like this:</p>
  
  <pre><code>function ReplaceFunction(chain:String;functionTE:TEFunction):string;
  </code></pre>
  
  <p>The object <code>functionTE</code> is declared like this,  </p>
  
  <pre><code>TEFunction = class(TObject)
    private
      FFunctionName: string;
      procedure SetFunctionName(const Value: string);
      function GetFunctionNameCapital: string;
    public
      Handle:THandle;
      Funcion:Pointer;
      FileName:string;
      ParamNumber:integer;
      Description:string;
      property FunctionNameCapital:string read GetFunctionNameCapital;
      property FunctionName:string read FFunctionName write SetFunctionName;
    end;
  </code></pre>
  
  <p>How can I pass an object of this class to the dll and use it?</p>