Click here to Skip to main content
15,867,594 members

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

Articles: 24, Tip/Tricks: 7

RSS Feed

Average article rating: 4.37

Database Development
SQL Server
15 Jan 2009   Updated: 15 Jan 2009   Rating: 4.47/5    Votes: 7   Popularity: 3.77
Licence: CPOL    Views: 46,028     Bookmarked: 44   Downloaded: 1,536
Please Sign up or sign in to vote.
Builds on the Microsoft N-Tier Data Application walkthrough to add filtering and updating features.
23 Oct 2007   Updated: 18 Oct 2013   Rating: 4.44/5    Votes: 80   Popularity: 8.32
Licence: CPOL    Views: 531,132     Bookmarked: 79   Downloaded: 42,685
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.
4 Oct 2009   Updated: 18 Oct 2013   Rating: 4.95/5    Votes: 44   Popularity: 8.04
Licence: CPOL    Views: 347,302     Bookmarked: 50   Downloaded: 22,376
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
6 Aug 2000   Updated: 11 Aug 2000   Rating: 4.86/5    Votes: 7   Popularity: 4.10
Licence: CPOL    Views: 175,521     Bookmarked: 48   Downloaded: 2,087
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.
6 Aug 2000   Updated: 11 Aug 2000   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 157,652     Bookmarked: 43   Downloaded: 1,920
Please Sign up or sign in to vote.
Here we add a method to our DCOM-remoted object, and start on implementing its functionality.
6 Aug 2000   Updated: 11 Aug 2000   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: CPOL    Views: 285,113     Bookmarked: 52   Downloaded: 2,130
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.
6 Aug 2000   Updated: 21 Dec 2003   Rating: 4.92/5    Votes: 41   Popularity: 7.77
Licence: GPL3    Views: 837,766     Bookmarked: 61   Downloaded: 4,621
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...)
6 Aug 2000   Updated: 8 May 2005   Rating: 5.00/5    Votes: 15   Popularity: 5.88
Licence: CPOL    Views: 637,980     Bookmarked: 71   Downloaded: 3,366
Please Sign up or sign in to vote.
We build our new server and install it on the server machine.
3 Aug 2000   Updated: 9 Jan 2006   Rating: 4.80/5    Votes: 26   Popularity: 6.72
Licence: CPOL    Views: 283,988     Bookmarked: 179   Downloaded: 3,411
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.
30 Dec 2005   Updated: 6 Jan 2009   Rating: 3.41/5    Votes: 12   Popularity: 3.68
Licence: CPOL    Views: 71,001     Bookmarked: 29   Downloaded: 370
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.
28 Dec 2005   Updated: 7 Jan 2009   Rating: 4.56/5    Votes: 13   Popularity: 4.74
Licence: CPOL    Views: 68,361     Bookmarked: 56   Downloaded: 818
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.
28 Dec 2005   Updated: 7 Jan 2009   Rating: 4.06/5    Votes: 9   Popularity: 3.87
Licence: CPOL    Views: 44,821     Bookmarked: 29   Downloaded: 340
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.
30 Dec 2005   Updated: 7 Jan 2009   Rating: 2.80/5    Votes: 6   Popularity: 2.18
Licence: CPOL    Views: 35,370     Bookmarked: 28   Downloaded: 277
Please Sign up or sign in to vote.
Add a method, SayHello(), to the server, that fires the event which the client handles.
29 Dec 2005   Updated: 7 Jan 2009   Rating: 3.81/5    Votes: 12   Popularity: 4.11
Licence: CPOL    Views: 285,130     Bookmarked: 27   Downloaded: 307
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
7 Aug 2000   Updated: 3 Oct 2000   Rating: 4.57/5    Votes: 4   Popularity: 2.75
Licence: Not specified    Views: 108,115     Bookmarked: 21   Downloaded: 778
Please Sign up or sign in to vote.
This is a good replacement for CWnd::CenterWindow() that works.
3 Feb 2001   Updated: 16 Apr 2001   Rating: 4.58/5    Votes: 22   Popularity: 5.75
Licence: Not specified    Views: 129,923     Bookmarked: 29   Downloaded: 2,721
Please Sign up or sign in to vote.
Make the MDI windows which contain your program's forms snap to match the forms' sizes.
9 Jun 2000   Updated: 6 Apr 2005   Rating: 4.36/5    Votes: 10   Popularity: 3.94
Licence: Not specified    Views: 149,195     Bookmarked: 39   Downloaded: 1,559
Please Sign up or sign in to vote.
Center CMDIChildWnds in the client area of the main frame window.
31 Dec 2005   Updated: 31 Dec 2005   Rating: 4.96/5    Votes: 41   Popularity: 7.95
Licence: Not specified    Views: 147,237     Bookmarked: 64   Downloaded: 1,569
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
13 Apr 2012   Updated: 1 Apr 2010   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 64,831     Bookmarked: 35   Downloaded: 3,782
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.
15 Oct 2007   Updated: 17 Oct 2007   Rating: 1.42/5    Votes: 21   Popularity: 1.66
Licence: Not specified    Views: 175,719     Bookmarked: 18   Downloaded: 959
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
23 Nov 2010   Updated: 1 Dec 2010   Rating: 3.71/5    Votes: 10   Popularity: 3.71
Licence: CPOL    Views: 33,063     Bookmarked: 33   Downloaded: 351
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++
5 Aug 2000   Updated: 11 Aug 2000   Rating: 4.79/5    Votes: 10   Popularity: 4.57
Licence: CPOL    Views: 238,914     Bookmarked: 55   Downloaded: 2,209
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
3 Aug 2000   Updated: 11 Aug 2000   Rating: 4.75/5    Votes: 17   Popularity: 5.59
Licence: CPOL    Views: 538,670     Bookmarked: 50   Downloaded: 4,933
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
2 Dec 2011   Updated: 2 Dec 2011   Rating: 4.69/5    Votes: 7   Popularity: 3.96
Licence: CPOL    Views: 48,842     Bookmarked: 44   Downloaded: 1,978
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.70

