Click here to Skip to main content
15,040,003 members

Articles by Hans Dietrich (Articles: 93, Tip/Tricks: 2)

Articles: 93, Tip/Tricks: 2

RSS Feed

Average article rating: 4.81

All Topics
Posted: 5 Oct 2011   Updated: 5 Oct 2011   Views: 32,532   Rating: 4.80/5    Votes: 32   Popularity: 7.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
Welcome to our continuing series of Code Project interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we track down Code Project member Hans Dietrich.
Desktop Programming
MFC
Posted: 9 Mar 2004   Updated: 9 Mar 2004   Views: 131,833   Rating: 4.83/5    Votes: 22   Popularity: 6.18
Licence: The Code Project Open License (CPOL)      Bookmarked: 78   Downloaded: 2,876
Please Sign up or sign in to vote.
XGlyphButton is a simple CButton-based control that allows you to display an image without the need for owner-draw control.
Posted: 22 Mar 2005   Updated: 19 Jan 2008   Views: 503,968   Rating: 4.89/5    Votes: 49   Popularity: 8.14
Licence: The Code Project Open License (CPOL)      Bookmarked: 143   Downloaded: 6,163
Please Sign up or sign in to vote.
XButtonXP is an XP theme-aware pushbutton that can optionally be used as a toggle button. It can also display an icon with or without text.
Posted: 16 Aug 2006   Updated: 23 May 2007   Views: 237,548   Rating: 4.91/5    Votes: 44   Popularity: 8.02
Licence: The Code Project Open License (CPOL)      Bookmarked: 112   Downloaded: 1,020
Please Sign up or sign in to vote.
XEmphasisButton allows you to display buttons with bold and underlined text without requiring ownerdraw. This means that the button is perfectly compatible with XP themes, and also works on previous Windows versions.
Posted: 29 Jun 2003   Updated: 1 Jul 2003   Views: 292,902   Rating: 4.47/5    Votes: 28   Popularity: 6.47
Licence: The Code Project Open License (CPOL)      Bookmarked: 73   Downloaded: 4,333
Please Sign up or sign in to vote.
XTipComboBox implements a combobox with tooltips for the data items (both in the list box and in the edit box)
Posted: 20 Mar 2002   Updated: 27 Feb 2008   Views: 287,670   Rating: 4.93/5    Votes: 31   Popularity: 7.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 99   Downloaded: 6,732
Please Sign up or sign in to vote.
XListBox is an owner-draw listbox that provides printf-style formatting and selection of text and background colors
Posted: 3 Jun 2003   Updated: 3 Jun 2003   Views: 110,134   Rating: 4.75/5    Votes: 21   Popularity: 5.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 31   Downloaded: 2,047
Please Sign up or sign in to vote.
XCharMap demonstrates the use of CXCharMap, a class that displays a character map similar to the Windows Character Map utility.
Posted: 14 Jun 2004   Updated: 14 Jun 2004   Views: 69,181   Rating: 4.19/5    Votes: 17   Popularity: 5.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 45   Downloaded: 1,274
Please Sign up or sign in to vote.
XHTMLTipOfTheDay is a Tip of the Day dialog that displays HTML and has forward and back buttons.
Posted: 24 Sep 2003   Updated: 7 Mar 2008   Views: 225,294   Rating: 4.89/5    Votes: 62   Popularity: 8.59
Licence: The Code Project Open License (CPOL)      Bookmarked: 77   Downloaded: 5,118
Please Sign up or sign in to vote.
XBrowseForFolder wraps the SHBrowseForFolder API, provides a way to specify an initial directory, and cleans up the SHBrowseForFolder dialog.
Posted: 21 Jun 2003   Updated: 7 Oct 2008   Views: 135,372   Rating: 4.76/5    Votes: 38   Popularity: 7.41
Licence: The Code Project Open License (CPOL)      Bookmarked: 45   Downloaded: 2,755
Please Sign up or sign in to vote.
XFontDialog demonstrates how to customize CFontDialog by removing unwanted controls
Posted: 22 Oct 2008   Updated: 22 Oct 2008   Views: 31,753   Rating: 4.88/5    Votes: 19   Popularity: 6.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 679
Please Sign up or sign in to vote.
XMonoFontDialog is a CFontDialog clone that is customized for selecting monospaced fonts. A custom label has been added to the dialog that informs the user when a monospaced font is selected in the combobox, and bold typeface is used to highlight monospaced fonts in the combobox list.
Posted: 16 Mar 2005   Updated: 2 Jun 2010   Views: 392,335   Rating: 4.90/5    Votes: 56   Popularity: 8.41
Licence: The Code Project Open License (CPOL)      Bookmarked: 137   Downloaded: 5,436
Please Sign up or sign in to vote.
XFolderDialog provides a folder selection dialog like that used in MS Word, and includes persistent list view type.
Posted: 18 Jun 2003   Updated: 18 Jun 2003   Views: 83,560   Rating: 4.88/5    Votes: 28   Popularity: 6.98
Licence: The Code Project Open License (CPOL)      Bookmarked: 68   Downloaded: 1,414
Please Sign up or sign in to vote.
XDialogImport describes a simple and effective method for sharing frequently-used dialogs between projects, using some documented and some poorly documented techniques.
Posted: 4 Apr 2005   Updated: 4 Apr 2005   Views: 222,103   Rating: 4.87/5    Votes: 23   Popularity: 6.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 74   Downloaded: 5,895
Please Sign up or sign in to vote.
XKeyboard eliminates the threat of keyloggers by allowing the user to enter a password by clicking on buttons displayed on an on-screen keyboard.
Posted: 23 Jun 2003   Updated: 23 Jun 2003   Views: 235,846   Rating: 4.87/5    Votes: 24   Popularity: 6.72
Licence: The Code Project Open License (CPOL)      Bookmarked: 80   Downloaded: 16,787
Please Sign up or sign in to vote.
XFileDialog demonstrates how to customize CFileDialog by adding a MRU combobox for folders.
Posted: 5 Jul 2007   Updated: 20 Jul 2007   Views: 75,163   Rating: 4.88/5    Votes: 24   Popularity: 6.64
Licence: The Code Project Open License (CPOL)      Bookmarked: 65   Downloaded: 2,041
Please Sign up or sign in to vote.
XEditPrompt implements an edit control with built-in prompt and text color, just like you see on web pages.
Posted: 7 Jul 2007   Updated: 6 Jul 2007   Views: 64,455   Rating: 4.96/5    Votes: 45   Popularity: 8.05
Licence: The Code Project Open License (CPOL)      Bookmarked: 117   Downloaded: 1,881
Please Sign up or sign in to vote.
This series of articles is a step-by-step guide to reading files stored in your program's resources. Along the way I will present some non-MFC classes to assist you in reading text, binary, zip, and even encrypted files that have been compiled into your program as resources.
Posted: 9 Jul 2007   Updated: 9 Jul 2007   Views: 53,234   Rating: 4.92/5    Votes: 27   Popularity: 6.97
Licence: The Code Project Open License (CPOL)      Bookmarked: 56   Downloaded: 1,159
Please Sign up or sign in to vote.
This series of articles is a step-by-step guide to reading files stored in your program's resources. Along the way I will present some non-MFC classes to assist you in reading text, binary, zip, and even encrypted files that have been compiled into your program as resources.
Posted: 7 Jul 2007   Updated: 19 Jul 2007   Views: 63,037   Rating: 5.00/5    Votes: 42   Popularity: 8.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 80   Downloaded: 1,831
Please Sign up or sign in to vote.
This series of articles is a step-by-step guide to reading files stored in your program's resources. Along the way I will present some non-MFC classes to assist you in reading text, binary, zip, and even encrypted files that have been compiled into your program as resources.
Posted: 14 May 2003   Updated: 14 May 2003   Views: 97,590   Rating: 4.45/5    Votes: 7   Popularity: 3.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 1,372
Please Sign up or sign in to vote.
XReverse reverses a text file line-by-line, so that what was the last line becomes the first line. This is useful when you want to view server logs, for example, with the latest line displayed at the top. Memory-mapped files helps to make XReverse very fast.
Posted: 6 May 2003   Updated: 19 May 2003   Views: 164,005   Rating: 4.90/5    Votes: 41   Popularity: 7.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 126   Downloaded: 3,419
Please Sign up or sign in to vote.
XFile extends the Win32 file functions with a non-MFC class that includes functions to implement file rollover, file shrinking, file compare, buffered writes, mapped file reads, zipping, and automatic file size limits.
Posted: 30 May 2003   Updated: 30 May 2003   Views: 72,464   Rating: 4.75/5    Votes: 13   Popularity: 5.13
Licence: The Code Project Open License (CPOL)      Bookmarked: 36   Downloaded: 1,179
Please Sign up or sign in to vote.
XHtmlLog converts delimited text log files to HTML for display by a browser. Callback functions allow the output to be customized prior to HTML generation.
Posted: 13 Jun 2003   Updated: 13 Jun 2003   Views: 67,190   Rating: 4.73/5    Votes: 13   Popularity: 5.11
Licence: The Code Project Open License (CPOL)      Bookmarked: 30   Downloaded: 1,197
Please Sign up or sign in to vote.
XFileProperties demonstrates the use of CXFileProperties, a class that displays a modeless dialog similar to the Windows file properties dialog.
Posted: 11 Jun 2007   Updated: 11 Jun 2007   Views: 56,232   Rating: 4.83/5    Votes: 16   Popularity: 5.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 42   Downloaded: 1,440
Please Sign up or sign in to vote.
XFolderSize is a non-MFC class that collects folder size, folder count, and file count based on starting folder.
Posted: 3 Feb 2002   Updated: 6 Sep 2006   Views: 2,808,480   Rating: 4.92/5    Votes: 261   Popularity: 11.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 660   Downloaded: 32,515
Please Sign up or sign in to vote.
A custom-draw list control with support for subitem colors, bold font, progress bars, and checkboxes.
Posted: 30 Jul 2003   Updated: 30 Jul 2003   Views: 54,811   Rating: 4.65/5    Votes: 16   Popularity: 5.02
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 810
Please Sign up or sign in to vote.
XPrintHeader implements a dialog that allows the user to choose the formatting for a page header by dynamically created popup menus.
Posted: 10 Jan 2006   Updated: 9 Jan 2006   Views: 62,631   Rating: 4.87/5    Votes: 20   Popularity: 6.12
Licence: The Code Project Open License (CPOL)      Bookmarked: 30   Downloaded: 809
Please Sign up or sign in to vote.
XColourPicker is a simple drop-in colour picker.
Posted: 5 Apr 2008   Updated: 5 Apr 2008   Views: 58,490   Rating: 4.92/5    Votes: 7   Popularity: 4.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 2,374
Please Sign up or sign in to vote.
XColorDialog displays a color hexagon and a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.
Posted: 9 Apr 2008   Updated: 9 Apr 2008   Views: 39,691   Rating: 4.13/5    Votes: 7   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 1,413
Please Sign up or sign in to vote.
XColorPickerXP is a simple drop-in color picker based on CComboBox that pops up color selection grid.
Posted: 23 Mar 2006   Updated: 20 Jul 2006   Views: 163,484   Rating: 4.94/5    Votes: 61   Popularity: 8.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 105   Downloaded: 2,871
Please Sign up or sign in to vote.
XAnalogClock displays a nice-looking skinnable analog clock in a small memory footprint.
Posted: 9 Sep 2004   Updated: 2 Sep 2008   Views: 187,801   Rating: 4.90/5    Votes: 85   Popularity: 9.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 149   Downloaded: 4,543
Please Sign up or sign in to vote.
XScrollBar is a scroll bar that may be displayed with optional thumb color, thumb gripper, and channel color
Posted: 7 Feb 2002   Updated: 7 Feb 2002   Views: 140,867   Rating: 4.69/5    Votes: 11   Popularity: 4.69
Licence: The Code Project Open License (CPOL)      Bookmarked: 51   Downloaded: 3,112
Please Sign up or sign in to vote.
Changing scroll bar width for Windows controls like listbox
Posted: 16 Oct 2003   Updated: 16 Oct 2003   Views: 135,262   Rating: 4.66/5    Votes: 20   Popularity: 5.95
Licence: The Code Project Open License (CPOL)      Bookmarked: 42   Downloaded: 1,497
Please Sign up or sign in to vote.
XHyperLink is a simple drop-in hyperlink control with optional parent notification.
Posted: 17 Jan 2006   Updated: 19 Mar 2007   Views: 190,737   Rating: 4.95/5    Votes: 74   Popularity: 9.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 92   Downloaded: 1,566
Please Sign up or sign in to vote.
XSudokuWnd is an MFC control that implements a solver for the popular Sudoku puzzle, based on D.E. Knuth's Dancing Links algorithm. Example projects show how to use XSudokuWnd in dialog and SDI applications.
Posted: 2 Sep 2008   Updated: 2 Sep 2008   Views: 110,962   Rating: 4.98/5    Votes: 59   Popularity: 8.67
Licence: The Code Project Open License (CPOL)      Bookmarked: 90   Downloaded: 4,304
Please Sign up or sign in to vote.
XGroupBox is an MFC control that displays a flicker-free groupbox with text and/or icon. You can use this to display either a standard groupbox or a header-only groupbox.
Posted: 3 Nov 2008   Updated: 3 Nov 2008   Views: 61,992   Rating: 4.89/5    Votes: 48   Popularity: 8.14
Licence: The Code Project Open License (CPOL)      Bookmarked: 91   Downloaded: 1,392
Please Sign up or sign in to vote.
XProgressWnd is a popup progress window that display a progress control and optional AVI animation and estimated time left, without requiring a dialog resource.
Posted: 4 May 2008   Updated: 4 May 2008   Views: 46,854   Rating: 4.90/5    Votes: 21   Popularity: 6.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 39   Downloaded: 1,212
Please Sign up or sign in to vote.
XIcon is an MFC control that displays text and/or icon with auto-sizing.
Posted: 24 Apr 2008   Updated: 19 May 2008   Views: 72,907   Rating: 4.95/5    Votes: 58   Popularity: 8.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 68   Downloaded: 1,860
Please Sign up or sign in to vote.
XGradientZoneBar displays an indicator bar that allows you to specify multiple zones that are filled with a color gradient, and includes APIs to set the bar orientation, font, and tick marks.
Posted: 31 Jul 2006   Updated: 31 Jul 2006   Views: 952,388   Rating: 4.98/5    Votes: 122   Popularity: 10.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 238   Downloaded: 5,205
Please Sign up or sign in to vote.
XSuperTooltip implements class for displaying super tooltips, which were introduced in Office 2007. The demo download includes super tooltip code generator, that makes it easy to add super tooltips to your application.
Posted: 15 Sep 2002   Updated: 25 Oct 2007   Views: 249,413   Rating: 4.92/5    Votes: 42   Popularity: 7.82
Licence: The Code Project Open License (CPOL)      Bookmarked: 158   Downloaded: 4,132
Please Sign up or sign in to vote.
A custom control based on CStatic that interprets and displays common HTML text formatting elements such as bold, italic, color, font, and size, but adds only 16 Kb to your app.
Posted: 16 Oct 2003   Updated: 16 Oct 2003   Views: 145,753   Rating: 4.75/5    Votes: 34   Popularity: 7.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 75   Downloaded: 4,340
Please Sign up or sign in to vote.
XColorStatic is a simple CStatic-based control that provides font changes, text and background colors, and icon display.
Posted: 11 Aug 2003   Updated: 11 Aug 2003   Views: 108,740   Rating: 4.70/5    Votes: 17   Popularity: 5.66
Licence: The Code Project Open License (CPOL)      Bookmarked: 57   Downloaded: 1,996
Please Sign up or sign in to vote.
XDriveBar implements a drive bar for the drives in a system. The demo project shows how to keep the drive bar in sync by handling the WM_DEVICECHANGE message.
Posted: 17 Dec 2007   Updated: 10 Jan 2008   Views: 68,872   Rating: 4.69/5    Votes: 20   Popularity: 5.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 63   Downloaded: 4,053
Please Sign up or sign in to vote.
XTrueColorToolBar is an MFC class based on CToolBar that provides support for true-color bitmaps, with optional support for an Office-style color picker button.
Posted: 9 Aug 2007   Updated: 1 Jan 2008   Views: 403,224   Rating: 4.97/5    Votes: 164   Popularity: 10.95
Licence: The Code Project Open License (CPOL)      Bookmarked: 372   Downloaded: 9,911
Please Sign up or sign in to vote.
XHtmlTree is an MFC control based on CTreeCtrl, with support for HTML text, web links, APP: links, XML load/save, Smart Checkboxes, and Drag & Drop.
Posted: 5 Jul 2003   Updated: 5 Jul 2003   Views: 306,906   Rating: 4.80/5    Votes: 22   Popularity: 6.14
Licence: The Code Project Open License (CPOL)      Bookmarked: 53   Downloaded: 5,872
Please Sign up or sign in to vote.
XCmyk implements an RGB to CMYK calculator
Posted: 29 May 2003   Updated: 20 Aug 2007   Views: 157,452   Rating: 4.81/5    Votes: 33   Popularity: 7.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 82   Downloaded: 6,551
Please Sign up or sign in to vote.
XTimer provides countdown timer and stopwatch features in a compact MFC dialog app.
Posted: 10 Jul 2001   Updated: 10 Jul 2001   Views: 169,776   Rating: 4.51/5    Votes: 19   Popularity: 5.67
Licence: The Code Project Open License (CPOL)      Bookmarked: 34   Downloaded: 5,932
Please Sign up or sign in to vote.
How to find the name of a font file, given the display name of a font
Posted: 9 Mar 2002   Updated: 20 May 2003   Views: 281,201   Rating: 4.86/5    Votes: 32   Popularity: 7.18
Licence: The Code Project Open License (CPOL)      Bookmarked: 82   Downloaded: 11,788
Please Sign up or sign in to vote.
XGetopt provides drop-in Unix-style command line processing for Win32 and MFC applications
Posted: 14 Mar 2005   Updated: 13 Jun 2007   Views: 137,422   Rating: 4.86/5    Votes: 31   Popularity: 6.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 67   Downloaded: 2,112
Please Sign up or sign in to vote.
Get Windows OS version and service pack info in numeric and string formats.
Posted: 10 Jun 2007   Updated: 12 Mar 2011   Views: 82,913   Rating: 4.89/5    Votes: 45   Popularity: 7.99
Licence: The Code Project Open License (CPOL)      Bookmarked: 97   Downloaded: 1,326
Please Sign up or sign in to vote.
XFxDetect inspects registry and file system of local or remote computer to determine which versions of .Net Framework are installed.
Posted: 5 Jan 2005   Updated: 5 Jan 2005   Views: 64,864   Rating: 4.44/5    Votes: 18   Popularity: 5.46
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 1,564
Please Sign up or sign in to vote.
XIPAddressCtrl adds string handling and profile read/write functions to CIPAddressCtrl.
Posted: 6 Jan 2005   Updated: 6 Jan 2005   Views: 51,730   Rating: 4.89/5    Votes: 19   Popularity: 6.14
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 581
Please Sign up or sign in to vote.
Add Winsock error lookup to your C++ or VB app with this DLL.
Posted: 26 Jan 2005   Updated: 26 Jan 2005   Views: 145,271   Rating: 4.55/5    Votes: 23   Popularity: 6.11
Licence: The Code Project Open License (CPOL)      Bookmarked: 70   Downloaded: 4,541
Please Sign up or sign in to vote.
An implementation of Liyang Yu's classes for client/server communication for both Win32 and MFC, with Unicode and ANSI support.
Posted: 26 Jul 2005   Updated: 16 May 2007   Views: 77,920   Rating: 4.85/5    Votes: 31   Popularity: 7.09
Licence: The Code Project Open License (CPOL)      Bookmarked: 79   Downloaded: 1,257
Please Sign up or sign in to vote.
XSearch implements a search engine-style advanced search, including ALL, EXACT PHRASE, AT LEAST ONE, and WITHOUT words. XSearch is based on a multiple-substring search algorithm.
Posted: 25 Jun 2002   Updated: 25 Jun 2002   Views: 69,153   Rating: 4.59/5    Votes: 10   Popularity: 4.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 1,011
Please Sign up or sign in to vote.
An easy-to-use function that provides locale-correct comma-formatting of numbers
Posted: 4 Aug 2005   Updated: 4 Aug 2005   Views: 47,413   Rating: 4.71/5    Votes: 22   Popularity: 6.02
Licence: The Code Project Open License (CPOL)      Bookmarked: 46   Downloaded: 642
Please Sign up or sign in to vote.
XTokenString extracts tokens from a string, and returns a CStringArray that contains tokens. A token is defined by specified delimiters; double-quotes may optionally group multiple words into a single token, and an option is provided for handling escaped characters.
Posted: 17 Jan 2005   Updated: 17 Jan 2005   Views: 147,419   Rating: 5.00/5    Votes: 53   Popularity: 8.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 149   Downloaded: 3,540
Please Sign up or sign in to vote.
XQueue implements a shared-memory first-in first-out (FIFO) queue, based on memory-mapped files, that works on all versions of Windows.
Posted: 19 Oct 2003   Updated: 19 Oct 2003   Views: 210,447   Rating: 4.97/5    Votes: 64   Popularity: 8.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 172   Downloaded: 3,208
Please Sign up or sign in to vote.
Add basic exception handling and crash reporting to your application
Posted: 19 Oct 2003   Updated: 19 Oct 2003   Views: 75,045   Rating: 4.92/5    Votes: 33   Popularity: 7.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 78   Downloaded: 1,475
Please Sign up or sign in to vote.
Add basic exception handling and crash reporting to your application
Posted: 19 Oct 2003   Updated: 19 Oct 2003   Views: 134,765   Rating: 4.96/5    Votes: 54   Popularity: 8.56
Licence: The Code Project Open License (CPOL)      Bookmarked: 122   Downloaded: 2,963
Please Sign up or sign in to vote.
Add basic exception handling and crash reporting to your application
Posted: 19 Oct 2003   Updated: 19 Oct 2003   Views: 600,503   Rating: 4.95/5    Votes: 77   Popularity: 9.26
Licence: The Code Project Open License (CPOL)      Bookmarked: 199   Downloaded: 4,560
Please Sign up or sign in to vote.
Add basic exception handling and crash reporting to your application
Posted: 10 Feb 2004   Updated: 10 Feb 2004   Views: 68,477   Rating: 4.71/5    Votes: 25   Popularity: 6.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 36   Downloaded: 1,022
Please Sign up or sign in to vote.
XBitArray provides functions to set, test, and find bits in an array of bytes.
Win32
Posted: 12 Jul 2001   Updated: 29 Nov 2008   Views: 829,446   Rating: 4.95/5    Votes: 174   Popularity: 11.08
Licence: The Code Project Open License (CPOL)      Bookmarked: 428   Downloaded: 9,634
Please Sign up or sign in to vote.
A reverse-engineered non-MFC MessageBox() that includes custom checkboxes.
Posted: 15 Mar 2008   Updated: 4 Apr 2008   Views: 65,436   Rating: 4.99/5    Votes: 30   Popularity: 6.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 30   Downloaded: 1,055
Please Sign up or sign in to vote.
XColorHexagonCtrl displays a color hexagon that allows user selection, and provides APIs for color based on RGB and HSL color models.
Posted: 13 Mar 2008   Updated: 4 Apr 2008   Views: 82,548   Rating: 5.00/5    Votes: 55   Popularity: 8.54
Licence: The Code Project Open License (CPOL)      Bookmarked: 71   Downloaded: 1,885
Please Sign up or sign in to vote.
XColorSpectrumCtrl displays a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.
Posted: 23 Jun 2008   Updated: 11 Jul 2008   Views: 477,423   Rating: 4.99/5    Votes: 69   Popularity: 9.07
Licence: The Code Project Open License (CPOL)      Bookmarked: 144   Downloaded: 2,761
Please Sign up or sign in to vote.
XBalloonMsg displays a message box using balloon-style tooltips. Message and title strings may be embedded or stored in string resource.
Multimedia
GDI
Posted: 21 May 2003   Updated: 21 May 2003   Views: 105,274   Rating: 4.73/5    Votes: 15   Popularity: 5.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 2,772
Please Sign up or sign in to vote.
XFont retrieves the name of the font file from the regsitry, and the font name from the font file
Posted: 26 May 2003   Updated: 26 May 2003   Views: 73,542   Rating: 4.79/5    Votes: 19   Popularity: 6.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 30   Downloaded: 1,677
Please Sign up or sign in to vote.
XFontCombo demonstrates the use of IsOpenType(), a function that determines if a font is OpenType
Posted: 7 Aug 2007   Updated: 7 Aug 2007   Views: 56,625   Rating: 5.00/5    Votes: 23   Popularity: 6.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 45   Downloaded: 766
Please Sign up or sign in to vote.
XBreadCrumbBar is a windowless non-MFC class that allows you to display a breadcrumb trail as HTML text, with support for web links and APP: links.
Posted: 15 Jul 2007   Updated: 6 Nov 2007   Views: 139,101   Rating: 4.93/5    Votes: 34   Popularity: 7.42
Licence: The Code Project Open License (CPOL)      Bookmarked: 99   Downloaded: 1,421
Please Sign up or sign in to vote.
XHtmlDraw allows you to display a single line HTML text as easily as using DrawText(), including web links and APP: links, no MFC
Operating Systems
Windows
Posted: 17 Jul 2006   Updated: 29 Jun 2007   Views: 261,154   Rating: 4.86/5    Votes: 104   Popularity: 9.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 296   Downloaded: 0
Please Sign up or sign in to vote.
How to set up TortoiseSVN when working by yourself.
Posted: 9 Oct 2008   Updated: 18 Aug 2010   Views: 809,593   Rating: 4.91/5    Votes: 111   Popularity: 9.94
Licence: The Code Project Open License (CPOL)      Bookmarked: 151   Downloaded: 0
Please Sign up or sign in to vote.
This article presents commonly used programming fonts with examples of each font in ClearType and non-ClearType.
Programming Languages
C#
Posted: 6 Mar 2010   Updated: 6 Mar 2010   Views: 35,210   Rating: 4.92/5    Votes: 11   Popularity: 4.69
Licence: The Code Project Open License (CPOL)      Bookmarked: 26   Downloaded: 297
Please Sign up or sign in to vote.
XTrace.cs provides printf-style formatting and other useful trace extensions. Module name, line number, and thread id are automatically included in the trace output. Double-clicking the trace line in the Output Window takes you directly to the source file and line in the editor.
Posted: 5 Jun 2007   Updated: 5 Jun 2007   Views: 35,580   Rating: 4.81/5    Votes: 13   Popularity: 5.19
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 328
Please Sign up or sign in to vote.
XGetoptCS provides Unix-style command line processing for C# apps
Posted: 6 Jun 2007   Updated: 6 Jun 2007   Views: 41,481   Rating: 4.87/5    Votes: 9   Popularity: 4.65
Licence: The Code Project Open License (CPOL)      Bookmarked: 39   Downloaded: 315
Please Sign up or sign in to vote.
XAutobuild auto-increments the build number contained in Autobuild.h. This can be used in resource files to automatically update the version resource each time a project is compiled.
C++
Posted: 9 Apr 2008   Updated: 9 Apr 2008   Views: 75,961   Rating: 3.65/5    Votes: 9   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 52   Downloaded: 1,147
Please Sign up or sign in to vote.
EnableGroupboxControls is a function that enables or disables all the controls within a groupbox based solely upon the window rect of the controls. A simple approach to implementing a groupbox checkbox is also explained.
Posted: 15 Apr 2008   Updated: 15 Apr 2008   Views: 165,293   Rating: 4.90/5    Votes: 21   Popularity: 6.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 93   Downloaded: 2,214
Please Sign up or sign in to vote.
CreateCheckboxImageList is a function that creates an imagelist of themed or non-themed checkboxes, suitable for use in tree controls, list controls, and list boxes.
Posted: 2 Jul 2008   Updated: 2 Jul 2008   Views: 65,158   Rating: 4.88/5    Votes: 44   Popularity: 7.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 110   Downloaded: 1,876
Please Sign up or sign in to vote.
XMLProfile implements a class to read and write XML profile files that is consistent with the MFC set of profile functions. Conversion functions to allow reading/writing both INI and XML profiles are included. A CWinApp-derived class provides drop-in replacement of the standard MFC profile functio
Posted: 11 Dec 2008   Updated: 11 Dec 2008   Views: 41,442   Rating: 4.95/5    Votes: 21   Popularity: 6.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 53   Downloaded: 947
Please Sign up or sign in to vote.
The XPEInfo APIs allow you to extract information from a PE file. Included in the download is a Windows demo app, and a console app that tests whether a PE file is valid, whether it is 64-bit, contains debug info, is a .Net executable, or is signed. Sample cmd files are provided.
Posted: 8 Jun 2008   Updated: 8 Jun 2008   Views: 48,970   Rating: 4.83/5    Votes: 25   Popularity: 6.48
Licence: The Code Project Open License (CPOL)      Bookmarked: 46   Downloaded: 866
Please Sign up or sign in to vote.
ExecApp is a replacement for WinExec(). ExecRegisteredApp executes the app that is registered for the specified file extension. LookupRegisteredApp retrieves the application file path that is registered for the specified file extension.
Posted: 13 May 2003   Updated: 18 Jul 2007   Views: 728,424   Rating: 4.88/5    Votes: 111   Popularity: 9.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 267   Downloaded: 17,449
Please Sign up or sign in to vote.
XZip and XUnzip provide non-MFC functions to create a zip, add files to it, and extract files from it - all in two .cpp files
Posted: 23 Mar 2006   Updated: 27 Aug 2008   Views: 123,861   Rating: 4.91/5    Votes: 71   Popularity: 9.05
Licence: The Code Project Open License (CPOL)      Bookmarked: 134   Downloaded: 2,557
Please Sign up or sign in to vote.
XCPClock displays CodeProject clock with four skins.
Posted: 10 Feb 2009   Updated: 10 Feb 2009   Views: 58,841   Rating: 4.85/5    Votes: 15   Popularity: 5.56
Licence: The Code Project Open License (CPOL)      Bookmarked: 33   Downloaded: 1,691
Please Sign up or sign in to vote.
XMSAALib provides APIs that allow you to retrieve MSAA (accessibility) information from a window by using the IAccessible interface. The demo app shows how to build an accessibility object tree from a window.
Posted: 11 Jul 2001   Updated: 11 Jul 2001   Views: 120,822   Rating: 4.87/5    Votes: 11   Popularity: 4.87
Licence: The Code Project Open License (CPOL)      Bookmarked: 42   Downloaded: 0
Please Sign up or sign in to vote.
Values returned by GetVersionEx for Windows operating systems
Posted: 22 Apr 2003   Updated: 22 Apr 2003   Views: 227,626   Rating: 4.99/5    Votes: 57   Popularity: 8.64
Licence: The Code Project Open License (CPOL)      Bookmarked: 100   Downloaded: 3,944
Please Sign up or sign in to vote.
XEventLog shows how to integrate minimalist NT event logging into your application
Posted: 28 Feb 2004   Updated: 29 Feb 2004   Views: 887,956   Rating: 4.90/5    Votes: 139   Popularity: 10.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 333   Downloaded: 8,753
Please Sign up or sign in to vote.
This series of articles is a step-by-step guide to constructing C++ DLLs that include C++ functions and C++ classes, and then calling the DLL functions and classes from VC++ and VB programs.
Posted: 2 Mar 2004   Updated: 2 Mar 2004   Views: 408,628   Rating: 4.86/5    Votes: 56   Popularity: 8.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 132   Downloaded: 7,035
Please Sign up or sign in to vote.
This series of articles is a step-by-step guide to constructing C++ DLLs that include C++ functions and C++ classes, and then calling the DLL functions and classes from VC++ and VB programs.
Posted: 11 May 2003   Updated: 11 May 2003   Views: 65,540   Rating: 4.68/5    Votes: 16   Popularity: 5.05
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 788
Please Sign up or sign in to vote.
Extended string and memory search functions: memmem(), memimem(), memichr(), _tcsistr()
Posted: 20 May 2003   Updated: 20 May 2003   Views: 83,992   Rating: 4.09/5    Votes: 8   Popularity: 3.69
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 914
Please Sign up or sign in to vote.
XTrim implements _tcsltrim and _tcsrtrim - CRT-like functions to trim whitespace.
Posted: 25 Jun 2007   Updated: 7 Aug 2007   Views: 56,913   Rating: 4.91/5    Votes: 16   Popularity: 5.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 33   Downloaded: 884
Please Sign up or sign in to vote.
XString offers functions for remove, replace, trim, and case-insensitive search that are not included in the CRT.
Posted: 5 Jun 2002   Updated: 5 Jun 2002   Views: 89,450   Rating: 4.89/5    Votes: 10   Popularity: 4.67
Licence: The Code Project Open License (CPOL)      Bookmarked: 35   Downloaded: 1,015
Please Sign up or sign in to vote.
How to use the Thread Information Block to store descriptive information about the thread
Visual Basic
Posted: 28 Feb 2004   Updated: 28 Feb 2004   Views: 226,416   Rating: 4.94/5    Votes: 50   Popularity: 8.21
Licence: The Code Project Open License (CPOL)      Bookmarked: 87   Downloaded: 4,064
Please Sign up or sign in to vote.
This series of articles is a step-by-step guide to constructing C++ DLLs that include C++ functions and C++ classes, and then calling the DLL functions and classes from VC++ and VB programs.
Posted: 28 Feb 2004   Updated: 2 Oct 2009   Views: 444,247   Rating: 4.93/5    Votes: 65   Popularity: 8.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 149   Downloaded: 6,935
Please Sign up or sign in to vote.
This series of articles is a step-by-step guide to constructing C++ DLLs that include C++ functions and C++ classes, and then calling the DLL functions and classes from VC++ and VB programs.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.68

Email
Posted: 21 Mar 2011   Updated: 21 Mar 2011   Views: 18,740   Rating: 4.62/5    Votes: 7   Popularity: 3.90
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
This Tip talks about not using ALL CAPS in emails.
Web Development
HTML
Posted: 20 Sep 2010   Updated: 20 Sep 2010   Views: 15,601   Rating: 4.75/5    Votes: 3   Popularity: 2.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
This tip shows how to use the new sidebar css classes to improve readability and add depth to an article.

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.

Hans Dietrich
Software Developer (Senior) Hans Dietrich Software
United States United States
I attended St. Michael's College of the University of Toronto, with the intention of becoming a priest. A friend in the University's Computer Science Department got me interested in programming, and I have been hooked ever since.

Recently, I have moved to Los Angeles where I am doing consulting and development work.

For consulting and custom software development, please see www.hdsoft.org.