Pelles C forum

C language => Expert questions => Topic started by: alderman on September 01, 2018, 12:45:30 am

Title: Strange character type?
Post by: alderman on September 01, 2018, 12:45:30 am
I discovered a strange detail recently.

A program I have created can download files online. It has worked blatantly for a few years. But some day ago, the program stopped and turned off. I looked into the log file what was the error. I found nothing wrong, that was plain text. After looking into the html code, I found the middle of the text this:   (< There is where you can not see. Select and copy. Paste into Pelles C editor)

I copied the character and added my program code to see if it was the one who closed the program. I compiled but then I got a compilation error. I moved the character behind // to remark the character and compiled. Same compilation error again though it lay behind // ??

Compil error:
POLINK: Error: Does not find the symbol '_WinMain @ 16'.
and
Error # 2001: Syntax error: expected '}' but found 'end of input'.

If I just try to download that character, the program will die immediately.
What is this for character?
Title: Re: Strange character type?
Post by: TimoVJL on September 01, 2018, 09:15:47 am
EOF end of file
Code: [Select]
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
{
// 
return 0;
}
Code: [Select]
TestChar1.c(7): warning #1042: EOF inside comment.
error #2001: Syntax error: expected '}' but found 'end of input'.