Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject Woes
Message
De
27/06/2000 12:42:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00385074
Message ID:
00385203
Vues:
11
Hi David,
Tried the double quoting method...but to no avail...same error.

I resolved my problem though. The cusMan.OleClass property holds the value 'Man Jr.Man Jr.1'(with spaces). However, after referring to the registry, I learned the actual class name is 'ManJr.ManJr.1'. Go figure!

Jon

Thanks David and Nigel for your help.

>Jon,
>
>As a total WAG try double quoting that argument:
>
>This.AddObject('cusMan','OleControl',['Man Jr.Man Jr.1'])
>
>>Hi All,
>> My problem is when I try to add an object using the AddObject() method and the OLE Object's OLEClass has a space in it, I get an OLE Error: Invalid Class String.
>>
>>Here's the code:
>>This.AddObject('cusMan','OleControl','Man Jr.Man Jr.1')
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform