Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need multi-select File Open dialogue
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01222666
Message ID:
01222873
Views:
30
Yes. I was doing that all along. Just testing for it first with the CreateObject call to be sure the control was available.

If COMDLG32.OCX is not installed / registered on the sytem, then placing the control visually on the form does no good. It always works in the development environment (you could not add the control to the form in design time otherwise), but when deployed on other machines, the app will fail if COMDLG32.OCX is not present and registered.

>But you did place this control visually on the form, correct?
>
>Including it in the installation package would be a good idea.
>
>>Actually I just experimented on another machine doing what you describe (i.e., without using the test I described), and the app bombed because COMDLG32.OCX had not been installed/registered on that machine. If that OCX is not registered, then MSComDlg.CommonDialog is not available, and an OLE error will be thrown when the form containing the control is instantiated.
>>
>>The conclusion I reach is that a VFP app can not assume that MSComDlg.CommonDialog will be available unless the VFP installer you provide (for your own app) contains the OCX as a to-be-installed component. There is no guarantee that COMDLG32.OCX (aka MSComDlg.CommonDialog) already is installed on any given machine.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform