如何以编程方式打开Run c ++?

rap*_*tor 5 c++ shellexecute

问题是如何从c ++以编程方式打开Run?我知道有一些功能可以替代它,比如shellexec,winexec但是对于某些任务我只需要运行对话框来显示.

Dia*_*rat 6

运行对话框使用该函数位于shell32.dll中RunFileDlg.显示对话框的一种方法是使用rundll32.exe来调用该函数.使用CreateProcessWin32 API 执行以下命令:

rundll32.exe shell32.dll,#61
Run Code Online (Sandbox Code Playgroud)

(其中#61是RunFileDlg函数的序数).

shell32.dll函数的参考:http://www.geoffchappell.com/viewer.htm? doc = studies /windows/shells/shell32/api/index.htm

希望这可以帮助.