Click here to Skip to main content
13,043,491 members (50,252 online)
Rate this:
Please Sign up or sign in to vote.
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
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#
class calculateObj = new class();

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
Updated 5-Oct-12 2:04am
Meysam Tolouee 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.
Rate this: bad
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.?

lukeer 5-Oct-12 8:03am
I see no point in univoting this.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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
Web01 | 2.8.170713.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2017
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