Does a separate .exe always require a separate project in Delphi? -
our application requires quite few tools , utilities have written support our product. things data converters, backup utilities etc. currently, each of these utilities separate delphi project. on top of that, many of these projects have corresponding dunit project unit testing, have separate project. have 13 separate delphi projects. these projects in 1 project group.
is necessary? have have many separate projects, or there way in delphi have multiple entry points same project?
also, convenient during development write code , 'run' it. end hacking project file; commenting out normal behaviour , replacing code want run. way?
we use delphi 2010 if makes difference.
you can either of these pretty easily:
combine projects project group, able work them more easily.
(my preference) separate projects different units (instead of project files), create single application uses units, , call different functionality based on command-line parameters (see
paramcount
,paramstr
in documentation) can write unit tests testing each of units (pun not intended) separately.
regarding edit: delphi compiled, not interpreted, language. can't "run" code without compiling it, unless can use functionality that's in app using evaluate/modify
menu item during debugging. (set breakpoint , run app. when hits breakpoint, use ctrl+f7
open evaluate/modify
dialog. note has limited functionality due nature of optimizer , compiler.
Comments
Post a Comment