Click here to Skip to main content
13,192,207 members (32,596 online)

Articles by Orjan Westin (Technical Blogs: 12, Tip/Tricks: 4)

Technical Blogs: 12, Tip/Tricks: 4

RSS Feed
No articles have been posted.

Average blogs rating: 4.74

C / C++ Language
Howto
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 22,780   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
A static, or compile-time, assert for C++
Memory Management
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 6,290   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 5   Downloaded: 0
A shared_ptr memory manager for the Xerces XML parser
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 10,070   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The BSD License      Bookmarked: 5   Downloaded: 0
Xerces is a powerful validating XML parser, which needs some care to avoid memory leaks. Here is a helper for that.
Templates
Posted: 5 Aug 2011   Updated: 24 Apr 2017   Views: 21,890   Rating: 4.89/5    Votes: 10   Popularity: 4.88
Licence: The BSD License      Bookmarked: 12   Downloaded: 0
Using template specialization to create code handling common base64 encoding varieties
Utilities
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 11,110   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 3   Downloaded: 0
Revisiting an old function to convert hexadecimal strings into integer byte arrays
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 21,930   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 9   Downloaded: 0
Converting any contents of a memory buffer into a hexadecimal string and back
Posted: 5 Aug 2010   Updated: 9 Aug 2010   Views: 14,790   Rating: 4.45/5    Votes: 10   Popularity: 4.45
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
Safely defining integer bounds at compile-time
Posted: 5 Aug 2010   Updated: 10 Aug 2010   Views: 11,210   Rating: 4.56/5    Votes: 6   Popularity: 3.89
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
Declaring a range of any type
Posted: 10 Aug 2010   Updated: 10 Aug 2010   Views: 10,880   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 8   Downloaded: 0
Splitting or tokenizing a string into substrings divided by a separator
Posted: 12 Aug 2010   Updated: 12 Aug 2010   Views: 21,870   Rating: 4.50/5    Votes: 4   Popularity: 2.71
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
How would you remove all whitespace from a std::string? Here's a look at a number of different ways.
Posted: 18 Oct 2012   Updated: 21 Oct 2012   Views: 15,970   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The BSD License      Bookmarked: 8   Downloaded: 0
Splitting strings again - strtok redeemed
Threads, Processes & IPC
General
Posted: 12 Nov 2012   Updated: 13 Nov 2012   Views: 8,170   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The BSD License      Bookmarked: 10   Downloaded: 81
In this article, we will write a simple multi-threaded example implementation of the Observer pattern, and show how to re-synchronise a past event to look current. Then we’ll demonstrate a technique to treat future events like they’re current, too.

Average tips rating: 4.61

C / C++ Language
Command line processing
Posted: 15 Nov 2013   Updated: 15 Nov 2013   Views: 6,480   Rating: 4.83/5    Votes: 4   Popularity: 2.86
Licence: The BSD License      Bookmarked: 7   Downloaded: 0
Reading an input of any type, or simply enter, from the command line
Howto
Posted: 18 Feb 2016   Updated: 19 Feb 2016   Views: 8,990   Rating: 3.80/5    Votes: 2   Popularity: 1.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Getting negative numbers from 10-bit (and other unusual size) integers
Memory Management
Posted: 6 Nov 2014   Updated: 6 Nov 2014   Views: 10,850   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: The BSD License      Bookmarked: 25   Downloaded: 0
Simplifying the use of dynamically sized C structs
Win32/64 SDK & OS
General
Posted: 19 Oct 2012   Updated: 19 Oct 2012   Views: 24,350   Rating: 4.80/5    Votes: 5   Popularity: 3.32
Licence: The BSD License      Bookmarked: 4   Downloaded: 0
Simple function to get the text message corresponding to a system error.
No reference articles have been posted.

Orjan Westin
Software Developer (Senior)
United Kingdom United Kingdom
Orjan has worked as a professional developer - in Sweden and England - since 1993, using a wide range of languages (C++, Pascal, Delphi, C, C#, Visual Basic, PHP, Python and x86 assembler), but tends to return to C++.


Advertise | Privacy |
Web02 | 2.8.171017.2 | Last Updated 18 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid