News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#41
Expert questions / swprintf question
Last post by John Z - June 21, 2025, 12:02:04 PM
An accidental deletion when cleaning up some code found that -

swprintf(zmsg,-1,L"%s",Info.Procedure);

does not raise an error or warning.  The original line was -

swprintf(zmsg,MaxZmsg-1,L"%s",Info.Procedure);

So looks like the -1 is interpreted as max int ?  This defeats the limit restriction I guess -

Both versions put the string into zmsg variable, which fortunately in this case is much larger than the incoming string would ever be so no overrun.

Feature or Bug  :)  ?

John Z
#42
Chit-Chat / Re: Pelle Orinius
Last post by Vortex - June 20, 2025, 08:39:23 PM
Hi Timo,

QuoteI didn't find any usable test packages for C language for testing.

You have a lot of Pelles C projects, aren't they a part of your personal test suite?
#43
Graphics programming / Re: Building Graphics Librarie...
Last post by TimoVJL - June 18, 2025, 01:20:47 PM
Just try harder, in the way that many of programmers have done in these years with Pelles C.
Once i tried to help compile Harbour with Pelles C, useless for me, but just to test, how C compiler variants differs.
I am now totally retired, so only cases, that i still see interesting, i try to help.
#44
Graphics programming / Re: Building Graphics Librarie...
Last post by kyga116 - June 18, 2025, 05:30:27 AM
Well, I couldn't get GLEW to work after two days of trying. I tried the online Glad generator and I was up and running in 5 minutes.  ::)
#45
Graphics programming / Re: Building Graphics Librarie...
Last post by TimoVJL - June 18, 2025, 03:00:37 AM
Sadly a that static library belongs to msvc.
#46
Graphics programming / Re: Building Graphics Librarie...
Last post by kyga116 - June 17, 2025, 07:56:12 PM
I was able to get rid of that in the compiler options. There's an "Enable Microsoft extensions" checkbox.

Now I'm getting a missing library error: LIBCMT.lib
Anyone know where this thing is supposed to come from?
#47
User contributions / Re: Hint_SA (Standalone) Upd...
Last post by John Z - June 17, 2025, 01:07:28 PM
Here is version 1.1 of the Hint_SA program. 

No functional changes but there was a lot of residual 'add-in' code left in the first release.  So this is just a code clean-up and some de-spagettification to make it a bit clearer.

Added some clarifications and details to the Read_ME_Hint_SA.txt file.

hint_sa.zip includes Pelles C project files
just_program_hint_SA.7z obviously is just the exe and db3 file.

John Z

Update: New version 1.1.1 posted below ..
#48
Graphics programming / Re: Building Graphics Librarie...
Last post by TimoVJL - June 12, 2025, 09:27:01 PM
It's Enable Microsoft extensions in compiler options

PrjChkMS Add-In
#49
Graphics programming / Re: Building Graphics Librarie...
Last post by kyga116 - June 12, 2025, 06:29:29 PM
After I posted this I was able to get GLFW and GLEW working with the binaries from their respective websites. But I still want to try to build them from source eventually.

I'm not sure if these work completely yet, I was just able to create window so far. I am getting a bunch of warnings saying that I have to use option /Ze if I want to use the dllimport function (required by GLFW). I'm assuming /Ze is a compiler option, but I'm not sure how to use it.
#50
Chit-Chat / Re: Pelle Orinius
Last post by TimoVJL - June 12, 2025, 03:31:26 PM
Thanks to all, who was able to test release candidates.
Naturally my small part was to check features, that i was just interested.
Some tests was also for POAsm, as i see it better than masm in simple things.
I didn't find any usable test packages for C language for testing.