My apologies,
I didnt knew there was a scroll bar in there so didnt try to .
The error is :
Code:
Sample.c
c:\program files\microsoft visual studio\myprojects\sample\sample.c(4) : error C2061: syntax error : identifier 'WinMain'
c:\program files\microsoft visual studio\myprojects\sample\sample.c(4) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\sample\sample.c(4) : error C2059: syntax error : 'type'
Error executing cl.exe.
Sample.exe - 3 error(s), 0 warning(s)
Still gives the same error, With int stdcall.
The author have mentioned that the stdcall is there besides the int , to notify the compiler the way ( right to left , or left to right) the parameters are to be passes to the stack and also who will clear the stack , the calling function or the called function. If i wud remove stdcall then will the compiler get confused??
Still, tried without stdcall besides the int ,
The following error and a warning occurs,
Code:
Sample.c
C:\Program Files\Microsoft Visual Studio\MyProjects\Sample\Sample.c(5) : warning C4007: 'WinMain' : must be '__stdcall'
Linking...
LINK : fatal error LNK1104: cannot open file "Debug/Sample.exe"
Error executing link.exe.
It says winmain must be _stdcall