本帖最后由 W9757 于 2009-11-02 16:51:06 编辑

解决方案 »

  1.   

    主程序那边有dl_xm:='123';,
    但打开DLL子窗体SHOW时显示为空?
      

  2.   

    Dll中,不要用string类型作形参,应该使用PChar
      

  3.   

    如果要使用string,一定要主程序及dll都要第一个引用sharemem~~
    不过还是建议用阿发伯的方法~~
      

  4.   

    求救:主程序的DL_XM无法传到DLL的子窗体DL_XM中呀,显示为0.我把DL_XM更为INTEGer还是不行,变量内量没有传过来.那们高手帮帮我呀.
      

  5.   


    TLoadForm = function(ParentApplication: TApplication; ParentForm: TForm,dl_xm:string;): THandle; stdcall
    没写错吧,是不是
    TLoadForm = function(ParentApplication: TApplication; ParentForm: TForm;dl_xm:string;): THandle; stdcall
      

  6.   

    function (ParentApplication: TApplication; ParentForm: TForm;dl_xm:string): THandle;function LoadForm(ParentApplication: TApplication; ParentForm: TForm;dl,dl_xm:string): THandle; export;stdcall;两边的参数都不一样多!
      

  7.   

    to:BEIFANGKE
       是我打错了,实际代码中是正确的.程序运行中没有某何报错.就是不变量内容传不过来.
      

  8.   

    兄弟们我找到问题所在了.showmessage(inttostr(dl_xm)),不能放在SHOW里.