|
-
Dec 31st, 2003, 05:02 AM
#1
Thread Starter
New Member
Array of ActiveEXE - Is this method possible?
I was hoping that someone here might have some insight into the functionality of activeX EXE's.
I've created an activeX EXE but need to create multiple instances which can all run independently. Can this be done by creating an array of activex EXE like so;
Private mine() As test.Trial 'This is my variable array for the activex exe
ReDim mine(3)
Set mine(0) = New test.Trial 'create them
Set mine(1) = New test.Trial
Set mine(2) = New test.Trial
Set mine(3) = New test.Trial
Does anyone know whether each activex EXE will run in its own thread? Any help is much appreciated.
-
Dec 31st, 2003, 10:33 AM
#2
Fanatic Member
Set your ActiveX EXE's threading model to "Thread per object".
Btw, ActiveX exes not only run in their own thread, but their own *process* - the lifetime of an ax exe isn't limited to the lifetime of the thing that loads it, if, for example it shows a form.
Consider if you need an EXE, or would an AX DLL be more suitable? The calls will certainly be faster; the COM marshaling penalties are eliminated if you don't call x-process/thread.
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
|