|
-
September 30th, 2011, 02:03 PM
#3
Re: Accessing MFC-Objects from other threads than the primary
Are there any general restrictions for MFC- or Win32-Objects when being accessed from other that the main thread?
For MFC window objects, yes there is. And no there's not for Win32 objects. MFC window object is restricted to be used only in the thread it was created in, and therefore must not be called across threads. However, window handle wrapped by the MFC object can be used across threads without any limitation.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|