Click here to Skip to main content
14,870,033 members

Articles by Shao Voon Wong (Articles: 61, Tip/Tricks: 34)

Articles: 61, Tip/Tricks: 34

RSS Feed

Average article rating: 4.64

CodeProject
Posted: 14 Aug 2013   Updated: 15 Aug 2013   Views: 11,810   Rating: 4.88/5    Votes: 8   Popularity: 4.41
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
In honour of the 10 million member milestone, CodeProject members Weidong Shen, Wong Shao Voon and ThatsAlok reflect back on their time as part of the developer community.
Desktop Programming
MFC
Posted: 30 Oct 2016   Updated: 30 Oct 2016   Views: 61,265   Rating: 4.97/5    Votes: 50   Popularity: 8.45
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 95   Downloaded: 1,300
Please Sign up or sign in to vote.
Prototype SIMD vectorized code effortlessly.
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 53,511   Rating: 4.44/5    Votes: 19   Popularity: 5.58
Licence: The Code Project Open License (CPOL)      Bookmarked: 38   Downloaded: 1,352
Please Sign up or sign in to vote.
Benchmark of hash and non-hash container
Posted: 22 Dec 2019   Updated: 1 Jan 2020   Views: 8,432   Rating: 3.77/5    Votes: 4   Popularity: 2.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 500
Please Sign up or sign in to vote.
Lee Algorithm Mazesolver in MFC and Direct2D
Universal Windows Platform
Posted: 25 Dec 2018   Updated: 25 Dec 2018   Views: 4,812   Rating: 4.33/5    Votes: 2   Popularity: 1.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 53
Please Sign up or sign in to vote.
UWP Storage Wrapper
WPF
Posted: 21 Jul 2019   Updated: 21 Jul 2019   Views: 5,077   Rating: 3.74/5    Votes: 7   Popularity: 3.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
Bring your existing WPF and Winform application to the Microsoft Store
High Performance Computing
Vectorization
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 58,261   Rating: 4.97/5    Votes: 19   Popularity: 6.24
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 56   Downloaded: 1,169
Please Sign up or sign in to vote.
Using SSE2 to speed up alphablending.
Posted: 12 Apr 2016   Updated: 25 Apr 2020   Views: 54,591   Rating: 4.86/5    Votes: 30   Popularity: 7.18
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 43   Downloaded: 1,590
Please Sign up or sign in to vote.
Benchmark between OpenMP, Parallel Patterns Library, Auto-Parallelizer and C++17 Parallel for_each
Multimedia
GDI+
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 163,915   Rating: 4.93/5    Votes: 58   Popularity: 8.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 180   Downloaded: 6,800
Please Sign up or sign in to vote.
How to use a font without installing it first on user systems
OpenGL
Posted: 16 Dec 2018   Updated: 25 Jul 2020   Views: 22,623   Rating: 5.00/5    Votes: 13   Popularity: 5.57
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 702
Please Sign up or sign in to vote.
H264/HEVC Video Encoder for recording OpenGL rendering
Programming Languages
C#
Posted: 22 Jul 2019   Updated: 22 Jul 2019   Views: 4,006   Rating: 2.83/5    Votes: 4   Popularity: 1.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 60
Please Sign up or sign in to vote.
Monetize your UWP, WPF and Winform app in Microsoft Store with a Durable add-on
Posted: 11 Jan 2020   Updated: 11 Jan 2020   Views: 3,141   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.
Advice for suitable type of technical question to ask in an interview
C++
Posted: 16 Nov 2020   Updated: 27 Jan 2021   Views: 14,538   Rating: 5.00/5    Votes: 19   Popularity: 6.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 31   Downloaded: 693
Please Sign up or sign in to vote.
Windows Toast Notification in C++
Posted: 23 Aug 2019   Updated: 23 Aug 2019   Views: 10,850   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 186
Please Sign up or sign in to vote.
How to bring your C++ OpenGL code to the web
Posted: 1 Nov 2020   Updated: 1 Nov 2020   Views: 3,619   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 192
Please Sign up or sign in to vote.
This is a proof of concept (POC) that C++ on desktop and Emscripten can share the same UI code.
Posted: 25 May 2020   Updated: 25 May 2020   Views: 9,161   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 295
Please Sign up or sign in to vote.
Direct2D Tutorial on RenderTarget
Posted: 17 Sep 2020   Updated: 17 Sep 2020   Views: 3,134   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 114
Please Sign up or sign in to vote.
Direct2D Tutorial on Linear and Radial Gradient Brush
Posted: 20 Aug 2020   Updated: 4 Jan 2021   Views: 8,262   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 217
Please Sign up or sign in to vote.
Direct2D Tutorial on Drawing Basic Shapes
Posted: 20 Aug 2020   Updated: 27 Jan 2021   Views: 4,990   Rating: 4.80/5    Votes: 6   Popularity: 3.74
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 148
Please Sign up or sign in to vote.
Direct2D Tutorial on Applying Affine Transforms on Drawings
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 44,941   Rating: 4.90/5    Votes: 18   Popularity: 6.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 594
Please Sign up or sign in to vote.
Introduction to Boost Multiprecision Library
Posted: 17 Jan 2017   Updated: 17 Jan 2017   Views: 16,743   Rating: 1.67/5    Votes: 4   Popularity: 1.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 240
Please Sign up or sign in to vote.
Generate a validating INI parser based on schema with file save capability. User types supported out of the box!
Posted: 4 Feb 2017   Updated: 4 Feb 2017   Views: 9,403   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 58
Please Sign up or sign in to vote.
Boost Lexical Cast Wrapper to provide more exceptional information
Posted: 30 Dec 2017   Updated: 30 Dec 2017   Views: 8,143   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 64
Please Sign up or sign in to vote.
C++ Summing For Loop Benchmark yield interesting results and assembly code across different compilers.
Posted: 12 Apr 2016   Updated: 3 Jan 2018   Views: 23,462   Rating: 4.78/5    Votes: 18   Popularity: 5.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 35   Downloaded: 555
Please Sign up or sign in to vote.
A C++ Text Stream design which has read/write symmetry
Posted: 27 Jan 2018   Updated: 27 Jan 2018   Views: 15,825   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 78
Please Sign up or sign in to vote.
Always use Erase-remove Idiom to erase vector elements
Posted: 6 Jun 2018   Updated: 6 Jun 2018   Views: 8,853   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 83
Please Sign up or sign in to vote.
Simple Permutation and Combination Parallelism Examples
Posted: 12 Apr 2016   Updated: 12 Aug 2018   Views: 63,025   Rating: 4.85/5    Votes: 23   Popularity: 6.42
Licence: The Code Project Open License (CPOL)      Bookmarked: 57   Downloaded: 1,250
Please Sign up or sign in to vote.
Simplistic Binary Streams with endian swap support
Posted: 24 May 2020   Updated: 6 Aug 2020   Views: 9,578   Rating: 4.83/5    Votes: 5   Popularity: 3.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 57
Please Sign up or sign in to vote.
Trying out Address Sanitizer in Visual C++
Posted: 12 Apr 2016   Updated: 1 Oct 2016   Views: 163,291   Rating: 4.86/5    Votes: 50   Popularity: 7.99
Licence: The Code Project Open License (CPOL)      Bookmarked: 70   Downloaded: 0
Please Sign up or sign in to vote.
Writing comparison function for std::sort
Posted: 20 Sep 2020   Updated: 25 Feb 2021   Views: 6,321   Rating: 4.87/5    Votes: 6   Popularity: 3.79
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 320
Please Sign up or sign in to vote.
How to make an HTTP REST request in C++ with WinHTTP wrapper
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 89,868   Rating: 4.81/5    Votes: 30   Popularity: 6.46
Licence: The Code Project Open License (CPOL)      Bookmarked: 50   Downloaded: 2,237
Please Sign up or sign in to vote.
Introduce 4 new algorithms on finding combinations
Posted: 12 Apr 2016   Updated: 5 Jun 2018   Views: 305,016   Rating: 4.55/5    Votes: 58   Popularity: 7.65
Licence: The Code Project Open License (CPOL)      Bookmarked: 76   Downloaded: 6,057
Please Sign up or sign in to vote.
An article on finding combinations
Posted: 12 Apr 2016   Updated: 6 May 2021   Views: 139,899   Rating: 4.79/5    Votes: 71   Popularity: 8.77
Licence: The MIT License      Bookmarked: 154   Downloaded: 4,476
Please Sign up or sign in to vote.
Read/write CSV in few lines of code!
C++11
Posted: 28 Jun 2019   Updated: 28 Jun 2019   Views: 9,144   Rating: 4.75/5    Votes: 10   Popularity: 4.53
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 166
Please Sign up or sign in to vote.
How to bring your C++ code to the web
Posted: 26 Jul 2019   Updated: 30 Jul 2019   Views: 18,250   Rating: 4.87/5    Votes: 11   Popularity: 5.07
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 433
Please Sign up or sign in to vote.
Run your C++ Graphics on the Desktop and Web
Posted: 1 Jul 2019   Updated: 8 Aug 2020   Views: 26,330   Rating: 5.00/5    Votes: 25   Popularity: 6.90
Licence: The Code Project Open License (CPOL)      Bookmarked: 33   Downloaded: 1,231
Please Sign up or sign in to vote.
Bring your animations to H264/HEVC video using C++ and C# with h/w acceleration
Posted: 1 Jan 2020   Updated: 12 Jan 2020   Views: 18,608   Rating: 5.00/5    Votes: 37   Popularity: 7.78
Licence: The Code Project Open License (CPOL)      Bookmarked: 41   Downloaded: 647
Please Sign up or sign in to vote.
Floating Point Format For C++ and C# Programmers
Posted: 10 Aug 2020   Updated: 10 Aug 2020   Views: 2,990   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Optimizations that you have to make to wring the performance out of WebAssembly
Posted: 17 May 2018   Updated: 17 May 2018   Views: 70,634   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 1,993
Please Sign up or sign in to vote.
Example of making HTTP REST Request in C++
Posted: 28 Jan 2017   Updated: 5 Apr 2017   Views: 11,200   Rating: 4.47/5    Votes: 5   Popularity: 3.12
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 121
Please Sign up or sign in to vote.
Compute Concurrent Permutations and Combinations on CPU
C++14
Posted: 18 Sep 2016   Updated: 1 Oct 2016   Views: 19,978   Rating: 2.75/5    Votes: 3   Popularity: 1.31
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 168
Please Sign up or sign in to vote.
Using C++11 thread_local to Avoid Allocation, Sharing and Minimize Locking
Posted: 28 Jan 2017   Updated: 6 May 2021   Views: 16,591   Rating: 3.60/5    Votes: 12   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 286
Please Sign up or sign in to vote.
C++14: CSV Stream based on C File API to remove code bloat from STL File Streams
C++98
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 32,870   Rating: 4.87/5    Votes: 9   Popularity: 4.64
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 449
Please Sign up or sign in to vote.
Debug Print using C++11 Variadic Template
CUDA
Posted: 16 Jan 2021   Updated: 16 Jan 2021   Views: 2,440   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 88
Please Sign up or sign in to vote.
How to convert a code from parallel C++ ray-tracing code to CUDA, then to SYCL 2020 via Intel® DPC++
Java
Posted: 2 Aug 2018   Updated: 2 Aug 2018   Views: 9,061   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.
Language design differences between C/C++ and Java, and attempting to solve the fare evasion problem in French Metro system with that insight.
Markdown
Posted: 12 Apr 2016   Updated: 11 Jan 2018   Views: 919,504   Rating: 4.65/5    Votes: 87   Popularity: 8.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 137   Downloaded: 512
Please Sign up or sign in to vote.
Explains the reason behind using pointer-to-pointer and reference-to-pointer to modify a pointer passed to a function
Posted: 19 Sep 2016   Updated: 5 Jun 2018   Views: 25,202   Rating: 2.94/5    Votes: 7   Popularity: 2.48
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 324
Please Sign up or sign in to vote.
Implementing string_view conversion to integral types using Boost Spirit Qi v2
Posted: 30 Dec 2017   Updated: 16 Jun 2018   Views: 11,743   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 114
Please Sign up or sign in to vote.
Overloaded Operators to write concise code on STL Set Algorithms
Visual C++ 10.0
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 38,314   Rating: 4.78/5    Votes: 14   Popularity: 5.48
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 29   Downloaded: 490
Please Sign up or sign in to vote.
Linq-To-XML Node Creation for Native C++
Posted: 5 Nov 2016   Updated: 5 Nov 2016   Views: 63,355   Rating: 4.72/5    Votes: 18   Popularity: 5.81
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 34   Downloaded: 3,735
Please Sign up or sign in to vote.
No frills C++ MP3/WMA DirectShow player class
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 44,817   Rating: 4.83/5    Votes: 18   Popularity: 6.07
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 36   Downloaded: 1,742
Please Sign up or sign in to vote.
Draw text outline using DirectWrite
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 155,292   Rating: 4.76/5    Votes: 72   Popularity: 8.79
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 160   Downloaded: 1,409
Please Sign up or sign in to vote.
The C++ XML parsing article which should have been written since the advent of XML! This article defines a new Elmax abstraction model over the DOM model.
XML
Posted: 12 Apr 2016   Updated: 10 Aug 2020   Views: 39,912   Rating: 4.58/5    Votes: 16   Popularity: 5.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 45   Downloaded: 963
Please Sign up or sign in to vote.
Tutorial on a cross-platform C++ XML DOM library
Web Development
HTML
Posted: 9 Jan 2018   Updated: 9 Jan 2018   Views: 55,204   Rating: 5.00/5    Votes: 25   Popularity: 6.99
Licence: The Code Project Open License (CPOL)      Bookmarked: 75   Downloaded: 3,727
Please Sign up or sign in to vote.
A portable and easy-to-use C++ file library to read and write structured data
Posted: 12 Apr 2019   Updated: 12 Apr 2019   Views: 6,412   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 37
Please Sign up or sign in to vote.
This article discusses what web developers need to know about content security policy.
Posted: 14 Apr 2019   Updated: 14 Apr 2019   Views: 11,556   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 44
Please Sign up or sign in to vote.
This article continues the content security policy discussion with unsafe-inline, unsafe-eval, nonce, cryptographic hashing and more.
Posted: 12 Apr 2016   Updated: 13 Aug 2018   Views: 43,867   Rating: 4.92/5    Votes: 40   Popularity: 7.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 59   Downloaded: 6,730
Please Sign up or sign in to vote.
Outline Text Part 2
Posted: 12 Apr 2016   Updated: 13 Aug 2018   Views: 442,031   Rating: 4.97/5    Votes: 272   Popularity: 12.04
Licence: The Code Project Open License (CPOL)      Bookmarked: 579   Downloaded: 30,978
Please Sign up or sign in to vote.
How to draw a text with an outline
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 36,875   Rating: 4.40/5    Votes: 15   Popularity: 5.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 36   Downloaded: 653
Please Sign up or sign in to vote.
A new C++ SAX library to simplify parsing
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 27,160   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 319
Please Sign up or sign in to vote.
New SAX parsing model comes to .NET!
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 55,405   Rating: 4.57/5    Votes: 6   Popularity: 3.56
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 34   Downloaded: 1,052
Please Sign up or sign in to vote.
Finding lexicographical permutations on GPU

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.41

