General information
Category:
COM/DCOM and OLE Automation
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')
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only