473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unable to cast COM object of type to interface type

Hi,

I am having a problem with interface type. Can anyone please help me in this regard.

I have been working on trying to invoke the Intusoft simulator using C# windows application.

I am able to create an ICAPS object (ICAPSAp.ICAPSAp ICAPS = new ICAPSAp.ICAPSAp();) where ICAPSAp is the namespace, ICAPSAp is the class I am trying to access which inherits the interface IIcaps but I fail in creating a SPICE object (IsSpice4.IsSpice4 SPICE = new IsSpice4.IsSpice4();) where IsSpice4 is the namespace, IsSpice4 is the class I am trying to access which inherits the interface ISpice4. I get this exception (Unable to cast COM object of type 'IsSpice4.IsSpice4Class' to interface type 'IsSpice4.ISpice4'. This operation failed because the QueryInterface call on the COM component for the interface with IID) when I try to run the code.

Thanks in advance,
Prathima
Apr 14 '08 #1
0 1003

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Fidias Gil de Montes | last post by:
In a Distributed Windows application, I receive the following message when the client calls the server: ************** Exception Text ************** System.InvalidCastException: Unable to cast...
5
by: miki | last post by:
Hi all, How can I cast from a string to an object? For example, suppose I have classes as employee, manager, supervisor, director,...I have a user interface that takes a person name, then...
1
by: Reshma Prabhu | last post by:
Hello, I am encountering a problem after installing VS2005 Beta 2. Whenever I try to open a Pocket PC application in Design mode, I am getting following exception:- Unable to cast COM object...
1
by: mminto | last post by:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Manage.Statistics.IManageStats'. This operation failed because the QueryInterface call on the COM component for the...
0
by: hlyall1189 | last post by:
Hi, I recently started upgrading some of my old vs 2003 apps to vs 2005 and used the conversion tool but now i get the following error after building the page. I have typecasted the lines as...
1
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I have a master page and a content page to that master. When I try to work with them I get an inconsistent error of casting ability and it happens irregularly, which means sometimes it can work...
0
by: dhaval321 | last post by:
Hello, Actually i am making plugin in spinfire software..And when i m using threading then the error of "Unable to cast COM object of type 'System.__ComObject' to interface type...
2
by: Bigi | last post by:
Hi, Please help, this has been driving me nuts for nearly 2 days now. This vb6 code works: Public oEng As New ebizEngine Public oMsg As ebizMessage Function EbizGetFromQueue() As String
1
by: Matt Nunnally | last post by:
I have a tiny ASP.net app that references a DLL that I created in vb6 called 'PCCEncryptionLib'. In my development environment running in teh VS Dev server, everything works perfect. I move it to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.