Print Page | Close Window

Error

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14567
Printed Date: 28 September 2024 at 7:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Error
Posted By: SnoopDawg0
Subject: Error
Date 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?



Replies:
Posted By: Oleg
Date Posted: 19 June 2009 at 6:57am
Hi,
 
Are you sure you registered them right ? you need run regsvr32 from Administrator access.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: SnoopDawg0
Date Posted: 19 June 2009 at 11:02am
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)



Posted By: Baldur
Date Posted: 19 August 2009 at 9:26am
For VB6 build a Setup-Project and run the Setup. This will work.


Posted By: ou81aswell
Date Posted: 23 August 2009 at 5:40pm
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net