News for hackers. Stuff that matters.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by masterofmisc on Saturday January 03, 2015 @06:24PM (#8832462)
Its nice to see that C++ has evolved to the point where COM code can be represented with nice easy-to-follow vanilla C++ without making you want to throw up!! (and theres no stupid ^ (hat) symbol in sight)

It looks like Kenny Kerr has a site specifically for this here: http://moderncpp.com/ and a video explaining things here: https://www.youtube.com/watch?v=Nvh3MePAzKs

Re:Visual C++ 2015 Brings Modern C++ to the Windows API by pjmlp on Monday January 05, 2015 @03:28AM (#8837870)
> and theres no stupid ^ (hat) symbol in sight

Easily avoidable with CComPtr.

The major complaint of many Windows C++ developers is that WRL could have been made more developer friendly instead of spending resources on C++/CX.

Maybe Windows 10 will make it so, and C++/CX will join ranks with Managed C++ (.NET 1.x) and C++/CLI (does anyone use it?).

Re:Visual C++ 2015 Brings Modern C++ to the Windows API by FubarCoder on Tuesday January 06, 2015 @05:06PM (#8847427)
We use C++/CLI, because it's the easiest way to use .NET components together with legacy MFC code.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by CyberDildonics on Saturday January 03, 2015 @07:54PM (#8832720)
Will 2015 be the year Microsoft fully supports C++11?
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by plorkyeran on Saturday January 03, 2015 @10:46PM (#8833196)
Close enough for most people, but no. Based on their latest update[0], at the minimum it'll be missing attribute expression SFINAE, an unfucked preprocessor, and unfucked (C++98) template name lookup. If you're feeling charitable the latter two could be called bugs rather than missing features (and bugs that will break a bunch of existing code when they're fixed).

[0] https://view.officeapps.live.com/op/view.aspx?src=http%3a%2f...

Re:Visual C++ 2015 Brings Modern C++ to the Windows API by pjmlp on Sunday January 04, 2015 @02:51AM (#8833787)
Will 2015 be the year other commercial C++ vendors (Intel, Borland, Green Hills, CodePlay HP, IBM, Oracle,...) catch up Microsoft?
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by cokernel_hacker on Sunday January 04, 2015 @04:58AM (#8833978)
No, that was probably 2014.

Intel ships a compiler based on Clang: http://llvm.org/devmtg/2014-04/PDFs/Posters/ClangIntel.pdf

This means they get clang's ridiculously conforming implementation with icc's performance.

Re:Visual C++ 2015 Brings Modern C++ to the Windows API by pjmlp on Sunday January 04, 2015 @11:52AM (#8834941)
Unless Intel's documentation is out of date, they still haven't full C++11 support.

https://software.intel.com/en-us/articles/c0x-features-suppo...

Re:Visual C++ 2015 Brings Modern C++ to the Windows API by cokernel_hacker on Monday January 05, 2015 @01:46AM (#8837640)
Those docs refer to Intel Composer XE 2013. The PDF I linked to is with regards to Intel Composer XE 2015.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by pjmlp on Monday January 05, 2015 @03:21AM (#8837852)
Have you bothered to read the "Version 15.0" column at all?
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by cube00 on Saturday January 03, 2015 @06:30PM (#8832478)
For a minute there I was worried the Microsoft Foundation Classes (MFC) were making a come back.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by wslh on Saturday January 03, 2015 @04:04PM (#8831993)
I remember using the obscure comet library to abstract COM in C++ ( https://github.com/alamaison/comet ) because the COM support in C++ required more knowledge.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by foxhill on Saturday January 03, 2015 @07:45PM (#8832692)
glad to see MS are still involved with languages they don't own, but i would have been much happier if they supported C99..
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by yuhong on Saturday January 03, 2015 @07:52PM (#8832716)
They also finally began revising the C compiler with VS2013 to include partial support for that.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by pjmlp on Sunday January 04, 2015 @11:56AM (#8834962)
Only for what is required by the C++ standard, plus some key open source projects.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by pjmlp on Sunday January 04, 2015 @11:57AM (#8834964)
I for one am glad they are killing C on Windows.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by tragomaskhalos on Sunday January 04, 2015 @06:45AM (#8834152)
I remember a white paper outlining MS's initial attempts (c. 2000?) to add additional syntax to C++ in order to save developers from much of the quagmire that was COM programming in C++, before abandoning the whole thing in favour of .NET. So nice to see that the language can now suppport that effort natively.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by pjmlp on Sunday January 04, 2015 @11:54AM (#8834954)
It was called Ext-VOS.

http://blogs.msdn.com/b/dsyme/archive/2012/07/05/more-c-net-...

WinRT is basically Ext-VOS reborn with .NET metadata.

Re:Visual C++ 2015 Brings Modern C++ to the Windows API by namelezz on Sunday January 04, 2015 @03:02AM (#8833809)
Does anyone know the upgrading price? I am trying to compare against Clion from JetBrain.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by Encosia on Sunday January 04, 2015 @03:10AM (#8833828)
2015 Community Edition (which is basically VS Pro) will be free for non-enterprise use.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by namelezz on Sunday January 04, 2015 @03:22AM (#8833852)
Awesome! Thank you for the info. Did not know about the Community Edition when I bought my VS 2012.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by Stratoscope on Sunday January 04, 2015 @03:24AM (#8833856)
The Community Edition wasn't available when you bought your VS2012, nor when I bought my VS2013+MSDN subscription. It's something new from about a month ago.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by moomin on Saturday January 03, 2015 @05:28PM (#8832295)
Am I right in thinking the wonderful features VC++ 2015 introduces that render most of C++/CX irrelevant were in fact supported by GCC and CLang several years before C++/CX was even released?
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by plorkyeran on Saturday January 03, 2015 @06:04PM (#8832404)
2.9 was the first version of Clang with C++11 stuff (outside of the features which everyone happened to support as extensions to C++03), released several months before C++/CX in April 2011. It's easy to forget these days with how impressive their progress has been, but it wasn't that long ago that Clang was the neat project that people hoped would turn into a usable compiler. The C++14 bits used weren't even proposed yet when C++/CX was released, so C++/CX may have been needed even if VC++ was fully caught up with the standards.
Re:Visual C++ 2015 Brings Modern C++ to the Windows API by tacos on Saturday January 03, 2015 @05:50PM (#8832371)
C++/CX came out in 2011. The C++14 constexpr stuff didn't make it into Clang and gcc until last year.