Create Item Templates in Visual Studio

Part 3 of my series on extending Visual Studio is now available on the CodeProject: http://www.codeproject.com/Articles/365680/Extending-Visual-Studio-Part-3-Item-Templates In this article we look at how to create new Item Templates in Visual Studio.

Embedding a Console in a C# application

I have uploaded a new article on the CodeProject - embedding a Console in a C# Application. Here's a screenshot of the control in use: As always, comments and suggestions are more than welcome - you can find the article here: http://www.codeproject.com/Articles/335909/Embedding-a-Console-in-a-C-Application

Disabling Constraints with a Stored Procedure in Oracle

Sometimes you need to disable constraints on a Oracle Database. Why might this be? Well image the situation that you are exporting data into an intermediate schema, you only want to import data from a certain date range and due to this you have only a subset of the records. You need this subset for analysis but you don't care about referential integrity - in fact if it is on then constraints will be violated.
Read more

SharpGL 2.0

SharpGL 2.0 has been released - hit the GitHub site to get it: https://github.com/dwmkerr/sharpgl Some new features: Full support for all OpenGL functions up to OpenGL 4.2 Full support for all commonly used OpenGL extensions Support for WinForms applications Support for WPF applications (without resorting to WinForms hosts) A powerful scene graph including polygons, shaders, NURBs and more Many sample applications as starting points for your own projects. Visual Studio Extension with SharpGL project templates for WPF and WinForms.
Read more

Using imp or exp as a SYSDBA

One of the things that I regularly forget is the syntax for running imp or exp for Oracle and specifying a SYSDBA user. As a quick hint, here's the syntax: imp '"sys/pass@TNS as sysdba"' FILE=file.exp An easy thing to forget!

Debugger:: An unhandled non-continuable exception was thrown during process load

The following exception can be a very tricky one to deal with: Debugger:: An unhandled non-continuable exception was thrown during process load here's some tips if you get it. Are you linking to winmm.lib? If so avoid it - it can cause these problems. Are you delay-loading the module? If not, try it - this can often resolve this issue if other modules like winmm.lib are interfering with the module that causes this exception.
Read more

Switch

I have written the second article in my series on Extending Visual Studio. In this article I describe how to create a Visual Studio Addin that allows you to switch between cpp/h files, WinForms code and designer, XAML and codebehind and so on. You can find the article on the CodeProject here: http://www.codeproject.com/Articles/324611/Extending-Visual-Studio-Part-2-Creating-Addins  There is also a direct download page on this blog, you can get Switch from dwmkerr.com by going here:
Read more

New Namaste Website

Today I uploaded the new version of the Namaste - Children's Homes Nepal website, please have a look! http://www.childrenshomesnepal.org  Any comments or suggestions would be most welcome :)

Funky WPF - Enumerations and the Combo Box

Binding a combo box to an enumeration in WPF is more work than it should be, creating an object data provider etc etc: <Window.Resources> <ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type sys:Enum}" x:Key="CharacterEnumValues"> <ObjectDataProvider.MethodParameters> <x:Type TypeName="Character" /> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> </Window.Resources> Followed by <ComboBox SelectedItem="{Binding Character}" ItemsSource="{Binding Source={StaticResource CharacterValues}} "/> What a pain! I have just added 'EnumerationComboBox' to my Apex library - so now you can do this: <!-- The combo box, bound to an enumeration.
Read more

CodeProject MVP

As a great start to the new year I have been made a CodeProject MVP! Have a look at my index of articles below: http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4259528 Any suggestions for future articles are more than appreciated.