Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I have a code in VC.
I create its dll in VC6.0
There are some private variables in VC dll.

I have to call the dll in the C#, dll can be called easily;
My requirement is this I want to call the class in the C#, which is in the dll and then create the object of the class and using the functions which are in the dll of VC6.

Kindly guide me how to access the class of vc6 dll in the C# and using the dll by creating its class object in C#.



i have created a dll in which like there is a class
C#
class calculate
{
  //do some functionality

  void func1();
  void func2();
 
};

i create the dll of this class
and call the dll in the c#

i want to create the object of the class in c#
like
C#
class calculateObj = new class();
calculateObj.func1();

as i created a sample create object
my question is this how to create object of class which is in dll of of vc

i want to access the class in c# and then
creating its object and do more operation by accesing class in c#
Posted
Updated 5-Oct-12 2:04am
v4
Comments
[no name] 5-Oct-12 4:28am    
"Private variable", "Call the dll", "call the class"
These words don't make sense.
It is a really bad framed question.

Friend, Add the reference of dll in your solution and then you can access the non-private member of dll. Is this make sense or you like something specific.?

Thanks,
Ambesha
 
Share this answer
 
Comments
lukeer 5-Oct-12 8:03am    
I see no point in univoting this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900