Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: bitblt a bitmap greater than screen resolution, bitmap doesn't display correctly Pin
twing8-Dec-03 13:24
twing8-Dec-03 13:24 
GeneralDirectly Hooking a Function Pin
Xen3h8-Dec-03 10:51
Xen3h8-Dec-03 10:51 
GeneralRe: Directly Hooking a Function Pin
Robert Kuster8-Dec-03 12:37
Robert Kuster8-Dec-03 12:37 
Generalclick over a balloon tip Pin
Member 7044078-Dec-03 10:27
Member 7044078-Dec-03 10:27 
GeneralRe: click over a balloon tip Pin
Peter Molnar9-Dec-03 12:27
Peter Molnar9-Dec-03 12:27 
GeneralRe: click over a balloon tip Pin
Member 7044079-Dec-03 21:05
Member 7044079-Dec-03 21:05 
GeneralRe: click over a balloon tip Pin
Peter Molnar10-Dec-03 1:18
Peter Molnar10-Dec-03 1:18 
GeneralI want a function called on thread exit. Pin
8-Dec-03 9:39
suss8-Dec-03 9:39 
I am trying to create my first a multi-threaded dev-studio library project.

Is there a way to register a thread "cleanup" function that gets called each time a thread exits?

Here are some constraints for any suggestions you provide me:

1) I think I want my library statically linked. I see that for DLLs, DllMain() gets called each time a thread "detaches". This might be an appropriate place for me to stick my clean-up code if I were writing a DLL, but I don't think I want a DLL.

2) I don't want users of my library to have to write any code to get the cleanup function called. It should all be completely hidden.

3) I really only need my cleanup function executed for exiting threads that previously used particular functions from my library. So I do have a place to register the thread-exit function if there is a way to do that at all.

Thanks much for your help.

Matt Busche
GeneralRe: I want a function called on thread exit. Pin
Robert Kuster8-Dec-03 13:14
Robert Kuster8-Dec-03 13:14 
GeneralRe: I want a function called on thread exit. Pin
Matthew Busche8-Dec-03 23:44
Matthew Busche8-Dec-03 23:44 
GeneralRe: I want a function called on thread exit. Pin
Peter Molnar9-Dec-03 12:21
Peter Molnar9-Dec-03 12:21 
GeneralRe: I want a function called on thread exit. Pin
Matthew Busche11-Dec-03 10:44
Matthew Busche11-Dec-03 10:44 
GeneralRe: I want a function called on thread exit. Pin
Matthew Busche11-Dec-03 11:08
Matthew Busche11-Dec-03 11:08 
GeneralERROR Pin
mitil203904823048-Dec-03 9:26
mitil203904823048-Dec-03 9:26 
GeneralRe: ERROR Pin
John M. Drescher8-Dec-03 9:30
John M. Drescher8-Dec-03 9:30 
GeneralRe: ERROR Pin
mitil203904823048-Dec-03 9:34
mitil203904823048-Dec-03 9:34 
GeneralRe: ERROR Pin
John M. Drescher8-Dec-03 9:38
John M. Drescher8-Dec-03 9:38 
GeneralRe: ERROR Pin
Christian Graus8-Dec-03 9:40
protectorChristian Graus8-Dec-03 9:40 
GeneralRe: ERROR Pin
John M. Drescher8-Dec-03 9:45
John M. Drescher8-Dec-03 9:45 
GeneralRe: ERROR Pin
Christian Graus8-Dec-03 9:38
protectorChristian Graus8-Dec-03 9:38 
GeneralRe: ERROR Pin
mitil203904823048-Dec-03 9:41
mitil203904823048-Dec-03 9:41 
GeneralRe: ERROR Pin
Christian Graus8-Dec-03 9:42
protectorChristian Graus8-Dec-03 9:42 
GeneralRe: ERROR Pin
mitil203904823048-Dec-03 9:45
mitil203904823048-Dec-03 9:45 
GeneralRe: ERROR Pin
mitil203904823048-Dec-03 9:52
mitil203904823048-Dec-03 9:52 
GeneralRe: ERROR Pin
Christian Graus8-Dec-03 10:57
protectorChristian Graus8-Dec-03 10:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.