Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with cRegistry 1

Status
Not open for further replies.

minckle

Programmer
Mar 17, 2004
142
0
0
GB
Hi, I've benn given some code to have a look and try to fix if i can, but im pretty new vb. When i run the code i keep getting the below error. does anyone have any ideas? any help or advice welcome

***Error
Runtime error 429
ActiveX component can't create object

***Bit of Code where i get error*******

Dim objRegistry As cRegistry
Set objRegistry = New cRegistry

With objRegistry
.AppName = "Jason Plastics"
.Section = "PolyBag Works Orders"

.Key = "AllowChanges"
End With
**********************************
 
Have you actually set a reference in your project to the cRegistry class (you'd most likely do this from the Project/References menu option)?
 
hi, is cRegistry a pretty standard thing?, it must be registered with the app somewhere because when i " set abc = new " it show cRegistry as an option and it recognises the .AppName bit as well. When i look in Project/References cRegistry is not there unless its within a different named reference.

any thoughts

thanks !!
 
>is cRegistry a pretty standard thing?

No, it is a 3rd party resource. Can't tell you whose, as there are many 3rd party classes called cRegistry. And yes, it may not be called cRegistry in Project/References (it is probably called something like Registry Wrapper Class or similar). If intellisense is working, then it is probably registered OK, but instead has a dependency that is broken.

Are you familiar with the Dependency Walker tool?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top