Home > Back-end >  Urgent, could you tell me how to use multithreading in the DLL
Urgent, could you tell me how to use multithreading in the DLL

Time:10-10

Now my situation is like that, I use the DLL a process to a program after the operation, a pop-up window is mode dialog box, in such cases it would block at the back of the operation,
Excuse me what method can pop up the form and then on the back of the operation?


Hurry hurry hurry hurry!!!!!!

CodePudding user response:

Do you want the popup window blocking operation? Or don't block the operation?

CodePudding user response:

reference 1st floor m617105 response:
do you want the popup window blocking operation? Or don't block the operation?

Don't block, that is, the form after the pop-up, so those operations behind
Because I am a subsequent operation is the control of the popup window!

CodePudding user response:

Or don't use modal, or at the back of the operation with the method of thread,

CodePudding user response:

reference m617105 reply: 3/f
or don't use mode, or the back of the operation with the method of thread,

I really want to use thread, but use threads in a DLL and use a slightly different in EXE
Don't know how to use in a DLL, give advice or comments please

CodePudding user response:

It is written in two threads,
A is used to control, whether ShowModal,
Another judgment first, whether ShowModal, if it is, what what is processing,

CodePudding user response:

MyThread. Resume;
Pop-up mode dialog box;

CodePudding user response:

As long as not in DLL entry point open thread, basic all right,