For Programmers: Free Programming Magazines  


Home > Archive > Delphi > June 2004 > Untyped file declaration throws an error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Untyped file declaration throws an error
Hop

2004-05-23, 4:36 pm

There may be an easy answer to this, but I've searched for an hour
with no luck at all.

I'm using Delphi 8, and I'm trying to read a binary file. When I try
to declare a variable as an untyped file, as in...

myFile : File;

I get an error... "Unsupported Language Feature: 'typed or untyped
file'"

My uses are;
System.Drawing, System.Collections, System.ComponentModel,
System.Windows.Forms, System.Data, Dialogs, System.IO,
Messages, SysUtils, Classes, Graphics, Controls, Forms,
StdCtrls, ExtCtrls, FileCtrl, System.Resources;

I know that is a lot of unnecessary uses, but I'm a newbie to Delphi
and I was trying to see if something was missing from the uses
section.

Please help!

Thanks - Hop


-----= Posted via webservertalk.com, Uncensored Usenet News =-----
http://www.webservertalk.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jamie

2004-05-24, 11:38 pm

sorry to inform you but D8 does not do the standard Pascal native code .
it is Strictly D8 for .NET only.. borland took it upon them self's to
release a compiler for .NET and call it D8 which is just one version
above the last compiler D7 which does do what you need.
in short, D8 is .NET code only ! Borland simply try to supply enough
unit lib's to make functions/procedures as near to the native pascal D7
language as possible
they claim D8 for .NET had to be released because of ship dates etc.
if you ask me, it was simply a ploy to get more people to purchase it
and have it loaded on their PC's.. so what you have is a lot of people
thinking it should just be a simply advancement over prior versions of
delphi.. but instead its just a language look alike that is totally
different and does not offer the win32 core.
sounds like crook ate marketing strategies to me.


Hop wrote:
> There may be an easy answer to this, but I've searched for an hour
> with no luck at all.
>
> I'm using Delphi 8, and I'm trying to read a binary file. When I try
> to declare a variable as an untyped file, as in...
>
> myFile : File;
>
> I get an error... "Unsupported Language Feature: 'typed or untyped
> file'"
>
> My uses are;
> System.Drawing, System.Collections, System.ComponentModel,
> System.Windows.Forms, System.Data, Dialogs, System.IO,
> Messages, SysUtils, Classes, Graphics, Controls, Forms,
> StdCtrls, ExtCtrls, FileCtrl, System.Resources;
>
> I know that is a lot of unnecessary uses, but I'm a newbie to Delphi
> and I was trying to see if something was missing from the uses
> section.
>
> Please help!
>
> Thanks - Hop
>
>
> -----= Posted via webservertalk.com, Uncensored Usenet News =-----
> http://www.webservertalk.com - The #1 Newsgroup Service in the World!
> -----== Over 100,000 Newsgroups - 19 Different Servers! =-----


Hop

2004-06-03, 7:26 pm

Yes.
I'll have to say that this little issue has me fairly alarmed.
Especially since the reference to using untyped files came from the
help file. >=(

I'll have to look at TFileStream I guess. Here we go again.

Hop

On Mon, 24 May 2004 23:06:21 -0700, Jamie
< jamie_5_not_valid_after_5_Please@charter
.net> wrote:
[color=darkred]
>sorry to inform you but D8 does not do the standard Pascal native code .
>it is Strictly D8 for .NET only.. borland took it upon them self's to
>release a compiler for .NET and call it D8 which is just one version
>above the last compiler D7 which does do what you need.
> in short, D8 is .NET code only ! Borland simply try to supply enough
>unit lib's to make functions/procedures as near to the native pascal D7
>language as possible
> they claim D8 for .NET had to be released because of ship dates etc.
>if you ask me, it was simply a ploy to get more people to purchase it
>and have it loaded on their PC's.. so what you have is a lot of people
> thinking it should just be a simply advancement over prior versions of
>delphi.. but instead its just a language look alike that is totally
>different and does not offer the win32 core.
> sounds like crook ate marketing strategies to me.
>
>
>Hop wrote:



-----= Posted via webservertalk.com, Uncensored Usenet News =-----
http://www.webservertalk.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com