Database Development
SQL Server
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 87,335   Rating: 4.78/5    Votes: 14   Popularity: 5.48
Licence: The Code Project Open License (CPOL)      Bookmarked: 18   Downloaded: 444
Please Sign up or sign in to vote.
How to prevent SQL injection attacks when using dynamic SQL in stored procedures
DevOps
Git
Posted: 7 Jun 2018   Updated: 7 Jun 2018   Views: 4,510   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
How to create a Pull Request at GitHub
Multimedia
GDI+
Posted: 29 Jan 2018   Updated: 29 Jan 2018   Views: 6,381   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Fixing Inconsistent Stroke Width of Chinese Characters
Programming Languages
C
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 25,040   Rating: 4.80/5    Votes: 7   Popularity: 4.06
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 105
Please Sign up or sign in to vote.
Never test for NaN by comparing it with NaN literal
C#
Posted: 15 Jan 2020   Updated: 15 Jan 2020   Views: 10,362   Rating: 4.56/5    Votes: 15   Popularity: 5.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 46
Please Sign up or sign in to vote.
Never compare NaN with itself!
Posted: 12 Jan 2018   Updated: 12 Jan 2018   Views: 9,120   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Microsoft Versus Google: Who is correct?
Posted: 5 Nov 2018   Updated: 5 Nov 2018   Views: 10,091   Rating: 4.25/5    Votes: 10   Popularity: 4.25
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 107
Please Sign up or sign in to vote.
Benchmark of recursive and iterative Fibonacci number generation
Posted: 8 Jan 2020   Updated: 8 Jan 2020   Views: 5,213   Rating: 4.75/5    Votes: 4   Popularity: 2.86
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 43
Please Sign up or sign in to vote.
Optimization of finding a point with shortest distance w.r.t. a point of interest
C# 7.0
Posted: 31 Jan 2020   Updated: 31 Jan 2020   Views: 7,073   Rating: 4.33/5    Votes: 3   Popularity: 2.07
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 19
Please Sign up or sign in to vote.
Ternary Operator vs Lookup Table Benchmark
Posted: 15 Dec 2019   Updated: 15 Dec 2019   Views: 4,780   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 95
Please Sign up or sign in to vote.
Easier direct memory access in a safe way
C++
Posted: 20 Sep 2020   Updated: 20 Sep 2020   Views: 3,112   Rating: 2.33/5    Votes: 2   Popularity: 0.70
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 42
Please Sign up or sign in to vote.
Finding out whether it is faster to retrieve data by reference parameter or returning a reference in C++
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 24,062   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 303
Please Sign up or sign in to vote.
This tip presents a custom RTTI class which is 10x faster than dynamic_cast
Posted: 28 Jan 2017   Updated: 28 Jan 2017   Views: 11,420   Rating: 3.33/5    Votes: 9   Popularity: 3.18
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
C/C++ type declaration
Posted: 10 Dec 2017   Updated: 10 Dec 2017   Views: 17,105   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 45
Please Sign up or sign in to vote.
Make your class non-copyable without Boost
Posted: 10 Dec 2017   Updated: 10 Dec 2017   Views: 8,864   Rating: 3.03/5    Votes: 6   Popularity: 2.36
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 58
Please Sign up or sign in to vote.
Modification inside const member function
Posted: 27 Jan 2018   Updated: 27 Jan 2018   Views: 22,293   Rating: 4.90/5    Votes: 5   Popularity: 3.42
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 82
Please Sign up or sign in to vote.
Do not use memcpy directly to copy array
Posted: 3 May 2020   Updated: 3 May 2020   Views: 4,843   Rating: 3.05/5    Votes: 7   Popularity: 2.58
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 46
Please Sign up or sign in to vote.
Demonstration of how empty class and function is used in C++
Posted: 7 Mar 2020   Updated: 7 Mar 2020   Views: 4,431   Rating: 4.54/5    Votes: 4   Popularity: 2.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 53
Please Sign up or sign in to vote.
A helper class to ease writing Copy-On-Write class
Posted: 27 Jan 2020   Updated: 27 Jan 2020   Views: 2,180   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 40
Please Sign up or sign in to vote.
Quick and Dirty Log Extraction and Replay
Posted: 20 Sep 2020   Updated: 20 Sep 2020   Views: 2,351   Rating: 3.67/5    Votes: 6   Popularity: 2.85
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 39
Please Sign up or sign in to vote.
How to disable MFC SDI/MDI Submenu
Posted: 24 Dec 2018   Updated: 24 Dec 2018   Views: 4,520   Rating: 4.33/5    Votes: 2   Popularity: 1.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Use an enum instead
C++11
Posted: 14 Aug 2019   Updated: 14 Aug 2019   Views: 2,830   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Data width must stay unchanged for cross-platform interoperability
Posted: 16 May 2018   Updated: 16 May 2018   Views: 12,864   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 67
Please Sign up or sign in to vote.
C++11's std::conditional tip with an endian swap example
C++17
Posted: 16 Jan 2020   Updated: 16 Jan 2020   Views: 3,366   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 29
Please Sign up or sign in to vote.
Benchmark of Singular Min/Max and Iterator Versions
Posted: 24 May 2020   Updated: 24 May 2020   Views: 5,155   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
How to allocate variable-size arrays on the Stack in C/C++
C++20
Posted: 1 Jan 2020   Updated: 18 Jan 2021   Views: 5,460   Rating: 4.93/5    Votes: 8   Popularity: 4.45
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 56
Please Sign up or sign in to vote.
Heterogeneous lookup with char* and string_view without temporary string instantiation in ordered and unordered containers
Javascript
Posted: 8 Sep 2019   Updated: 8 Sep 2019   Views: 2,110   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 55
Please Sign up or sign in to vote.
Static Webpage Loading and Displaying Local Image Without Postback to Server
Posted: 2 Jul 2019   Updated: 2 Jul 2019   Views: 3,420   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 30
Please Sign up or sign in to vote.
Continuous beep on webpage with SoundManager 2
Markdown
Posted: 14 Jan 2019   Updated: 15 Jan 2019   Views: 9,373   Rating: 4.56/5    Votes: 4   Popularity: 2.74
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 49
Please Sign up or sign in to vote.
C++11 std::div() Benchmark
Posted: 5 Jun 2018   Updated: 5 Jun 2018   Views: 10,666   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 193
Please Sign up or sign in to vote.
Performance of Floating Point and Integer Arithmetic has closed gap in modern CPU
Python2.7
Posted: 28 Jan 2017   Updated: 28 Jan 2017   Views: 10,540   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 193
Please Sign up or sign in to vote.
Python Script to fill FIX Protocol Message Logs with information
Visual C++ 10.0
Posted: 26 Oct 2016   Updated: 26 Oct 2016   Views: 46,795   Rating: 4.84/5    Votes: 13   Popularity: 5.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 312
Please Sign up or sign in to vote.
C++: Prefer Curiously Recurring Template Pattern (CRTP) to Template Pattern
XML
Posted: 24 Dec 2018   Updated: 24 Dec 2018   Views: 3,552   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 20
Please Sign up or sign in to vote.
It could be a hacking to crash your program.
Web Development
HTML
Posted: 12 Apr 2016   Updated: 12 Apr 2016   Views: 12,282   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 110
Please Sign up or sign in to vote.
Enum to String Converter Generator written in C++ transpiled to asm.js

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.

Shao Voon Wong
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. CodeProject awarded him a MVP in recognition of his article contributions in 2019. In his spare time, he prefers to writing applications based on 3rd party libraries than rolling out his own. His interest lies primarily in computer graphics, software optimization, concurrency, security and Agile methodologies.

You can reach him by sending a message on CodeProject or at his Coding Tidbit Blog!