Events
-
Hi .. I am a Visual C++ programmer, I never write a program using VBasic, I am trying to use a ocx component, if I want to use this component I need to capture Events .. using C++ I use the follow code BEGIN_EVENTSINK_MAP(CAVVCppDlg, CDialog) ON_EVENT(CAVVCppDlg, IDC_VIDCAP1, 1 /* Frame */, OnFrameVidcap1, END_EVENTSINK_MAP() The Events is captured and execute OnFrameVidCap1 Function How can I do this VB 7 ??
-
Hi .. I am a Visual C++ programmer, I never write a program using VBasic, I am trying to use a ocx component, if I want to use this component I need to capture Events .. using C++ I use the follow code BEGIN_EVENTSINK_MAP(CAVVCppDlg, CDialog) ON_EVENT(CAVVCppDlg, IDC_VIDCAP1, 1 /* Frame */, OnFrameVidcap1, END_EVENTSINK_MAP() The Events is captured and execute OnFrameVidCap1 Function How can I do this VB 7 ??
in ocx controls u define one variable as event. Eg. Private Event myEvent 'where Event is the reserved word and u can also pass parameter and even create parameter list following the reserved word Event then u can raise this event in the code wherever u want by adding foll code RaiseEvent myEvent thats it :cool: Good Luck Buddy