When I try to insert an Exontrol library to my VB project, I get “Permission Denied”?
This is applicable only to COM objects. Usually it is happen when the logged user has no access to OLE registry key. For every custom control file (.OCX) that Visual Basic uses, there is an accompanying .OCA file of the same file name. An .OCA file is a binary file that functions as both an extended type library file and a cache for the custom control file. When you are trying to insert an ActiveX control to your VB project using project components dialog, the VB tries to access the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic\6.0 registry key where it saves the path to OCA file by creating a new key using the program identifier for the control’s type library. Since, you don’t have access to that key, that’s the reason why you cannot insert the component to the VB. In order to make sure that you have access to that key open the registry editor and tries to create a new key to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic\6.0 key. Another key used by the VB is HKEY_CLASSE
Related Questions
- Why do I get an error message when I try to create a project in the BeadStudio 2 Gene Expression Module with both 6x2 and 8x1 BeadChips?
- How can i retrieve the vb forms and project files deleted using shift+delete button?
- When I try to insert an Exontrol library to my VB project, I get "Permission Denied"?