Click here to Skip to main content
15,896,726 members

Articles by Shao Voon Wong (Articles: 72, Tip/Tricks: 38)

Articles: 72, Tip/Tricks: 38

RSS Feed

Average article rating: 4.72

CodeProject
14 Aug 2013   Updated: 15 Aug 2013   Rating: 4.88/5    Votes: 8   Popularity: 4.41
Licence: CPOL    Views: 22,172     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
30 Oct 2016   Updated: 30 Oct 2016   Rating: 4.97/5    Votes: 51   Popularity: 8.49
Licence: Ms-PL    Views: 74,990     Bookmarked: 99   Downloaded: 1,369
Please Sign up or sign in to vote.
Prototype SIMD vectorized code effortlessly.
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.44/5    Votes: 19   Popularity: 5.58
Licence: CPOL    Views: 60,595     Bookmarked: 38   Downloaded: 1,450
Please Sign up or sign in to vote.
Benchmark of hash and non-hash container
7 Apr 2023   Updated: 11 Apr 2023   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: MIT    Views: 11,036     Bookmarked: 13   Downloaded: 240
Please Sign up or sign in to vote.
Consuming Your C# Library in MFC/C++ Project via C++/CLI
22 Dec 2019   Updated: 3 Mar 2024   Rating: 5.00/5    Votes: 10   Popularity: 4.77
Licence: CPOL    Views: 23,236     Bookmarked: 19   Downloaded: 1,028
Please Sign up or sign in to vote.
Lee Algorithm Mazesolver in MFC and Direct2D
Universal Windows Platform
25 Dec 2018   Updated: 25 Dec 2018   Rating: 4.33/5    Votes: 2   Popularity: 1.30
Licence: CPOL    Views: 7,536     Bookmarked: 3   Downloaded: 73
Please Sign up or sign in to vote.
UWP Storage Wrapper
WPF
21 Jul 2019   Updated: 21 Jul 2019   Rating: 3.74/5    Votes: 7   Popularity: 3.16
Licence: CPOL    Views: 8,300     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
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.97/5    Votes: 20   Popularity: 6.36
Licence: Ms-PL    Views: 77,277     Bookmarked: 56   Downloaded: 1,227
Please Sign up or sign in to vote.
Using SSE2 to speed up alphablending.
12 Apr 2016   Updated: 25 Apr 2020   Rating: 4.86/5    Votes: 30   Popularity: 7.18
Licence: Ms-PL    Views: 63,127     Bookmarked: 43   Downloaded: 1,673
Please Sign up or sign in to vote.
Benchmark between OpenMP, Parallel Patterns Library, Auto-Parallelizer and C++17 Parallel for_each
Multimedia
GDI
23 Jun 2021   Updated: 25 Apr 2023   Rating: 5.00/5    Votes: 24   Popularity: 6.90
Licence: MIT    Views: 14,933     Bookmarked: 21   Downloaded: 312
Please Sign up or sign in to vote.
Tracing GDI Leaks with Windows Debugger
GDI+
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.93/5    Votes: 58   Popularity: 8.49
Licence: CPOL    Views: 201,751     Bookmarked: 185   Downloaded: 7,532
Please Sign up or sign in to vote.
How to use a font without installing it first on user systems
12 Apr 2016   Updated: 13 Aug 2018   Rating: 4.98/5    Votes: 277   Popularity: 12.08
Licence: CPOL    Views: 578,902     Bookmarked: 586   Downloaded: 32,580
Please Sign up or sign in to vote.
How to draw a text with an outline
OpenGL
16 Dec 2018   Updated: 26 Oct 2022   Rating: 5.00/5    Votes: 18   Popularity: 6.28
Licence: CPOL    Views: 43,049     Bookmarked: 37   Downloaded: 1,149
Please Sign up or sign in to vote.
H264/HEVC Video Encoder for recording OpenGL rendering
Programming Languages
C#
22 Jul 2019   Updated: 22 Jul 2019   Rating: 2.83/5    Votes: 4   Popularity: 1.71
Licence: CPOL    Views: 6,727     Bookmarked: 6   Downloaded: 93
Please Sign up or sign in to vote.
Monetize your UWP, WPF and Winform app in Microsoft Store with a Durable add-on
11 Jan 2020   Updated: 11 Jan 2020   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 5,354     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Advice for suitable type of technical question to ask in an interview
2 May 2022   Updated: 7 Jun 2022   Rating: 4.88/5    Votes: 12   Popularity: 5.08
Licence: CPOL    Views: 13,484     Bookmarked: 14   Downloaded: 443
Please Sign up or sign in to vote.
Incorporate Antimalware scanning inside your application
2 Jul 2022   Updated: 1 Sep 2023   Rating: 4.88/5    Votes: 50   Popularity: 8.11
Licence: CPOL    Views: 74,006     Bookmarked: 63   Downloaded: 3,184
Please Sign up or sign in to vote.
Windows Version Detection using C# and C++
5 Nov 2016   Updated: 6 May 2024   Rating: 4.77/5    Votes: 22   Popularity: 6.21
Licence: Ms-PL    Views: 89,129     Bookmarked: 46   Downloaded: 4,256
Please Sign up or sign in to vote.
No frills C++ MP3/WMA DirectShow player class
C++
23 Aug 2019   Updated: 23 Aug 2019   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 29,217     Bookmarked: 12   Downloaded: 331
Please Sign up or sign in to vote.
How to bring your C++ OpenGL code to the web
1 Nov 2020   Updated: 1 Nov 2020   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 8,221     Bookmarked: 9   Downloaded: 460
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.
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.90/5    Votes: 19   Popularity: 6.27
Licence: CPOL    Views: 52,223     Bookmarked: 43   Downloaded: 625
Please Sign up or sign in to vote.
Introduction to Boost Multiprecision Library
17 Jan 2017   Updated: 17 Jan 2017   Rating: 2.14/5    Votes: 5   Popularity: 1.50
Licence: CPOL    Views: 20,703     Bookmarked: 3   Downloaded: 278
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!
4 Feb 2017   Updated: 4 Feb 2017   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 11,544     Bookmarked: 4   Downloaded: 68
Please Sign up or sign in to vote.
Boost Lexical Cast Wrapper to provide more exceptional information
30 Dec 2017   Updated: 30 Dec 2017   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 11,154     Bookmarked: 3   Downloaded: 79
Please Sign up or sign in to vote.
C++ Summing For Loop Benchmark yield interesting results and assembly code across different compilers.
12 Apr 2016   Updated: 3 Jan 2018   Rating: 4.78/5    Votes: 18   Popularity: 5.88
Licence: CPOL    Views: 28,666     Bookmarked: 35   Downloaded: 594
Please Sign up or sign in to vote.
A C++ Text Stream design which has read/write symmetry
27 Jan 2018   Updated: 27 Jan 2018   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 21,176     Bookmarked: 8   Downloaded: 85
Please Sign up or sign in to vote.
Always use Erase-remove Idiom to erase vector elements
6 Jun 2018   Updated: 6 Jun 2018   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 13,038     Bookmarked: 7   Downloaded: 93
Please Sign up or sign in to vote.
Simple Permutation and Combination Parallelism Examples
12 Apr 2016   Updated: 12 Aug 2018   Rating: 4.85/5    Votes: 23   Popularity: 6.42
Licence: CPOL    Views: 76,991     Bookmarked: 58   Downloaded: 1,320
Please Sign up or sign in to vote.
Simplistic Binary Streams with endian swap support
24 May 2020   Updated: 6 Aug 2020   Rating: 4.88/5    Votes: 6   Popularity: 3.79
Licence: CPOL    Views: 18,711     Bookmarked: 5   Downloaded: 95
Please Sign up or sign in to vote.
Trying out Address Sanitizer in Visual C++
12 Apr 2016   Updated: 1 Oct 2016   Rating: 4.86/5    Votes: 50   Popularity: 7.99
Licence: CPOL    Views: 183,839     Bookmarked: 70   Downloaded: 0
Please Sign up or sign in to vote.
Writing comparison function for std::sort
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.81/5    Votes: 30   Popularity: 6.46
Licence: CPOL    Views: 103,408     Bookmarked: 50   Downloaded: 2,318
Please Sign up or sign in to vote.
Introduce 4 new algorithms on finding combinations
12 Apr 2016   Updated: 5 Jun 2018   Rating: 4.55/5    Votes: 58   Popularity: 7.65
Licence: CPOL    Views: 349,333     Bookmarked: 77   Downloaded: 6,221
Please Sign up or sign in to vote.
An article on finding combinations
25 May 2020   Updated: 25 May 2020   Rating: 5.00/5    Votes: 13   Popularity: 5.57
Licence: CPOL    Views: 28,615     Bookmarked: 27   Downloaded: 851
Please Sign up or sign in to vote.
Direct2D Tutorial on RenderTarget
17 Sep 2020   Updated: 17 Sep 2020   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 9,174     Bookmarked: 11   Downloaded: 282
Please Sign up or sign in to vote.
Direct2D Tutorial on Linear and Radial Gradient Brush
20 Aug 2020   Updated: 4 Jan 2021   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 19,517     Bookmarked: 17   Downloaded: 502
Please Sign up or sign in to vote.
Direct2D Tutorial on Drawing Basic Shapes
20 Aug 2020   Updated: 27 Jan 2021   Rating: 4.82/5    Votes: 7   Popularity: 4.07
Licence: CPOL    Views: 10,663     Bookmarked: 12   Downloaded: 282
Please Sign up or sign in to vote.
Direct2D Tutorial on Applying Affine Transforms on Drawings
9 Jan 2018   Updated: 27 Jun 2022   Rating: 5.00/5    Votes: 28   Popularity: 7.24
Licence: CPOL    Views: 70,354     Bookmarked: 84   Downloaded: 3,894
Please Sign up or sign in to vote.
A portable and easy-to-use C++ file library to read and write structured data
20 Sep 2020   Updated: 30 Aug 2022   Rating: 4.85/5    Votes: 17   Popularity: 5.97
Licence: CPOL    Views: 33,666     Bookmarked: 31   Downloaded: 1,607
Please Sign up or sign in to vote.
How to make an HTTP REST request in C++ with WinHTTP wrapper
12 Apr 2016   Updated: 10 Mar 2023   Rating: 4.80/5    Votes: 77   Popularity: 8.96
Licence: MIT    Views: 176,137     Bookmarked: 172   Downloaded: 4,950
Please Sign up or sign in to vote.
Read/write CSV in few lines of code!
13 Jan 2023   Updated: 10 Mar 2023   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 11,040     Bookmarked: 7   Downloaded: 294
Please Sign up or sign in to vote.
Introduction to DirectWrite Text Display and Font Enumeration
16 Nov 2020   Updated: 25 Apr 2023   Rating: 4.96/5    Votes: 34   Popularity: 7.53
Licence: MIT    Views: 66,827     Bookmarked: 71   Downloaded: 2,550
Please Sign up or sign in to vote.
Windows Toast Notification in C++
12 Aug 2023   Updated: 12 Aug 2023   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 8,832     Bookmarked: 6   Downloaded: 109
Please Sign up or sign in to vote.
C++23 Exception and C++ Windows Exception with Callstack
10 Feb 2024   Updated: 14 Feb 2024   Rating: 4.98/5    Votes: 16   Popularity: 5.86
Licence: CPOL    Views: 6,429     Bookmarked: 15   Downloaded: 393
Please Sign up or sign in to vote.
Learn 30 Windows Multithreading Mistakes and Solutions to Avert Them
C++11
28 Jun 2019   Updated: 28 Jun 2019   Rating: 4.77/5    Votes: 11   Popularity: 4.77
Licence: CPOL    Views: 15,565     Bookmarked: 15   Downloaded: 229
Please Sign up or sign in to vote.
How to bring your C++ code to the web
26 Jul 2019   Updated: 30 Jul 2019   Rating: 4.87/5    Votes: 11   Popularity: 5.07
Licence: CPOL    Views: 29,191     Bookmarked: 19   Downloaded: 578
Please Sign up or sign in to vote.
Run your C++ Graphics on the Desktop and Web
1 Jan 2020   Updated: 12 Jan 2020   Rating: 5.00/5    Votes: 41   Popularity: 8.01
Licence: CPOL    Views: 31,519     Bookmarked: 49   Downloaded: 850
Please Sign up or sign in to vote.
Floating Point Format For C++ and C# Programmers
10 Aug 2020   Updated: 10 Aug 2020   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 4,831     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
28 Jan 2017   Updated: 5 Apr 2017   Rating: 4.25/5    Votes: 6   Popularity: 3.31
Licence: CPOL    Views: 12,993     Bookmarked: 10   Downloaded: 143
Please Sign up or sign in to vote.
Compute Concurrent Permutations and Combinations on CPU
17 May 2018   Updated: 27 Jun 2022   Rating: 4.43/5    Votes: 6   Popularity: 3.45
Licence: CPOL    Views: 132,668     Bookmarked: 28   Downloaded: 2,917
Please Sign up or sign in to vote.
Example of making HTTP REST Request in C++
25 Sep 2022   Updated: 16 Oct 2022   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 8,941     Bookmarked: 13   Downloaded: 330
Please Sign up or sign in to vote.
C++11 Range For-Loop to Enumerate Registry, Folder and WMI
1 Jul 2019   Updated: 25 Apr 2023   Rating: 4.99/5    Votes: 46   Popularity: 8.25
Licence: MIT    Views: 62,244     Bookmarked: 77   Downloaded: 2,787
Please Sign up or sign in to vote.
Bring your animations to H264/HEVC video using C++ and C# with h/w acceleration
C++14
18 Sep 2016   Updated: 1 Oct 2016   Rating: 2.75/5    Votes: 3   Popularity: 1.31
Licence: CPOL    Views: 24,341     Bookmarked: 12   Downloaded: 184
Please Sign up or sign in to vote.
Using C++11 thread_local to Avoid Allocation, Sharing and Minimize Locking
28 Jan 2017   Updated: 6 May 2021   Rating: 3.69/5    Votes: 12   Popularity: 3.99
Licence: CPOL    Views: 22,394     Bookmarked: 17   Downloaded: 366
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++17
7 Apr 2023   Updated: 27 Jan 2024   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: MIT    Views: 10,270     Bookmarked: 10   Downloaded: 203
Please Sign up or sign in to vote.
C++17 easy string to number and vice versa conversions in header-only class
12 May 2024   Updated: 12 May 2024   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 1,530     Bookmarked: 2   Downloaded: 12
Please Sign up or sign in to vote.
C++ Multithreaded Count Benchmark using Visual C++, G++ and Clang
C++98
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.81/5    Votes: 10   Popularity: 4.81
Licence: CPOL    Views: 39,272     Bookmarked: 26   Downloaded: 488
Please Sign up or sign in to vote.
Debug Print using C++11 Variadic Template
CUDA
16 Jan 2021   Updated: 16 Jan 2021   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 7,804     Bookmarked: 4   Downloaded: 197
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
2 Aug 2018   Updated: 2 Aug 2018   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 10,822     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
12 Apr 2016   Updated: 11 Jan 2018   Rating: 4.65/5    Votes: 87   Popularity: 8.63
Licence: CPOL    Views: 960,937     Bookmarked: 138   Downloaded: 542
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
19 Sep 2016   Updated: 5 Jun 2018   Rating: 2.94/5    Votes: 7   Popularity: 2.48
Licence: CPOL    Views: 33,185     Bookmarked: 9   Downloaded: 364
Please Sign up or sign in to vote.
Implementing string_view conversion to integral types using Boost Spirit Qi v2
30 Dec 2017   Updated: 16 Jun 2018   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 18,086     Bookmarked: 11   Downloaded: 130
Please Sign up or sign in to vote.
Overloaded Operators to write concise code on STL Set Algorithms
MASM
4 Dec 2021   Updated: 4 Dec 2021   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 8,044     Bookmarked: 5   Downloaded: 75
Please Sign up or sign in to vote.
Guess what these assembly instructions with the same source and destination operands do?
Visual C++ 10.0
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.78/5    Votes: 14   Popularity: 5.48
Licence: Ms-PL    Views: 43,950     Bookmarked: 29   Downloaded: 503
Please Sign up or sign in to vote.
Linq-To-XML Node Creation for Native C++
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.83/5    Votes: 18   Popularity: 6.07
Licence: Ms-PL    Views: 54,970     Bookmarked: 36   Downloaded: 1,966
Please Sign up or sign in to vote.
Draw text outline using DirectWrite
XML
12 Apr 2016   Updated: 27 Jun 2022   Rating: 4.77/5    Votes: 75   Popularity: 8.88
Licence: Ms-PL    Views: 186,164     Bookmarked: 165   Downloaded: 1,619
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.
12 Apr 2016   Updated: 26 Apr 2024   Rating: 4.64/5    Votes: 18   Popularity: 5.82
Licence: CPOL    Views: 53,517     Bookmarked: 51   Downloaded: 1,230
Please Sign up or sign in to vote.
Tutorial on a cross-platform C++ XML DOM library
Web Development
HTML
12 Apr 2019   Updated: 12 Apr 2019   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 10,414     Bookmarked: 7   Downloaded: 50
Please Sign up or sign in to vote.
This article discusses what web developers need to know about content security policy.
14 Apr 2019   Updated: 14 Apr 2019   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 26,406     Bookmarked: 3   Downloaded: 76
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.
12 Apr 2016   Updated: 13 Aug 2018   Rating: 4.92/5    Votes: 40   Popularity: 7.88
Licence: CPOL    Views: 54,139     Bookmarked: 60   Downloaded: 6,993
Please Sign up or sign in to vote.
Outline Text Part 2
12 Apr 2016   Updated: 12 Apr 2016   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 31,775     Bookmarked: 10   Downloaded: 342
Please Sign up or sign in to vote.
New SAX parsing model comes to .NET!
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.57/5    Votes: 6   Popularity: 3.56
Licence: Ms-PL    Views: 64,477     Bookmarked: 34   Downloaded: 1,115
Please Sign up or sign in to vote.
Finding lexicographical permutations on GPU
12 Apr 2016   Updated: 28 Apr 2024   Rating: 4.84/5    Votes: 18   Popularity: 5.82
Licence: CPOL    Views: 45,923     Bookmarked: 41   Downloaded: 765
Please Sign up or sign in to vote.
C++ SAX library to simplify XML parsing

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.47

