PDA

Click to See Complete Forum and Search --> : ActiveX exe - objects as tasks


migielio
Mar 23rd, 2002, 05:42 AM
I'm working on a piece of code in which I like to have one executable in an infinite loop. A timer checks if an individual task needs to be started, and then creates an object of an ActiveX exe which contains the task-class. In this design I am able to trap errors raised by the individual tasks.

I want the never-ending executable to read the parameters (task exe's, priority, etc.) from a (text) file and let the number of objects depend on the number of entries in the parameterfile.

Is there a way to create a variable number of objects with a variable name so that I not need to modify the main executable every time a new task (class) is added?

Edneeis
Mar 23rd, 2002, 02:30 PM
Try using a collection object. I'm not sure I understood you right, but that should be what you are looking for.