project setting->c/c++->option加上/MT开关

解决方案 »

  1.   

    In MSDN:
    Defines _MT so that multithread-specific versions of the run-time routines are selected from the standard header (.H) files. This option also causes the compiler to place the library name LIBCMT.LIB into the .OBJ file so that the linker will use LIBCMT.LIB to resolve external symbols. Either /MT or /MD (or their debug equivalents /MTd or /MDd) is required to create multithreaded programs. 
      

  2.   

    这么说我用了multithread,没有啊我不过打开一个window,display而已
      

  3.   

    你应该建一个win32 application项目,而不是直接用win32 console!