Avatar of Jorge Maldonado
Jorge Maldonado

asked on 

Visual Studio 2013 executables run in Windows 8.1 but not in Windows 10

I have a Visual Studio 2013 solution with 2 C++ projects that implement Windows Sockets, one is the Client and the other is the Server. The Server is listening to a port and the Client asks to type something. When I type a message in the Client, it appears in the Server. I have performed this test in a Windows 8.1 PC. However, if I run this same executables in a Windows 10 PC, everything fails; what I type in the Client does not appear in the Server and the Client gets kind of frozen. Both Windows 10 and Windows 8.1 PCs have VS2013 installed. They are, in fact, 2 Windows 10 PC and 2 Windows 8.1 PCs, all of them  with VS2013 installed. I tested in all of them. Also, I have compiled in Windows 8.1 and Windows 10 PCs.

I will very much appreciate any clue about how to solve this issue. It is very important and urgent to get a solution as soon as possible.

I wonder if you need the code to try it yourself.

Respectfully,
Jorge Maldonado
Windows 10C++

Avatar of undefined
Last Comment
Jorge Maldonado
Avatar of Subrat (C++ windows/Linux)
Subrat (C++ windows/Linux)
Flag of India image

Change the target build option to Any CPU and check.
For both the project change the configuration property change as said above.
Avatar of Jorge Maldonado
Jorge Maldonado

ASKER

I have been searching "target build option" in VS2013 but I do not find where to set it.
I kindly ask you to provide feedback.

Best regards.
FYI: I don't have VS 2013. But hope it will help.

Do not select Solution. Select your project. This is very important.
Select Project Property->Configuration Property->Linker->Advanced->Target Machine

You can choose  X86 if you have 32-bit dependencies.
Avatar of Jorge Maldonado

ASKER

These are the options I find.

User generated image
Yes try for X86/X64
Also choose configuration as Release.
if I run this same executables in a Windows 10 PC, everything fails; what I type in the Client does not appear in the Server and the Client gets kind of frozen.

Can you keep some logs and debug it? Where exactly it hangs? Which function is doing so?
Keep logs in both sender(Client) and receiver(Server) side.
I have compiled in Windows 8.1 and Windows 10 PCs.
After compiling in Win 10, is it working in Windows 10?
You can directly keep break point and do a step by step debugging and check the problematic area.
Avatar of Jorge Maldonado

ASKER

I compiled in both Windows 8.1 and Windows 10 and the executbles do not run in Windows 10, only in Windows 8.1

Regards.
ASKER CERTIFIED SOLUTION
Avatar of Subrat (C++ windows/Linux)
Subrat (C++ windows/Linux)
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Have you done a clean build?
Avatar of Jorge Maldonado

ASKER

Issue was solved after finding some information while debugging the code.
C++
C++

C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.

58K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo