PDA

Click to See Complete Forum and Search --> : Initializing DLL


Janitor
Aug 16th, 2001, 06:58 PM
I have run into a problem that is probably easily solved had I a proper understanding of COM objects.

I have written an ActiveX DLL to handle some internet query operations. I want to be able to create multiple instances of this class (to speed up the checking process) from another executable.

The problem occurs with regard to synchronization. As I create each instance and instruct it to begin operation, the executable waits until the instance has completed its operations. I want to be able to start the operation, and immediately move on to creating the next instance.

Any help would be appreciated.

Jay

Edneeis
Aug 16th, 2001, 08:24 PM
I have done this before useing an ActiveX EXE instead of DLL because you need the out of process processing. Anyway here is an example the proServer.exe is the ActiveX exe and that is where you would set the functions to asynch processes. Warning too many can get CPU intensive. The TestEXE.exe is what you run and that is the program that will call the Asynch functions.

I hope it helps get you in the write direction. Most of the asynch code stuff is from the MS Coffee sample. Actually you should just check out that it has a whole part on MultiThreading. It should be on the MSDN disc that came with VB.