CSActiveX hangs legacy VC++ app

Jul 6, 2010 at 3:35 PM

We have a legacy VC++ app that hosts ActiveX controls.

This seems fine with "real" ActiveX controls created with VB6.

However, when I try to use the sample CSActiveX the control appears ok, but the whole application hangs if I click on the button or textBox.

Any bright ideas?

I don't know a lot about COM, or the legacy app, but can dig around the code if someone tells me what to look for.

Jul 8, 2010 at 7:59 AM

I have since discovered the following sequence:

1) User clicks on the C# user control

2) The WndProc method is called on the C# user control

3) The method finishes ok, and execution returns to the legacy C++ app

4) This hangs in the main message loop, on the next call to IsDialogMessage, which gets stuck in an infinite loop (CPU goes to max)

Please help! This is a key part of my future design, and I can't go further until I know it works.