Solved

execute command after build

Posted on 1998-05-26
9
204 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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 50 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

691 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