I'm trying to make a little alert system to do something (IDK what I want yet) when a certain time arrives. However, I'm getting all these errors when I run that code in a WinForm after some brief changes. But this code (unchanged) worked in my empty project! I have the snippet below:
int checktime ()
{
SYSTEMTIME time;
GetLocalTime( &time );
int hour = time.wHour;
int minute = time.wMinute;
if (hour > 12) hour -= 12;
if hour == 8
{
this->progressBar1->PerformStep();
}
}
As always, I would appreciate any help or suggestions available. Thanks!