Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Track number of compiles done on a solution

Track number of compiles done on a solution

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NeoAks007
    wrote on last edited by
    #1

    Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??

    M C S N 4 Replies Last reply
    0
    • N NeoAks007

      Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      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.

      N 1 Reply Last reply
      0
      • M Maximilien

        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.

        N Offline
        N Offline
        NeoAks007
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • N NeoAks007

          Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          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]

          1 Reply Last reply
          0
          • N NeoAks007

            Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            How's this article[^] suit you?

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            1 Reply Last reply
            0
            • N NeoAks007

              Hi All, Is there any automated way in Visual C++ 2008 to count the number of times the solution gets compiled??

              N Offline
              N Offline
              NeoAks007
              wrote on last edited by
              #6

              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 integrate VERSIONINFO 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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups