Author Topic: Shell does not run a GUI Application  (Read 4565 times)

alecs

  • Guest
Shell does not run a GUI Application
« 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Shell does not run a GUI Application
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