我写的程序,DLL,没有任何问题,如果我给他声明的外部接口叫showform 或者
showInsertfrm 只要是 show..的都不可以,报错说程序无法找到showform的入口点,但是如果我改名字,比如wudi,则就没有任何问题。不知道是什么问题。问题2。我自定义一个类
 
type 
   myclass=class
     departlen:integer;
   end;
没有问题,如果加入方法,则报错说我的声明不正确
例如 
   myclass=class
     departLen;integer;
   public
     constructor create;  //报错
     procedure setDepartLen(value:integer);  //报错
   end;

解决方案 »

  1.   

    在下面加上:implementation constructor myclass.create;
     begin
     //
     end;
     procedure myclass.setDepartLen(value:integer);
     begin
     //
     end;就不报错了!另外:最好写成:TMyClass
      

  2.   

    你把departLen;integer;放在Private中肯定不会出错,是你自己写的不对,不能怪Delphi或操作系统。
      

  3.   

    所以我说不是操作系统烂,就是DELPHI烂,还有阿,我的第一个问题怎么没有人回答
      

  4.   

    那你回答呀,我谢谢你,如果你回答不了,sorry,get out
      

  5.   

    第一个问题:我写的程序,DLL,没有任何问题,如果我给他声明的外部接口叫showform 或者
    showInsertfrm 只要是 show..的都不可以,报错说程序无法找到showform的入口点,但是如果我改名字,比如wudi,则就没有
      

  6.   

    怪了,我刚才说的第二个问题,我在DELPHI7.0下面走,就有问题,但是同样的程序,我现在放入
    5.0就没有问题了,不知道那位大哥可以给我答复。
      

  7.   

    程序的简写版
    unit Unit2;interfacetype
       TMyclass=class
          private
             len:integer;
          public
             constructor create;
       end;implementation  constructor Tmyclass.create;
      begin
         len:=5;
      end;end.帮忙看看
      

  8.   

    procedure TForm1.Button1Click(Sender: TObject);
    var a:tmyclass;
    begin
       a:=tmyclass.create ;
    end;
    ========unit Unit2;interfacetype
       TMyclass=class
          private
             len:integer;
          public
             constructor create;
       end;implementation  constructor Tmyclass.create;
      begin
         len:=5;
      end;end.编译运行都不出错阿
      

  9.   

    按 guestman(天涯浪子)的做就能解决问题.
       你在interface 声明的,因在implementation中定义它.
      

  10.   

    难怪说DELPHI不行的人真多,原来水平太有限。
      

  11.   

    你发过来[email protected]二点钟半给你回复。