Advertisement Jump to content
Sign in to follow this  

Container autoclip ambient property

This topic is 5182 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am developing an activex component for IE and I am getting an output debug warning message when pThis->GetAmbientProperty(DISPID_AMBIENT_AUTOCLIP, VT_BOOL, &bValue) ? bValue : 0; is executed in STDMETHODIMP COleControl::XOleObject::SetClientSite(LPOLECLIENTSITE pClientSite) method during the creation of the COleControl. The output message is: Warning: constructing COleException, scode = E_FAIL ($80004005). First-chance exception at 0x77e4d756 in dllhost.exe: Microsoft C++ exception: COleException @ 0x010cf4e0. The application works OK, but I want to know how to alter/create the autoclip ambient property in order to get ride of this annoying warning message. I have been searching all over the web how to change this property, but I couldn't find anything useful. Need expertise help. Thanks. [Edited by - hparracho on November 10, 2004 10:23:44 AM]

Share this post

Link to post
Share on other sites
Note, I do believe this is a bug somewhere but just for info...
Not all first chance exceptions mean there is a problem. It just means that an exception was thrown.

Some Methods, like IsBadPtr for instance, throw exceptions as part of their operations and its intentional.

First Chance just means your debugging it and the debugger got hte exception. It will then pass it to the program. If its not handled by the program its passed back to the debugger and becomes a second chance exception, which is a bug because your program hasn't dealt with it.

Sometimes some Active X controls return E_FAIL instread of E_NOTIMPLEMENTED for methods they don't implement. It could be that the active X control your using doesn't support a particular method and its returning the wrong HRESULT.


Share this post

Link to post
Share on other sites
Hello again,

To paulecoyote:

Thanks for the help, but the COleControl::SetClientSite is
invoked after the exception is thrown.

To chollida1:

I tried to alter the AutoClip ambient property, through IDispatch's Invoke method, but IDispatch's returned E_UNEXPECTED.

It looks like that the container (Internet Explorer) doesn't support the autoclip ambient property.

Can this be the origin of the exception?

Thanks for the help.

[Edited by - hparracho on November 10, 2004 6:28:05 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!