Results 1 to 2 of 2

Thread: How to detect a running application (VB6)

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2008

    Question How to detect a running application (VB6)

    Hi everybody. I'm modifying an old Visual Basic 6.0 application and I need a process that verify if the application is already running. This proceess must prevent the application being running twice in a machine. I undertand that I must use API Functions but I don't find the adecuate. Could anybody could help me?

    Thanks in advance.


  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012

    Re: How to detect a running application (VB6)

    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width