The program I wrote to test this is just a simple program that performs calculations based on user input. It calculates the likelihood that given an n amount of people with different birthdays, two of them will have the same birthday.
It seems I am still having quite a bit of trouble with this topic, and I suppose in this post I am reneging my previous statement, "I am not writing this post to ask how to fix this one particular problem on this one machine" in a hope that knowing how to fix this one problem will give me the insight to fix future issues. Jonnin's post helped a lot. I had not realized I was in debug mode or even what debug mode is. I have since compiled in release mode, yet my program still generates errors on other Windows pc's. This error that I had written above:
"The program can't start because MSVCP140D.dll is missing from your computer. Try reinstalling the program to fix this problem."
has now become this error:
"The program can't start because MSVCP140.dll is missing from your computer. Try reinstalling the program to fix this problem."
At least the debug version is fixed even if the error has only altered form. But I also have gotten this error on another Windows PC:
"filename.exe is not a valid Win32 application."
To change Configuration to release mode I had used the configuration manager found in: Project -> Properties -> Configuration Manager (button at top right of window). There I verify that it uses Win32 as a platform. At that screen, I also have Build checked and Deploy unchecked.
I have begun to use Dependency Walker (version 2.2.6000 x64) as advised from this Microsoft page:
https://docs.microsoft.com/en-us/cpp/ide/understanding-the-dependencies-of-a-visual-cpp-application
Since this is from the Visual Studio 2015 reference page, I wonder if Jonnin was alluding to Dependency Walker, although I had to download it. When opening the release version of my program in Dependency Walker, this error message appears:
"Errors were detected when processing filename.exe. See the long window for details"
The log window does not seem to be something very clearly named, so I assume it is the area which is aligned along the bottom of Dependency Walker. In this area are two listed errors in red. These errors are:
"Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module."
and:
"Error: Modules with different CPU types were found."
So, how am I doing, and what should I do as a developer to try to solve this issue of not being able to run a small program on 32bit Windows machines? If it makes a difference, the PC which has Visual Studio runs a 64 bit Windows operating system.