Click here to Skip to main content
15,909,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Auto deletion on reboot Pin
Kharfax3-Feb-06 3:35
Kharfax3-Feb-06 3:35 
GeneralRe: Auto deletion on reboot Pin
Russell'3-Feb-06 4:04
Russell'3-Feb-06 4:04 
AnswerRe: Auto deletion on reboot Pin
David Crow3-Feb-06 3:36
David Crow3-Feb-06 3:36 
AnswerRe: Auto deletion on reboot Pin
Michael Dunn3-Feb-06 12:59
sitebuilderMichael Dunn3-Feb-06 12:59 
GeneralRe: Auto deletion on reboot Pin
Kharfax6-Feb-06 2:39
Kharfax6-Feb-06 2:39 
GeneralRe: Auto deletion on reboot Pin
Michael Dunn7-Feb-06 6:37
sitebuilderMichael Dunn7-Feb-06 6:37 
QuestionHow to Name my threads in the Task Manager? Pin
_B-A-P_3-Feb-06 2:46
_B-A-P_3-Feb-06 2:46 
AnswerRe: How to Name my threads in the Task Manager? Pin
Gary R. Wheeler4-Feb-06 9:14
Gary R. Wheeler4-Feb-06 9:14 
I use the following function to set the name of each thread. Call it at the beginning of your thread function:
void SetThreadName(LPCSTR name)
{
  // Reference: MSDN article "Setting a Thread Name (Unmanaged)"
  //            (search for "SetThreadName")
  struct {
    DWORD    dwType;        // = 0x1000
    LPCSTR   szName;        // thread name
    DWORD    dwThreadID;    // thread ID (-1 for caller)
    DWORD    dwFlags;       // reserved (must be zero)
  } thread_name_info;
  thread_name_info.dwType     = 0x1000;
  thread_name_info.szName     = name;
  thread_name_info.dwThreadID = (DWORD)-1;
  thread_name_info.dwFlags    = 0;
  __try {
    RaiseException(0x406D1388,0,
                   (sizeof(thread_name_info)/sizeof(DWORD)),
                   (const ULONG_PTR *)&thread_name_info);
  }
  __except (EXCEPTION_CONTINUE_EXECUTION) {
  }
}
Note that this works with the Visual Studio debugger. I don't know if it will work with your application ("TaskInfo2003").



Software Zen: delete this;
GeneralRe: How to Name my threads in the Task Manager? Pin
_B-A-P_5-Feb-06 20:16
_B-A-P_5-Feb-06 20:16 
QuestionSavin a bitmap, but Pin
Ivan Cachicatari3-Feb-06 2:39
Ivan Cachicatari3-Feb-06 2:39 
AnswerRe: Savin a bitmap, but Pin
Russell'3-Feb-06 2:43
Russell'3-Feb-06 2:43 
AnswerRe: Savin a bitmap, but Pin
benjymous3-Feb-06 4:30
benjymous3-Feb-06 4:30 
AnswerRe: Savin a bitmap, but Pin
normanS5-Feb-06 19:41
normanS5-Feb-06 19:41 
QuestionDLL with shared memory Pin
Shivaji Patil3-Feb-06 2:18
professionalShivaji Patil3-Feb-06 2:18 
AnswerRe: DLL with shared memory Pin
Kharfax3-Feb-06 3:15
Kharfax3-Feb-06 3:15 
GeneralRe: DLL with shared memory Pin
Shivaji Patil3-Feb-06 20:24
professionalShivaji Patil3-Feb-06 20:24 
GeneralRe: DLL with shared memory Pin
Kharfax6-Feb-06 2:38
Kharfax6-Feb-06 2:38 
GeneralRe: DLL with shared memory Pin
Shivaji Patil7-Feb-06 1:56
professionalShivaji Patil7-Feb-06 1:56 
GeneralRe: DLL with shared memory Pin
Shivaji Patil15-Feb-06 18:50
professionalShivaji Patil15-Feb-06 18:50 
QuestionSet Folder Attributes Pin
P Gibson3-Feb-06 1:43
P Gibson3-Feb-06 1:43 
AnswerRe: Set Folder Attributes Pin
bolivar1233-Feb-06 2:39
bolivar1233-Feb-06 2:39 
GeneralRe: Set Folder Attributes Pin
P Gibson3-Feb-06 4:13
P Gibson3-Feb-06 4:13 
GeneralRe: Set Folder Attributes Pin
Michael Dunn3-Feb-06 13:01
sitebuilderMichael Dunn3-Feb-06 13:01 
Questionhelp needed Pin
V.G3-Feb-06 1:06
V.G3-Feb-06 1:06 
AnswerRe: help needed Pin
Prakash Nadar3-Feb-06 2:47
Prakash Nadar3-Feb-06 2:47 

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.