说我的stdafx.cpp文件错了错误如下,
error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file

解决方案 »

  1.   

    /Yc   (Create Precompiled Header File)This option instructs the compiler to create a precompiled header (.PCH) file that represents the state of compilation at a certain point. (To find this option in the development environment, click Settings on the Project menu. Then click the C/C++ tab, and click Precompiled Headers in the Category box.) Command Line Project Settings Description 
    /Yc Create Precompiled Header File The compiler compiles all code up to the end of the base source file, or to the point in the base file where #pragma hdrstop occurs.  
    /Ycfilename Through Header The compiler compiles all code up to and including the .H file specified in the Through Header text box (filename).  估计是你把stdafx.h文件删了?
    在Project->C/C++->Gernal栏选Precomplier Header选not use (第一项)
    重编译试试?
      

  2.   

    如果可以调试源代码的话,发一分过来?
    [email protected]
      

  3.   

    这是个ie的现在又有新问题了,
    mainwnd.obj : error LNK2019: unresolved external symbol __imp_CoUninitialize referenced in function "unsigned long __cdecl NewWindow(void *)" (?NewWindow@@YAKPAX@Z)
    mainwnd.obj : error LNK2019: unresolved external symbol __imp_CoInitializeEx referenced in function "unsigned long __cdecl NewWindow(void *)" (?NewWindow@@YAKPAX@Z)
    mainwnd.obj : error LNK2019: unresolved external symbol __imp_InternetQueryOptionW referenced in function "void __cdecl GetProxyOption(void)" (?GetProxyOption@@YAXXZ)
    mainwnd.obj : error LNK2019: unresolved external symbol __imp_CoCreateInstance referenced in function "protected: struct HWND__ * __cdecl CMainWnd::CreateBrowser(void)" (?CreateBrowser@CMainWnd@@IAAPAUHWND__@@XZ)
    MIPSII_FPDbg/mainwnd.exe : fatal error LNK1120: 4 unresolved externals
    Error executing link.exe.mainwnd.exe - 5 error(s), 0 warning(s)
    我发给你
      

  4.   

    看看你源文件里面包括的头文件,是不是没有stdafx.h??再看看stdafx.h的内容,把有用的填上
      

  5.   

    对不起,我这个程序是在微软的网站上下载的,可里面没stdafx.h这个文件,怎么办呢,