c# - VB.NET Class implements event -
i don't see did wrong.
the ide tells me
"class 'capturedevice' needs implement event 'event newframe(sender object, e cameraeventargs) 'ivideosource'.
the class 'capturedevice' looks this:
imports system.drawing imports system.drawing.imaging imports system.io imports system.threading imports system.runtime.interopservices imports system.net imports dshow imports dshow.core namespace videosource public class capturedevice implements ivideosource private source string private m_userdata object = nothing private m_framesreceived integer private thread thread = nothing private stopevent manualresetevent = nothing ' new frame event ' public event newframe cameraeventhandler '(...)' end class end namespace
my class 'ivideosource' looks this:
namespace videosource 'ivideosource interface' public interface ivideosource event newframe cameraeventhandler end interface end namespace
does see went wrong or may missing?
thank help!
you need add implements
clause, so, like:
public event newframe cameraeventhandler implements ivideosource.newframe
vb.net not have c#'s implicit interface implementation.
Comments
Post a Comment