In a multi-threaded application written using MFC, you should not pass MFC objects across
thread boundaries. As a general rule, a
thread 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自身提供的对象,不能跨线程访问.
在使用MFC进行多线程应用程序开发时,应当避免跨线程访问MFC对象。一般原则是每个线程只能访问它创建的MFC对象。违反此规则可能会导致运行时出现问题,包括断言失败或程序行为异常。

1932

被折叠的 条评论
为什么被折叠?



