• Can’r run exe (VB5 Learning Edit)

    Author
    Topic
    #367771

    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

    Viewing 0 reply threads
    Author
    Replies
    • #574559

      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.

      • #574682

        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.

    Viewing 0 reply threads
    Reply To: Can’r run exe (VB5 Learning Edit)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: