?
Solved

what happened to assignfile with typed files in delphi 6

Posted on 2002-06-18
3
Medium Priority
?
612 Views
Last Modified: 2007-12-19
assignfile does not appeard to work with  a simple typed file complaining that that there is no
overloaded function any ideas this works fine in 5 down
type
Brec=   packed  record
                                  brd :byte;
                                 scnt :byte;
                              B_ID  :int64;
                            end;

brds = file of brec;
var
       bf:brds; //as var                     //declared either way
       
       bfile:file of brec;
begin
  Assignfile(bf,'rembrd.dta');        //neither one works
  Assignfile(bfile,'rembrd.dta');



             
0
Comment
Question by:rrkelly
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 200 total points
ID: 7091539
perhaps you are using some units that have the same procedure name (AssignFile)?

Try with
  System.AssignFile(bf, 'rembrd.dta');
0
 

Author Comment

by:rrkelly
ID: 7091593
The problem was OoMisc (stock delphi unit) which was brought in by an Async4 serial port component
Oomisc has several overloaded assignfile function which were causing a conflict with the System unit
which is where assignfile is to be used from
Thank You
 DragonSlayer
  this lizard is dead disected and buried.




























 
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7091604
my pleasure :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question