百度网盘: adobe reader 11

命令行:

AdobeReaderXIPortable.exe D:\XXX.pdf

 通过C++在windows下打开pdf:

    PROCESS_INFORMATION processInfo;
    STARTUPINFO startupInfo;
    ::ZeroMemory(&startupInfo, sizeof(startupInfo));
    startupInfo.cb = sizeof(startupInfo);
    QString fileName = QString::fromLocal8Bit("xxx.pdf");
    fileName = QString::fromLocal8Bit("E:/软件/adobe_reader11/AdobeReaderXIPortable.exe ") + fileName;
    std::string _file = fileName.toLocal8Bit();
    CreateProcess(NULL, (CHAR*)_file.c_str(),
        NULL,  // process security
        NULL,  // thread security
        FALSE, // no inheritance
        0,     // no startup flags
        NULL,  // no special environment
        NULL,  // default startup directory
        &startupInfo,
        &processInfo);

 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2022-01-13
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-02-13
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2021-12-04
  • 2021-11-17
  • 2021-07-10
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案