How to use interface in VC++.NET
I am new to VC++ and I am having x.dll which is developed in c#.NET . It consists of one interface and other classes. In that interface data member ( constants) defined and some funtion(method) definitions are there.
Now I have developed an application in VC++ for that i am using x.dll and
I have included the x.dll as
using snmp::snmp2:: ..
The compiler shows
error C2844: 'counter' : cannot be a member of interface .
And also I know that
In VC++ interface contains only
pure function definition and property .
And moreover .NET is language indepedent so that i will use the x.dll as reference for my appliction.
And also In C#.NET allows data members are definied in interface but in VC++.NEt it doesn/t allow. Then how can I use this x.dll in my application.
Please advice me how to use the x.dll in my environment.
Any help will be appreciatated.
A river cuts through rock, not because of its power, but because of its persistence.