全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:837
推到 Plurk!
推到 Facebook!

关于delphi8 的问题?

尚未結案
coldcoffee
一般會員


發表:60
回覆:22
積分:16
註冊:2003-05-23

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-01-11 15:09:23 IP:61.51.xxx.xxx 未訂閱
我新下了一个:delphi 8 for the microsoft.net framework版,可是用它建立了一个程序,但提示有毛病。 程序如下: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, System.ComponentModel, Borland.Vcl.StdCtrls; type TForm1 = class(TForm) Button1: TButton; private { Private declarations } public { Public declarations } end; var Form1: TForm1; tempfile:file; implementation {$R *.nfm} end. 提示信息如下: [Warning] Project1.dpr(16): Unit 'Borland.Vcl.Forms' is specific to a platform [Warning] Unit1.pas(6): Unit 'Borland.Vcl.Windows' is specific to a platform [Warning] Unit1.pas(6): Unit 'Borland.Vcl.Messages' is specific to a platform [Warning] Unit1.pas(6): Unit 'Borland.Vcl.Graphics' is specific to a platform [Warning] Unit1.pas(6): Unit 'Borland.Vcl.Controls' is specific to a platform [Warning] Unit1.pas(6): Unit 'Borland.Vcl.Forms' is specific to a platform [Warning] Unit1.pas(7): Unit 'Borland.Vcl.Dialogs' is specific to a platform [Warning] Unit1.pas(7): Unit 'Borland.Vcl.StdCtrls' is specific to a platform [Error] Unit1.pas(20): Unsupported language feature: 'typed or untyped file' [Fatal Error] Project1.dpr(16): Could not compile used unit 'Unit1.pas' 毛病出在那里?以前的旧版就没事。
coldcoffee
一般會員


發表:60
回覆:22
積分:16
註冊:2003-05-23

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-01-11 15:11:24 IP:61.51.xxx.xxx 未訂閱
我新下了一个:delphi 8 for the microsoft.net framework版,可是用它建立了一个程序,只加了"tempfile:file;"这一句,但提示有毛病。 程序如下:...... 發表人 - coldcoffee 於 2004/01/11 15:17:06
chiehmin
高階會員


發表:13
回覆:134
積分:134
註冊:2002-05-23

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-01-11 15:47:12 IP:211.75.xxx.xxx 未訂閱
如果您是要存取二进制文件 或许可以改用以下方式    
uses System.IO;    var
  tempfile: FileStream;
再配合BinaryWriter 和 BinaryReader来存取... 写法可以参考Help檔....里面说得很详细..
syntax
尊榮會員


發表:26
回覆:1139
積分:1258
註冊:2002-04-23

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-01-13 08:49:03 IP:203.222.xxx.xxx 未訂閱
引言: 我新下了一个:delphi 8 for the microsoft.net framework版,可是用它建立了一个程序,只加了"tempfile:file;"这一句,但提示有毛病。 程序如下:...... 發表人 - coldcoffee 於 2004/01/11 15:17:06
在 .Net 下 這種 tempfile:file; 是被閹割的功能 所以不支援囉! --> Unsupported language feature
系統時間:2024-05-03 2:07:35
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!