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. object arrays

object arrays

Scheduled Pinned Locked Moved Visual Basic
c++comhelpquestion
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.
  • T Offline
    T Offline
    Tim Rymer
    wrote on last edited by
    #1

    how do you dynamically make arrays of ATL Simple Objects (that are not controls) "WithEvents" too? It wont let you write: Dim WithEvents MyObject() As MYFUNKYLib.Object so what do you do? we NEED events from my object I made in VC++ and we NEED it to be a Simple Object and not a control (it has to do with getting Multithreading in VB and there isnt any other way to do it from what everyone has said) Please HelP!!!!!!! ~Timothy T. Rymer www.digipen.edu tim.xpertz.com

    P 1 Reply Last reply
    0
    • T Tim Rymer

      how do you dynamically make arrays of ATL Simple Objects (that are not controls) "WithEvents" too? It wont let you write: Dim WithEvents MyObject() As MYFUNKYLib.Object so what do you do? we NEED events from my object I made in VC++ and we NEED it to be a Simple Object and not a control (it has to do with getting Multithreading in VB and there isnt any other way to do it from what everyone has said) Please HelP!!!!!!! ~Timothy T. Rymer www.digipen.edu tim.xpertz.com

      P Offline
      P Offline
      Paul M Watt
      wrote on last edited by
      #2

      You have to Create the object like this:

      Dim WithEvents Scriptlet1 as MyScriptlet
      Set Scriptlet1 = CreateObject("MyScriptlet")
      Sub Scriptlet1_namechanged
      MsgBox("Value of name property changed")
      End Sub


      Build a man a fire, and he will be warm for a day
      Light a man on fire, and he will be warm for the rest of his life!

      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