1. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    The Great Southwest
    Rep Power

    Untyped file declaration throws an error

    There may be an easy answer to this, but I've searched for a couple of hours 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
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    Try qualifying the namespace explicitly perhaps?

    myFile: System.IO.File;
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo