News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Shell does not run a GUI Application

Started by alecs, January 11, 2010, 05:18:45 AM

Previous topic - Next topic

alecs

Hi

I made a VB form with a simple button that calls a compiled GUI app through the Shell command
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?

MortenMacFly

Quote from: alecs on January 11, 2010, 05:18:45 AM
I made a VB form with a simple button that calls a compiled GUI app through the Shell command
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]