Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stop/Start/Restart Packages?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00623901
Message ID:
00624406
Vues:
14
This message has been marked as the solution to the initial question of the thread.
Hi:

To see every COM+ apps:

oCat = create('comadmin.COMAdminCatalog.1')
oApps = oCat.GetCollection("Applications")
oApps.Populate()

lnx = oApps.count()
For i = 1 TO lnx -1
? oApps.Item(i).Name
NEXT i

--------------

To build an empty COM+:

oCat = create('comadmin.COMAdminCatalog.1')
oApps = oCat.GetCollection("Applications")

NewApp = oApps.Add
NewApp.Value("ID") = '{2C263074-C113-45E4-806C-D483C29D6CBA}'
NewApp.Value("Name") = 'MiAplicacion'
NewApp.Value("Description") = 'Pues eso...'
NewApp.Value("Activation") = 1
oApps.SaveChanges()

--------------

To insert a COM in COM+

...\...
oGeneric = oCat.InstallComponent('MiAplicacion','c:\main.dll',"","")
oApps.SaveChanges

Best,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform