Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modal dialog in a VC++ DLL

Status
Not open for further replies.

Woerns

Programmer
Feb 12, 2002
3
DE
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
 
You might want to try FORUM207 or FORUM708.


Wil Mead
wmead@optonline.net

 
@Wil Mead
Yes, Forum708 is a better place for that and I have put this question in there now.
Forum207 is C++ and I think it is a problem in VB.
Thnx
Woerns
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top