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 :)