Application::ProductVersion usage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike E

    #1

    Application::ProductVersion usage

    How is this set in visual c++. I assumed it was in the AssemblyInfo.cp p
    file, but the changes are never picked up and
    Application::Pr oductVersion keeps coming back empty.

    Help is appreciated.

  • Tomas Restrepo \(MVP\)

    #2
    Re: Application::Pr oductVersion usage

    Hi Mike,
    [color=blue]
    > How is this set in visual c++. I assumed it was in the AssemblyInfo.cp p
    > file, but the changes are never picked up and
    > Application::Pr oductVersion keeps coming back empty.[/color]

    Unfortunately, Application::Pr oductVersion never returns the correct
    information (or rather, any information at all) for an MC++ application.
    It's the same case as what I describe in detail here:



    the good news is that this is fixed in VS2005.


    --
    Tomas Restrepo
    tomasr@mvps.org



    Comment

    • Mike E

      #3
      Re: Application::Pr oductVersion usage

      So how do you set all the version stuff, the old MFC way with
      version_info?

      Comment

      • Tomas Restrepo \(MVP\)

        #4
        Re: Application::Pr oductVersion usage

        Hi Mike,
        [color=blue]
        > So how do you set all the version stuff, the old MFC way with
        > version_info?[/color]

        Not necessarily. You can *still* use the information encoded in the assembly
        attributes if you want, you just have to dig it out yourself using
        System::Reflect ion; the corresponding properties in the Application class
        are just "shortcuts" to that info.


        --
        Tomas Restrepo
        tomasr@mvps.org



        Comment

        • Mike E

          #5
          Re: Application::Pr oductVersion usage

          I was talking about the right click, properties, version tab stuff.

          Thanks,

          Mike

          Comment

          • Tomas Restrepo \(MVP\)

            #6
            Re: Application::Pr oductVersion usage

            Hi Mike,
            [color=blue]
            >I was talking about the right click, properties, version tab stuff.[/color]

            Ahh, that, sorry :)

            Yes, you get those by using the usual unmanaged VERSION resource on the
            exe/dll.


            --
            Tomas Restrepo
            tomasr@mvps.org



            Comment

            • Mike E

              #7
              Re: Application::Pr oductVersion usage

              gratzi!

              Tomas Restrepo (MVP) wrote:[color=blue]
              > Hi Mike,
              >[color=green]
              > >I was talking about the right click, properties, version tab stuff.[/color]
              >
              > Ahh, that, sorry :)
              >
              > Yes, you get those by using the usual unmanaged VERSION resource on the
              > exe/dll.
              >
              >
              > --
              > Tomas Restrepo
              > tomasr@mvps.org
              > http://www.winterdom.com/[/color]

              Comment

              Working...