Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do I

How do I

Scheduled Pinned Locked Moved Visual Basic
questionhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KORCARI
    wrote on last edited by
    #1

    Please show me how can I do when after running the program receive an error message that program finished with code 0

    D J 2 Replies Last reply
    0
    • K KORCARI

      Please show me how can I do when after running the program receive an error message that program finished with code 0

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Are you saying tht you're spawning an external program and waiting for the return code from that program or are you trying to set the return code when your app terminates? RageInTheMachine9532

      1 Reply Last reply
      0
      • K KORCARI

        Please show me how can I do when after running the program receive an error message that program finished with code 0

        J Offline
        J Offline
        jimpar
        wrote on last edited by
        #3

        if you are using VB6, you want to use the ExitProcess API call Private Declare Sub ExitProcess Lib "KERNEL32" (ByVal uExitCode As Long) normal end: ExitProcess 0 useful if you run your app from a batch file or shell and wait for it to finish from another app

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups