Great news for those suffering from Visual Studio 2010 IDE crashes with losing recent source code changes. Visual Studio 2012 is way more stable (event with Visual Studio 2010 Platform Toolset!) and suffers from crashes without losing editor changes. The worst thing you seem to be getting is: Which is an access violation or stack [...]
Posts Tagged ‘visual studio’
Crashes in Visual C++ 2012 vs. Visual C++ 2010
Posted: 30th September 2012 by Roman in TechnologyTags: access violation, C++, crash, IDE, microsoft, source code, visual studio
Double right angle bracket kills Visual C++ source code outlining in IDE versions 2008, 2010, 2012
Posted: 11th August 2012 by Roman in SourceTags: amusing, C++, IDE, Source, visual studio
An amusing bug which seems to be affecting three of the versions of Visual Studio in a row: 2012, 2010, 2008: a double right angle bracket closing (or just present) the declaration of templated base class is breaking Visual Studio outlining capability (code scout? Intellisense? whatever). Have a space there and you are fine.
ATLENSURE_SUCCEEDED double failure
Posted: 19th July 2011 by Roman in ATL, SourceTags: ATL, bug, C++, inline, macro, visual studio
A colleague pointed out that code snippet in previous post is misusing ATL’s ATLENSURE_SUCCEEDED macro making it [possibly] evaluate its argument twice in case of failure, that is evaluating into failure HRESULT code. As it is defined like this: #define ATLENSURE_SUCCEEDED(hr) ATLENSURE_THROW(SUCCEEDED(hr), hr) It does things in a straightforward way, for a code line ATLENSURE_SUCCEEDED(pFilterGraph.CoCreateInstance(CLSID_FilterGraph)); [...]
Your ATL service C++ project might need some extra care after upgrade to Visual Studio 2010
Posted: 11th May 2011 by Roman in ATL, Seriously, SourceTags: ATL, bug, epic, fail, service, visual studio
If you dare to convert your C++ ATL Service project created with an earlier version of Visual Studio to version 2010, as I recently did, you might find yourself surprised with why the hell the bloody thing does not work anymore as a regular executable. After passing compiler/linker and SDK update issues, which you possibly [...]
Build Incrementer Add-In for Visual Studio: Latest Visual Studio Versions
Posted: 5th March 2011 by Roman in UtilitiesTags: add-in, ATL, C++, increment, microsoft, tool, utility, version, visual studio
If you share concept (as I do) that every build should have a unique file version stamp in it, for a simple purpose – at least – to distinguish between different version of the same binary, then a helpful tool of automatic incrementing fourth number in FILEVERSION’s file version is something you cannot live without. [...]
Attributed ATL: Accessing BLOB with ISequentialStream
Posted: 10th July 2010 by Roman in ATL, SeriouslyTags: ATL, blob, C++, template, visual studio
Before attributed ATL was deprecated, it was a convenient way to access databases using attributed classes on top of OLEDB Consumer Templates. Does not it look nice? [ db_command("SELECT ServerData FROM Server WHERE Server = ?") ] class CGetServerData { public: [ db_param(1) ] LONG m_nServer; [ db_column(1, length = "m_nDataLength") ] ISequentialStream* m_pDataStream; DBLENGTH [...]
Visual Studio .NET 2008 (9.0), Windows SDK version and MIDL compiler
Posted: 17th February 2009 by Roman in Source, TechnologyTags: IDL, MIDL, visual studio, windows sdk
Having installed Visual Studio .NET 2008 Service Pack 1 (installs Windows SDK 6.0a) and Windows SDK 6.1, I would obviously like to have newer Windows SDK used in include path. However after edit of WindowsSdkDir environment variable and checking all include directories to point to new Windows (former Platform) SDK path “C:\Program Files\Microsoft SDKs\Windows\v6.1“, MIDL [...]
