Solved

Wait While Custom Build Tool Runs

Posted on 1998-11-17
6
244 Views
Last Modified: 2013-11-20
I run a custom build tool to date/version stamp my resources.  On most machines  (Win95 MSVC4.2) the build process waits for the tool to close before proceeding. On one, it does not wait.  On my machine, it waits in 4.2, but in recently installed DevStudio 5.0 it does not. The behavior is not specific to my tool.  Notepad behaves the same way.
0
Comment
Question by:NullTerminator
  • 3
  • 3
6 Comments
 
LVL 3

Expert Comment

by:shaig
ID: 1324844
Are you sure you didn't mix the custum build with the pre-link page?
Anyway, why not use the pre-link option?
Or, don't you want to version your files only if the build was succesful?  if yes, use the post biuld option!
0
 
LVL 3

Author Comment

by:NullTerminator
ID: 1324845
Your answer was three questions. No I am not mixing the Custom Tab with the pre link page.  MSVC 4 didn't have a prelink page.  I am not stamping the executable, I am writing the VS_VERSION_INFO block of the resources.  I have access to all of the versioning info, and I don't have to worry about space allocation in the executable.  Fail or succeed, the stamp is the same.
0
 
LVL 3

Expert Comment

by:shaig
ID: 1324846
Let me be more specific:
Since you mentioned that you HAVE passed to VC5.0 wich has the tab i mentioned ( and maybe because you aren't familur with VC5.0 because you've just recently switched from 4.2 ), i only suggested you check.

Any way, if it is important that you do your stuff after the bulid, the i suggest you use the post-build option of the VC5.0.

Mybe my English isn't clear enough, since i'm not an American.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Author Comment

by:NullTerminator
ID: 1324847
I don't think my question was clear. In 4.x the build process stopped while my tool collected version information from the user.  This is the desired behavior. It worked on all but one machine.

We are testing development on 5.0.  5.0 does not wait on any of the tested machines.  This is not desired.  I AM NOT stamping the executable.  I am stamping the resource VS_VERION_INFO block.

An alternate solution for 5.x would be to run my tool as a pre link operation on the resources, and then add something to force the resource compiler to recompile prior to linking. If you can tell me how to trigger the resource compile so the linker sees the change I'll accept an answer.
0
 
LVL 3

Accepted Solution

by:
shaig earned 100 total points
ID: 1324848
Is it possible that you have not saved changes to the resource file and that is why changes are ignored? (the date is not new enough to trigger recompilation)

0
 
LVL 3

Author Comment

by:NullTerminator
ID: 1324849
No it is not possible.  The problem is the build process does not wait for my tool to finish before proceeding.  The dependency check process does not see the updated date on the file after my tool closes.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 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

20 Experts available now in Live!

Get 1:1 Help Now