Hello all,
I would like to develop an ActiveX control to be used for zipping or
unzipping files.
I would also like this control to accomplish this by using a thread,
so that if there are large files to zip or unzip, it won't tie up the main
app. And,
I would also like to accomplish this without having to use any WM_MESSAGES;
so that any app using the control could
simply->GetCtrl->InitCtrl->PopulateParams->Go; without having to know or
declare/define messages. In other words, any new application should be able
to call this control dynamically if necessary.
In the control I was thinking about creating a thread in the
'SuspendedState' and then after populating the thread's necessary parameters,
do a 'ResumeThread'; however, from what I can gather, when the thread is
resumed it goes to a 'Run' function which I can override, but but when
'Run()' finishes, so does the thread?
I would like to be able for the thread to 'Suspend' after doing a file and
wait to be told to either process another file(without having to
re-create,repopulate all params,etc.), but instead just 'Resume' and process
the next file, or if necessary
do a proper ending?
Not sure if there is a way to do this by just using 'SuspendThread()' &
'ResumeThread()'(since the thread ends at the end of the 'Run' function); or
will I have to somehow use WM_MESSAGES to do what I want?
Any suggestions, ideas, examples appreciated....
TIA,
Ray K.