gpt4 book ai didi

c++ - 用Qt通过参数调用另一个应用程序

转载 作者:行者123 更新时间:2023-11-28 08:07:38 26 4
gpt4 key购买 nike

<分区>

任何人都可以给我解决方案如何通过参数调用另一个应用程序。以及如何开始参数调用的进程。在 VB 代码的情况下是:

通过参数启动程序:

Sub main()
if command$ <> vbnullstring then ... running the process
end sub

参数调用过程:

Dim shell As wshShell
Dim lngReturnCode As Long
Dim strShellCommand As String

Set shell = New wshShell

strShellCommand = "C:\Program Files\My Company\MyProg.exe " & _
"-Ffoption -Ggoption"

lngReturnCode = wshShell.Run(strShellCommand, vbNormalFocus, vbTrue)

抱歉我的英语不好,我需要QT的源代码。谢谢之前^^

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com