Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,413 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,430 people online right now. Registration is fast and FREE... Join Now!




Class Not Registered

 
Reply to this topicStart new topic

Class Not Registered, msg shows up on PCs that doesn't have VB installed

vbnetskywalker
14 Oct, 2008 - 03:37 PM
Post #1

D.I.C Head
**

Joined: 8 Jun, 2008
Posts: 53



Thanked: 2 times
My Contributions
hi every one

I've made a game in VB6 called "Tetris" , who doesn't know it ?

in some part of it I used a control of the "Data" data type to validate the valid keys user chooses for commands ( GoLeft , GoRight , Right Rotate ........etc) from a DataBase
any way ..........
it works great , but when it comes to other PCs , it breaks when the form containing it is loaded , with a msg says "Class Not Registered" with not being able to navigate the DataBase........

here is the msg

I use "Setup Factory" for the setup file
I thought it's a Classes Registration issue so even though I've done it I insured that I checked this CheckBox On
Here it is

but the msg still shows up

--------------------------------
Notes :
1 - it worked on Vista with some colors changes (I put special codes that are not needed for Xp just to handle them)
2 - I have Visual Studio 2005 installed on that vista (I think this is why it worked ,sorry I didn't try it on an empty vista)
3 - I tried the "Package & Deployment Wizard" the same msg shows up and game still breaks
4 - I made this game about 2 years ago , that time I was so so so new to these kinda stuff ,
I tried to solve it , but I couldn't so I left it for a later time ,
now after I got better , it's time to think about it again , but I failed again ( I tried , and tried.... but .........)

-----------------------------
any idea please ,
I can send you the code if you need (you're not gonna mock on it right ?? I was really really newbie , I mock on some codes myself , there are really stupid ways to do easy things)

Regards
vbnetskywalker

User is offlineProfile CardPM
+Quote Post

thava
RE: Class Not Registered
14 Oct, 2008 - 06:36 PM
Post #2

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 442



Thanked: 18 times
Dream Kudos: 50
My Contributions
did you add that database seperately to your setup and place the correct position i think this will solve the peoblem

oh!!!! some dll(reference ) are not add in this project i.e. if a dll needs another dll it might not add it default we should add it seperately check for that kind of dll reference
User is offlineProfile CardPM
+Quote Post

vbnetskywalker
RE: Class Not Registered
15 Oct, 2008 - 11:26 PM
Post #3

D.I.C Head
**

Joined: 8 Jun, 2008
Posts: 53



Thanked: 2 times
My Contributions
thanks for answering

yes I sent the database file separately with the setup file in the right place

and in the setup operation I saw directx dll is copying I saw mci dll is copying but I didn't see the databases dll references (I know some of them when I install other VB6 apps that I didn't make )


How do I find the exact needed dlls to send?
I thought Setup Factory does it automatically when I Check On that CheckBox I mentioned

Regards
vbnetskywalker
User is offlineProfile CardPM
+Quote Post

thava
RE: Class Not Registered
16 Oct, 2008 - 02:02 AM
Post #4

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 442



Thanked: 18 times
Dream Kudos: 50
My Contributions
did you use any custom controls then add that dll

to find the dll that are used in your program there's a way open the frm file in the notepad on the top there are some dlls which vb is separate from Vb default dlls try to find those dll's are used in your setup

like this one for richtextbox

Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "richtx32.ocx"

careful on handling it note down the ocx' and dlls referred

this is the one way that i found the missed dll's if there is a lot of form then it's not easy to do it

'******Edited********
Wait for some time
some one give you a better idea to found the dlls in your project or else try the above one, i am also eager to find the dlls in another Way

This post has been edited by thava: 16 Oct, 2008 - 02:27 AM
User is offlineProfile CardPM
+Quote Post

vbnetskywalker
RE: Class Not Registered
16 Oct, 2008 - 04:53 PM
Post #5

D.I.C Head
**

Joined: 8 Jun, 2008
Posts: 53



Thanked: 2 times
My Contributions
thanks for this tip thava ,
this leads me to some thing I didn't think about yet ,
I will check it out and tell you .....
till then ......... good bye ...

vbnetskywalker
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:40PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month