Delphi DFM not found

I have one link to the xyz.pas file in my project. But this file is not with me. I have an xyz.dcu and xyz.obj file for this xyz.pas file. When I tried to compile the project, I got the error "xyz.dcu not found". So I included the xyz.dcu path in the search path. Now I get the error "xyz.dfm not found".

Please offer me a solution. Is it possible to compile a project only with .dcu and .obj files?

Thanks in advance. Regards, Naren

+5
source share
5 answers

I hope you have not lost your job.

, Delphi :
PAS + DFM = > DCU
DCU + RES = > EXE
Delphi .

, DCU. PAS , Delphi ( DFM).
, Obj .


DFM , . , , , PAS, , GUI ( - ).

( ):

, PAS . :

TYPE
  TYourForm = class(TForm)
     xLabel: TLabel;
     yButton: TButton;
     etc
     etc
  end;

, PAS (xLabel, yButton ..). GUI. , PAS PAS. : DFM PAS . , ! , .

:
, DFM DCU/EXE.
: www.delphi2.software.informer.com/download-delphi-extract-dfm
!


.PAS - Delphi
PAS Source Control
Delphi PAS . . , . .pas Delphi. .pas.

.DCU - Delphi
(.pas). , , .DCU( Delphi). , unit1.dcu , unit1.pas. , , (.PAS) .DCU . .dcu , Delphi .

.DFM - Delphi
DFM Source Control
.pas. Dfm () , . , . Delphi .dfm .exe. , IDE . . " " , . .dfm.

: delphi.about.com/od/beginners/a/aa032800a.htm

+5

, DFM . : XN. RC DATA TXYZ.

+3

Delphi 20xx/XE
, Delphi dir __history.

.pas,.dfm .
, .

( ) *.~*~, , .
, , .

Delphi 7
Delphi 7 , , .~.

+2

DFM "" ( , , , , ...) (). PAS ( DCU ) DFM, . , , DFM.

( , !): DCU , PAS DCU , DCU -, , DCU.

+1

, , .

/ Project
  / Source
    / Unit1.pas
  / Packages
    /Delphi2010Berlin
      / MyPackage1.dpk
      / MyPackage2.dpk
  / Library
    / Delphi2010Berlin
      / Win32
        / Debug
        / Release

/Project .bat 'dfmcopy.bat'

, ,

@echo off
for /r %1 %%x in (*.dfm) do @copy "%%x" %2 /Y >NUL

.bpl

./../../dfmcopy.bat $(PROJECTPATH)\..\..\Source $(PROJECTPATH)\..\..\Library\$(Platform)\$(Config)

.dfm, /Source /Library/ {DelphiVersion}/{Platform}/{Config}

One caveat is that if you have multiple projects that have this post build event, dfms can be copied over and over for each project. I don’t know if this can happen now.

0
source

All Articles