Hello,
I know that with getenv, I can query the value of a regular environment variable:
auto pEnv = getenv("DXSDK_DIR");
However, I'm interested in querying visual studio-specific "macros" (thats how they put it) for my build-process, like this:
auto pEnv = getenv("MsBuildBinPath"); // always returns nullptr
If you're unsure what I mean with those macros, goto project properties >> C/C++ >> General >> Additional Include directories >> "Macros >>"-button in the bottom right (which includes all environment variables, but also said VS-specific tings which are not in the general environment variables, and appearently cannot be read with getenv. My google-search didn't yield me any results, so anybody got an idea how to read those specific "macros" in code?
And if thats not directly possible, how do I access the binary directory for the actual version of MSBuild, without manually defining an environment variable?