Warning: Creating dialog from within a COleControlModule application is not a supported scenario - by R. de Vreede

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 376123 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 10/17/2008 4:42:11 AM
Access Restriction Public


This warning in dlgcore.cpp debug is new in VC8 sp1. You do not find in VC6, EVC4 and VC8CE so what is the reason for this. Nowhere in MSDN there is any documentation for the reaon for this warning and the reason for the change in behaviour. You will hit this warning the moment you handle the WM_Create message in your colecontrol and create your own window.
Sign in to post a comment.
Posted by Microsoft on 8/18/2009 at 11:21 AM

Thanks for the report. We added the message box as an alert to the fact that you are using an unsupported scenario. The fact that previous versions did not alert does not mean that they supported the scenario correctly.

Please note that we do try to be general. Some specific scenarios like this are very hard to support in a general fashion and that is why we avoid getting too deep into them.

Pat Brenner
Visual C++ Libraries Development
Posted by R. de Vreede on 11/4/2008 at 1:21 AM
There are a couple of remarks. There is no reason why you shouldn't support it. Neither do you indicate why there is a change in respect to the other 3 VC versions I mentioned,
You should consider also the fact that people do not always need documents and so on. You should not make the mistake that all people write business or web software, I write image processing applications and my demands are quite different. Be general
My active control acts as a camera interface and I need only a progressbar. If you read http://msdn.microsoft.com/en-us/library/ms968501.aspx
you will see no indication whatever about this. As a matter of fact I never read something of this ever. So fundamentally you should explain what problems there could be involved instead of just throwing a warning after so many years of activex development. The warning isn't right also. The control is created in the the COlecontrol not it the COlecontrolmodule which is a different class.
I have used this scenario for a decade now without any problems.
Posted by Microsoft on 11/3/2008 at 4:05 PM

Thanks for the report. Fundamentally, we don't support this scenario. ActiveX controls can't just open dialogs, even with just plain native code. If you need to do that, you need a deeper integration with your host (such as an ActiveX Document).

This trace message was added to alert you to the fact that you are running an unsupported scenario.

Pat Brenner
Visual C++ Libraries Development

Posted by Microsoft on 10/22/2008 at 1:19 AM
We were able to reproduce the issue you are seeing. We are escalating this issue to the product unit who works on that specific feature area. The product team will review this issue and make a decision on whether they will fix it or not for the next release

Posted by Microsoft on 10/21/2008 at 3:21 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com/)