如题,是在基于SDI的程序中,先谢了

解决方案 »

  1.   

    TCHAR chFileName[MAX_PATH];
    GetModuleFileName(NULL,chFileName,MAX_PATH);
    (_tcsrchr(chFileName,'\\'))[1] = 0;
    lstrcat(chFileName,_T("test.chm"));
    ShellExecute(NULL,_T("OPEN"),chFileName,NULL,NULL,SW_SHOWNORMAL);
      

  2.   

    WinExec()或者ShellExecute()都可以的
      

  3.   

    ShellExecute(NULL,"open",yourfile,NULL,SW_SHOW);
      

  4.   

    CString str="hh.exe";
    str+=" ";
    str+="d:\\mywork\\C3D.chm";
    WinExec(str,SW_SHOW);
      

  5.   

    多谢一楼,问题解决了,主要不知道还有ShellExecute()函数,只知道WinExec()