Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Electronic7527-Jun-07 5:31
Electronic7527-Jun-07 5:31 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Zoltan Balazs27-Jun-07 5:37
Zoltan Balazs27-Jun-07 5:37 
QuestionRe: small but high quality(color deph and pixel) toolbar? Pin
Electronic7527-Jun-07 6:01
Electronic7527-Jun-07 6:01 
AnswerRe: small but high quality(color deph and pixel) toolbar? Pin
Zoltan Balazs27-Jun-07 6:18
Zoltan Balazs27-Jun-07 6:18 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
led mike27-Jun-07 6:22
led mike27-Jun-07 6:22 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Mark Salsbery27-Jun-07 6:32
Mark Salsbery27-Jun-07 6:32 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Electronic7527-Jun-07 7:28
Electronic7527-Jun-07 7:28 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Mark Salsbery27-Jun-07 7:56
Mark Salsbery27-Jun-07 7:56 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Electronic7527-Jun-07 8:17
Electronic7527-Jun-07 8:17 
GeneralRe: small but high quality(color deph and pixel) toolbar? [modified] Pin
Mark Salsbery27-Jun-07 9:52
Mark Salsbery27-Jun-07 9:52 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Electronic7527-Jun-07 10:52
Electronic7527-Jun-07 10:52 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Mark Salsbery27-Jun-07 11:20
Mark Salsbery27-Jun-07 11:20 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Electronic7527-Jun-07 12:27
Electronic7527-Jun-07 12:27 
GeneralRe: small but high quality(color deph and pixel) toolbar? Pin
Mark Salsbery27-Jun-07 12:32
Mark Salsbery27-Jun-07 12:32 
QuestionDetect Code page using IMultiLanguage2 Interface (MS VC++ (Win32)) Pin
bikas_suman8327-Jun-07 3:47
bikas_suman8327-Jun-07 3:47 
AnswerRe: Detect Code page using IMultiLanguage2 Interface (MS VC++ (Win32)) Pin
bikas_suman8328-Jun-07 1:45
bikas_suman8328-Jun-07 1:45 
QuestionHow to test the network status Pin
kcynic27-Jun-07 3:24
kcynic27-Jun-07 3:24 
AnswerRe: How to test the network status Pin
Moak29-Jun-07 1:20
Moak29-Jun-07 1:20 
QuestionRelease the project Pin
kcynic27-Jun-07 3:13
kcynic27-Jun-07 3:13 
AnswerRe: Release the project Pin
aatul27-Jun-07 4:14
aatul27-Jun-07 4:14 
GeneralRe: Release the project Pin
kcynic27-Jun-07 23:37
kcynic27-Jun-07 23:37 
AnswerRe: Release the project Pin
sheshidar27-Jun-07 18:19
sheshidar27-Jun-07 18:19 
GeneralRe: Release the project Pin
kcynic27-Jun-07 23:42
kcynic27-Jun-07 23:42 
QuestionThread debug Pin
RichardS27-Jun-07 2:59
RichardS27-Jun-07 2:59 
AnswerRe: Thread debug Pin
BadKarma27-Jun-07 3:35
BadKarma27-Jun-07 3:35 
I think so, you could give your thread a meaningful name.

Use the following code snippit.
{
  //
  //  internal type
  //
  typedef struct tagTHREADNAME_INFO
  {
     DWORD dwType; // Must be 0x1000.
     LPCSTR szName; // Pointer to name (in user addr space).
     DWORD dwThreadID; // Thread ID (-1=caller thread).
     DWORD dwFlags; // Reserved for future use, must be zero.
  } THREADNAME_INFO;

  //
  //  internal const
  //
  const DWORD MS_VC_EXCEPTION = 0x406D1388;

  THREADNAME_INFO thrdInfo;
   thrdInfo.dwType = 0x1000;
  thrdInfo.szName = "The Name";
  thrdInfo.dwThreadID = 0xffffffff;
  thrdInfo.dwFlags = 0;

  __try
  {
    RaiseException( MS_VC_EXCEPTION, 0, sizeof(thrdInfo)/sizeof(DWORD), (DWORD*)&thrdInfo );
  }
  __except(EXCEPTION_CONTINUE_EXECUTION)
  {
  }
}

I use this technique to simplify the debugging for My CWinThread derived, but i'm confident that it
should work for Worker threads as well. At low lever there isn't a difference.

Hope that this helps.

codito ergo sum

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.