Author Topic: CodeBlocks with Win 98se, DJGPP & Vesa VBE  (Read 5282 times)

Offline Tim

  • Multiple posting newcomer
  • *
  • Posts: 16
CodeBlocks with Win 98se, DJGPP & Vesa VBE
« on: December 17, 2024, 06:31:40 pm »
A while back I wanted to use DJGPP with Codeblocks and windows 98se, after building DJ Delories impressive vesa (VBE) plasma demo.
When I tried using the ansi build of CB 8.02 it kept crashing when I tried to access the menu with the mouse on "real" hardware, so I used CB1 RC2 instead. After a while I found a problem in CB1 RC2 which limited the number of user compilers to 1 only, and so tried rebuilding RC2 with Widgets version 2.6.4 and the problem went away. Later I tried the same thing with an ansi version of CB 8.02 with WxWidgets version 2.8.12 and the crashing problem went away.  I had always intended to create a post with some links to these later builds, but as usual, I just moved on to my next project, and forgot about them. Then months later, when I thought about it again I could no longer remember what the state of play was with the rebuilds so I just posted them up to Github.  (https://github.com/Krakenw/codeblocks-win98-98SE)

Now we come to the point of this post, I recently bought an old Dell D810 laptop which came with a hires 1680x1050 screen, and I immediately loaded it with 98se which worked a treat. Next I actually loaded the standard version of CB 8.02 and then before running it copied over it with the 2.8.12 build from Github. I then set it up to use DJGPP and started playing with it and so far it's all worked fine. So even though I don't remember what the 2.8.12 build details were, because I'm using it now without a problem, it seems worth mentioning it to other CB users. Something else that might be worth mentioning is that although you can use DJGPP with XP, you can't make use of 32 bit mode VBE calls or examine usb 3.0 chips etc; for this sort of "playing about" you need to be using win98. (I can't comment on Linux, as I don't use it)

MichaelAgarkov

  • Guest
Re: CodeBlocks with Win 98se, DJGPP & Vesa VBE
« Reply #1 on: December 17, 2024, 08:02:11 pm »
Awesome project! wxWidgets 3.0.5 is the last version that supports Win95, so in theory it should be possible to port newer versions of C::B. Unicode support can be added via Unicows. If you got the time, I wish you good luck!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6039
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CodeBlocks with Win 98se, DJGPP & Vesa VBE
« Reply #2 on: December 21, 2024, 07:06:05 am »
Nice work, Tim.

If I remember correctly, there is another guy which build a C::B working on very old Windows 95 system. I just forget the github link.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.