NO

Author Topic: Strange character type?  (Read 2846 times)

alderman

  • Guest
Strange character type?
« 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?
« Last Edit: September 01, 2018, 12:48:52 AM by alderman »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Strange character type?
« Reply #1 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'.
May the source be with you