我撰写了几件ATL COM物体,这些物体在我的C++范围内用于拖累和空投。 建筑应用。
Due to reasons beyond my control, my application still has active COM objects when the user attempts to close it. This is because other COM clients that use my objects seem to cache my COM objects and don t release them - as a result, my COM objects still have a reference count greater than zero when the user clicks the "X" to close my program. This results in the user getting an unfriendly message like this:
I would like my application to silently terminate and not ask the user this annoying question.
我如何压制这一信息?