Author Topic: PM Development Samples  (Read 101 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5878
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
PM Development Samples
« on: July 27, 2026, 05:05:45 pm »
Hello

Some years ago I started compiling some PM application samples, with the help of Dave Yeo and other online members. I shared that samples at Github and even gave a presentation at Warpstock about my experience with it.  At Warpstock I was recommended that PM apps are better to be compiled with OpenWatcom, since it was more optimized for that, and that GCC was good for porting software compiled with the same GCC.

At that time I was lazy to get OpenWatcom and start creating a dual GCC and OpenWatcom sample environment.

Today playing with AI it make it more simple for me to update some of the samples and I wanted to share it with your to know your comments.

I set the goal to:
- Have a makefile-gcc and makefile-ow to compile the same source in different tools
- Organize files, like source code in /src and binaries on /bin-gcc /bin-ow
- Use open source tools as much as possible, like Watcom Resource Compiler, and Watcom Linker instead of the IBM ones.
- Improve the Readme.md of the sample.
- Improve the source code documentation.
- Have two different .cmd to use the compilers.
- Have the bldlevel information for both versions.

I run the .cmd files myself on the ArcaOS dev VM and test both binaries.

For the moment I had updated the following samples:
- https://github.com/OS2World/DEV-SAMPLES-C-PM-BitCat
- https://github.com/OS2World/DEV-SAMPLES-C-PM-Colors
- https://github.com/OS2World/DEV-SAMPLES-C-PM-Animate
- https://github.com/OS2World/DEV-SAMPLES-C-PM-Button
- https://github.com/OS2World/DEV-SAMPLES-C-PM-ViewBPM
- https://github.com/OS2World/DEV-SAMPLES-C-LIB-PM-Owner_Drawn_Listbox
- https://github.com/OS2World/DEV-SAMPLES-C-PM-Simple
- https://github.com/OS2World/DEV-SAMPLES-C-PM-SETOPT
- https://github.com/OS2World/DEV-SAMPLES-C-PM-DropText

I'm hoping that the samples now looks more consistent as a group. I hope to keep going on the next samples little by little to add the OpenWatcom compile options.

Please let me know any comments or constructive criticism.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.