Oh, and by the way Jim, I did build that resource script program we were working on with my version of TCLib and got the same exact number you posted - it was around 4 k or something like that. You are right about the resource script GUIs being a bit smaller than comparable RegisterClass()/CreateWindow() apps. I recall I had to add LPCTSTR, LPCWSTR, and LPCSTR to my tchar.h file, for the WinMain() parameters, which was a needed correction anyway.
Fred,
There is one serious drawback using resource dialogs: They can very easily be hacked.
This was a very big issue for my client. I had always used resource dialogs in my work so his concern was the reason I developed my in memory dialog templates for PowerBASIC, along with a little script format for simple creation. This was before DDT.
Now we have the increase in exe size by having to include the code necessary to create in memory dialogs. I used the Spread 3.0 control and some of the format arrays were HUGE.
I ended up using aPlib to compress the dialog scripts to a fraction of the original size and store them as RCDATA in the resource file. I ported the aPLib fast asm decompress routine to PowerBASIC and used that for super fast decompression of the RCDATA.
I've done the ground work for bc9Basic and TCLib also. I could not get anyone to port the aPlib fasm 64bit fast decompress routine to ML64 so I installed fasm and did it myself. I have it included in my TCLib version. Works great. I plan to showcase this in the future but I'm still busy porting José's CWindow/Afx code.
James