代码编译之后运行不了,闪退

解决方案 »

  1.   

    安装Windows XP Modehttp://windows.microsoft.com/zh-cn/windows7/products/features/windows-xp-mode
      

  2.   

    不建议用VC6.0,但是要是用来研究算法或者简单的控制台程序还是可以的。商业开发还是用高版本的IDE吧,VS08以上。
      

  3.   

    lz用的win7 64位还是32位,32位的似乎有直接兼容的vc6软件,安装后就能用,64位的和vc6不兼容
      

  4.   

    上面说64位不兼容的什么心态?
    我的一直很好用
    一闪而过是因为你没加system pause之类的语句
    你试试
    // VC6_win7_64bits.cpp : Defines the entry point for the console application.
    //#include "stdafx.h"
    #include <IOSTREAM>int main(int argc, char* argv[])
    {
    printf("Hello World!\n");
    system("pause");
    return 0;
    }
    ------------------------------------------------------AutoCSDN签名档------------------------------------------------------
      

  5.   

    引用 7 楼 hankcs 的回复:
    上面说64位不兼容的什么心态?
    我的一直很好用
    一闪而过是因为你没加system pause之类的语句
    你试试
    // VC6_win7_64bits.cpp : Defines the entry point for the console application.
    //#include "stdafx.h"
    #include <IOSTREAM>int main(int argc, char* argv[])
    {
    printf("Hello World!\n");
    system("pause");
    return 0;
    }
    ------------------------------------------------------AutoCSDN签名档------------------------------------------------------
      

  6.   

    +1
    你加上system("pause");后一切都知晓。何必多问呢
    学习的话建议VC6。以后铁定要换高版本的VS的
      

  7.   

    win8 x64上VB6,VC++6.0,VS2008,VS2010,VS2012全部正常可用
      

  8.   

    问题太模糊了。
    吓我一跳,难道我常用的那个不是VC6么?
    一闪而过?是那些只有几行代码的c例子么?欢楼上的system("pause");有点多余,简单的在main函数最后一个括号打个断点吧。