| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 5180 人关注过本帖
标题:新手求助,could not compile used unit 错误
只看楼主 加入收藏
t271265
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-6-8
收藏
 问题点数:0 回复次数:1 
新手求助,could not compile used unit 错误
unit Unit1;

interface

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

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

var
  Form1: TForm1; myinifile:Tinifile; filename:string

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
filename: = 'd:\tor.ini'
myinifile:=Tinifile.create('d:\tor.ini');//打开D盘的 tor.ini 文件。
myinifile.readstring('[系统]','数字','缺省值');//读取字符型数据。
ShowMessage(myinifile.readstring);
myinifile.Free;//释放INI文件。
end;
end.



错在什么地方啊
搜索更多相关主题的帖子: procedure Windows private public 
2015-06-08 13:48
bccnwshmm
Rank: 2
等 级:论坛游民
帖 子:18
专家分:16
注 册:2015-11-20
收藏
得分:0 
var
  Form1: TForm1; myinifile:Tinifile; filename:string

红线部分没有找到,可换成其它。


[此贴子已经被作者于2015-12-15 23:10编辑过]

2015-12-15 23:09
快速回复:新手求助,could not compile used unit 错误
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016464 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved