Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating COM+ DLL before next hit
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00712572
Message ID:
00713975
Vues:
46
Thanks a ton Mike.

>>When I update a COM+ DLL, I go into Component Services and stop the component.
>
>Dude, you're doing by this *hand*?! Write a project hook that takes care of this when you build.
>
>>How can I prevent the COM+ component from being reloaded into memory until I explicitly start it?
>
>Assuming your COM+ application name is "DevCon":
>
>
LOCAL oCat as "comadmin.comadmincatalog"
>oCat = createobjectex("comadmin.comadmincatalog",'','')
>ocat.GetCollection("Applications")
>oapps=ocat.GetCollection("Applications")
>oapps.populate()
>LOCAL myapp
>FOR EACH app IN oapps
>	IF app.Name = "DevCon"
>		myapp = app
>	Endif
>Endfor
>myapp.Value("IsEnabled") = .f.
>
>*-- Do what you need to do here
>
>myapp.Value("IsEnabled") = .t.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform