i have a problem i do not either undestand or know how to solve..
i am using visual c++ 6 ( i am new to c++)

considering the following simple code

#include <fstream.h>
#include <iostream.h>

int main(void)
{
ofstream my_file("c:\test.txt");

my_file<<"This text will now be inside of test.txt";

my_file.close();

return 0;

}


the compilation goes fine
but when i try to build the exe i get the following:

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Hello3.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

could anyone tell me what's going on? thanx in advance