Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common Dialog to replace Getfile()
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Common Dialog to replace Getfile()
Divers
Thread ID:
00728072
Message ID:
00728072
Vues:
61
I am trying to write something to replace the standard FoxPro GetFile(), because I need some additional functionality. I have been using
loOleControl = CREATEOBJECT("MSComDlg.CommonDialog")
...
loOleControl.ShowOpen()
lcFilename = loOleControl.FileName
This works well, but I have two problems.
1. The open dialog window isn't centered. It is in the upper corner of the screen.

2. It works great on my W2K system, but a user with Win98 didn't find the required OCX. I looked in my registry and MSComDlg.CommonDialog points to \WINNT\SYSTEM\COMDLG16.OCX. Great! So I sent it to him. But this OCX doesn't have a REGSVR32 entry point (or whatever it needs), and I don't know how to get it installed on his system... if that's what I should do.

Should I be doing something different if I want generic code?

TIA. Tom
Tom Green in Montreal
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform