如何以编程方式打开runc++;? 问题是如何从C++编程运行运行?我知道有一些函数可以替代它,比如shellexec、winexec,但是对于某些任务,我只需要运行对话框就可以了。

如何以编程方式打开runc++;? 问题是如何从C++编程运行运行?我知道有一些函数可以替代它,比如shellexec、winexec,但是对于某些任务,我只需要运行对话框就可以了。,c++,shellexecute,C++,Shellexecute,使用shellexec、winexec或任何其他喜欢的函数来执行 rundll32.exe shell32.dll,#61 这将打开对话框。类似于: #include <cstdlib> system("rundll32.exe shell32.dll,#61"); #包括 系统(“rundll32.exe shell32.dll,#61”); 运行对话框位于shell32.dll中,使用函数RunFileDlg。显示对话框的一种方法是使用rundll32.exe调用该函数。使

使用shellexec、winexec或任何其他喜欢的函数来执行

rundll32.exe shell32.dll,#61
这将打开对话框。

类似于:

#include <cstdlib>

system("rundll32.exe shell32.dll,#61");
#包括
系统(“rundll32.exe shell32.dll,#61”);

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

rundll32.exe shell32.dll,#61
(其中#61是
RunFileDlg
函数的序号)

shell32.dll函数的参考:


希望这有帮助。

Ha!你刚好快了1秒钟:)thnx。。。全部用于重播,帮助很大:)