Solved

Using TElasticForm component in DELPHI 2005

Posted on 2007-03-21
7
839 Views
Last Modified: 2013-12-25
I have an application developed in DELPHI 7. When i run the application in DELPHI 2005, it says the error "Fatal Error: Could not compile used unit Elastfrm.pas" since missing of a component TElasticForm. I have the files \elastfrm\delphi7\elastfrm.dcr, elastfrm\delphi7\elastfrm.dcu and \elastfrm\elfrmreg.pas files.

When i tried creating a package using the pas file elfrmreg.pas it says that "[Fatal Error] elfrmreg.pas(28): F1026 File not found: 'ElastFrm.dcu'"

code unit of elfrmreg.pas
//*******************************************************************//

unit ElFrmReg;


(*****************************************************************************)
(*                           ElasticForm 7.0                                 *)
(*****************************************************************************)
(*               Copyright 1998-2002 Q-Systems Engineering                   *)
(*                       All Rights Reserved Worldwide                       *)
(*****************************************************************************)
(*               This source code is the exclusive property of:              *)
(*                           Q-Systems Engineering                           *)
(*                           29563 Greenwood Lane                                        *)
(*                          Evergreen, Colorado 80439                                     *)
(*****************************************************************************)
(*        Unauthorized distribution or disclosure of this source code        *)
(*                 or modification or removal of this notice                 *)
(*               constitutes a breach of the license agreement               *)
(*****************************************************************************)

interface

uses Classes;

procedure Register;

implementation

uses ElastFrm;          // ------------------------- ERROR OCCURS at this line while compiling the package

{$R ElastFrm.DCR}
procedure Register;

begin
  RegisterComponents('QSysGraph', [TElasticForm]);
end;


end.

//*********************************************************//

Can anyone tell me how to create a package with these files and to have TElasticForm component in the application? I want to run the application in DELPHI 2005 eventhough it was developed using Delphi 7
0
Comment
Question by:str_kani
  • 4
  • 2
7 Comments
 
LVL 21

Expert Comment

by:ziolko
ID: 18762675
\elastfrm\delphi7\elastfrm.dcr
\elastfrm\delphi7\elastfrm.dcu
\elastfrm\elfrmreg.pas files

make sure all paths are intact

ziolko.
0
 
LVL 21

Expert Comment

by:ziolko
ID: 18762677
btw.
(*        Unauthorized distribution or disclosure of this source code        *)
(*                 or modification or removal of this notice                 *)
(*               constitutes a breach of the license agreement               *)

i'll pretend that i never saw this :)

ziolko.
0
 
LVL 12

Author Comment

by:str_kani
ID: 18762803
Do you mean that elastfrm.dcr, elastfrm.dcu and elfrmreg.pas files
to be in the same path? if so, i tried that too but having all the files in the same path.

I ahhave download the elastfrm.zip from this url

http://gd.tuwien.ac.at/softeng/delphi/ftp/d10share/elastfrm.zip
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 21

Assisted Solution

by:ziolko
ziolko earned 100 total points
ID: 18762951
well looks like my d2006 won't compile it without pas file

ziolko.
0
 
LVL 18

Accepted Solution

by:
Johnjces earned 400 total points
ID: 18769114
Simply, this unit or component was compiled using Delphi 7 and the resulting DCU is a D7 DCU.

Without the pascal file, elastfrm.pas, you will never get installed in anything other than Delphi 7, unless you obtain from the author a dcu compiled with Delphi 2005 or 2006, whichever you are using.

All the author supplied were DCU files for D1 through D7.

John
0
 
LVL 12

Author Comment

by:str_kani
ID: 18778883
ok John. Thank you for your comment
0
 
LVL 21

Expert Comment

by:ziolko
ID: 18778907
str_kani sorry i couldn't be more helpful and yhanks for points

ziolko.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

706 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now