Where I heve to set thread In my application??
-
Hi All,, I am using MFC Application with VS 2005. In my application I am capturing the current screen by creating virtual window(by CreateWindow()) and apply hooks to that Window. In hooks I take the perticuler region which is going to be updated and convert it into the rectangle and send these messages to the my application. In My MFC class I store these all rectangles into the list. And I retrived these list and capture from screen (using bitmap)with that perticular rectangle and compress that rectangle using JPEG. Here I used Hooks as DLL in other project in my current workspace, so it gives me continues messages with that rectangles. So , How can I set thread ( or Critical section or mutex) in my application and plz suggest me where i have to create Thread or on which method or class. I am very sorry for very large description but it is good to understand. Thanks in Advance.
Ashish Bhatt
-
Hi All,, I am using MFC Application with VS 2005. In my application I am capturing the current screen by creating virtual window(by CreateWindow()) and apply hooks to that Window. In hooks I take the perticuler region which is going to be updated and convert it into the rectangle and send these messages to the my application. In My MFC class I store these all rectangles into the list. And I retrived these list and capture from screen (using bitmap)with that perticular rectangle and compress that rectangle using JPEG. Here I used Hooks as DLL in other project in my current workspace, so it gives me continues messages with that rectangles. So , How can I set thread ( or Critical section or mutex) in my application and plz suggest me where i have to create Thread or on which method or class. I am very sorry for very large description but it is good to understand. Thanks in Advance.
Ashish Bhatt
-
Hi All,, I am using MFC Application with VS 2005. In my application I am capturing the current screen by creating virtual window(by CreateWindow()) and apply hooks to that Window. In hooks I take the perticuler region which is going to be updated and convert it into the rectangle and send these messages to the my application. In My MFC class I store these all rectangles into the list. And I retrived these list and capture from screen (using bitmap)with that perticular rectangle and compress that rectangle using JPEG. Here I used Hooks as DLL in other project in my current workspace, so it gives me continues messages with that rectangles. So , How can I set thread ( or Critical section or mutex) in my application and plz suggest me where i have to create Thread or on which method or class. I am very sorry for very large description but it is good to understand. Thanks in Advance.
Ashish Bhatt
ashishbhatt wrote:
but it is good to understand.
Yes it is. Therefore it would be good for you to understand threads and threading issues before you develop a multi-threading application yes? There are sources on the internet you can use, try google, I also recommend the book Advanced Windows by Richter.