Solved

C# Classes Copy Constructors and DLLs

Posted on 2006-11-05
1
154 Views
Last Modified: 2010-08-05
Hi,

i have a class <A> which has a copy constructor in it.
I have a DLL that i pass the  class <a> as a parameter to a function.
But i when i try to pass that class in as an object i get the message cannot convert class <A> to class <A>.

Here is the line i think it is breaking on:
           // Run Function
          fRun.Invoke(oClass, new object[] { "Test", "Test", Class <a>, "Test" });

Can anyone help??
0
Comment
Question by:cossy74
1 Comment
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 17878150
My guess would be that you are dealing with 2 different versions of the class ... i.e. the dll is linked to a different version than the one you are trying to pass. I would look at the versions of the objects using reflections to see if this is the case ..

Cheers,

Greg
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now