Error : "Object does not match target type."

S

Swappy

hi,

I am working on application in this i am using two files. In first
(consider A) file i am calling the function of other file (consider B). In
that function of file B i am calling the method of DLL.
i.e Method of file A -> Method of file B -> Method of DLL.

But in the file B's method while calling DLL's method it is giving me Error
"Object does not match target type.".

Can someone please tell me why this error is coming & Please tell the
solution for this error.
 
S

Swappy

Mudassar Hassan said:
Can you explain a further the structure of the calling DLL file, i mean
whether it is COM based or not.

Regards,
Mudassar Hassan
http://mudassarhassan.spaces.live.com/

Im running this code
public Boolean IsLayoutOpen(String strLayoutName)
{
Layout Layout_Obj = null;
try
{
Layouts layouts = instrumentation.Layouts; //This call is
through COM object
Layout_Obj = layouts.Item(strLayoutName);

layouts = null;
}
}

This code i am running in a thread but while calling the
instrumnetation.Layouts (it is From COM object) it gives me exception "Object
does not match target type."
Note :- This code is running in the thread of class B (i.e file B).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top