Error |
Post Reply |
Author | |
SnoopDawg0
Newbie Joined: 03 May 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 18 June 2009 at 4:47pm |
I made my program originally in vb6 on a Windows XP OS. Everything was working fine until i decided to do a round of testing on my virtual machine (vista). When i opened the compiled file that had codejock command bars, skins, control, etc included in it, it came up with the error. "Unexpected error".
I added controls.ocx, skins.ocx, commandbars.ocx to the system32 directory on the vistamachine / registered the .ocx but still it wont even open. Then when i open the source on the vista machine it wont even let me load the .ocxs... ("Error accessing the system registry") Any ideas? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Are you sure you registered them right ? you need run regsvr32 from Administrator access.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
SnoopDawg0
Newbie Joined: 03 May 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Yep i even made a batch to do it all.
@echo Copy COMMAN~1.ocx "C:\Windows\system32\COMMAN~1.ocx" Copy Controls.ocx "C:\Windows\system32\Controls.ocx" Copy Skin.ocx "C:\Windows\system32\Skin.ocx" Copy MSCOMCTL.ocx "C:\Windows\system32\MSCOMCTL.OCX" regsvr32 "C:\Windows\system32\COMMAN~1.ocx" regsvr32 "C:\Windows\system32\Controls.ocx" regsvr32 "C:\Windows\system32\Skin.ocx" regsvr32 "C:\Windows\system32\MSCOMCTL.OC Then i get "Unexpected error". It must have something to do with the .OCXs because if i make a totally new project and add the .ocxs as a reference it comes up with the system registry error. (Yes i am running the program as an administrator) |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
For VB6 build a Setup-Project and run the Setup. This will work.
|
|
ou81aswell
Groupie Joined: 05 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
If you run regsvr32.exe from the command line or from a batch file then the command line processor (cmd.exe) needs to be elevated to admin under Vista in order for it to actually do anything. At least, this is what I discovered yesterday while trying to manually unregister/register an OCX.
I hope this helps.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |