Visual Studio MSFS Platform Intellisense flags simple string declarations as errors

Hi guys,

just to add another really non-elegant option: simply add an x64 platform to your solution and code in that one. Switch back to MSFS for compilation only.

Greets,
Ben

Thanks, thatā€™s the best solution so far. I guess x86 even better as WASM is 32bit.

1 Like

Hi guys, this is what I get with and without hacks.h

but this works good:

std::string s3 = "asd" + std::to_string(1);

regards
ROB

Yep, totally annoying. Still havenā€™t found a workaround besides peppering my code with ā€œignore Intellisenseā€ comments next to these bogus errors (not just with strings, either). Seems to have gotten worse even (more bogus warnings) after some SDK update in the past year. Itā€™s almost worth disabling IS for the WASM code altogether (if I could figure out how to do that per code unit).

And yes specifying the string size in the string cā€™tor will remove those warnings, but thatā€™s silly. I refuse to change one speck of code just to please an interpreter that thinks too highly of itself.

1 Like