我定义了一个DLL,里面有很多个procedure方法,他们的参数都可能不一样,从1个到4个,现在的定义一个公共的动态加载DLL的方法,当这些参数不同时怎么传递,不懂,不过听别人说用procedure AA(const params);这样可以想传递多少个参数都行,但是我现在不知道怎么传递。
  谢谢
  

解决方案 »

  1.   

    你这个Tparrms应该是个结构体,直接个定义结构体来传递
      

  2.   

     现在发现标题写错了,手误,是Tparams用法的
      

  3.   


      是不是用到params.getparamsList();但是format我懂用,这个真的不懂用,帮下忙,谢谢
      

  4.   

    function Format(const Format: string; const Args: array of const): string;{const Args: array of const}
      

  5.   


    function Format(const Format: string; const Args: array of const): string;
    {const Args: array of const  //  <------这样}
      

  6.   

       你还不如直接写个params下的用法来,现在转不过来。