How can you tell if your code is being called from within DllMain? You could use an undocumented function from ntdll.dll.
How can you tell if your code is being called from within DllMain? You could use an undocumented function from ntdll.dll.
It’s easy to call MSBuild tasks directly from F#. Although possibly unnecessary.
I’ve just noticed a nice little feature in Visual Studio 2010 Beta 2: pinned DataTips. Values displayed in the debugger as you hover over a variable can now be pinned in place and remain aligned with the source. They can even have annotations added… Tasty!
Lambdas in C++ and F#: compare and contrast.
A FormatException is generated by the WPF DataBinding diagnostics if the original exception text contains curly brackets.
Beware! If you install the Windows SDK – perhaps to get access to the interesting looking WPF performance tools – you’ll find that it hoses your F# Visual Studio integration. I found that it causes intellisense tooltips to stop appearing, and the integrated F# interactive to crash Visual Studio. Both of these issues are a [...]
After using a F# heavily for a while, I often found myself wanting to add brackets (or rather, parentheses) around some text. This is normally when adding a type specification to an argument in order to be able to use dot notation, e.g. going from:
let typeName t = t.Name
which causes “error FS0072: Lookup on object [...]
Thought you might like to know about a few Visual Studio tools and add-ins that I regularly use, and find very useful:
Copy as HTML
Fantastic little tool that lets you copy formatted text from the VS editor as HTML fragments. You can’t beat syntax highlighting to ease code readability, and this plug-in is great for adding [...]
After experiencing some nasty crashes in Visual Studio 2005 recently, I’ve discovered that the long, heavily templated type names in version 1.33.1 of the boost headers don’t play well with the internal buffer sizes in various parts of Visual Studio (including SP1). This results in crashes while generating Intellisence data (feacp.dll) and in the debugger [...]