Program win32 on Windows 8 Pro - visual-studio-2010

Can I program on Windows 8 Pro for win32 c++ application only If I install Visual C++ 2010 and not visual c++ 2012? Do I need to make any changes for the project to compile the same way like it will be on Vista?

Yes you can.
no need to change the compilation process.

Related

Can I use std::chrono on 2009 x86 Windows?

Is std::chrono available to use when running on a Windows 6.1.7601 x86 PC? (Windows 7 Professional, SP1).
I'm compiling in Visual Studio 2022 (on a new x64 PC) and don't care about other targets.
I just don't know if I'm doing it wrong, or if I'm just totally off base; when running, it goes straight to the "program.exe has stopped working" popup. The latest visual C++ x86 redistributable is installed on both the target and compilation computers.
My program is command-line only, and needs to access file last modified times and the current system time.

Create C++ DLL with Visual Studio 2019 for Windows 98

I have the source code of an old C++ DLL that I want to add a new function to. The DLL was written years ago for the "Windows 98" operating system.
So I have the following question:
Is it possible to recompile the DLL with Visual Studio 2019 and Windows 10 from the existing source code?
Which settings do I have to make?
What do I have to be aware of?
Which compiler or tool do I need and how do I set it up?

Can I compile and run cuda program in windows 7 without visual studio?

Currently I am new to CUDA I have NVIDIA tesla c2075 card I install CUDA toolkit for windows. Now I don't have visual studio. I want to run and test CUDA programs without using visual studio.
The only officially supported compiler for use with CUDA on windows is cl.exe, the compiler that ships with visual studio. It also comes with the express (free) versions of visual studio. Is there a reason you don't want to do this?
You can also get the tools and set up a command-line compile environment using the Microsoft Windows SDK.

How to target Windows XP sp3 when compiling with Visual C++ 2010?

I am trying to compile a C++ program using Visual Studio 2010 Pro on a Windows 7 computer to target Windows XP sp3 32 bits.
I've played around with the compiler and linker settings, but I'm unable to produce an executable that can run on my Windows XP computer. I always get the error "Could not find entry point for function GetTickCount64 in kernel32.dll" and the program doesn't run. I know Windows XP does not support GetTickCount64() and I'm not using it in my code anyways.
I don't have other versions of Visual Studio installed, and I already installed Visual C++ 2010 Redistributable Package on the windows XP machine.
Any idea on how to accomplish this?
Thanks before hand.
VC2010 targets Windows 7 by default.
To change target to XP, check Using the Windows Headers

What is the minimum OS for a windows console app made with Visual C++ 2010?

I've created a console application using Visual C++ 2010. What is the earliest version of windows I can run the program on? I know that it can depend on what Windows API functions that you use in the program, so I only use the following functions in my program:
GetStdHandle()
SetConsoleTextAttribute()
Everything else in the program is standard C++. I know that console applications should be able to run on very early versions of Windows, but I do not know how VC++ 2010's compilation affects the minimum operating system requirement. So, would a console application compiled on Windows Vista with Visual C++ 2010 be able to run on, say, Windows 95, ect.?
According to Can I use Visual Studio 2010's C++ compiler with Visual Studio 2008's C++ Runtime Library?, VS C++ 2010 runtime depends on features from Windows XP SP2. So, unless you do some workarounds to avoid the C++ 2010 runtime, that is the oldest version you can target.

Resources