Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

[VB2010] - having string problems

$
0
0
i'm trying open a process with arguments, but i belive that i have some errrors:(

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" & """"

until here seems ok. now see the next lines:

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()

the windres.exe seems be opened, but i belive the Arguments aren't correct:(
what i'm doing wrong?

Viewing all articles
Browse latest Browse all 27554

Trending Articles