Windows Develop Bookmark and Share   
 index > Windows Forms General > COM Component Error 80040112
 

COM Component Error 80040112

Hi, I have an error message appearing in VB>Net App I Wrote for the company I work For:

Creating an Instance of the COM Component with the CLSID {648A5600-2C6E-101B-82B6-000000000014} from the IClassFactory failed due to the following error:80040112.

when googling and searching the net for this, I found that it typically means that it is an unlicensed componenet. However, the component is the MSComm Control 6.0 from Visual Basic 6.0 Pro, which we have 10 licenses for,of whichare properly addressed and installed. I am using this library due to speed of communication (C++ or Java is not an option for this proj) so I would appreciate it if someone could help me.

-The Aquanut

Visual Basic 2005 Express SP1
.Net Framework 2.0 (Probably Obvious)
Windows XP Professional SP3
cbanas89  Tuesday, January 06, 2009 12:26 AM
One of the problems of relying on old software is that you cannot get support anymore. You cannot even call MSFT and ask about your problem. You'll need to find a forum where VB6 is still support, I think VBCity.com does.

Hans Passant.
nobugz  Tuesday, January 06, 2009 12:35 PM
Not sure, but instead of that legacy library, you may want to consider using System.Net.Sockets.Socket instead. There are also System.Net.Sockets.TcpListener andSystem.Net.Sockets.TcpClient which are an easy-to-use alternative to using Socket directly. All of these would likely perform as well orbetter than the VB6 library, and they would probably be eaiser to use as well. .NET Framework Networking and Communication would be the best forum to discuss the .NET Sockets namespace (http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/threads/).
BinaryCoder  Tuesday, January 06, 2009 2:01 AM
The only way to get the license installed is to installed Visual Studio 6. The license is only checked at design time, MSComm doesn't have a particularly useful design time interface. Just create the instance and set its properties at runtime.

Nevertheless, relying on such an old ActiveX control is not good for business. The System.IO.SerialPort class is its .NET replacement.

Hans Passant.
nobugz  Tuesday, January 06, 2009 3:26 AM
Thanks, but first off, it is RS232 communication via serial port, so the system.net namespace is not a help. (MSComm could only be used for such for future refrence). Secondly, I am using a component that is used in software that is still sold by the company (I know it's not the best, but I just take the orders). Also, I am declaring it as a class, Using a Com component in design time creates a great many issues.

I am using the MSComm library due to the fact that the app is used to control materials testing machines, so speed is essential, which is why the IO.Ports namespace is aboslutly useless. It takes 1.5 seconds to send and recieve a replay from the machine due to the layers in .Net. due to this much data is lost. However, due to the demands of the customers, we have to use .net.

So, This error did not occur at design time, it occured at runtime on a diffrent machine than it was devloped on. I included the DLL that was copied to the apps directory so everything is refrenced properly. I Emphisis again that I cannot use the .Net component due to communication loss through framework lage time. Also, the serial port object appers to "Miss" Data, which can cause damage to the machine.

The application runs perfectly on the machine it was developed on, and not on the machine it needs to, even with the Library files for VB 6 installed.My question is this:

  • Why does the error occur?
  • How to fix it without the use of alternative librarys? (Unless operating at a Low-level)
  • Really, What the heck is this error? I've used Com components before (Including MSComm and WinSock), and have never had this issue.
cbanas89  Tuesday, January 06, 2009 6:59 AM
One of the problems of relying on old software is that you cannot get support anymore. You cannot even call MSFT and ask about your problem. You'll need to find a forum where VB6 is still support, I think VBCity.com does.

Hans Passant.
nobugz  Tuesday, January 06, 2009 12:35 PM

You can use google to search for other answers

Custom Search

More Threads

• ListView selection disapearing when losing focus.
• Determining the path to a certain directory
• GUI Prototyping and Database design
• To set color in scroll bar
• filling and sending forms in c#
• Chart control available
• Inherited TextBox VS 2005 crashes
• RePaint problem when moving a form over an other one
• Actively Getting the Mouse Coordinates
• AutoScaleMode enumeration?