here are the errors i getCode:#include <windows.h> #include <fstream.h> #include <conio.h> int WINAPI WinMain(HINSTANCE hThisInstan, HINSTANCE hPrevInsta, LPSTR lpszArgument, int nShow) { ofstream fout; fout.open("hidden.txt"); fout<<"An easy way to make your program run in the background!"<<endl; fout.close(); return 0; }
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Text1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
what do i need to do to get this to compile?



LinkBack URL
About LinkBacks