Database Development
SQL Server
22 Dec 2010   Updated: 22 Dec 2010   Rating: 4.75/5    Votes: 9   Popularity: 4.53
Licence: CPOL    Views: 82,360     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
6 Jul 2011   Updated: 6 Jul 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 22,827     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
General Programming
String
20 Aug 2022   Updated: 20 Aug 2022   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 9,126     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Example of how to use the caret (^) in Regexes that have specific matching requirements
Productivity Apps and Services
Microsoft Office
14 Dec 2010   Updated: 19 Dec 2010   Rating: 4.38/5    Votes: 7   Popularity: 3.71
Licence: CPOL    Views: 83,375     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.
13 Dec 2010   Updated: 19 Dec 2010   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 33,681     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).
16 Dec 2010   Updated: 26 Aug 2011   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 78,624     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#
19 Jul 2011   Updated: 3 Oct 2011   Rating: 4.80/5    Votes: 5   Popularity: 3.36
Licence: CPOL    Views: 64,073     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.
Team Leader
United States United States
Brian C. Hart, Ph.D., is a strategic engagement leader on a mission to leverage space technology to protect U.S. interests and assets against adversaries. Throughout Dr. Hart's career, he has enjoyed: Working closely with business executives to provide strategic direction and leadership, translating customer and competitive intelligence into compelling capture strategies and solutions, and mentoring teams to enhance individual and company capabilities while fostering an engaging and accountable environment, being involved in STEAM initiatives and education to develop greater awareness in the community, and serving the armed forces with the U.S. Navy and U.S. Army National Guard. He is excited to begin developing his career in Jacobs's Critical Mission Systems business unit, supporting NORAD and the U.S. Space Force.