Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difficulty Using OneInstance.VCX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00132124
Message ID:
00132148
Vues:
15
Okay, I fixed my problem, and I suppose you can set up your class to do the same thing. My apps use an include file and I set a DEFINEd constant called _APPNAME, which is the name of the application. After replacing all cases of "DDEMyAppIsOpen" with "_APPNAME" (no quotes for the constant), it works great for multiple FoxPro applications.

Thanks for your feedback. After reading your message, it suddenly was obvious why it was not working.

Michael Reynolds


>I assume that you're using this class for both applications.
>
>In this case, you're right, I didn't thought of this situation when I wrote this class. And since I'm not really using it, I never had problems with it! :)
>
>I will fix it. In the mean time, if you want to fix it "quick and dirty", change all occurences (in all methods) of the "DDEMyAppIsOpen" string with something different in one of your apps. It should work ok after that.
>
>Vlad
>
>>The VCX works great, except that I cannot run a second FoxPro app that is DIFFERENT from the first occurrence. In other words, the VCX properly tests for whether the currently loading app is already running. However, if a differnt app built in FoxPro is started, the VCX thinks this is a second occurrence, too.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform