Non-understandable error message

Hi!
I'm a novice programmer in C++, and I'm trying to create a small project in VC++ 6.0.
I'm getting a strange error message and I can't figure out what to do. The message I get is:
--------------------Configuration: tifzoret - Win32 Debug--------------------
Linking...
LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/tifzoret.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

------------------------------------
What should I do now?

PLEASE HELP, IT'S URGENT!
memilaviAsked:
Who is Participating?
 
nietodConnect With a Mentor Commented:
This occurs because it thinks you are trying to write a windows GUI program rather than a standard C++ program (also called a console program).  A standard (console) program must have a main() function, as your's probably does, right?  But a windows GUI program has a WindMain() function instead of main().  So it is complaining that it can't find this function.  (sort of like what would happen if you forgot to write main().)

continues
0
 
nietodCommented:
The solution is to create a new project of the right type.

Chose the "File" menu
"New" item
From the dialog that appears, select the "projects" tab
then chose the "Win32 Console Application"
Then fill in the project name and location.

You can copy the source code from the old project to the new one and then it shoudl compile okay.

let me know if you have any questions.

0
 
memilaviAuthor Commented:
Thanks! It worked great!
0
All Courses

From novice to tech pro — start learning today.