MFC自身对象的跨线程访问

来源:互联网 发布:淘宝商家入驻怎么 编辑:程序博客网 时间:2024/04/28 09:31

In a multi-threaded application written using MFC, you should not pass MFC objects acrossthread boundaries. As a general rule, athread should access only those MFC objects that it creates. Failure to do so may cause run-time problems including assertions or unexpected program behavior.


即,MFC自身提供的对象,不能跨线程访问.


原创粉丝点击