Results 1 to 4 of 4

Thread: VB6 is denying write permission to control. Why?

  1. #1
    Crunchy Cat
    Guest

    Question VB6 is denying write permission to control. Why?

    Hi, the attached VB 6 sp5 project demonstrates a strange
    anomoly where compilation of my ActiveX control will be denied
    due to file permission problems. It's consistent across Windows
    NT 4.0 and Win2k. Here are the exact reproduction steps.

    1) Unzip the project to a location of your choosing.

    2) Open the project in VB6. It is an OCX project that contains:

    * 1 class module (called 'graphicsCell') with no
    methods or properties (completely blank).

    * 1 class module (called 'graphicsSequencer') with
    one Get/Set property called 'cell' that sets or returns
    'graphicsCell' objects.

    * 1 User Control (called 'animator') with one dummy
    Get/Let property called 'dummy'. The User Control
    also contains an empty array of 'graphicsSequencer'
    objects.

    3) Make the OCX.

    4) Set the project's 'Version Compatibility' to 'Binary
    Compatibility' ('Component' tab of the 'Project Properties'
    dialog) and point it to the OCX generated in step 3.

    5) Add any valid line of code to the 'dummy' Get property (ex.
    MsgBox "Hello").

    6) Click the 'Save' button.

    3) Attempt to Make the OCX (overwriting the old one).

    What you will see is an error message stating: 'Permission
    Denied: <pathToOCX>'. Why is this happening? I have never
    seen this type of behavior before.


    Thanks,

    -CC

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I sometimes have a similiar problem with making activeX dlls, usually if I close the project and then reopen it everything works then though. Also I recieved some linker errors before and found this that solves it http://support.microsoft.com/default...EN-US;q166470, hopefully something here helps.

  3. #3
    Crunchy Cat
    Guest
    Thanks for the URL and confirming that I am not simply going crazy .

    -CC

  4. #4
    Crunchy Cat
    Guest

    Exclamation

    Hmmm, in looking at my original post it does not appear that my
    attachment made it. I am attempting to reattach the project
    in this post.

    -CC
    Attached Files Attached Files

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