Application::ProductVersion usage

  • Thread starter Thread starter Mike E
  • Start date Start date
M

Mike E

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

Help is appreciated.
 
Hi Mike,
How is this set in visual c++. I assumed it was in the AssemblyInfo.cpp
file, but the changes are never picked up and
Application::ProductVersion keeps coming back empty.

Unfortunately, Application::ProductVersion 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:
http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vc/msg/ec9ccbab4c9798c7?hl=en&


the good news is that this is fixed in VS2005.
 
Hi Mike,
So how do you set all the version stuff, the old MFC way with
version_info?

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::Reflection; the corresponding properties in the Application class
are just "shortcuts" to that info.
 
Hi Mike,
I was talking about the right click, properties, version tab stuff.

Ahh, that, sorry :)

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