Click here to Skip to main content
12,405,700 members (64,825 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# VisualC++
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
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
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 4-Oct-12 22:15pm
prog786457
Updated 5-Oct-12 2:04am
lukeer16.5K
v4
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
lukeer 5-Oct-12 8:03am
   
I see no point in univoting this.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100