Solved

what happened to assignfile with typed files in delphi 6

Posted on 2002-06-18
3
588 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 50 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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