Hi,
I support my customer with a VC++ DLL that contains a modal dialog. That DLL has a COM Interface and my customer uses it in VB.
The DLL should have the following behavior: When you call something like ShowDialog() from VB you should see a modal dialog that has the focus and the VB application is blocked until the dialog is ended.
That does work - but only one time. If you call ShowDialog()again the dialog is shown but you can click on the VB application and get the focus there. It is like VB creates the dialog in a new thread and that should't be so.
I can only test it in an C++ Application (I am not familiar with VB) and there it behaves always like a modal dialog and is a blocking call.
Has anybody an idea whats wrong there?
Thnx for help or any useful comments.
Woerns
I support my customer with a VC++ DLL that contains a modal dialog. That DLL has a COM Interface and my customer uses it in VB.
The DLL should have the following behavior: When you call something like ShowDialog() from VB you should see a modal dialog that has the focus and the VB application is blocked until the dialog is ended.
That does work - but only one time. If you call ShowDialog()again the dialog is shown but you can click on the VB application and get the focus there. It is like VB creates the dialog in a new thread and that should't be so.
I can only test it in an C++ Application (I am not familiar with VB) and there it behaves always like a modal dialog and is a blocking call.
Has anybody an idea whats wrong there?
Thnx for help or any useful comments.
Woerns