NO

Author Topic: Release Candidate for version 12.00 is now available  (Read 11674 times)

Offline HellOfMice

  • Member
  • *
  • Posts: 105
  • Never be pleased, always improve
Re: Release Candidate for version 12.00 is now available
« Reply #15 on: April 03, 2023, 05:33:04 PM »
Thank You Pelle.
For me it is the best compiler.
--------------------------------
Kenavo

Offline Don D

  • Member
  • *
  • Posts: 2
Re: Release Candidate for version 12.00 is now available
« Reply #16 on: April 03, 2023, 05:45:39 PM »
Thanks Pelle! Excellent results testing V12RC1 on my projects.  :)

Offline HellOfMice

  • Member
  • *
  • Posts: 105
  • Never be pleased, always improve
Re: Release Candidate for version 12.00 is now available
« Reply #17 on: April 03, 2023, 05:50:55 PM »
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 */


--------------------------------
Kenavo

Offline dezmand07

  • Member
  • *
  • Posts: 6
Re: Release Candidate for version 12.00 is now available
« Reply #18 on: April 04, 2023, 01:59:29 PM »
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
Code: [Select]
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) ;
« Last Edit: April 04, 2023, 02:06:42 PM by dezmand07 »

Offline HellOfMice

  • Member
  • *
  • Posts: 105
  • Never be pleased, always improve
Re: Release Candidate for version 12.00 is now available
« Reply #19 on: April 04, 2023, 02:50:56 PM »
Thank You for the answer, it was corrected yestirday.
It was just for saying, just a complation and errors... Strange.
--------------------------------
Kenavo

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Release Candidate for version 12.00 is now available
« Reply #20 on: April 04, 2023, 10:06:58 PM »
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.
/Pelle

Offline larryli

  • Member
  • *
  • Posts: 11
Re: Release Candidate for version 12.00 is now available
« Reply #21 on: April 07, 2023, 10:22:18 AM »
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

Code: [Select]
<?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>

Offline HellOfMice

  • Member
  • *
  • Posts: 105
  • Never be pleased, always improve
Re: Release Candidate for version 12.00 is now available
« Reply #22 on: April 09, 2023, 09:38:16 AM »
Thank You everybody


My programs runs like before.


Larryli: I don't understand what hidpi brings to my program?
--------------------------------
Kenavo

Offline Akko

  • Member
  • *
  • Posts: 31
Re: Release Candidate for version 12.00 is now available
« Reply #23 on: April 13, 2023, 09:58:57 AM »
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 ...


Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Release Candidate for version 12.00 is now available
« Reply #24 on: April 16, 2023, 05:16:45 PM »
Please add DPI support
Not in this version, maybe in some future version...
/Pelle

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Release Candidate for version 12.00 is now available
« Reply #25 on: April 16, 2023, 05:20:09 PM »
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...
/Pelle