The Visual Studio Debugger Helped Me Bring an old MS-DOS Command Back From The Dead.

Поділитися
Вставка
  • Опубліковано 29 жов 2023
  • I previously showed how to display the output from DOS commands in a C# WinForms program. But I hit a snag with the Tree command. This displays directories and subdirectories on the branches of a tree-like structure where the branches are drawn using ASCII box-drawing characters. But my WinForms application doesn’t show the correct characters. That’s because it interprets them as Unicode characters. But ASCII and Unicode character codes are different - so the wrong characters are shown!
    Fixing it is easy - I just need to substitute the Unicode characters for the ASCII characters. But finding which characters are causing the problems is a bit more difficult. For that, I need to use the Visual Studio Debugger and, in particular, the Immediate Window. If you’ve never used the Immediate Window, you are making your debugging life harder than it needs to be. In this video, I explain why.
    To follow my C# Programming Projects, view the playlist: • C# Programming Projects
    To browse other playlists, go here: www.youtube.com/@LearnWithHuw...
    Huw Collingbourne is author of other books on programming C, C#, Java, Ruby, Delphi and Object Pascal, pointers, recursion and programming adventure games. Find them all on Amazon.
    To learn C# quickly, Huw’s book, available in paperback or for Kindle, is the perfect complement to these UA-cam lessons.
    The Little Book Of C# Programming (Amazon US): amzn.to/2JWDI0o
    The Little Book Of C# Programming (Amazon UK): amzn.to/2YaCPtS
    Keep in Touch
    ==============================
    Subscribe to the Code With Huw UA-cam channel: ua-cam.com/users/CodeWithHuw?s...
    Code With Huw on Facebook:
    / codewithhuw
    #msdos #visualstudio #debugger

КОМЕНТАРІ • 8