In Visual Studio 2010 C ++ Express, how do I install data like exe version, build
You did not say whether you are using managed or unmanaged C ++.
For unmanaged C ++ (e.g. MFC) you need to create a version.rc file . You can use the resource editor to help you with the .rc file.
For managed C ++ (i.e. the CLR (.NET) C ++ project), edit or create the AssemblyInfo.cpp file.
Here is an example of AssemblyInfo.cpp to get you started:
#include "stdafx.h" using namespace System; using namespace System::Reflection; using namespace System::Runtime::CompilerServices; using namespace System::Runtime::InteropServices; using namespace System::Security::Permissions; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly:AssemblyTitleAttribute("foo")]; [assembly:AssemblyDescriptionAttribute("")]; [assembly:AssemblyConfigurationAttribute("")]; [assembly:AssemblyCompanyAttribute("Microsoft")]; [assembly:AssemblyProductAttribute("foo")]; [assembly:AssemblyCopyrightAttribute("Copyright (c) Microsoft 2011")]; [assembly:AssemblyTrademarkAttribute("")]; [assembly:AssemblyCultureAttribute("")]; // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the value or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly:AssemblyVersionAttribute("1.0.*")]; [assembly:ComVisible(false)]; [assembly:CLSCompliantAttribute(true)]; [assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
Does the Visual Studio compiler add personal data to an executable file, such as an IP or MAC address?
No. Where did you hear that?
source share