Solved

execute command after build

Posted on 1998-05-26
9
203 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is it possible to use a scroll bar to view records in a form? 7 46
SQL to ElasticSearch Query 1 776
Issue testing the Class Library 4 64
Problem to open text file 11 136
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

749 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