Results 1 to 5 of 5

Thread: In XP user is restricted - program doesn't work

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2001
    Location
    Bangkok
    Posts
    969

    In XP user is restricted - program doesn't work

    Hi everybody,

    I got a VERY big problem.

    I wrote a program in VB6 and it works fine. It includes some ocx and dll's. The MDB is on the server and everything is ok.

    But now the Network admin. want to restrict the status of the users to "USER" and not as before to a higher level "MAIN USER".
    Since then the program does not work.
    When the program start it says for example "comdlg32.ocx or dependencies not found".

    As I know is it not neccessary to register dll's. But I have to register ocx.
    Is it posible to replace a ocx with an dll?

    Is there any other idea?

    I really need urgent help!!!

    Thank you
    Franky


    Error message at program start:
    Run-time error '339':
    Component 'comdlg32.ocx' or one of its dependencies not correctly registed:

    .... The problem is that this file is in windows registered.


    used ocx:
    comdlg32.ocx
    msdatgrd.ocx
    mshflxgd.ocx
    richtx32.ocx
    msscript.ocx
    comctl32.ocx
    mscomct2.ocx
    Last edited by Franky; Oct 1st, 2004 at 07:02 AM.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    ActiveX DLLs have to be registered to work also.

  3. #3
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    Try putting the OCX's in the same directory as the app exe is in. Then they don't need to be registered in order to work.
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    It depends from what location the OCX were used in design time. If you used them from the System folder then they need to be in the system folder on the PC that is to run the app. If they were used from the same folder as the app then they need to be in the same folder as the exe.

    You can check by opening menu Projects -> Components, and in the new window click 'Selected Items Only' checkbox. Then the list will only show the components that you are using, then when you click on one of them it shows the path to it in the bottom of the window (Location: C:\........)

  5. #5
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Also see my 10 easy steps to clean COM living:

    http://www.vbforums.com/showthread.p...hreadid=306375

Posting Permissions

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



Click Here to Expand Forum to Full Width