Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: stdafx.h and const char* error
06-07-2012, 01:32 PM #1
- Join Date
- Jun 2012
- Thanked 0 Times in 0 Posts
stdafx.h and const char* error
I was creating a C program for creating Windows Socket, using Visual Studio 2010. I got the following errors while trying to compile it:
1. error C1083: Cannot open include file: 'stdafx.h': No such file or directory [For the line, #include <stdafx.h>]
2. IntelliSense: cannot open source file "stdafx.h" [For the line, #include <stdafx.h>]
3. IntelliSense: a value of type "const char *" cannot be assigned to an entity of type "char" [For the line, buf = " ";]
How to fix those problems, I tried google and solved other 4 errors but these three are being headache for me, I have just started Win32 Application in C so I don't have deep knowledge. I am waiting for your help.