如题,我拿notepad.exe做试验,可以正常的调用,但是IE就不行了,不知道为什么,谢谢

解决方案 »

  1.   

    The WinExec function runs the specified application.Note  This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
      

  2.   

    ShellExecute(NULL,"open", "www.baidu.com", NULL, NULL, SW_SHOWNORMAL);
      

  3.   

    我调用Firefox浏览器也没有问题,就是在掉IE的时候起不来
      

  4.   

    这个方法我也已经试过了,不能正常调用。这个函数会自动检查默认的浏览器,我的默认浏览器估计是IE的,所以也起不来,而且ShellExecute没有返回值。
      

  5.   

    我试了一下 在我机器上可以
    UINT uiRet = WinExec("C:\\Programme\\Internet Explorer\\iexplore.exe", SW_SHOW);
    XP SP3 IE8 VS2005
      

  6.   

    我的机子也是XP SP3 IE8 VS2005,
    换了其他机子后仍然不可用,但是如果默认的浏览器是Firefox的就可以启动,默认是IE就不能启动
      

  7.   

    我也试了一下
    没问题
    VS2005+XP(2002版)+SP3
      

  8.   

    搞了半天原来是用户权限的问题,换了一个administrator用户登录的ok了