阅读背景:

Open the file under the specified path, unlimited file name

来源:互联网 
void BtnOpenSpecifile()
{
	SHELLEXECUTEINFO shell = { sizeof(shell) };
	shell.fMask = SEE_MASK_FLAG_DDEWAIT;
	shell.lpVerb = L"open";
	CString helppath,fpath;
	fpath.Format(L"%s\help",lzy_dir);
	vector<CString> pdfnames;
	if (!PathIsDirectory(fpath))
	{
		AfxMessageBox(L"没有找到帮助说明,请检查!");
		return PRO_TK_E_NOT_FOUND;
	}
	_Finder(fpath,L"pdf",pdfnames);
	if (pdfnames.empty())		
	{
		AfxMessageBox(L"没有找到帮助说明,请检查!");
		return PRO_TK_E_NOT_FOUND;
	}
	helppath.Format(L"%s\help\%s",lzy_dir,pdfnames[0]);
	shell.lpFile = helppath;
	shell.nShow = SW_SHOWNORMAL;
	BOOL ret = ShellExecuteEx(&shell);
	return PRO_TK_NO_ERROR;

}void BtnOpenSpecifile()
{
	SHELLEXECUTEINFO she



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: