cancel
Showing results for 
Search instead for 
Did you mean: 

Can I get a socket communication example that I can use in the TouchGFX simulator?

SKim.27
Associate

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

1 REPLY 1
farukisiker
Associate

Are there any update?

<windows.h> is not recognized by stm32cubeide. I tried to open it in VS 2022 over Application.sln. It also gives errors. Can any of ST employee create a tutorial about including toucgfx simulator to VS. Especially sending keyboard key state to emulate hardware buttons.