2021-08-10 08:04 PM
I'm working with touchgfx using C++ in Visual Studio 19 and I'm trying to configure the simulator environment. I would like to write an additional command program to configure the touchgfx simulator and simulation environment. However, the conflict between Winsock2.h and windows.h kept happening while enforcing socket communication. I tried to find and apply a solution, but to no avail. For example #define WIN32_LEAN_AND_MEAN, #define _WINSOCKAPI_ was written before #define windows.h but failed. I also tried changing the order of #include <windows.h> and #include <winsock2.h> , but it failed.
So, if there is an example code that works normally, I would like to refer to it.
Please help me
Thanks