Author Archives: Ofek Shilon

Blank Variable Watch, or OMF Errors

During a debugging session I faced a weird situation where the code compiled and ran just fine, yet some class members appeared blank at the watch window, and others showed – CXX0033: error in OMF type information Skip to the … Continue reading

Posted in Debugging, VC++ | Leave a comment

Three F-keys Gotchas

We recently did a small internal app, that had to use all 12 F-keys – which turned out to be surprisingly cumbersome. I hadn’t found this stuff concentrated on a single place, and certainly it could have saved me some … Continue reading

Posted in MFC, Win32 | 4 Comments

StepOver Revisited

Andy Pennell exposed in 2004 (and I mentioned in 2009) a very useful undocumented VC feature: when you wish to avoid stepping into nagging functions (ctors, refcounts, whatever), you can specify them in the StepOver registry key. It supports RegExp’s … Continue reading

Posted in Debugging, VC++ | Leave a comment

Integrating Matlab with Team Foundation Server 2010

I just managed to pull this integration off, and the process definitely deserves more web presence. First, as of 2011, Matlab (I never understood the shout-ish MATLAB spelling) consumes only MSSCCI source control connections, which a Team Explorer installation does … Continue reading

Posted in Matlab, Source Control | 4 Comments

Reading Monitor Physical Dimensions, or: Getting the EDID, the Right Way

  Edit: an improvement is published in a separate post We recently needed to know the physical size of monitors on customer machines. Getting it right was a surprisingly tedious research – and definitely something that deserves more web presence … Continue reading

Posted in Win32 | 44 Comments

Source Control Binding, Part 2: SAK and SOURCE_CONTROL_SETTINGS_PROVIDER

In a previous post I shared one form of binding trouble, which had to do with MSSCCPRJ.scc location on disk. A side note there reminded me of another issue – … The choice of binding location is controlled via a … Continue reading

Posted in Source Control | 2 Comments

$(TargetDir) Bug, or: Where Did My PDB Go?

Edit: This is now a confirmed VS bug. Hope the Connect page would be updated when it is resolved. Try this (if you weren’t bitten by this issue already): 1. Create a new C++ project – any project type will … Continue reading

Posted in VC++, Visual Studio | 1 Comment

Slides from the Windows Developers User Group Meeting

Thanks goes to everyone who attended! As promised at the meeting, I’ve uploaded the presentation. The slides by themselves are rather thin, as almost the entire meeting was spent in visual studio. However, I left out various syntax details – … Continue reading

Posted in General, Visual Studio | Leave a comment

"The solution appears to be under source control", or: How P4 messes up MSSCCPRJ.scc Location

For a long while we faced an annoying issue with source control binding:  we’d load some solution and this would pop up: We’d then fix it using File/Source control/Change source control/Bind:   And all seemed well – until we loaded … Continue reading

Posted in Source Control, Visual Studio | Leave a comment

‘Internal CPS Error’ When Adding A Project Reference

Edit: This is now a confirmed VS bug. Occasionally I get this – – when trying to add a reference from one project to another in VS2010. I’ve no idea what CPS is and what shim object they’re talking about, … Continue reading

Posted in Visual Studio | 9 Comments