Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prohibit User to start 2nd time the executable
Message
De
11/01/2002 04:02:07
 
 
À
11/01/2002 03:44:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00603363
Message ID:
00603378
Vues:
18
Hello again

Sorry for your time.

I make a very simple example in a test project with a main.prg with the following code :


_Screen.Caption = "xxx"
Local lnWinHandle
Declare Integer FindWindow In Win32API Integer, String

lnWinHandle = FindWindow(0, "xxx")
=Messagebox(str(lnWinhandle))
If lnWinHandle <> 0
=Messagebox( "You already Started application", 16 )
Cancel
Endif

=Messagebox( "You are in the applicatrion")



It always return me lnWinHandle > 0

Thanks again
Petros
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform