• Delphi Compiler Versions

    Delphi Compiler Versions
    1. Delphi Compiler Switches
    2. Delphi Compiler Directives
    • This entry was posted on Tuesday, October 25th, 2011 at 3:37 pm and is filed under Delphi 2010, Delphi 2007, Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
    • If you plan on writing Delphi code that should work with several versions of the Delphi compiler then we first need to know under which versions our code gets compiled. Suppose you are writing your own (commercial) custom component. Users of your component might have different Delphi versions than you have.

    Delphi is still alive and kicking, it is a great tool and the latest XE2 version brought many features such as 64bit compilation, iOS and MACOS compilation. So it is now a trully NATIVE Multi-Platform development tool. It is really sad what Borland did to Delphi but Embarcadero seems to be changing the game.

    I have a question in regards to the DCC32.EXE command line compiler. I have a program that will set several.DOF project option files to a single file version (i.e. When I compile with a.RES with Version info. The.RES version info overrides the DOF When I compile with a.RES without Version Info. The EXE has no Version tab whatsoever. Is there an option I am missing on the command line compile that takes the version info saved in the DOF And adds it to the EXE like the IDE compile does? What am I missing?

    Any help would be appreciated. Quote : 'David S. Dudley' wrote: Is there an option I am missing on the command line compile that takes the version info saved in the DOF And adds it to the EXE like the IDE compile does? No - and the IDE doesn't it either, because the IDE just writes out the RES The correct group for this question would have been the IDE group, orpossibly, the.objectpascal group. - Cross-/multiposted messages are automatically ignored. If you attach any data to your messageI will never see your message.

    Quote This is how we do it: We have a tool that: 1. Takes as parameters dof file name, version number, include file names 2. Updates the dof file with version information (the dof file is an ini file) 3. Creates a new rc file with the correct (file and product) version and application name (from dof file) and copyright notice and the include files as #include's. You can see an example of the format of the rc in another post in this thread. then you throw brcc32 on the rc file to get the res and then finally dcc32 to get your exe, and all of in a little bat file of course. If you want to the tool may update the dof with correct compiler settings too, or maybe you keep them in a company brcc32.cfg file like we do.

    Delphi Compiler Switches

    Ek rishtaa. Maybe I could post the tool source somewhere? (it's only 200 lines) Tomas S David S. Dudley wrote in message news:3a7f59cd2@dnews. Is there anyway to take an RES and convert it back to an RC? So I can utilize one that is already done and simply modify the Version number?

    Delphi Compiler Directives

    Thanks 'Stefan Hoffmeister' wrote in message news:24mu7t4297gfg8sif7f5b9ifu3ffso7jup@4ax.com. : 'David S. Dudley' wrote: Maybe the better question is how can I make the DCC32 create the RES file with the version info from the DOF file? You cannot.

    You need BRCC (or BRCC32) and compile from an RC. - Cross-/multiposted messages are automatically ignored. If you attach any data to your messageI will never see your message. Quote wrote: Maybe the better question is how can I make the DCC32 create the RES file with the version info from the DOF file? Or how can I create a RES file with a specific Version in it? I have been looking in the Image Editor on creating RES files and can't find the option on the Version information. Primoz Gabrijelcic had a very interesting article on that very subject in a past Delphi Magazine.

    It's called 'A Better Build Process' and was published in Issue 49 - Sept 1999 - go to www.thedelphimagazine.com and see if you can still order it as a back issue - well worth the price! What Primoz did is read the version info from the.DOF file, write it into a.RC file, and compiling that into the.RES file that Delphi expects to find and includes into the main EXE. Works like a charm. Marc - Marc Scheuner Software Engineer FastLane Technologies Inc. Halifax, Nova Scotia, Canada Email: mscheu.@fastlane.com http://www.fastlane.com.

    Delphi Compiler Versions