Solved

Wait While Custom Build Tool Runs

Posted on 1998-11-17
6
264 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
[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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 54
Error on moodle after upgrade 3 149
substring method in java 1 136
centeredAverage challenge 8 186
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.

733 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