Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 28th, 2006, 10:01 AM
Registered User
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 <x.dll>
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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass data to user interface (.NET Setup) saeedahmed C# 2 November 10th, 2005 06:48 AM
VC++ .NET mindyjeanne Visual C++ 1 August 22nd, 2005 02:22 PM
vc.net c2065 davidwong C++ Programming 1 October 8th, 2004 01:36 PM
ASP.NET Design interface bmains VS.NET 2002/2003 4 April 9th, 2004 01:44 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.