How to make the program written in VS2015 run smoothly in XP

Updated on technology 2024-04-27
4 answers
  1. Anonymous users2024-02-08

    2.VS2015 Development XP Program Settings.

    1.Project Menu - > Project Properties - > Configuration Properties - > General - > Platform Toolset, select VS2013WindowsXP(V120 XP)";

    2.Project Menu ->Project Properties -> Configuration Properties -> General -> MFC Usage, choose to use standard Windows libraries; If you use a static library for compilation, choose a static library and use MFC in a static library.

    3.Project Menu -> Project Properties -> Configuration Properties -> General -> Character Set with Multi-Byte Character Set or Use Unicode Character Set.

    4.Project Menu > Project Properties - > Linker - > System - > Subsystem - > Console or Windows (depending on your project type), the second version number is set.

    In the actual test, these two items can also be set without setting, connector and automatic matching.

    5.c c++-linker-> command line, enter the corresponding command line, this step is very critical, otherwise there will be a "not a valid win32 application" prompt;

    Set different command-line options depending on whether the runtime environment is a graphics window or a command-line window, and if the runtime environment is a command-line window, the following command is used:

    subsystem:console," for win32 on 32-bit platforms).

    subsystem:console, "for x64 on 64 platform).

    If the runtime environment is a graphics window, use the following command:

    subsystem:windows," for win32 on 32-bit platforms).

    subsystem:windows," for x64 on 64 platform).

    Now you can compile and run the program, give it a try.

  2. Anonymous users2024-02-07

    Applications written in VS2015 can only run on Win8 Win10 in the default configuration. Fortunately, the settings for generating XP programs are still retained. XP and Win2003 users still exist in large numbers, and the release of our program software cannot but consider them.

    In addition, the XP system is a good platform for testing win32 programs, the system is small, the startup speed is fast, and it is very good to install it on the virtual machine as a test system.

  3. Anonymous users2024-02-06

    When many friends copy the program generated by VS to the Windows XP system computer, they will encounter the situation that the program cannot be run, prompting "not a valid win32 application", what should I do? Below, let's take a look at the specific solution to this problem. Rent a stove.

    The details are as follows:

    1. Project-attributes;

    2. General-Platform Toolset, select "VS2013WindowsXP(V120 XP)";

    3. There will be an error when you run it again, the situation is as follows, don't be in a hurry to continue looking;

    4. C C++-** Build-Runtime, select "Multi-threaded (MT)" brother type;

    5. If it can't run yet, please set the following properties:

    1.Project Menu > Project Properties - > Linker - > System - > Subsystem - > Console or Windows (depending on your project type), the second version number is set.

    2.Project Menu - Project Properties - Configuration Properties - General - Use of MFC, select Use MFC in Static Library;

    3.It also needs to have at least update3 (or 4), which I didn't verify, because the direct installation is vs2013 with update3.

    The above is the solution to the problem that the Windows XP system cannot run vs the generated program. Friends who encounter the same problem, don't worry too much, just follow the above steps, I believe it will be solved soon!

  4. Anonymous users2024-02-05

    Additional notes: (1) The program must be dotnet and below. (XP only supports versions and below, and dotnet is not supported.)

    2) For programs written in C, you do not need to set the following settings, as long as you install the corresponding dotnet version in the XP of the target machine.

    Errors and solutions to C++ programs written in VS2013 under Win7 running under XP.

    1.The error message when running under XP is: "Not a valid Win32 application. ”

    Solution: Configure Properties] - General - Platform Toolset and select VisualStudio 2013 (V120 XP).

    Note: There is no option for programs written in C, how to solve the problem of C's program running under XP, to be solved.

    2.Change the original dynamic compilation to static compilation, otherwise the error message is: Not found.

    Solution: Configure Properties] - [C C++] **Generate] - [Basic Runtime Library], change the default "Multi-threaded Debugging DLL (MDD)" to "Multi-threaded (MT)", and recompile it after confirmation.

    Note: It is said on the Internet that this step needs to select "multi-threadeddebug (mtd)" or "multi-threaded (mt)" according to your current project properties debug or release, but I select "multi-threaded mt" in debug or release mode, and it will work normally.

    3.[Configuration Properties] - [General] - [Use MFC], select "Use MFC in a static library" (non-MFC programs can be ignored).

    Note: After I changed this step, the compilation error was reported for unknown reasons.

    Just do the first 1 or 2 steps, and you can run under XP.

    4.Recompile all external libraries that depend on your project as in steps 1 3.

    It is important to note the fourth step. If you've only completed the first three steps and you've found a bunch of link errors in your compilation project, that's why you didn't do the whole fourth step.

    If a project uses a library with different versions of the base runtime library, it will inevitably lead to conflicts.

    If you're using a third-party library that doesn't have source code and isn't compiled with MTD or MT, you're probably in for a tragedy.

    5. It is said on the Internet that it still needs to be modified in the following aspects, but it has not been tested:

    The original text says: Project Menu - > Project Properties - > Linker - > System - > Subsystem - > Console or Windows (depending on your project type), the second item version number is set.

Related questions
10 answers2024-04-27

shell ("shutdown -s -t 360") 'It means that it will turn off after 360 seconds. >>>More

13 answers2024-04-27

After entering the 90s of the 20th century, the mutual information technology based on modern information technology

19 answers2024-04-27

Tasks for the desktop.

The bai column is divided into two parts, the left is the task of starting and running the dao; On the right is the notification bar. Return. >>>More

5 answers2024-04-27

How to sync iPad screen to computer can refer to the following methods: >>>More

7 answers2024-04-27

According to the impulse theorem.

As long as the force experienced by the egg during deceleration is less than the maximum force that the eggshell can withstand. >>>More