Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How about a little common dialog?
Message
 
 
À
21/08/2002 16:26:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
00691988
Message ID:
00692254
Vues:
29
This message has been marked as the solution to the initial question of the thread.
Glenn,

Try this.
loParent = CREATEOBJECT("form")
loParent.NEWOBJECT("oleComDlg",  "oleCommonDialog", "_activeX.vcx")
loDialog = loParent.oleComDlg
loDialog.ShowOpen
:) Hope it works this time.



>Thanks Cheang,
>
>I have subclassed it by creating a class and specifying comdlg32 as the contained OLE. Now when I try to instanciate it I get "Object class is invalid for this container"
>
>Sigh...
>
>Glenn
>
>>Glenn,
>>
>>Instead of CreateObject('mscomdlg.commondialog') at runtime, drop the control onto the form. If you need it to be a stand-alone object, sub-class the ActiveX, and CreateObject("YourSubClassObject") at runtime.
>>
>>HTH.
>>
>>
>>
>>
>>>Does this mean that the following cannot be done on a runtime system:
>>>
>>>lo = create('mscomdlg.commondialog')
>>>...
>>>lo = ''
>>>
>>>
>>>Glenn
>>>>Check mskb #Q192693.
>>>>
>>>>>I am now having a problem when instanciating the object. I am getting:
>>>>>
>>>>>Ole error code: 0x80040112
>>>>>Class is not licensed for use
>>>>>
>>>>>
>>>>>Any ideas?
>>>>>
>>>>>Glenn
>>>>>
>>>>>
>>>>>>Sure. :)
>>>>>>
>>>>>>>Thanks Sergey, I knew I could depend on your generous help.
>>>>>>>
>>>>>>>Glenn
>>>>>>>>>I am having a problem with instanciating mscomdlg.commondialog on a new install of a VFP7 applicaiton. Does anyone know which merge module I need to include so t6hat I can fire up the system common dialog. BTW thgis install is on a new XP Pro
>>>>>>>>>
>>>>>>>>>Thanks
>>>>>>>>>
>>>>>>>>>Glenn
>>>>>>>>
>>>>>>>>It's comdlg32.msm.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform