Solved

C# Classes Copy Constructors and DLLs

Posted on 2006-11-05
1
158 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
[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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

728 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