DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: deliping
今日帖子: 2
在线用户: 1
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 michale_shen ★☆☆☆☆ -
普通会员
2004/3/1 23:37:34
标题:
关于定义过程出错 浏览:1460
加入我的收藏
楼主: 为什么我定义一个无参的过程也会出错啊,随便定义了个类写个过程就会报这个错误,
如果在tform 下面泻这个过程也一样出错。

代码很简单啊
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

  aaa = class
  private
    { Private declarations }
  public
    Procedure MyProc;
    { Public declarations }
  end;



var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  MyProc;
end;


Procedure Myproc;
  Begin
//      I:=Param1;
//      j:=Param2;
//  k:=realtoint(Param3);
    End;
end.

出错提示是:
[Error] Unit1.pas(25): Unsatisfied forward or external declaration:
'aaa.MyProc'


请高手们帮我看看,谢了!
----------------------------------------------
-
作者:
男 sephil (NAILY Soft) ★☆☆☆☆ -
盒子中级会员
2004/3/2 0:13:10
1楼: Procedure aaa.Myproc;
  Begin
//      I:=Param1;
//      j:=Param2;
//  k:=realtoint(Param3);
    End;
end.

其实你写完函数声明后按Ctrl+Shift+C
Delphi会帮你自动完成实现代码的框架的
----------------------------------------------
Copyright 2008 ? NAILY Soft

Click here to redirect to my home
Click here to redirect to my blog
作者:
男 qiongfei (茕菲) ★☆☆☆☆ -
普通会员
2004/3/3 10:25:24
2楼: 是啊,我也碰到过这样的问题,明明定义了,但是系统还是说我没有定义,我就是按了ctlr+alt+C的啊
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行69.33594毫秒 RSS