Hacker News new | ask | show | jobs
by barosl 812 days ago
> to overload the bit shift operators for stream I/O

MFC extends this idea to network programming, allowing the use of shift operators to send and receive data.

1 comments

MFC also has CComPtrBase which uses & to represent pointer lifetimes to COM objects such as while(pEnum->Next(1, &pFilter, &cFetched) == S_OK). Especially fun when debugging DirectShow filtergraphs someone made in the UI completely. There is more of an explanation here: https://devblogs.microsoft.com/oldnewthing/20221010-00/?p=10...