E1097: unknown attribute "no_init_all" in winnt.h

Hello all,

I whenever I try to run any OF 3d examples, this error shows up.

So I did some Googling and found this: https://developercommunity.visualstudio.com/content/problem/539919/e1097-unknown-attribute-no-init-all-in-winnth-in-w.html

Where is says to simply use this code to ignore the error:

If this is the correct solution, can anyone help me out in detail(step by step) how to add this?
I am quite lost on how and where to add these lines.

Thank you!

can you try to regenerate the example project with Project Generator?
If the other examples are compiling it is strange that the 3D ones are not.
I see you are on Windows. Can you specify which version of it as well as the version of Visual Studio?

Yes, I have tried to re-generate multiple examples(3D and other) but always had the same error.
My PC is Windows 7 and running with Visual Studio 2017 and 2019.

I think this is coming from Windows OS itself because my laptop (Windows 10) is working fine.

I am not a Windows user, although I tend to compile a lot for it, and never gotten that error. Yet I would be quite positive that the issue es because of windows 7 as it is super old.

Machine spec itself actually pretty good, just the OS is the old bag.