-
Jun 14th, 2013, 11:00 PM
#1
Thread Starter
New Member
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.
egfao55
-
Jun 14th, 2013, 11:39 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|