Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2003, 07:32 AM
Authorized User
 
Join Date: Sep 2003
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default Creation of ActiveX DLL with VB6

Hi,

I am creating an ActiveX DLL in VB6.

The DLL itself is a simple function - nothing wrong with it.

When I compile the DLL, it seems like the DLL is created, but I get an error message pop-up, saying:

"Error accessing the system registry"

When I try to reference my DLL within my EXE project, I get the error message:

"Error 429 - ActiveX component can't create object"


Please tell me what to do to solve this problem.

This is the first time I have tried to create an ActiveX DLL and I am being let down at the first step! Arrrrgh!

Many thanks.

James



 
Old September 10th, 2003, 07:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Make sure you are logged onto the computer as an administrator or power user (in NT/2K/XP).

When you compile the DLL it is trying to register itself, it needs to write to the registry (in HKEY_LOCAL_MACHINE) in order to successfully register. Only a computer administrator or a power user can alter the HKEY_LOCAL_MACHINE registry key.

Because you have not been able to register the DLL when you try to access it the error is raised. The DLL must be registered before you can use it.

Regards
Owain Williams
 
Old September 10th, 2003, 08:19 AM
Authorized User
 
Join Date: Sep 2003
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default

owain,

Well, what can I say? A fantastic, straightforward answer that has solved it for me.

THANKS!!!

I was expecting a nasty afternoon of hacking around in the registry - I am so glad it is not that bad.

Thanks for your help.

James






Similar Threads
Thread Thread Starter Forum Replies Last Post
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
Removing toolbar from ActiveX DLL in VB6 maxpotters Excel VBA 1 September 11th, 2005 08:04 AM
Creation of ActiveX DLL with VB6 james gold VB Components 2 December 28th, 2003 04:02 PM
Can a VB6 ActiveX DLL reference a spreadsheet? james gold Pro VB 6 0 October 2nd, 2003 10:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.