Solved

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

Posted on 2003-11-29
5
2,416 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
ID: 9846627
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
ID: 9847422
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
ID: 9848149
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
ID: 9848975
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
ID: 9859795
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Poor Man's .NET Framework Certification 2 56
maro to copy and paste from one worksheet to another based on a condition 11 53
Help me. 3 54
Website Monitoring Tools 3 16
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

786 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