Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error

 Post Reply Post Reply
Author
Message
SnoopDawg0 View Drop Down
Newbie
Newbie


Joined: 03 May 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote SnoopDawg0 Quote  Post ReplyReply Direct Link To This Post Topic: Error
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SnoopDawg0 View Drop Down
Newbie
Newbie


Joined: 03 May 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote SnoopDawg0 Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2009 at 9:26am
For VB6 build a Setup-Project and run the Setup. This will work.
Back to Top
ou81aswell View Drop Down
Groupie
Groupie


Joined: 05 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ou81aswell Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.