Author Archives: Ofek Shilon

My Guest Post on the VC Team blog

I answered a public invitation by Eric Battalio of the VC team – and just now published an article on the VC blog, introducing the native Expression Evaluator: Every time you use the Watch window, a lot is going on … Continue reading

Posted in Uncategorized | Leave a comment

Geometric Inverse Application 1: Barycentric Coordinates

Last time I jotted down some equations suggesting how you should understand 3d matrix inverses, or how to solve 3×3 equations. Below is a first application, for obtaining barycentric coordinates. Barycentric coordinates are the canonical way of describing a point … Continue reading

Posted in Uncategorized | Leave a comment

Geometric Interpretation of a 3D Matrix Inverse

I work a lot with 3D calculations, and every so often a non trivial 3D tidbit comes along. Some of these might be of use to others – and so, by the power vested in me as absolute monarch of … Continue reading

Posted in 3D Geometry, Algorithms | 6 Comments

Mental Buffer

I’ve been through a lot in the last half a year.  Can’t say it’s behind me, but return to blogging might be part of the recovery. And making the declaration public vastly increases the chances of its actual happening. So … Continue reading

Posted in General | Leave a comment

VS Support Policy

As far back as this MS support page goes, Visual studio editions had a 5-year mainstream support period, and since VS .NET 2003 – a 10 year extended support period. In particular, VS2010 mainstream support is advertised to end on … Continue reading

Posted in Visual Studio | Leave a comment

C++ Template Meta Programming is Still Evil

I won’t include a meta-programming intro paragraph here, since if you’re not familiar with it – I sincerely hope you stay that way. If you insist, get an idea online or read the book (it’s a good read, but can’t … Continue reading

Posted in C++ | 36 Comments

_DllMain@12 already defined

We recently faced this linkage error: error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj) Searching gives ~36K results as of July 2012, many of which seem high quality (StackOverflow, MS, CodeProject etc.), and I was certain it would be a simple … Continue reading

Posted in Debugging, MFC | 6 Comments

A Day with VS11 Beta – part 2.5: Auto Vectorizer, done right

Start at the end: the main example analyzed in the previous post is plain wrong. This loop: Vectorizes perfectly. Even after me wrongfully accusing his team with this fictitious vectorization miss, Jim Hogg was kind enough to (1) test it … Continue reading

Posted in VC++ | 2 Comments

A Day with VS11 Beta – part 2: Auto Vectorizer

UPDATE: While I still believe the overall conclusions below hold, the actual analysis of the main example is erroneous and kept here only out of respect for some external links.  A detailed correction is in the following post.  Thanks @JimHogg! … Continue reading

Posted in VC++ | 4 Comments

A Day with VS11 Beta – part 1

A large chunk of our customers still use XP so we won’t be upgrading VS any time soon. Still, out of curiosity I spent some free time with the VS11 Beta and below are some bits and pieces I noticed … Continue reading

Posted in Visual Studio | 1 Comment