i'm trying open a process with arguments, but i belive that i have some errrors:(
until here seems ok. now see the next lines:
the windres.exe seems be opened, but i belive the Arguments aren't correct:(
what i'm doing wrong?
Code:
Dim strCompilerName As String
Dim strCPPFonteName As String
Dim strEXEFileName As String
Dim App_Path As String
Dim strObjectSource As String
Dim strResCompilerName As String
Dim strResourceFile As String
Dim strResourceCompiledFile As String
App_Path = Application.StartupPath
strCompilerName = App_Path & "\mingw32\bin\g++.exe"
strResCompilerName = App_Path & "\mingw32\bin\windres.exe"
strEXEFileName = """" & App_Path & "\test.exe" & """"
strCPPFonteName = """" & App_Path & "\test.cpp" & """"
strObjectSource = """" & App_Path & "\test.o" & """"
strResourceFile = """" & App_Path & "\res.rc" & """"
strResourceCompiledFile = """" & App_Path & "\MainIcon.o" & """"Code:
Dim s As New Process
'need more work
'compile resource file
s.StartInfo.WorkingDirectory = App_Path & "\MinGW32\bin"
s.StartInfo.UseShellExecute = True
'windres -i ResourceFile.rc -o ResourceCompiledFile.o
s.StartInfo.Arguments = " -i " & strResourceFile & " -o " & strResourceCompiledFile
s.StartInfo.FileName = strResCompilerName
s.Start()
s.WaitForExit()what i'm doing wrong?