NO

Author Topic: Comment and Un-Comment buttons on the toolbar  (Read 1350 times)

Offline John Z

  • Member
  • *
  • Posts: 790
Comment and Un-Comment buttons on the toolbar
« on: September 11, 2022, 03:26:37 PM »
This is an add-in that adds toolbar buttons to perform the Comment and Un-Comment functions. It demonstrates how easy it is to customize Pelles C UI, and how flexible Pelle and et al. have made the system.

All source code is included in the zip as well as the final BComment.dll, which needs to be copied to Bin-Addins64 directory and enabled under Tools - Customize - Add-Ins as "PellesC Button Comments"


John Z

Offline CandCPlusPlus

  • Member
  • *
  • Posts: 57
Re: Comment and Un-Comment buttons on the toolbar
« Reply #1 on: October 02, 2022, 06:40:50 PM »
This is a useful add-in. :)

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Comment and Un-Comment buttons on the toolbar
« Reply #2 on: October 03, 2022, 02:55:31 PM »
Add-in Guru TimoVJL pointed out that basically since this add-in uses no common runtime calls the dll size can be reduced by using an alternative DLLMain.  The new dll is only 1/4th the size of the original preserving system resources.

Attached is the modified project code and new dll.  Original dll was 32K new dll only 8K  :)

Thanks TimoVJL!

John Z

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Comment and Un-Comment buttons on the toolbar
« Reply #3 on: July 07, 2023, 03:37:07 AM »
Updated DLL for PellesC v12.002.  No code changes so just posting the new DLL.

John Z