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