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
  1. Home
  2. The Lounge
  3. Programming Windows 3.1: Charles Petzold

Programming Windows 3.1: Charles Petzold

Scheduled Pinned Locked Moved The Lounge
c++comgraphicshardwaredata-structures
28 Posts 18 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • raddevusR Offline
    raddevusR Offline
    raddevus
    wrote on last edited by
    #1

    I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

    from Preface

    The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

    Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

    D H B A J 12 Replies Last reply
    0
    • raddevusR raddevus

      I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

      from Preface

      The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

      Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

      D Offline
      D Offline
      Daniel Pfeffer
      wrote on last edited by
      #2

      I still have my dead-tree version of this book and of its sequel, Programming Windows 95. But then, I'm a packrat (aka hoarder).

      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

      J D 2 Replies Last reply
      0
      • raddevusR raddevus

        I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

        from Preface

        The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

        Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #3

        I just finished rewriting my windows FON file processing code. I use 16-bit win3.1 raster font files for one of my text drawing options in my embedded graphics lib. I found some python code for picking apart the file and ported it to C++ to make it work with my graphics lib. Blast from the past. The fonts work great though.

        Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

        1 Reply Last reply
        0
        • raddevusR raddevus

          I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

          from Preface

          The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

          Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

          B Offline
          B Offline
          BernardIE5317
          wrote on last edited by
          #4

          That book started me on my so called career as a programmer. After reading his implementation of a hex editor I thought long and hard for 15 minutes and decided I could do better. I then spent the next 4 years implementing the world's then only user configurable binary file editor aka "FileRay". A copy can be found on the Wayback machine. By the way if you need such an editor I highly recommend the only one of its kind today id est "010 Editor" by Sweetscape Software. It is a pleasure to utilize. "If you try to fail, and succeed, which have you done?" - George Carlin

          D 1 Reply Last reply
          0
          • raddevusR raddevus

            I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

            from Preface

            The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

            Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

            A Offline
            A Offline
            Amarnath S
            wrote on last edited by
            #5

            I remember those pre Windows 3.0/3.1 days. Three of us students had done our research computations in Fortran, using Watfor compiler, and written our PhD theses, using Tex typesetting software, on a PC XT, with total hard disk space of 20 MB, running DOS 6.22. Using Ghostscript to convert the .tex files to PS files.

            1 Reply Last reply
            0
            • raddevusR raddevus

              I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

              from Preface

              The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

              Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #6

              Petzold is an OG. Home dude even got the infamous [Windows tattoo](https://img.wonderhowto.com/img/71/09/63424984159936/0/develop-mobile-apps-for-windows-phone-7-devices-complete-programming-guide.w240.jpg). Talk about dedication. :laugh: Hard to go wrong with any of his books. IMO there are meh books and then there are great books that you never forget because they had such an impact. Most of the old skool ones are out of print, but if you're willing to pay for them these are by far some of the best books on their respective subjects. [Win32 Programming](https://www.amazon.com/Win32-Programming-Addison-Wesley-Advanced-Windows/dp/0201634929). Talks about not using MFC to do Windows coding. Since MSDN dumped all their old info, it's still handy to have around. I emailed Joseph Newcomer once to get permission to post a routine in that book in a CP article. He's pretty cool dude. [Assembly Language Step-By-Step](https://www.amazon.com/Assembly-Language-Step-Step-Duntemann/dp/0471578142) IMO this was the best book ever to teach ASM to beginners. This dude took concepts that few people talked about and made it read so easy. There's a second edition that covers Linux ASM, but the first edition is for DOS. Never read the second edition, but I'd bet its good too. [Michael Abrash's Graphics Programming Black Book](https://www.amazon.com/Michael-Abrashs-Graphics-Programming-Special/dp/1576101746). This right here is the bible on graphics programming in DOS. These days the vast majority of this info is outdated, but you will learn more about the history of graphics programming from this book than any other. It's a big book though. I never even finished it. But, it's literally _the_ book for DOS graphics... bar none. You can probably find a PDF of it it was so well known back then. I'm sure there are newer books that are awesome, but if you wanna go retro...

              Jeremy Falcon

              raddevusR Richard Andrew x64R 2 Replies Last reply
              0
              • raddevusR raddevus

                I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

                from Preface

                The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

                Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

                R Offline
                R Offline
                Ravi Bhavnani
                wrote on last edited by
                #7

                This book started me on my journey as a Windows developer in 1992.  I still have my first edition copy and hope to get it autographed by Charles some day. /ravi

                My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                1 Reply Last reply
                0
                • J Jeremy Falcon

                  Petzold is an OG. Home dude even got the infamous [Windows tattoo](https://img.wonderhowto.com/img/71/09/63424984159936/0/develop-mobile-apps-for-windows-phone-7-devices-complete-programming-guide.w240.jpg). Talk about dedication. :laugh: Hard to go wrong with any of his books. IMO there are meh books and then there are great books that you never forget because they had such an impact. Most of the old skool ones are out of print, but if you're willing to pay for them these are by far some of the best books on their respective subjects. [Win32 Programming](https://www.amazon.com/Win32-Programming-Addison-Wesley-Advanced-Windows/dp/0201634929). Talks about not using MFC to do Windows coding. Since MSDN dumped all their old info, it's still handy to have around. I emailed Joseph Newcomer once to get permission to post a routine in that book in a CP article. He's pretty cool dude. [Assembly Language Step-By-Step](https://www.amazon.com/Assembly-Language-Step-Step-Duntemann/dp/0471578142) IMO this was the best book ever to teach ASM to beginners. This dude took concepts that few people talked about and made it read so easy. There's a second edition that covers Linux ASM, but the first edition is for DOS. Never read the second edition, but I'd bet its good too. [Michael Abrash's Graphics Programming Black Book](https://www.amazon.com/Michael-Abrashs-Graphics-Programming-Special/dp/1576101746). This right here is the bible on graphics programming in DOS. These days the vast majority of this info is outdated, but you will learn more about the history of graphics programming from this book than any other. It's a big book though. I never even finished it. But, it's literally _the_ book for DOS graphics... bar none. You can probably find a PDF of it it was so well known back then. I'm sure there are newer books that are awesome, but if you wanna go retro...

                  Jeremy Falcon

                  raddevusR Offline
                  raddevusR Offline
                  raddevus
                  wrote on last edited by
                  #8

                  Those are all great ones. Duntemann is one of my all-time favorite tech authors. I read that original book and he taught me stuff you just couldn't learn elsewhere. I recently posted about reading through his updated version (just came out 1 year ago or so). x64 Assembly Language Step-by-Step: Programming with Linux (Tech Today) 4th Edition[^] It's as good as the original and has some of the original text / stories in it. :thumbsup:

                  J 2 Replies Last reply
                  0
                  • raddevusR raddevus

                    Those are all great ones. Duntemann is one of my all-time favorite tech authors. I read that original book and he taught me stuff you just couldn't learn elsewhere. I recently posted about reading through his updated version (just came out 1 year ago or so). x64 Assembly Language Step-by-Step: Programming with Linux (Tech Today) 4th Edition[^] It's as good as the original and has some of the original text / stories in it. :thumbsup:

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #9

                    Holy crap, he's still at it. I wanna read it too. :omg:

                    Jeremy Falcon

                    1 Reply Last reply
                    0
                    • raddevusR raddevus

                      Those are all great ones. Duntemann is one of my all-time favorite tech authors. I read that original book and he taught me stuff you just couldn't learn elsewhere. I recently posted about reading through his updated version (just came out 1 year ago or so). x64 Assembly Language Step-by-Step: Programming with Linux (Tech Today) 4th Edition[^] It's as good as the original and has some of the original text / stories in it. :thumbsup:

                      J Offline
                      J Offline
                      Jeremy Falcon
                      wrote on last edited by
                      #10

                      Forgot to mention, [Joseph Newcomer](https://www.codeproject.com/Articles/Joseph-M-Newcomer#Article) even wrote 50 some-odd articles for CP. He's the one and the same as that book author.

                      Jeremy Falcon

                      N 1 Reply Last reply
                      0
                      • J Jeremy Falcon

                        Forgot to mention, [Joseph Newcomer](https://www.codeproject.com/Articles/Joseph-M-Newcomer#Article) even wrote 50 some-odd articles for CP. He's the one and the same as that book author.

                        Jeremy Falcon

                        N Offline
                        N Offline
                        Nelek
                        wrote on last edited by
                        #11

                        He wrote a lot of MSDN articles too IIRC

                        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                        1 Reply Last reply
                        0
                        • J Jeremy Falcon

                          Petzold is an OG. Home dude even got the infamous [Windows tattoo](https://img.wonderhowto.com/img/71/09/63424984159936/0/develop-mobile-apps-for-windows-phone-7-devices-complete-programming-guide.w240.jpg). Talk about dedication. :laugh: Hard to go wrong with any of his books. IMO there are meh books and then there are great books that you never forget because they had such an impact. Most of the old skool ones are out of print, but if you're willing to pay for them these are by far some of the best books on their respective subjects. [Win32 Programming](https://www.amazon.com/Win32-Programming-Addison-Wesley-Advanced-Windows/dp/0201634929). Talks about not using MFC to do Windows coding. Since MSDN dumped all their old info, it's still handy to have around. I emailed Joseph Newcomer once to get permission to post a routine in that book in a CP article. He's pretty cool dude. [Assembly Language Step-By-Step](https://www.amazon.com/Assembly-Language-Step-Step-Duntemann/dp/0471578142) IMO this was the best book ever to teach ASM to beginners. This dude took concepts that few people talked about and made it read so easy. There's a second edition that covers Linux ASM, but the first edition is for DOS. Never read the second edition, but I'd bet its good too. [Michael Abrash's Graphics Programming Black Book](https://www.amazon.com/Michael-Abrashs-Graphics-Programming-Special/dp/1576101746). This right here is the bible on graphics programming in DOS. These days the vast majority of this info is outdated, but you will learn more about the history of graphics programming from this book than any other. It's a big book though. I never even finished it. But, it's literally _the_ book for DOS graphics... bar none. You can probably find a PDF of it it was so well known back then. I'm sure there are newer books that are awesome, but if you wanna go retro...

                          Jeremy Falcon

                          Richard Andrew x64R Offline
                          Richard Andrew x64R Offline
                          Richard Andrew x64
                          wrote on last edited by
                          #12

                          This old book has proven itself indispensable for Winsock programming: Network Programming for Microsoft Windows, Second Edition[^]

                          The difficult we do right away... ...the impossible takes slightly longer.

                          J 1 Reply Last reply
                          0
                          • raddevusR raddevus

                            I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

                            from Preface

                            The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

                            Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

                            P Offline
                            P Offline
                            PIEBALDconsult
                            wrote on last edited by
                            #13

                            raddevus wrote:

                            Not everyone had a mouse

                            The first PC I bought (a CompuAdd 486 in 1992) came with DOS 5 and Windows 3.1 -- I assumed it included a mouse and then had to return to the store for one. :(

                            T 1 Reply Last reply
                            0
                            • raddevusR raddevus

                              I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

                              from Preface

                              The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

                              Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

                              pkfoxP Offline
                              pkfoxP Offline
                              pkfox
                              wrote on last edited by
                              #14

                              He is a brilliant author

                              In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP

                              1 Reply Last reply
                              0
                              • Richard Andrew x64R Richard Andrew x64

                                This old book has proven itself indispensable for Winsock programming: Network Programming for Microsoft Windows, Second Edition[^]

                                The difficult we do right away... ...the impossible takes slightly longer.

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #15

                                Fancy, seeing that book makes me wonder whatever happened to Tom Archer. He be gone.

                                Jeremy Falcon

                                Richard Andrew x64R 1 Reply Last reply
                                0
                                • P PIEBALDconsult

                                  raddevus wrote:

                                  Not everyone had a mouse

                                  The first PC I bought (a CompuAdd 486 in 1992) came with DOS 5 and Windows 3.1 -- I assumed it included a mouse and then had to return to the store for one. :(

                                  T Offline
                                  T Offline
                                  trønderen
                                  wrote on last edited by
                                  #16

                                  A mouse story from the very early 1990s: The program that was so large that you had to take the PC cover off to give it enough space: In the days of DOS / Windows transition I was teaching at a small tech college. Another teacher was running a DOS database application (db II? My memory may fail on this), but her PC crashed fatally at application startup. She suspected a hardware problem, and took the PC to the service guys. They put it on their work desk, attached monitoring equipment at vital points on the mainboard. The db application ran flawlessly. They put the cover back on, returned the PC to the teacher's desk - and it failed. They took it back to the service desk: No problems. This turned out to be consistent: At the service desk, no problem occurred. At the lecturer's desk it failed. When the problem was diagnosed correctly, it turned out to be a function of the cover being off or on. When the cover was off, it worked fine; with the cover on, it failed. The cover was of the slide-backwards type. Lots of tower cabinets of the day was deliberately made that way to make sure you unplug the power cable to get access to the electronics. You would unplug everything at the rear panel, to the all the cables out of the way. Then you plug back in the things you need for the testing. The DOS database application was not mouse based. At least it didn't require a mouse (anyway, the crash occurred at start up). So, at the service desk, noone thought of plugging in the mouse. When returned to the teacher's desk, the PC was installed properly, plugging in the mouse as well. When the PC booted, DOS loaded the mouse driver, maybe a couple hundred bytes. It searched for a mouse, found it and said 'Fine - mouse available!' So a couple hundred bytes less RAM was available for the application. Most DOS applications were poor at detecting/handling out-of-memory conditions; they just assumed where there is an address, there will be RAM. There wasn't. At the service desk, there was no use for the mouse, so the service guys never thought of plugging it in after sliding off the cover. At boot time, the driver sought for a mouse, found none, and unloaded itself, releasing RAM used by the driver code. These couple hundred bytes extra was enough for the database application not to run into an out-of-memory condition. Until the real reason was detected, it appeared as if the application would work with the cover off, but not with the cover on.

                                  Religious freedom is the fre

                                  1 Reply Last reply
                                  0
                                  • raddevusR raddevus

                                    I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

                                    from Preface

                                    The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

                                    Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

                                    R Offline
                                    R Offline
                                    Ryan Peden
                                    wrote on last edited by
                                    #17

                                    I still have a hard copy of this book on my shelf! The fun thing is that most of the Win16 code in the book still works with very few modifications in Win32 on Windows 11.

                                    1 Reply Last reply
                                    0
                                    • D Daniel Pfeffer

                                      I still have my dead-tree version of this book and of its sequel, Programming Windows 95. But then, I'm a packrat (aka hoarder).

                                      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                      J Offline
                                      J Offline
                                      jmaida
                                      wrote on last edited by
                                      #18

                                      ditto for me, Daniel. and not just books.

                                      "A little time, a little trouble, your better day" Badfinger

                                      1 Reply Last reply
                                      0
                                      • raddevusR raddevus

                                        I was writing a response to a thread and talking about one of the first programming books I ever read (after C++ For Dummies), Programming Windows 3.1 by Charles Petzold. I discovered you can read the entire book at archive.org: Programming Windows 3.1 : Petzold, Charles, 1953- : Free Download, Borrow, and Streaming : Internet Archive[^] Before you start reading you should know about the hardware requirements as listed by the author: To best run Windows and the development tools, you need the following hardware: ■ An IBM personal computer (or compatible) based on the Intel 80386 microprocessor with a hard disk and 4 megabytes (MB) of memory running MS-DOS 3-3 or later. ■ A graphics display and video board, preferably compatible with the IBM VGA (Video Graphics Array) or better. ■ A mouse. Although a mouse is generally optional for most Windows programs, some of the programs in this book require one. Not everyone had a mouse. :laugh: It's such a stroll down memory lane. Also, he mentions:

                                        from Preface

                                        The chapter on text and fonts focuses on another Windows 3.1 enhancement — the introduction of the scalable outline font technology known as TrueType.

                                        Because you've probably never heard of TrueType fonts (TTF). :rolleyes: #### UPDATE : Get Source Code ####### If you want the source code for the examples in the book you can download them via this link: https://charlespetzold.com/src/ProgWin31.zip[^]

                                        T Offline
                                        T Offline
                                        TNCaver
                                        wrote on last edited by
                                        #19

                                        raddevus wrote:

                                        Because you've probably never heard of TrueType fonts

                                        Wait, are TrueType fonts no longer a thing?

                                        There are no solutions, only trade-offs.
                                           - Thomas Sowell

                                        A day can really slip by when you're deliberately avoiding what you're supposed to do.
                                           - Calvin (Bill Watterson, Calvin & Hobbes)

                                        1 Reply Last reply
                                        0
                                        • J Jeremy Falcon

                                          Fancy, seeing that book makes me wonder whatever happened to Tom Archer. He be gone.

                                          Jeremy Falcon

                                          Richard Andrew x64R Offline
                                          Richard Andrew x64R Offline
                                          Richard Andrew x64
                                          wrote on last edited by
                                          #20

                                          Which Tom Archer do you mean? Google returns about 10,000 Tom Archers.

                                          The difficult we do right away... ...the impossible takes slightly longer.

                                          J 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

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