B
Bart
Hello Everyone,
I've just converted my code from the old managed c++ to the new c++ CLI
syntax. Some of my inherited event code is no longer compiling.
Here's part of my code...
c#
public delegate void VEPointPickedEventHandler( float x, float y, float
z );
public abstract class EventBridge
{
public abstract event VEPointPickedEventHandler PointPickedInVE;
...
}
c++ header file
public ref class VEEventBridge : public EventBridge
{
public:
virtual event VEPointPickedEventHandler ^ PointPickedInVE;
}
Here's the compiler error...
C4485: 'VEEventBridge:ointPickedInVE::add' : matches base ref class
method 'EventBridge:ointPickedInVE::add', but is not marked 'new' or
'override'; 'new' (and 'virtual') is assumed
This used to work (^ PointPickedInVE used to be *) but now it doesn't
compile. Any ideas?
Thanks
I've just converted my code from the old managed c++ to the new c++ CLI
syntax. Some of my inherited event code is no longer compiling.
Here's part of my code...
c#
public delegate void VEPointPickedEventHandler( float x, float y, float
z );
public abstract class EventBridge
{
public abstract event VEPointPickedEventHandler PointPickedInVE;
...
}
c++ header file
public ref class VEEventBridge : public EventBridge
{
public:
virtual event VEPointPickedEventHandler ^ PointPickedInVE;
}
Here's the compiler error...
C4485: 'VEEventBridge:ointPickedInVE::add' : matches base ref class
method 'EventBridge:ointPickedInVE::add', but is not marked 'new' or
'override'; 'new' (and 'virtual') is assumed
This used to work (^ PointPickedInVE used to be *) but now it doesn't
compile. Any ideas?
Thanks