468,505 Members | 1,655 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

Cannot resolve compiler error "A Sealed class cannot be abstract"

I have the following code that I cannot get to compile. I get the error "A
Sealed class cannot be abstract."

[Serializable]
public __value struct DVRAVIFileHeader : public ISerializable
{
double EventID;
String *EventName;
USHORT EventNum;
String *EventType;
String *Location;
ULONG CameraList;

// ISerializable Interface
void GetObjectData(SerializationInfo *info, StreamingContext
*context)
{
}
};

The MSDN help shows that this can be done with an example using IClonable.
If I use IClonable, then it compiles, but for some reason, I cannot use
ISerializable.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
Jul 12 '06 #1
0 1051

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by yanwan | last post: by
9 posts views Thread by Neil Kiser | last post: by
1 post views Thread by Andreas Poller | last post: by
7 posts views Thread by Jeff Lynn | last post: by
3 posts views Thread by Lord0 | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.