[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Version Resource

Posted on 1997-04-25
2
Medium Priority
?
185 Views
Last Modified: 2010-04-04
How do I make Delphi2 EXE's with Microsoft Version information ?

I used my C compiler's resource studio to create a RES file with version info.  I then added {$R VER.RES} to my DPR file.  When viewing the properties of my EXE from the windows explorer there is no version tab (hate that!).
0
Comment
Question by:mlanza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
buemoh earned 100 total points
ID: 1335727
Dear mlanza,

I think, there might be two reasons, why you'ven't got any version information.

1. Your version.res should like look this:
--------------------------------------------------------------
1 VERSIONINFO
FILEVERSION 3, 10, 0, 61
PRODUCTVERSION 3, 10, 0, 61
FILEOS VOS_DOS_WINDOWS32
FILETYPE VFT_APP
{
 BLOCK "StringFileInfo"
 {
  BLOCK "040904E4"
  {
   VALUE "CompanyName", "Your company\000\000"
   VALUE "FileDescription", "Description about the file\000"
   VALUE "FileVersion", "1.00\000\000"
   VALUE "InternalName", "Internal application name\000"
   VALUE "LegalCopyright", "Copyright © your company 1997\000\000"
   VALUE "OriginalFilename", "EXE-filename\000"
  }

 }

 BLOCK "VarFileInfo"
 {
  VALUE "Translation", 0x409, 1252
 }

}


2. Your projcet should like look this:
-------------------------------------------------------
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1};

{$R *.RES}
{$R VERSION.RES}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.


Be carefuly, but you should compile the VERSION.RC file with the BRCC32.EXE program found in the \Delphi 2.0\bin directory.

On my Windows95 Windows Explorer now the version information is shown.

Hope, that are the ways you needed.

Bye

Hartwig

-----------------------------------------------------------
///\\\ Hartwig MOTAL ///\\\  e-mail: moh@bue.magwien.gv.at
 Weinberggasse 60/9/7, A-1190  Vienna/Austria/Europe

0
 

Expert Comment

by:lkovac
ID: 1335728
Use BRCC32.EXE to compile your resource.
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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