Pelles C forum

C language => Beginner questions => Topic started by: PabloMack on March 13, 2019, 05:34:10 PM

Title: Is there no provision for using Win32 types in console programs?
Post by: PabloMack on March 13, 2019, 05:34:10 PM
When I include <windows.h> I get the following error when I try to build the project in the IDE: fatal error #1014: #error: "No Target Architecture".
Title: Re: Is there no provision for using Win32 types in console programs?
Post by: TimoVJL on March 13, 2019, 05:51:36 PM
use Enable Microsoft extensions -Ze
If you want ide do that, use PrjChkMS Add-In (https://forum.pellesc.de/index.php?topic=7399.msg28128#msg28128)
Title: Re: Is there no provision for using Win32 types in console programs?
Post by: PabloMack on March 13, 2019, 07:08:04 PM
I saw that but to me it didn't imply Win32 header support. I enabled it and the errors for handles went away but it still doesn't recognize SYSTEMTIME which is the standard time format for Win32. Thanks for the info.