|
-
Mar 23rd, 2002, 06:42 AM
#1
Thread Starter
New Member
ActiveX exe - objects as tasks
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?
-
Mar 23rd, 2002, 03:30 PM
#2
Try using a collection object. I'm not sure I understood you right, but that should be what you are looking for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|