News:

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

Main Menu

Recent posts

#21
General discussions / Is it OK for other project to ...
Last post by dimmed - June 27, 2025, 07:30:05 AM
I'm talking about the legal issue. There is another C compiler project named Orange C:

https://github.com/LADSoft/OrangeC

They have imported the Windows API headers from an old version of Pelles C to replace their outdated one. You can still find the relevant commits and issues on their Github repository. The Orange C developer said this is OK according to the license of Pelles C, but it seems they have never contacted Mr. Pelle Orinius officially.
#22
User contributions / Re: Dll to Poasm 64 bit includ...
Last post by jack - June 23, 2025, 01:34:28 AM
👍
#23
User contributions / Re: Hint_SA (Standalone)
Last post by John Z - June 22, 2025, 12:43:12 PM
Final release (hopefully) of Hint_SA.

More code clean-up.  Better search for future db updates which might have only a header or library.
Can be used without a mouse.

I'm working on updating the current db3 file. It will be posted alone after any significant updates are complete. No db structural changes expected so just downloading a newer db3 will be all that is needed.

As before the full project and sources in hint_sa_v111.zip, the db3 is 7z inside. 
Just the exe, db3, and readme in the just_program_hint_sa_v111.7z.

Feedback is welcomed -

John Z
#24
User contributions / Dll to Poasm 64 bit include fi...
Last post by Vortex - June 22, 2025, 11:22:35 AM
DllToInc64 tool created with the Basic to C translator BCX. The zip file includes the .c and .bas files.

D:\BCX>DllToInc64.exe
Usage : DllToInc64.exe DllFile.dll [optional -u]
Version 1.0
-u : Create include file for UNICODE API functions.

Example :

DllToInc64.exe kernel32.dll
#25
Expert questions / Re: swprintf question
Last post by John Z - June 22, 2025, 02:14:12 AM
Thanks for the explanation Pelle!

👍

John Z
#26
Expert questions / Re: swprintf question
Last post by Pelle - June 21, 2025, 03:58:30 PM
Quote from: John Z on June 21, 2025, 12:02:04 PMFeature or Bug  :)  ?
Yes.

For historical reasons in Microsoft mode, there is no diagnostic for the implicit conversion from -1 to -1U (or 0xFFFFFFFF...). A modern version of the MSVC compiler seems happy to complain here, so perhaps this should be changed.

Another chance to detect a problem with your code is in the static code analyzer (bounds checker). This fails because -1U in this case is reported internally as a store size of 0, meaning "don't know". This is a problem that should be fixed, if I can figure out an easy way to do so.

#27
Expert questions / Re: swprintf question
Last post by John Z - June 21, 2025, 03:13:34 PM
Hi Vortex,

Here is a mini project for it.

John Z
#28
Expert questions / Re: swprintf question
Last post by Vortex - June 21, 2025, 01:12:48 PM
Hi John,

Could you send the complete code here?
#29
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
#30
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?