我写的程序,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;
showInsertfrm 只要是 show..的都不可以,报错说程序无法找到showform的入口点,但是如果我改名字,比如wudi,则就没有任何问题。不知道是什么问题。问题2。我自定义一个类
type
myclass=class
departlen:integer;
end;
没有问题,如果加入方法,则报错说我的声明不正确
例如
myclass=class
departLen;integer;
public
constructor create; //报错
procedure setDepartLen(value:integer); //报错
end;
解决方案 »
- 关于cxgrid的checkbox字段
- 终于把一个10斤的西瓜给解决了
- 有谁知道Win2003/WinXP启动画面的那种进度条那种控件包里有?
- 发现delphi和netmeeting同时运行的冲突问题
- 请问各位大哥,多层应用程序的服务器端制作安装程序的时候要加上那些动态库?
- 请问如何对TREEVIEW进行查找。
- 号外,号外,号外,号外!巨悬赏!
- ★★★本人成功开发出能够通过电脑红外线+手机收发短信息的软件.电脑无需上网★★★
- 登陆成功后依用户判断开启不同窗口
- 大虾救命?为什么?为什么‘添加’不起作用?
- 如何取子串-----------------急急急----在线等
- 这是我所有的分,请教一个DBGRID问题
begin
//
end;
procedure myclass.setDepartLen(value:integer);
begin
//
end;就不报错了!另外:最好写成:TMyClass
showInsertfrm 只要是 show..的都不可以,报错说程序无法找到showform的入口点,但是如果我改名字,比如wudi,则就没有
5.0就没有问题了,不知道那位大哥可以给我答复。
unit Unit2;interfacetype
TMyclass=class
private
len:integer;
public
constructor create;
end;implementation constructor Tmyclass.create;
begin
len:=5;
end;end.帮忙看看
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.编译运行都不出错阿
你在interface 声明的,因在implementation中定义它.