Solved

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

Posted on 2003-11-29
5
2,420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 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…

726 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