Click here to Skip to main content
14,970,116 members

Articles by Brian C Hart (Articles: 24, Tip/Tricks: 6)

Articles: 24, Tip/Tricks: 6

RSS Feed

Average article rating: 4.37

Database Development
SQL Server
Posted: 15 Jan 2009   Updated: 15 Jan 2009   Views: 43,727   Rating: 4.47/5    Votes: 7   Popularity: 3.77
Licence: The Code Project Open License (CPOL)      Bookmarked: 44   Downloaded: 1,502
Please Sign up or sign in to vote.
Builds on the Microsoft N-Tier Data Application walkthrough to add filtering and updating features.
Posted: 23 Oct 2007   Updated: 18 Oct 2013   Views: 496,803   Rating: 4.44/5    Votes: 80   Popularity: 8.32
Licence: The Code Project Open License (CPOL)      Bookmarked: 79   Downloaded: 41,904
Please Sign up or sign in to vote.
To save you from hunting through the docs and locating downloads, we gather both databases here and walk you through installing them using SQL Server Management Studio Express.
Posted: 4 Oct 2009   Updated: 18 Oct 2013   Views: 318,647   Rating: 4.95/5    Votes: 44   Popularity: 8.04
Licence: The Code Project Open License (CPOL)      Bookmarked: 50   Downloaded: 22,140
Please Sign up or sign in to vote.
To save you from hunting through the docs and locating downloads, we gather both databases here and walk you through installing them using SQL Server Management Studio Express -- updated for SQL Server 2008 Express Edition!
Desktop Programming
ATL
Posted: 6 Aug 2000   Updated: 11 Aug 2000   Views: 168,341   Rating: 4.86/5    Votes: 7   Popularity: 4.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 47   Downloaded: 2,052
Please Sign up or sign in to vote.
In this step we add a simple COM object to our server using the New ATL Object Wizard.
Posted: 6 Aug 2000   Updated: 11 Aug 2000   Views: 150,432   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 42   Downloaded: 1,888
Please Sign up or sign in to vote.
Here we add a method to our DCOM-remoted object, and start on implementing its functionality.
Posted: 6 Aug 2000   Updated: 11 Aug 2000   Views: 268,403   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: The Code Project Open License (CPOL)      Bookmarked: 51   Downloaded: 2,091
Please Sign up or sign in to vote.
We look at connection points and set up the server's end of one. We'll also finish implementing our SayHello() method.
Posted: 6 Aug 2000   Updated: 21 Dec 2003   Views: 739,078   Rating: 4.92/5    Votes: 41   Popularity: 7.77
Licence: The GNU General Public License (GPLv3)      Bookmarked: 60   Downloaded: 4,528
Please Sign up or sign in to vote.
At last! We finish our tutorial by writing a client with MFC, AppWizard, and ClassWizard, like back in the good ol' days (sighhh...)
Posted: 6 Aug 2000   Updated: 8 May 2005   Views: 594,014   Rating: 5.00/5    Votes: 15   Popularity: 5.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 69   Downloaded: 3,297
Please Sign up or sign in to vote.
We build our new server and install it on the server machine.
Posted: 3 Aug 2000   Updated: 9 Jan 2006   Views: 266,906   Rating: 4.80/5    Votes: 26   Popularity: 6.72
Licence: The Code Project Open License (CPOL)      Bookmarked: 177   Downloaded: 3,324
Please Sign up or sign in to vote.
This tutorial shows you how to write DCOM software, with all the latest features, in a simple, straightforward manner.
Posted: 30 Dec 2005   Updated: 6 Jan 2009   Views: 66,050   Rating: 3.41/5    Votes: 12   Popularity: 3.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 29   Downloaded: 359
Please Sign up or sign in to vote.
We look at connection points, and set up the server's end of one, for our simple DCOM "Hello, World!" server.
Posted: 28 Dec 2005   Updated: 7 Jan 2009   Views: 65,331   Rating: 4.56/5    Votes: 13   Popularity: 4.74
Licence: The Code Project Open License (CPOL)      Bookmarked: 56   Downloaded: 804
Please Sign up or sign in to vote.
This tutorial guides you through the step-by-step details of how to use Visual Studio .NET 2003 to develop DCOM client/server applications.
Posted: 28 Dec 2005   Updated: 7 Jan 2009   Views: 43,221   Rating: 4.06/5    Votes: 9   Popularity: 3.87
Licence: The Code Project Open License (CPOL)      Bookmarked: 29   Downloaded: 336
Please Sign up or sign in to vote.
We modify starter files provided by the ATL project wizard, to improve user-friendliness and provide security for our server. I also show you how to do a Replace/Replace All across the whole project.
Posted: 30 Dec 2005   Updated: 7 Jan 2009   Views: 34,040   Rating: 2.80/5    Votes: 6   Popularity: 2.18
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 273
Please Sign up or sign in to vote.
Add a method, SayHello(), to the server, that fires the event which the client handles.
Posted: 29 Dec 2005   Updated: 7 Jan 2009   Views: 277,027   Rating: 3.81/5    Votes: 12   Popularity: 4.11
Licence: The Code Project Open License (CPOL)      Bookmarked: 27   Downloaded: 302
Please Sign up or sign in to vote.
In this step, we add a simple COM object to our server using the ATL Simple Object wizard. Plus, properly initialize and cleanup your COM objects with FinalConstruct() and FinalRelease().
MFC
Posted: 7 Aug 2000   Updated: 3 Oct 2000   Views: 103,404   Rating: 4.57/5    Votes: 4   Popularity: 2.75
Licence: Not specified      Bookmarked: 21   Downloaded: 764
Please Sign up or sign in to vote.
This is a good replacement for CWnd::CenterWindow() that works.
Posted: 3 Feb 2001   Updated: 16 Apr 2001   Views: 125,563   Rating: 4.58/5    Votes: 22   Popularity: 5.75
Licence: Not specified      Bookmarked: 29   Downloaded: 2,656
Please Sign up or sign in to vote.
Make the MDI windows which contain your program's forms snap to match the forms' sizes.
Posted: 9 Jun 2000   Updated: 6 Apr 2005   Views: 144,424   Rating: 4.36/5    Votes: 10   Popularity: 3.94
Licence: Not specified      Bookmarked: 39   Downloaded: 1,542
Please Sign up or sign in to vote.
Center CMDIChildWnds in the client area of the main frame window.
Posted: 31 Dec 2005   Updated: 31 Dec 2005   Views: 135,686   Rating: 4.96/5    Votes: 41   Popularity: 7.95
Licence: Not specified      Bookmarked: 63   Downloaded: 1,532
Please Sign up or sign in to vote.
Use compiler COM support (even in non-COM applications) to get a Win32 error code or HRESULT's message in one line of code.
Windows Forms
Posted: 13 Apr 2012   Updated: 1 Apr 2010   Views: 57,706   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 35   Downloaded: 3,593
Please Sign up or sign in to vote.
An adaptation of Nick Thissen's article on VBForums translated to C# and bottled up into a Class Library you can just drop into your projects.
Posted: 15 Oct 2007   Updated: 17 Oct 2007   Views: 168,827   Rating: 1.42/5    Votes: 21   Popularity: 1.66
Licence: Not specified      Bookmarked: 18   Downloaded: 949
Please Sign up or sign in to vote.
Where are your favorite Windows APIs in the .NET Framework? This article points out where the Windows Sleep() function now can be found.
Productivity Apps and Services
Microsoft Office
Posted: 23 Nov 2010   Updated: 1 Dec 2010   Views: 30,253   Rating: 3.71/5    Votes: 10   Popularity: 3.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 32   Downloaded: 345
Please Sign up or sign in to vote.
A class that accepts a reference to an Excel.Worksheet and lets you use an overloaded subscript operator to cleanly and intuitively read/write the Value2 of Excel cells, and get the Excel.Range corresponding to a given cell.
Programming Languages
C++
Posted: 5 Aug 2000   Updated: 11 Aug 2000   Views: 230,152   Rating: 4.79/5    Votes: 10   Popularity: 4.57
Licence: The Code Project Open License (CPOL)      Bookmarked: 54   Downloaded: 2,161
Please Sign up or sign in to vote.
We modify starter files, provided by the ATL COM AppWizard, to improve the user-friendliness of our server.
Objective C
Posted: 3 Aug 2000   Updated: 11 Aug 2000   Views: 489,905   Rating: 4.75/5    Votes: 17   Popularity: 5.59
Licence: The Code Project Open License (CPOL)      Bookmarked: 50   Downloaded: 4,875
Please Sign up or sign in to vote.
Brian's detailed answers to your most frequently asked questions about his DCOM tutorial.
Web Development
ASP.NET
Posted: 2 Dec 2011   Updated: 2 Dec 2011   Views: 46,282   Rating: 4.69/5    Votes: 7   Popularity: 3.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 44   Downloaded: 1,967
Please Sign up or sign in to vote.
How to create an N-tier Data Application with a ASP.NET Presentation Tier

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.82

