Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create an Object with clsid?
Message
De
15/11/2001 18:25:14
 
 
À
15/11/2001 17:52:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00582384
Message ID:
00582453
Vues:
36
I tried something, and it works for me:
this.addobject("myedit", "olecontrol", "DHTMLEdit.DHTMLEdit.1")
with this.myedit
	.left=this.left+20
	.top=this.top+20
	.height=200
	.width=200
	.visible=.t.
endwith
This ProgID came up when searching for "DHTMLEdit" on the registry. HTH

>Hello Crescencio,
>
>I found the CLSID in the registry. When I tried the ProgID, it seemed to hang for a long time and then the Insert Object dialog came up. I also tried the VersionIndependentProgID with no luck.
>
>Here are the relevant pieces of code I tried:
>
>
>* Using the ProgID
>ThisForm.AddObject('myctrl', 'olecontrol', 'DHTMLEDLib.DEInsertTableParam.DEInsertTableParam.1')
>
>
>and ...
>
>
>* Using the VersionIndependentProgID
>ThisForm.AddObject('myctrl', 'olecontrol', 'DHTMLEDLib.DEInsertTableParam.DEInsertTableParam')
>
>
>I guess I'm doing something wrong. Do you have any suggestions?
>
>Thanks for your help,
>
>-Bri.
>
>
>>
>>Have you tried searching for the clsid on the registry? (with regedit)
>>
>>You can create automation objects from clsid's with CreateObjectEx(), but I don't believe it works with OCX's.
>>
>>If you can find the ProgID for this CLSID you should be able to put that in the OLEClass parameter of AddObject().
>>HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform