int _tmain(int argc, _TCHAR* argv[]) Not Being Declared

Dec 1, 2012 at 2:38pm
int _tmain(int argc, _TCHAR* argv[]) is not being declared when I compile need help please.
Dec 1, 2012 at 2:44pm
Try the similar definition :
1
2
int main(int argc, char *argv[])
{}

Hope it helps.
Dec 1, 2012 at 2:47pm
ok that seemed to help thanks but now this is not working #include "stdafx.h" 1 C:\Dev-Cpp\main.cpp stdafx.h: No such file or directory.
Dec 1, 2012 at 3:03pm
stdafx.h is for Visual Studio. In Dev you can leave it out.
Last edited on Dec 4, 2012 at 9:26am
Topic archived. No new replies allowed.