CoCreateInstance and Process Id: Working around COM limitations

CoCreateInstance is a workhorse that makes COM so much more fun and usable. Yet, it doesn’t let you in on one singularly important piece of information — the id of the newly launched process. Neither is there any other API which would tell you this. This is, as Microsoft would call it, by design. The […]

Posted at 12:41 am on December 29, 2012 | Leave a comment | Filed Under: programming | Tagged: , , , | Continue reading

Getting around VS2012 C1189/C4005 error: keyword re-defined in macro(s)

For the impatient (read legacy code maintainers): Go ahead and add _ALLOW_KEYWORD_MACROS to your list of preprocessor definitions in the project settings to get rid of the errors. If you’re still here and wondering what hit you: VS2012 bids farewell to all the macro magic you did all this while. Including the (now) infamous #define […]


This is an yet another blog on programming in general and C++ in particular. My day job involves reading and writing code. As such, sometimes I end up with interesting snippets and on those rare lucky days, with some valuable insights. Sometimes, some of those end up here. Sometimes I hang around on Stackoverflow with a weird handle.


Get every new post delivered to your Inbox.