Solved

Active x component cannot create object ???????????????

Posted on 2003-11-29
5
2,408 Views
Last Modified: 2013-12-20
Hello Experts ,
    I am geting a error message after executing  .exe file(Active x component can not create object) .Third party DLL named as QPrinter.dll is used in my project. I registered this dll file using regsvr32.exe . I checked all dependencies for Qprinter.dll file but none of the dependent file is missing . Interesting thing is that , this .exe works fine on my computer and my friends computer.But on other PC's i m getting this error message (Active x component cannot create object).
    This Printer Control is downloaded from www.qbdsoftware.co.uk/moth . Version of this printer control is 2.0.0 .
    When i registered this control using Regsvr32.exe , Regsvr32 shows the DLL registraion is successful .
    one more thing , i also tried to unregistering the DLL as Regsvr32 /u Qprinter.dll. AND registered it again but the     problem remains same.
   
    What is the problem ?
    Can u please help me ?
0
Comment
Question by:asdddd
5 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 100 total points
Comment Utility
The problem is definitely with the registration, but can be caused by several factors.

1) As you recognized, there may be some missing dependency.  What I suggest is to start with the VB Package & Deployment wizard to identify all dependencies since the problem MAY be on your app and not the dll!

2) Some dlls do not properly register as expected.  Unregistering and reregistering may solve this, but it seems you already tried this.

3) Sometimes the dll is located in multiple places and the registration is pointing to the wrong one.  Unregistering does not necessarily unregister the proper one, in which case you may need to explicitly enter the entire path to the "other" dll, then register the new/updated/correct one.  So do a system search for that dll and unregsiter all of them (understanding that there may be consequences if a different dll with the same name is in use by another app!)

0
 
LVL 39

Expert Comment

by:appari
Comment Utility
probably MDAC version is different on the test system. make sure the version of MDAC is same on both the systems.

to check whats the version of MDAC installed on th system go through this link
http://www.tek-tips.com/gfaqs.cfm/pid/222/fid/3501
0
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
If the component was a data dll, I'd probably agree that it might be MDAC, but by the name, QPrinter.dll, I'd be surprised it that were the cause.

However, the MDAC upgrade is still worth implementing with the installation.
0
 
LVL 2

Expert Comment

by:rekhasri
Comment Utility
Hi,

the problem would be with the dependencies.

u can try this tool, which will give u a list of all dependencied for an exe..

take a look...

http://www.downseek.com/download/4139.asp

0
 

Author Comment

by:asdddd
Comment Utility
Hello Experts ,
         Frist of all i would like to thanks to all of you for the various solutions for my problem.

I am going to accept answer from "rspahitz" B'coz , the third solutions solves my problem.
Thanks for "appari" for providing me useful link for Checking version of "MDAC ".
"rekhasri" also provided useful link for checking dependencies for .exe .But i think it can be done using Microsof's Dependecy walker.


0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now