By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,107 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,107 IT Pros & Developers. It's quick & easy.

looking at a C++ dll with a .NET wrapper. need help.

P: n/a
In Visual Studio I use object viewer to look at a .NET wrapped dll. One
class has this signature:

public abstract class Slider : ODE.Joints.Joint
I don't think the "Slider" class should be abstract so I'm looking at
the source code (c++) to this wrapper and dll.

For those interested the full source code is here:
http://www.thejamesrainenetwork.co.u...et.src.050.zip
Am i taking crazy pills or is the slider class in the following code
not abstract??? Visual Studio from compiled dll says it is.

http://kjo.myip.org/files/SliderJoint.cpp
http://kjo.myip.org/files/SliderJoint.h
I could really use some clarification.

V.

Nov 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
vidalsasoon wrote:
In Visual Studio I use object viewer to [...]


Please refrain from cross-posting this to comp.lang.c++ since it's
off-topic there. Thanks!
Nov 17 '05 #2

P: n/a

"vidalsasoon" <kj*****@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
In Visual Studio I use object viewer to look at a .NET wrapped dll. One
class has this signature:

public abstract class Slider : ODE.Joints.Joint
I don't think the "Slider" class should be abstract so I'm looking at
the source code (c++) to this wrapper and dll.

For those interested the full source code is here:
http://www.thejamesrainenetwork.co.u...et.src.050.zip
Am i taking crazy pills or is the slider class in the following code
not abstract??? Visual Studio from compiled dll says it is.

http://kjo.myip.org/files/SliderJoint.cpp
http://kjo.myip.org/files/SliderJoint.h
I could really use some clarification.

V.


The right NG for VC++ questions is - microsoft.public.dotnet.languages.vc

Willy.


Nov 17 '05 #3

P: n/a
Read past the first sentence.

Nov 17 '05 #4

P: n/a
kj*****@gmail.com wrote:
Read past the first sentence.


'abstract' is not a C++ keyword. Notation ODE.Joints.Joint is not C++
notation (not in the base class section of the class definition anyway).
The code presented is not C++ code. That's why it's OT in comp.lang.c++
Get it?
Nov 17 '05 #5

P: n/a
vidalsasoon wrote:
In Visual Studio I use object viewer to look at a .NET wrapped dll. One
class has this signature:

public abstract class Slider : ODE.Joints.Joint
I don't think the "Slider" class should be abstract so I'm looking at
the source code (c++) to this wrapper and dll.

For those interested the full source code is here:
http://www.thejamesrainenetwork.co.u...et.src.050.zip
Am i taking crazy pills or is the slider class in the following code
not abstract??? Visual Studio from compiled dll says it is.

http://kjo.myip.org/files/SliderJoint.cpp
http://kjo.myip.org/files/SliderJoint.h
I could really use some clarification.


An abstract base class is a class with at least one virtual method which is also denoted
as "=0". Like this:
class SomeClass
{
public:
virtual void somefunc()=0;
};

A .NET *managed* abstract class (which is off topic here), can be defined like this:
__gc __abstract class SomeClass
{

};
--
Ioannis Vranos

http://www23.brinkster.com/noicys
Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.