Database Development
SQL Server
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.78/5    Votes: 14   Popularity: 5.48
Licence: CPOL    Views: 100,907     Bookmarked: 18   Downloaded: 456
Please Sign up or sign in to vote.
How to prevent SQL injection attacks when using dynamic SQL in stored procedures
DevOps
Git
7 Jun 2018   Updated: 7 Jun 2018   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 6,141     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
How to create a Pull Request at GitHub
Multimedia
GDI+
29 Jan 2018   Updated: 29 Jan 2018   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 9,846     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Fixing Inconsistent Stroke Width of Chinese Characters
Programming Languages
C
12 Apr 2016   Updated: 12 Apr 2016   Rating: 4.80/5    Votes: 7   Popularity: 4.06
Licence: CPOL    Views: 28,690     Bookmarked: 12   Downloaded: 109
Please Sign up or sign in to vote.
Never test for NaN by comparing it with NaN literal
C#
15 Jan 2020   Updated: 15 Jan 2020   Rating: 4.56/5    Votes: 15   Popularity: 5.22
Licence: CPOL    Views: 18,233     Bookmarked: 9   Downloaded: 51
Please Sign up or sign in to vote.
Never compare NaN with itself!
12 Jan 2018   Updated: 12 Jan 2018   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 13,203     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Microsoft Versus Google: Who is correct?
5 Nov 2018   Updated: 5 Nov 2018   Rating: 4.25/5    Votes: 10   Popularity: 4.25
Licence: CPOL    Views: 17,812     Bookmarked: 5   Downloaded: 111
Please Sign up or sign in to vote.
Benchmark of recursive and iterative Fibonacci number generation
8 Jan 2020   Updated: 8 Jan 2020   Rating: 4.75/5    Votes: 4   Popularity: 2.86
Licence: CPOL    Views: 9,833     Bookmarked: 2   Downloaded: 46
Please Sign up or sign in to vote.
Optimization of finding a point with shortest distance w.r.t. a point of interest
19 Jan 2024   Updated: 6 Feb 2024   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: MIT    Views: 9,853     Bookmarked: 7   Downloaded: 108
Please Sign up or sign in to vote.
Solving Fizz Buzz in C# and C++ using six different approaches
C# 7.0
31 Jan 2020   Updated: 31 Jan 2020   Rating: 4.33/5    Votes: 3   Popularity: 2.07
Licence: CPOL    Views: 8,884     Bookmarked: 1   Downloaded: 21
Please Sign up or sign in to vote.
Ternary Operator vs Lookup Table Benchmark
15 Dec 2019   Updated: 15 Dec 2019   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 7,840     Bookmarked: 6   Downloaded: 99
Please Sign up or sign in to vote.
Easier direct memory access in a safe way
C++
20 Sep 2020   Updated: 20 Sep 2020   Rating: 2.33/5    Votes: 2   Popularity: 0.70
Licence: CPOL    Views: 7,045     Bookmarked: 1   Downloaded: 45
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++
12 Apr 2016   Updated: 12 Apr 2016   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 31,364     Bookmarked: 12   Downloaded: 318
Please Sign up or sign in to vote.
This tip presents a custom RTTI class which is 10x faster than dynamic_cast
28 Jan 2017   Updated: 28 Jan 2017   Rating: 3.33/5    Votes: 9   Popularity: 3.18
Licence: CPOL    Views: 13,660     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
C/C++ type declaration
10 Dec 2017   Updated: 10 Dec 2017   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 26,559     Bookmarked: 3   Downloaded: 48
Please Sign up or sign in to vote.
Make your class non-copyable without Boost
10 Dec 2017   Updated: 10 Dec 2017   Rating: 3.03/5    Votes: 6   Popularity: 2.36
Licence: CPOL    Views: 14,957     Bookmarked: 2   Downloaded: 60
Please Sign up or sign in to vote.
Modification inside const member function
27 Jan 2018   Updated: 27 Jan 2018   Rating: 4.90/5    Votes: 5   Popularity: 3.42
Licence: CPOL    Views: 31,829     Bookmarked: 8   Downloaded: 86
Please Sign up or sign in to vote.
Do not use memcpy directly to copy array
3 May 2020   Updated: 3 May 2020   Rating: 3.05/5    Votes: 7   Popularity: 2.58
Licence: CPOL    Views: 9,783     Bookmarked: 2   Downloaded: 48
Please Sign up or sign in to vote.
Demonstration of how empty class and function is used in C++
7 Mar 2020   Updated: 7 Mar 2020   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: CPOL    Views: 7,791     Bookmarked: 2   Downloaded: 79
Please Sign up or sign in to vote.
A helper class to ease writing Copy-On-Write class
27 Jan 2020   Updated: 27 Jan 2020   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 3,763     Bookmarked: 5   Downloaded: 47
Please Sign up or sign in to vote.
Quick and Dirty Log Extraction and Replay
20 Sep 2020   Updated: 20 Sep 2020   Rating: 3.67/5    Votes: 6   Popularity: 2.85
Licence: CPOL    Views: 5,691     Bookmarked: 2   Downloaded: 89
Please Sign up or sign in to vote.
How to disable MFC SDI/MDI Submenu
24 Dec 2018   Updated: 24 Dec 2018   Rating: 4.33/5    Votes: 2   Popularity: 1.30
Licence: CPOL    Views: 5,800     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Use an enum instead
30 Jan 2024   Updated: 18 Feb 2024   Rating: 5.00/5    Votes: 15   Popularity: 5.73
Licence: MIT    Views: 17,368     Bookmarked: 10   Downloaded: 255
Please Sign up or sign in to vote.
Two C++ features win over C equivalents in performance
29 Jan 2024   Updated: 18 Feb 2024   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: MIT    Views: 6,956     Bookmarked: 5   Downloaded: 111
Please Sign up or sign in to vote.
Make a console program not to show the console screen
17 Feb 2024   Updated: 30 Mar 2024   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 6,602     Bookmarked: 7   Downloaded: 75
Please Sign up or sign in to vote.
InsertionSort outperforms QuickSort on almost In-Order Array
C++11
14 Aug 2019   Updated: 14 Aug 2019   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 4,692     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Data width must stay unchanged for cross-platform interoperability
16 May 2018   Updated: 16 May 2018   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 20,416     Bookmarked: 7   Downloaded: 71
Please Sign up or sign in to vote.
C++11's std::conditional tip with an endian swap example
C++17
16 Jan 2020   Updated: 16 Jan 2020   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 5,598     Bookmarked: 1   Downloaded: 31
Please Sign up or sign in to vote.
Benchmark of Singular Min/Max and Iterator Versions
24 May 2020   Updated: 24 May 2020   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 13,171     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
1 Jan 2020   Updated: 18 Jan 2021   Rating: 4.93/5    Votes: 8   Popularity: 4.45
Licence: CPOL    Views: 10,064     Bookmarked: 4   Downloaded: 64
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
8 Sep 2019   Updated: 8 Sep 2019   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 3,492     Bookmarked: 0   Downloaded: 59
Please Sign up or sign in to vote.
Static Webpage Loading and Displaying Local Image Without Postback to Server
2 Jul 2019   Updated: 27 Jun 2022   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: CPOL    Views: 7,263     Bookmarked: 6   Downloaded: 72
Please Sign up or sign in to vote.
Continuous beep on webpage with SoundManager 2
Markdown
14 Jan 2019   Updated: 15 Jan 2019   Rating: 4.56/5    Votes: 4   Popularity: 2.74
Licence: CPOL    Views: 15,496     Bookmarked: 4   Downloaded: 54
Please Sign up or sign in to vote.
C++11 std::div() Benchmark
5 Jun 2018   Updated: 5 Jun 2018   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 20,499     Bookmarked: 3   Downloaded: 285
Please Sign up or sign in to vote.
Performance of Floating Point and Integer Arithmetic has closed gap in modern CPU
Python2.7
28 Jan 2017   Updated: 28 Jan 2017   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 14,340     Bookmarked: 1   Downloaded: 240
Please Sign up or sign in to vote.
Python Script to fill FIX Protocol Message Logs with information
Visual C++ 10.0
26 Oct 2016   Updated: 26 Oct 2016   Rating: 4.84/5    Votes: 13   Popularity: 5.39
Licence: CPOL    Views: 54,721     Bookmarked: 14   Downloaded: 333
Please Sign up or sign in to vote.
C++: Prefer Curiously Recurring Template Pattern (CRTP) to Template Pattern
XML
24 Dec 2018   Updated: 24 Dec 2018   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 5,193     Bookmarked: 1   Downloaded: 24
Please Sign up or sign in to vote.
It could be a hacking to crash your program.
Web Development
HTML
12 Apr 2016   Updated: 12 Apr 2016   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 13,784     Bookmarked: 3   Downloaded: 117
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.
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.