Error in 'windows.h' line 8022:

Posted By: Grat

Error in 'windows.h' line 8022: - 08/13/20 10:55

new version 2.30.5

alfaRun compiling...........
Error in 'windows.h' line 8022:
syntax error
< VOID WINAPI FatalExit(long ExitCode);
>.
Posted By: Grat

Re: Error in 'windows.h' line 8022: - 08/13/20 10:57

may be must:

Code
VOID WINAPI FatalExit(long ExitCode);

change to

VOID WINAPI FatalExit(long lpExitCode);
Posted By: AndrewAMD

Re: Error in 'windows.h' line 8022: - 08/13/20 11:25

I believe the new ExitCode beta feature was rolled into the release candidate, causing this error!
https://zorro-project.com/manual/en/exitcode.htm
Posted By: jcl

Re: Error in 'windows.h' line 8022: - 08/13/20 14:55

Indeed. For fixing it, edit windows.h and in line 8022, change "ExitCode" to "uExitCode". This will be fixed in the final release.
© 2024 lite-C Forums