Visual Studio 2008 cannot open files including: "iostream. h": no such file or directory
Visual Studio 2008 cannot open files including: "iostream. h": no such file or directory
C language is used in the past, and C ++ is the latest version!
Change include <iostream. h>:
Include <iostream>
Using namespace STD;
That's all!
I. Problem Description
Msvcrtd. Lib (crtexew. OBJ): Error lnk2019: external symbol that cannot be parsed _ winmain @ 16, which is referenced in function ___ tmaincrtstartup
Debug/jk.exe: Fatal error lnk1120: 1 external command that cannot be parsed
Error lnk2001: unresolved external symbol _ winmain @ 16
Debug/main.exe: Fatal error lnk 1120:1 unresolved externals
Error executing link.exe;
Ii. Possible causes
1. You have created a console program with VC. Its entry function should be main, and you have used winmain.
2. You opened a. c/. cpp file with VC, and then compiled the file directly. This file uses winmian instead of main as the entry function. The default setting of VC is for console programs.
Declare_dyncreate and implement_dyncreate
Derived class from cobject
When using a cobject derived class, you can choose from four levels of functions:
1. Basic functions do not support runtime class information or serialization, but include diagnostic memory management.
2. Support for basic functions and runtime class information. Use declare_dynamic.
3. Added runtime class information and dynamic creation support for basic functions. Use declare_dyncreate.
4. Added runtime class information, dynamic creation, and serialization support for basic functions. Use declare_serial.
If serialization is estimated to be required in the future, the classes used for reuse (which will be used as the base classes later) should at least include runtime class support and serialization support.
You can select the function level by using specific declarations and implementation Macros in the declaration and implementation of classes derived from cobject.
Error c2664: "cwnd: messageboxw"
Error c2664: "cwnd: messageboxw" for compatibility with Visual C ++ 2005: parameter 1 cannot be converted from "const char [3]" to "lpctstr" Error 2 error c2664: "inet_addr": parameter 1 cannot be converted from "_ tchar *" to "const char *" D:/VC Program/clienttcp. CPP 29 cause: 2005 the default "use Unicode Character Set" solves: in the properties of the project file of the solution you created, select "use multi-Byte Character Set" for "Character Set Configuration property. 2005 this error does not occur when you open a 6.0 file because the compiling environment is converted during the conversion process.