Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Events

Events

Scheduled Pinned Locked Moved Visual Basic
c++question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RaphaelBr
    wrote on last edited by
    #1

    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 ??

    L 1 Reply Last reply
    0
    • R RaphaelBr

      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 ??

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups