OpenFileDialog causing errors when application runs on mapped drive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Slognog
    New Member
    • Feb 2007
    • 1

    #1

    OpenFileDialog causing errors when application runs on mapped drive

    I am writing an app that opens a text file. The code I use works perferctly on my local machine. When I copied the executable to a Win 2000 server, the app causes errors and will not open. Is there something missing on the server. I tried to make a simple form with a single button. The form works until I add the OpenFileDialog object. I didn't even put any code for the dialog.

    Thank you for your help!
  • iburyak
    Recognized Expert Top Contributor
    • Nov 2006
    • 1016

    #2
    To open dialog control you probably added Microsoft Common Dialog Control to your project and it uses COMDLG32.ocx see Project - Components.

    Check if your other machine has this ocx and if it is the same version and if it is registered. You can try to copy ocx, from your machine, with your exe file in the samy folder. System should be able to find it.


    Hope it helps.

    Good Luck.

    Comment

    Working...