Database Development
SQL Server
Posted: 22 Dec 2010   Updated: 22 Dec 2010   Views: 74,200   Rating: 4.75/5    Votes: 9   Popularity: 4.53
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Provides the quick-and-dirty syntax to connect to a given Microsoft SQL Server instance so you can then run a .sql query script against it, e.g., if you are calling this from code as part of a larger pipeline
Desktop Programming
Windows Forms
Posted: 6 Jul 2011   Updated: 6 Jul 2011   Views: 20,043   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
This tip shows how to add support for New Horizontal Tab Group and New Vertical Tab Group commands to the Window menu of an application using the DockPanel Suite by Weifen Luo, and some other minor improvements to help decided if at least one of your windows is docked to the side of the main form an
Productivity Apps and Services
Microsoft Office
Posted: 14 Dec 2010   Updated: 19 Dec 2010   Views: 74,531   Rating: 4.38/5    Votes: 7   Popularity: 3.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Please Sign up or sign in to vote.
Code to call Excel Interop to take a Comma-Separated-Values (.CSV) file and suck it into your Excel workbook programmatically, and then Auto-Fit the resultant columns.
Posted: 13 Dec 2010   Updated: 19 Dec 2010   Views: 30,671   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
You know that little "Merge and Center" button in Microsoft Excel? Here's how to 'click' it in C# with Excel Interop (and this carries over to VB etc, too).
Posted: 16 Dec 2010   Updated: 26 Aug 2011   Views: 69,453   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
C# code to format a certain range of Excel cells using the Format As Table button -- but from C# interop code
Programming Languages
C#
Posted: 19 Jul 2011   Updated: 3 Oct 2011   Views: 58,993   Rating: 4.80/5    Votes: 5   Popularity: 3.36
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
This tip illustrates a simple C# console program that uses the Sieve of Eratosthenes algorithm to quickly find prime numbers.

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.

Brian C Hart
Software Developer (Senior) xyLOGIX, LLC
United States United States
No Biography provided