对呀
写在一个按钮事件中就可以啊
什么也不用增加
多看看MSDN关于此函数的帮助

解决方案 »

  1.   

    WinExec是只与16位兼容吗? 在Win32中也应该是能用吧?
    MSDN中这样说:
    Note  This function is provided only for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function. 
    In Win32, the WinExec function returns when the started process calls the GetMessage function or a time-out limit is reached. 
    我不太明白呀,请帮忙吧
      

  2.   

    可以用,但不推荐!上面MSDN不是说了用 CreateProess 吗??
      

  3.   

    用CreateProess也只是象WinExec那样,只是调用资源管理器吗?
    有什么办法可以只在最简单的SDI中的空白处只显示文件的目录部分吗?
    就是没有菜单栏和工具栏?
    谢谢