MFc调用 _popen()函数,打开外部程序后,界面假死

yskshift yskshift 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
MFc调用 _popen()函数,打开外部程序后,界面假死
代码如下:

void Gnuplot::init()
{
m_sGNUPlotFileName = "pgnuplot.exe";
if (!this->get_program_path(m_sGNUPlotFileName))
{
this->valid = false;
throw GnuplotException("Can't find gnuplot in your PATH");
}

this->gnucmd = _popen(m_sGNUPlotFileName.c_str(),"w");
if (!this->gnucmd)
{
this->valid = false;
throw GnuplotException("Couldn't open connection to gnuplot");
}
this->nplots = 0;
this->valid = true;
}


请问如何不改动这种方法(_popen())的情况下,使得mfc界面不假死
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
yskshift
进程/线程/DLL 15,465 成员 49,169 内容