Can you make metro apps for windows 8 with using only c++? I mean, without all those windows compiler specific extension like gc and all that. I’ve tried search some code for windows 8 dev, and every code example for c++ uses all those rather useless windows c++ extensions.
Share
Your question is essentially about whether you have to use C++/CX extensions to write Metro applications.
No, you do not have to; all of the language extension have in-language analogs. You can think of the C++/CX extensions to be like Qt’s pre-processor setup magic. All of the C++/CX extensions have equivalent pure C++ analogs. You could write it all out explicitly.
You just don’t really want to. Metro APIs are based on COM objects and so forth. So you will have to explicitly deal with COM interfaces, marshalling, and so forth.
Either way, you’re writing code that’s only going to work on Windows. So you may as well make it easy on yourself and just use the language extensions where necessary.