Can someone help me? I formatted my computer, I mean it is like new...but then I installed Microsoft Visual Studio 6.0 and then Visual Studio 6.0 Service Pack 6. If it were that this (programs) didn't new the language. Then I tried this code:
Code:
#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpcmdline,
				   int cmdshow)
{
	MessageBox(NULL, "MESSAGE BOX TEXT", "MESSAGE BOX", MB_OK | MB_ICONEXCLAMATION);
	return (0);
}
But it gave me 42 errors...why?? I made the project as a Win32 Application and not Console...why is this?? Well Please someone help me...I tried it with Dev-C++ too...but it gaves me a lot of errors too...Why is this happening?? Here are the errors for Visual C++ 6.0 with Service Pack 6.0:
Code:
Build Log

--------------------Configuration: Project - Win32 Debug--------------------

Command Lines
Creating temporary file "C:\WINDOWS\TEMP\RSP32D4.TMP" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"Debug/Project.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 
"C:\Windows\Desktop\C++\Project\Code.cpp"
]
Creating command line "cl.exe @C:\WINDOWS\TEMP\RSP32D4.TMP" 
Creating temporary file "C:\WINDOWS\TEMP\RSP32D5.TMP" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/Project.pdb" /debug /machine:I386 /out:"Debug/Project.exe" /pdbtype:sept 
".\Debug\Code.obj"
]
Creating command line "link.exe @C:\WINDOWS\TEMP\RSP32D5.TMP"
Output Window
Compiling...
Code.cpp
c:\program files\microsoft visual studio\vc98\include\prsht.h(142) : error C2001: newline in constant
c:\program files\microsoft visual studio\vc98\include\prsht.h(142) : error C2059: syntax error : 'string'
c:\program files\microsoft visual studio\vc98\include\prsht.h(143) : error C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xf8'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xff'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xff'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xb8'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x40'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x80'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xe'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x1f'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xba'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xe'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xb4'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xcd'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2143: syntax error : missing ';' before '!'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2501: 'MZ' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2143: syntax error : missing ';' before '!'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xb8'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xcd'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x5'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xe6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x2'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xf9'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x98'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xf6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x83'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x40'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x40'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xdc'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xe6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xe6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x2'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x7'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x80'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\imm.h(12) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\imm.h(12) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.



Results
Project.exe - 42 error(s), 0 warning(s)
And here are the errors of Dev-C++:
Code:
Build Log

--------------------Configuration: Project - Win32 Debug--------------------

Command Lines
Creating temporary file "C:\WINDOWS\TEMP\RSP32D4.TMP" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"Debug/Project.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 
"C:\Windows\Desktop\C++\Project\Code.cpp"
]
Creating command line "cl.exe @C:\WINDOWS\TEMP\RSP32D4.TMP" 
Creating temporary file "C:\WINDOWS\TEMP\RSP32D5.TMP" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/Project.pdb" /debug /machine:I386 /out:"Debug/Project.exe" /pdbtype:sept 
".\Debug\Code.obj"
]
Creating command line "link.exe @C:\WINDOWS\TEMP\RSP32D5.TMP"
Output Window
Compiling...
Code.cpp
c:\program files\microsoft visual studio\vc98\include\prsht.h(142) : error C2001: newline in constant
c:\program files\microsoft visual studio\vc98\include\prsht.h(142) : error C2059: syntax error : 'string'
c:\program files\microsoft visual studio\vc98\include\prsht.h(143) : error C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xf8'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xff'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xff'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xb8'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x40'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x80'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xe'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x1f'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xba'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xe'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xb4'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xcd'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2143: syntax error : missing ';' before '!'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2501: 'MZ' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2143: syntax error : missing ';' before '!'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xb8'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(1) : error C2018: unknown character '0xcd'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x5'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xe6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x2'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xf9'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x98'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xf6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x83'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x40'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x40'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xdc'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xe6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0xe6'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x2'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x7'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x80'
c:\program files\microsoft visual studio\vc98\include\mcx.h(2) : error C2018: unknown character '0x1'
c:\program files\microsoft visual studio\vc98\include\imm.h(12) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\imm.h(12) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.



Results
Project.exe - 42 error(s), 0 warning(s)
Can some help me please...and why is affecting both compilers??
Thank You in advance ...