Solved

C# Classes Copy Constructors and DLLs

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Diagnostics with Net and Net.Sockets 2 33
Sent email using Shared Mailbox from outlook in C# 5 51
Problem!!! 8 37
abstract class C# 1 31
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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