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