在mfc基于对话框的应用程序中传递参数 [英] passing arguments in mfc dialogbased application

查看:155
本文介绍了在mfc基于对话框的应用程序中传递参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我的程序在第一个标签上有2个标签我有10个MFCEDitBrowse控件

和第二个标签我有计算按钮

当我点击计算按钮时,它应该调用.exe文件和.exe文件的输入是mfceditbrowse控件上的选定文件(tab1)。选择的文件不固定它在1到10之间。



请帮帮我,我不明白如何将文件名(带路径)从mfceditbrowse控件(dlg1)提供给.exe文件(dlg2)作为输入。



谢谢。

Hello
I have 2 tabs in my program on first tab i have 10 MFCEDitBrowse control
and on second tab I have calculate button
when ever i clicked on calculate button it should called .exe file and input for .exe file is selected files in mfceditbrowse control on (tab1).selected files are not fixed it is between 1 to 10.

Please help me out I dont understand how i can give filenames(with path) from mfceditbrowse controls (dlg1) to .exe file (dlg2) as an input.

Thank you.

推荐答案

为什么不在对话框中进行计算?但是,如果要将参数传递给外部程序,只需将它们添加到 exec() [ ^ ]或 system() [ ^ ]函数调用。
Why not do your calculations within the dialog? However if you want to pass arguments to an external program you just need to add them to your exec()[^] or system()[^] function call.


这篇关于在mfc基于对话框的应用程序中传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