?
Solved

execute command after build

Posted on 1998-05-26
9
Medium Priority
?
205 Views
Last Modified: 2013-12-03
In Visual C++ 4.2, is there any way to automatically execute a command (exe) after a successful build?
0
Comment
Question by:faster
[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
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1404236
I don't have the version 4.2. Since you are asking this question, it seems different from the version 5.0. But you should be able to do it by editting the .mak directly.
0
 
LVL 7

Author Comment

by:faster
ID: 1404237
Is there ant way provided by the IDE itself?  I don't like modify the make file manually,
0
 
LVL 11

Expert Comment

by:alexo
ID: 1404238
Create a new project in your workspace.  Make it a "makefile".  Make it a default project.  Chose any command you wish as the build procedure.  Make your original project a subproject of the new one.

Now, whenever you build the new project, the subproject will be buit first.

0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 7

Author Comment

by:faster
ID: 1404239
Sorry, I want a seamless solution by the IDE, if the IDE itself can't do this cleanly, I'd rather not have it.

So it seems that there is no such feature in VC.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1404240
If you want the IDE of 4.2 to automatically and transparently execute a command after any successful build then no, you cannot do it.

You do however have several workarounds:
1. chensu's suggestion of editing the .MAK files.
2. My suggestion of using subprojects.
3. Create a "tool" that will invoke the makefile and your command.

0
 
LVL 3

Accepted Solution

by:
Norbert earned 200 total points
ID: 1404241
There is a simple solution - I have tested it and it works:
Menu Build -> Settings  
custom build
 Build commands:
       $(TargetPath)
Output File
       NULL
my application runs now automatically after build
Hope that helps
   Norbert


0
 
LVL 7

Author Comment

by:faster
ID: 1404242
Thanks Norbert.  How come I did not the "custom build" tab.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1404243
So, that is the same as Visual C++ 5.0.
0
 
LVL 7

Author Comment

by:faster
ID: 1404244
Sorry that I confused you, chensu.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

770 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