   WinMain in seperate file
  Erm.... Well I''m a total beginner and I''m working my way through ''Tricks of the Win Game Programmin Gurus'' by LaMothe... I hope this question hasn''t been asked a million times already - if it has I''m sorry (please be gentle!)I was just wondering if it''s possible to have the WinMain function in a seperate source file and include it. When I tried I got some linker errors - is this just my incompetence or will the compiler simply not allow it?Thanks in advance 
  Yes it''s fine. What linker errors do you get?Note also that you don''t include source files - you compile them into object files and link the object files together to make your exe.   Why you shouldn''t use iostream.h - ever! | A Good free online C++ book;  The WinMain function can be in any source file. Don''t put it in a header though, it''s pointless.