Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Winnipeg, Canada
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can'r run exe (VB5 Learning Edit)

    Hi,

    I infrequently use VB5 L E to write small utilities for myself.

    When I tried to run one today and I was getting an error message stating that it can't open COMDLG32.OCX.

    I have removed VB5 and re-installed in and the ocx file is back in WindowsSystem, but on starting the app, I now get an error: Unexpected Error (which is about as helpful as nothing at all).

    I cannot see the OpenDialog and SaveDialog objects any longer in the project. And I have absolutely no recollection at all how I originally was able to use them.

    Can you help remove some of the cobwebs from my head? Much appreciated.

    KenM

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Can'r run exe (VB5 Learning Edit)

    Office 2000 is based on VB6, not VB5, so you may be running into compatibility problems caused by a newer version of the common dialog control trying to work in VB5.
    Charlotte

  3. #3
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Winnipeg, Canada
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Can'r run exe (VB5 Learning Edit)

    Hi Charlotte,

    Thanks for replying. You know, I finally solved the problem after two days of poking around.

    The problem was the the ocx had been deleted when I used an Uninstaller program to clean up a lot of debris on my pc. As a result the common dialog was de-registered.

    In Access, to register a library, you go to Tools | References. Not so in VB5. The references are found under Project References. But it wasn't on the list of available items until you first check it on Project Components. Even after I discovered that, I couldn't find the comdlg on the toolbar. It was on the toolbar allright, way below the horizon, but because it had no vert. scrollbar you wouldn't know it was there.

    I didn't find it until I decided to lengthen the toolbar (just out of boredom I guess). After that it was simply a matter of dropping the objects on the form and naming them. The original event code was still there. I had just forgotten about how to register the ocx. You do it once, and forget about it (at your own risk it seems).

    Thanks again for your efforts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •