Pelles C forum
Pelles C => Announcements => Topic started by: Pelle on March 24, 2023, 09:42:02 PM
-
http://www.smorgasbordet.com/pellesc/download.htm (http://www.smorgasbordet.com/pellesc/download.htm)
-
Wow - I had a suspicion this was why you were secreted away for a year :)
Congratulations! I’ll be downloading and testing shortly!
Thank you for all of your hard work for us Pelles C users!!!
John Z
BTW version Pelles C v11 had no issues in Windows 11. Been running that way for quite a while.
-
.--------._
(`--' `-.
`.______ `.
___________`__ \
,-' `-.\ |
// \| |\
(` .'~~~~~---\ \' | |
`-' ) \ | |
,---------' - -. ` . '
,' `%`\` |
/ \ |
/ \-----. \ `
/| ,_/ '-._ |
(-' / / ` (Joshua Bell)
,`--< | \ \
\ | \ /%% `\
|/ \____---'--`% \ \
| ' ` \
|
`--.__
`---._______
`.
\
-
┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌█████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌███████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌███┌┌┌██┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌██┌┌┌┌██┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌██┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌███┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌██┌┌┌┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌┌██┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌███┌███┌┌┌┌┌┌┌┌┌┌██┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌████████████┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌
┌┌████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌
┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌█████████┌┌
███┌┌┌┌█████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌█████┌
██┌┌┌███████┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌███┌
██┌┌┌┌███┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
███┌┌┌┌┌┌┌┌┌┌┌█████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌███┌┌┌┌┌┌┌████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌┌████████████┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌███┌██████┌┌┌┌┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌███┌┌┌┌┌┌┌┌┌┌┌██████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌┌████┌████┌██████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌┌┌████████████┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌███┌
┌┌┌┌██┌┌┌┌┌┌┌┌┌┌┌███████┌┌┌┌┌┌┌███████┌┌
┌┌┌┌████┌┌┌┌┌┌████████┌┌┌┌┌┌┌┌████████┌┌
┌┌┌┌┌████████████┌┌┌███┌┌┌┌┌███┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌█┌█┌┌┌┌┌┌███┌┌┌███┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌┌┌┌┌┌█████┌┌█████┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌██████████████████┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌██████████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
Looking good Pelle ... I compiled BCX along with a couple hundred BCX samples using V12.
V12 issued a couple of new -valid- warnings in code generated by BCX that were
previously undetected, so that's a good thing.
I've shared your announcement on my forum, as several users prefer using Pelles C.
Thanks as always!
-
Hi Pelle,
Many thanks.
-
Cool... Thank you all! :)
( About Windows 11: I need a hardware upgrade to properly run it, but since I have heard almost nothing but bad opinions about Windows 11 I'm going to wait. It seems to follow an old Microsoft tradition of "every other Windows version is crap"...
...
Windows XP : better than previous version
Windows Vista: worse
Windows 7: better
Windows 8(.1): worse
Windows 10: better
Windows 11: worse(?)
)
-
Cool... Thank you all! :)
( About Windows 11: I need a hardware upgrade to properly run it, but since I have heard almost nothing but bad opinions about Windows 11 I'm going to wait. It seems to follow an old Microsoft tradition of "every other Windows version is crap"...
...
Windows XP : better than previous version
Windows Vista: worse
Windows 7: better
Windows 8(.1): worse
Windows 10: better
Windows 11: worse(?)
)
My parents were used to say that you must do a job 3 times at least. The first time to do it following your dreams, the second when you realize that many of those were crap, the last when you finally understood what is really required... ;)
This post was sent from a Win10 machine... ;D
-
Hi Pelle,
Thank you very much for your continued efforts to maintain and improve this project. I compiled several personal tools by using this new version, and no issues so far.
V12 issued a couple of new -valid- warnings in code generated by BCX that were
previously undetected, so that's a good thing.
Yep, for me as well.
-
Thanks Pelle, now i have something new to test with Pelle's C again :)
Message came from Windows 7 ;D
-
It seems to follow an old Microsoft tradition of "every other Windows version is crap"...
...
Windows XP : better than previous version
Windows Vista: worse
Windows 7: better
Windows 8(.1): worse
Windows 10: better
Windows 11: worse(?)
)
Speaking of Windows 11, this was reported yesterday ...
A fully patched Windows 11 system was hacked again at Pwn2Own, with Thomas Imbert (@masthoon)
from Synacktiv (@Synacktiv) earning $30,000 for a Use-After-Free (UAF) bug.
Ref: https://www.bleepingcomputer.com/news/security/windows-ubuntu-and-vmware-workstation-hacked-on-last-day-of-pwn2own/
-
Yeah... I doubt everything was better in ~1980, but at least any security problems with this https://en.wikipedia.org/wiki/ABC_80 (https://en.wikipedia.org/wiki/ABC_80) were very local (like me...) Progress? Bah!
-
Thank you Pelle
-
is the disabling of the find direction Up & Down buttons intentional
whenever "Use regular expressions" is selected?
John Z
-
is the disabling of the find direction Up & Down buttons intentional
whenever "Use regular expressions" is selected?
Yes
-
Thank you Pelle!
I would like to clarify at the expense of the Russian language - is support for version 12 planned?
PS: on Windows 11 everything works great!
-
Thank You Pelle.
For me it is the best compiler.
-
Thanks Pelle! Excellent results testing V12RC1 on my projects. :)
-
Pelle's V12 find errors that the previous version did not find!
All the GetProcAddress calls get an error.
Building Languages.obj.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(79): error #2168: Operands of '=' have incompatible types 'GetSerialNumberProc (aka char * __stdcall (*)())' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(82): error #2168: Operands of '=' have incompatible types 'GetLanguageNameProc (aka char * __stdcall (*)())' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(85): error #2168: Operands of '=' have incompatible types 'GetTitleProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(88): error #2168: Operands of '=' have incompatible types 'GetStringProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(91): error #2168: Operands of '=' have incompatible types 'GetFormatProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(94): error #2168: Operands of '=' have incompatible types 'GetToolTipProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(97): error #2168: Operands of '=' have incompatible types 'GetErrorProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(100): error #2168: Operands of '=' have incompatible types 'GetQuestionProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(103): error #2168: Operands of '=' have incompatible types 'GetInformationProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(106): error #2168: Operands of '=' have incompatible types 'GetWarningProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(109): error #2168: Operands of '=' have incompatible types 'GetStaticTextProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(112): error #2168: Operands of '=' have incompatible types 'GetButtonProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(115): error #2168: Operands of '=' have incompatible types 'GetLanguageProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
*** Error code: 1 ***
Done.
GetToolTip = GetProcAddress(hLanguage,"CFE_GetToolTip") ;
if(GetToolTip)
{
GetError = GetProcAddress(hLanguage,"CFE_GetError") ;
if(GetError)
{
GetQuestion = GetProcAddress(hLanguage,"CFE_GetQuestion") ;
if(GetQuestion)
{
GetInformation = GetProcAddress(hLanguage,"CFE_GetInformation") ;
if(GetInformation)
{
GetWarning = GetProcAddress(hLanguage,"CFE_GetWarning") ;
if(GetWarning)
#ifndef _LANGUAGES_H
#define _LANGUAGES_H
typedef LPSTR (CALLBACK *GetLanguageNameProc)(void) ;
typedef LPSTR (CALLBACK *GetSerialNumberProc)(void) ;
typedef LPSTR (*GetTitleProc)(int) ;
typedef LPSTR (*GetStringProc)(int) ;
typedef LPSTR (*GetFormatProc)(int) ;
typedef LPSTR (*GetToolTipProc)(int) ;
typedef LPSTR (*GetErrorProc)(int) ;
typedef LPSTR (*GetQuestionProc)(int) ;
typedef LPSTR (*GetInformationProc)(int) ;
typedef LPSTR (*GetWarningProc)(int) ;
typedef LPSTR (*GetStaticTextProc)(int) ;
typedef LPSTR (*GetFormatProc)(int) ;
typedef LPSTR (*GetButtonProc)(int) ;
typedef LPSTR (*GetLanguageProc)(int) ;
extern GetSerialNumberProc GetSerialNumber ;
extern GetLanguageNameProc GetLanguageName ;
extern GetTitleProc GetTitle ;
extern GetStringProc GetString ;
extern GetFormatProc GetFormat ;
extern GetToolTipProc GetToolTip ;
extern GetErrorProc GetError ;
extern GetQuestionProc GetQuestion ;
extern GetInformationProc GetInformation ;
extern GetWarningProc GetWarning ;
extern GetStaticTextProc GetStaticText ;
extern GetFormatProc GetFormat ;
extern GetButtonProc GetButton ;
extern GetLanguageProc GetLanguage ;
int Error(int __iErrorNumber) ;
int SpecialError(LPSTR __lpszString) ;
int Warnings(int __iWarningNumber,LPSTR __lpszString) ;
int Questions(int __iQuestionNumber,LPSTR __lpszString) ;
int Informations(int __iInformationNumber,LPSTR __lpszString) ;
LPSTR Formats(int __iFormatsNumber) ;
LPSTR Strings(int __iStringsNumber) ;
LPSTR Buttons(int __iButtonNumber) ;
LPSTR Statics(int __iStaticsNumber) ;
LPSTR ToolTips(int __iToolTipsNumber) ;
LPSTR Titles(int __iTitleNumber) ;
LPSTR Languages(int __iLanguageNumber) ;
void UnLoadLanguageFile(void) ;
int LoadLanguageFile(LPSTR __lpszLanguageFile) ;
#endif /* _LANGUAGES_H */
-
Pelle's V12 find errors that the previous version did not find!
All the GetProcAddress calls get an error.
The problem is in your code.
My code with GetProcAddress works great
typedef void(NTAPI* _RtlGetNtVersionNumbers)(PULONG NtMajorVersion, PULONG NtMinorVersion, PULONG NtBuildNumber);
_RtlGetNtVersionNumbers RtlGetNtVersionNumbers = NULL;
HMODULE hModule = GetModuleHandle(TEXT("ntdll"));
if (hModule)
RtlGetNtVersionNumbers = (_RtlGetNtVersionNumbers)GetProcAddress(hModule, "RtlGetNtVersionNumbers");
typedef LPSTR (*GetTitleProc)(int) ;
__stdcall where?
typedef LPSTR (__stdcall* GetTitleProc)(int) ;
-
Thank You for the answer, it was corrected yestirday.
It was just for saying, just a complation and errors... Strange.
-
Adding C2X mode prompted many changes to the parser, which in turn triggered more refactoring. It's possible a bug got fixed during all of this. Whatever.
-
Please add DPI support
https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process#setting-default-awareness-with-the-application-manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
-
Thank You everybody
My programs runs like before.
Larryli: I don't understand what hidpi brings to my program?
-
Many many thanks for the new version!! I really appreciate your continuing support.
My 5 cents:
Installs and runs on Win11 (for me personally the best Win version so far, although I am nostalgically a bit more inclined towards Win7..).
Compiling my Forth compiler with 12.00 seems to go fine, but the Forth test suite shows some errors with string handling functions (which it does not when compiled with gcc or vc or clang). Unfortunately I have not yet found time for hunting the bug ...
-
Please add DPI support
Not in this version, maybe in some future version...
-
Compiling my Forth compiler with 12.00 seems to go fine, but the Forth test suite shows some errors with string handling functions (which it does not when compiled with gcc or vc or clang). Unfortunately I have not yet found time for hunting the bug ...
Could be a bug, different default settings, or something else. I can't really comment without more info...