Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: alecs on January 11, 2010, 05:18:45 am

Title: Shell does not run a GUI Application
Post by: alecs on January 11, 2010, 05:18:45 am
Hi

I made a VB form with a simple button that calls a compiled GUI app through the Shell command
Code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim procID As Integer
        procID = Shell("C:\pepsiZone\Sistema\pepsiZoneOF.exe", AppWinStyle.NormalFocus, Wait:=True)
   End Sub

however it keeps crashing...

If i complie the project with as a console application it works fine

any suggestions?
Title: Re: Shell does not run a GUI Application
Post by: MortenMacFly on January 11, 2010, 06:49:19 am
I made a VB form with a simple button that calls a compiled GUI app through the Shell command
Code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim procID As Integer
        procID = Shell("C:\pepsiZone\Sistema\pepsiZoneOF.exe", AppWinStyle.NormalFocus, Wait:=True)
   End Sub
Thi is not a general programming forum and not even a VB forum. You violate our forum rules therefore so this topic gets locked.