用delphi做了一个带窗体的dll,在程序中调用dll可显示dll中的窗体,这种dll可以被其他程序设计语言使用吗?比如pb等?

解决方案 »

  1.   

    不过调用函数参数中不能有string类型。
      

  2.   

    下面是Borland的说法,也不是不能用String类型参数,但要用到BORLNDMM.DLLImportant note about DLL memory management: ShareMem must be the
      first unit in your library's USES clause AND your project's (select
      Project-View Source) USES clause if your DLL exports any procedures or
      functions that pass strings as parameters or function results. This
      applies to all strings passed to and from your DLL--even those that
      are nested in records and classes. ShareMem is the interface unit to
      the BORLNDMM.DLL shared memory manager, which must be deployed along
      with your DLL. To avoid using BORLNDMM.DLL, pass string information
      using PChar or ShortString parameters.
      

  3.   

    可以调用,你要记得不要使用sting来传参,用Pchar就可以
      

  4.   

    borlndmm.dll仅适合Delphi和CBuilder,其他都不行的。不信你就试试。