Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Shao Voon Wong

@Shao Voon Wong
About
Posts
429
Topics
107
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Installing a TTF font
    S Shao Voon Wong

    I notice the source code download are broken.

    The source code for the 1st article can be downloaded from Github.

    https://github.com/shaovoon/use_font_without_install_on_win

    C / C++ / MFC

  • Installing a TTF font
    S Shao Voon Wong

    C++ : https://www.codeproject.com/articles/How-to-Use-a-Font-Without-Installing-it

    C# : https://www.codeproject.com/articles/Load-And-Use-Custom-Font-Without-Installing-It

    C / C++ / MFC

  • C++ articles do not have syntax highlighting for C++ code
    S Shao Voon Wong

    One example of the affected articles: https://www.codeproject.com/articles/Fast-SIMD-Prototyping

    Please kindly fix it.

    Thanks.

    Site Bugs / Suggestions

  • My Articles Page lists Graeme_Grant's articles, not my articles
    S Shao Voon Wong

    @Graeme_Grant This bug has been fixed. Case closed.

    Site Bugs / Suggestions

  • My profile history and articles are missing
    S Shao Voon Wong

    @Richard-Deeming said in My profile history and articles are missing:

    Even stranger - my profile now lists @Graeme_Grant's articles!

    image.png

    I guess nothing beats testing in production! 🤣

    My article page also lists Graeme_Grant articles.

    Site Bugs / Suggestions

  • My Outline Text Part 2 article has no images displayed.
    S Shao Voon Wong

    I can email you the images for this article. Just let me know the email address to send them to.

    https://codeproject.com/articles/Outline-Text-Part

    Site Bugs / Suggestions

  • My articles are being attributed to other people
    S Shao Voon Wong

    My article: https://www.codeproject.com/articles/Cplusplus-Exception-with-Callstack lists Deeksha Shenoy as author. Please kindly fix this.

    Thanks.

    Site Bugs / Suggestions

  • My Articles Page lists Graeme_Grant's articles, not my articles
    S Shao Voon Wong

    My Articles Page lists 10 articles. And they are all Graeme_Grant's articles, not mine. I have 100 articles in total, not 10.

    Please kindly fix this.

    Thanks in advance.

    Site Bugs / Suggestions

  • What's the object-oriented way to become wealthy?
    S Shao Voon Wong

    Make a million dollar app?

    The Lounge oop question

  • Ever pushed a bubble around a waterbed?
    S Shao Voon Wong

    You can enable Address Sanitizer on Visual Studio to find memory issues such as corruptions or overruns.

    The Lounge design com graphics iot data-structures

  • 10 years of Dear ImGui
    S Shao Voon Wong

    > __[Dear ImGui Creator](https://github.com/ocornut/imgui/issues/7892) [[^](https://github.com/ocornut/imgui/issues/7892)]__ > On August 11, 2014, I published v1.00 of Dear ImGui on GitHub. > > I thought I would take the occasion to reflect about it, share some data points > and stories, and generally think about what I want and need. No big fantastic > announcement here, mostly a series of stories and thoughts. Interesting stories behind Dear ImGui's creation and development

    The Insider News com discussion announcement

  • Avalonia 11.1: A quantum leap in cross-platform UI development
    S Shao Voon Wong

    My lecturer told me quantum leap is the smallest possible leap in the quantum physics. Not sure why and how this phrase came to describe the biggest possible leap in the real world.

    The Insider News csharp design question announcement

  • Swift the best choice to succeed C++, Apple says
    S Shao Voon Wong

    Swift tries too hard to be different from C/C++ to stand out. For example, ++ and -- operators do not exist in Swift through += and -= exists. Its for-loop are different and inflexible. This is a C for loop to increment from 0 to 10

    for(int i=0; i<=10; ++i)
    {
    printf("%d", i);
    }

    This is Swift version of the same thing. It has limitations that it cannot increment more than one in a single step or decrement.

    for number in 0...10
    {
    print(number)
    }

    This is a C for loop to increment from 0 to 9

    for(int i=0; i<10; ++i)
    {
    printf("%d", i);
    }

    This is Swift version of the same thing.

    for number in 0..<10
    {
    print(number)
    }

    This is the C for-loop that increment from 0 to 256 in steps of 16

    for(int i=0; i<=256; i+=16)
    {
    printf("%d", i);
    }

    This is Swift version

    for number in stride(from: 0, through: 256, by:16)
    {
    print(number)
    }

    This is C for-loop of decrementing by steps of 16.

    for(int i=256; i>=0; i-=16)
    {
    printf("%d", i);
    }

    This is Swift version of decrementing by steps of 16.

    for number in stride(from: 256, to: 0, by: -16)
    {
    print(number)
    }

    C for-loop syntax more or less stay the same while Swift's change depending whether you want to increment more than one or decrement. C version of do-while

    do
    {
    ...
    }
    while (i<10);

    Swift version of do-while

    repeat
    {
    ...
    }
    while (i<10);

    These are some examples. The try-catch exception is also very different. I tried to port my Windows DirectX application to Apple Metal but I gave up because the Swift's syntax is too different. I do not mean they should be the same. At least, the basic syntax should stay the same instead to be different in order to differentiate Swift from other C-compatible languages. So that I only struggle on the DirectX/Metal differences rather than the language's unimportant differences.

    The Insider News c++ swift html com performance

  • Does listening to certain types of music help you get in the zone?
    S Shao Voon Wong

    Listening to music helps when I am in the mood. I listen to music 1 hour per day. But dealing with complex bugs or writing complex code dealing with different libraries or subsystems, I prefer not to listen to music as I need the full concentration.

    The Lounge com help question learning

  • Changed state doesn't stick
    S Shao Voon Wong

    I was using the new Outlook for my Yahoo mail and Gmail. I have the same problem as OP. Now I am not using new Outlook. I revert to checking my emails on web browser. Microsoft wants ad revenue on the new Outlook but it does not bother to QA and release bug-free application.

    The Lounge com sysadmin help question

  • Site playing up again
    S Shao Voon Wong

    Hope Chris backs up the site before the SSD or server goes down.

    The Lounge question

  • C++26 Sneak Peek
    S Shao Voon Wong

    Edited: The post is removed because it is an April Fool post and AF day is over.

    The Insider News c++

  • This Programming Tool From Microsoft Costs Only $40 Through April 2
    S Shao Voon Wong

    IMHO, it is not worth buying it since Visual Studio 2024 or 2025 is going to be out soon.

    The Lounge csharp visual-studio com question announcement

  • I do not understand the Netflix "recommendation algorithm".
    S Shao Voon Wong

    What's your age?

    The Lounge com algorithms lounge

  • I do not understand the Netflix "recommendation algorithm".
    S Shao Voon Wong

    Ideally, the recommendation algorithm should recommend other Korean series (of the same genre) based on what you just watched. The recommendation should also take into account your demographics and age: Elderly gentlemen usually do not watch Japanese animation. Hey, Netflix, do you wanna hire me as your recommendation engineer? Do I have what it takes to be? Ans: Yes, I have common sense.

    The Lounge com algorithms lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups