Track number of compiles done on a solution
-
Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??
Why ? does it serve any purpose ? no way that I know of, but you could do a "post-event" script that increment a value and put it in a file somewhere.
This signature was proudly tested on animals.
-
Why ? does it serve any purpose ? no way that I know of, but you could do a "post-event" script that increment a value and put it in a file somewhere.
This signature was proudly tested on animals.
Maximilien wrote:
Why ? does it serve any purpose ?
Actually i want to include the number of compiles done on project's solution in my application's version number. e.g. if solution has been compiled 2315 times then version number could be made as v1.0.2315
Maximilien wrote:
but you could do a "post-event" script that increment a value and put it in a file somewhere.
What commands does post event script accept?? C++, DOS or any other?? Could you plz specify how to do that???
-
Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??
This article [^] looks interesting. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??
How's this article[^] suit you?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??
CPallini wrote:
This article [^] looks interesting.
Stuart Dootson wrote:
How's this article[^] suit you?
Thanks for the reply. :) Actually i am developing a console application in VC++. Earlier I thought of counting number of builds in some way and then adding the version information in readme file. After reading the suggested articles, I tried to integrate version information within application itself but the solution for those articles are for MFC applications i guess, since they are not working out in my console application. :confused: Can you please tell me a way of integrating version information in console application. I have tried adding "Version" resource in "Resource Files" but I am not able to link it to console application. Also, the addin utility at [^] suggested by Mr. CPallini gives errror that
VERSIONINFO
Block was not found in .rc file. Kindly suggest me a way to integrateVERSIONINFO
block in console application. And since i have posted this question 18 hrs back, i think slight modification might bring this thread under some attention otherwise i have to start a new discussion about this topic. :)modified on Saturday, March 14, 2009 8:18 AM