Information générale
Catégorie:
Applications Internet
HI:
I need register an COM object in a package in MTS from VFP
I have this code:
catalog = CreateObject("MTSAdmin.Catalog.1")
packages = catalog.GetCollection("Packages")
newPack = packages.Add
newPackID = ''
newPackID = newPack.Key
newPack.Value("Name") = "Paquete2"
packages.SaveChanges
componentsInNewPack = packages.GetCollection("ComponentsInPackage", newPackID)
util = componentsInNewPack.GetUtilInterface
util.InstallComponent("c:\web\pruebas7\proy2.dll", "c:\web\pruebas7\proy2.tlb","")
Return
The package is created but the com object is nos inserted. I think the problem is in the last line because there is an adv with "you have not memory to..."
The same code traslated to VBScript in a .ASP have the same problem.
Any help?
TIA
Alberto Rodriguez
Spain
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement