visual-studio - 通过 Shell 运行时,Visual Studio 编译器不退出(返回值 STILL_ACTIVE)
问题描述
我通过 Shell 启动编译器,如下所示:
lProcID = Shell("cmd /C devenv /clean RELEASE d:\examplesolution.sln", SW_HIDE)
lProcHnd = OpenProcess(PROCESS_QUERY_INFORMATION, True, lProcID)
Dim lret&
lret = STILL_ACTIVE
Do
GetExitCodeProcess lProcHnd, lret 'ShellExecuteWithExitCodeEx
Loop While lret = STILL_ACTIVE
由于某种原因,它不会退出。
lRet 始终为 259(“STILL_ACTIVE”)。
这可能是什么原因?
如果我通过 x86 Native Tools Command Fromt for VS 2019 运行相同的命令,它工作正常:
解决方案
推荐阅读
- width - 将控件宽度设置为自定义页面 SurfaceWidth 的一半在 Inno Setup 中无法正常工作
- ios - Firebase - 如何使用云函数更新 RealTimeDatabase 事务
- prestashop - Prestashop:集成前端的最佳方式
- android - 自定义 DialogFragment - 屏幕旋转崩溃 - Fragment XXX 尚未附加
- javascript - 如何在路由参数不变的情况下重新加载路由回组件?
- migration - 迁移后 Prestashop 后端错误 500
- python - 间隔的加权 numpys random.choice
- gitlab-ci - Gitlab:通过 API 触发手动操作
- excel - Google 表格 - 将 A1 更改为 A2 到 A3 的脚本,......在公式中
- java - DB2 连接的困惑