Click here to Skip to main content
15,917,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: get ComboBox item data Pin
RChin16-Jun-04 23:07
RChin16-Jun-04 23:07 
GeneralRe: get ComboBox item data Pin
RChin16-Jun-04 23:17
RChin16-Jun-04 23:17 
GeneralAdding menu-item in window's right click menu Pin
Anonymous16-Jun-04 16:46
Anonymous16-Jun-04 16:46 
GeneralRe: Adding menu-item in window's right click menu Pin
Indivara16-Jun-04 17:59
professionalIndivara16-Jun-04 17:59 
GeneralLose focus window... Pin
uniqueworld16-Jun-04 16:46
uniqueworld16-Jun-04 16:46 
Generalglobal array pls pls help Pin
Anonymous16-Jun-04 16:24
Anonymous16-Jun-04 16:24 
GeneralRe: global array pls pls help Pin
nguyenvhn16-Jun-04 17:14
nguyenvhn16-Jun-04 17:14 
GeneralRe: global array pls pls help Pin
John R. Shaw17-Jun-04 13:03
John R. Shaw17-Jun-04 13:03 
Generaldll function calls Pin
Member 19033516-Jun-04 14:54
Member 19033516-Jun-04 14:54 
GeneralRe: dll function calls Pin
palbano16-Jun-04 16:08
palbano16-Jun-04 16:08 
GeneralRe: dll function calls Pin
Member 19033516-Jun-04 16:20
Member 19033516-Jun-04 16:20 
Generalplotting cpu and mem consumption Pin
vvim16-Jun-04 14:32
vvim16-Jun-04 14:32 
GeneralRe: plotting cpu and mem consumption Pin
Antony M Kancidrowski17-Jun-04 1:50
Antony M Kancidrowski17-Jun-04 1:50 
GeneralRe: plotting cpu and mem consumption Pin
vvim18-Jun-04 2:25
vvim18-Jun-04 2:25 
GeneralMenubar problem Pin
group716-Jun-04 13:04
group716-Jun-04 13:04 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 20:51
Anthony_Yio16-Jun-04 20:51 
GeneralRe: Menubar problem Pin
group716-Jun-04 22:43
group716-Jun-04 22:43 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 23:08
Anthony_Yio16-Jun-04 23:08 
Questioninstance name from thread id? Pin
ben216-Jun-04 12:04
ben216-Jun-04 12:04 
AnswerRe: instance name from thread id? Pin
Blake Miller16-Jun-04 13:21
Blake Miller16-Jun-04 13:21 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:02
ben216-Jun-04 15:02 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:12
ben216-Jun-04 15:12 
sorry it is giving error for except.
I included windows.h, excpt.h..still
//<br />
// Usage: SetThreadName (-1, "MainThread");<br />
//<br />
typedef struct tagTHREADNAME_INFO<br />
{<br />
   DWORD dwType; // must be 0x1000<br />
   LPCSTR szName; // pointer to name (in user addr space)<br />
   DWORD dwThreadID; // thread ID (-1=caller thread)<br />
   DWORD dwFlags; // reserved for future use, must be zero<br />
} THREADNAME_INFO;<br />
<br />
void SetThreadName( DWORD dwThreadID, LPCSTR szThreadName)<br />
{<br />
   THREADNAME_INFO info;<br />
   info.dwType = 0x1000;<br />
   info.szName = szThreadName;<br />
   info.dwThreadID = dwThreadID;<br />
   info.dwFlags = 0;<br />
<br />
   __try<br />
   {<br />
      RaiseException( 0x406D1388, 0, sizeof(info)/sizeof(DWORD), (DWORD*)&info );<br />
   }<br />
except(EXCEPTION_CONTINUE_EXECUTION)<br />
{<br />
}<br />
}

GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:17
ben216-Jun-04 15:17 
GeneralRe: instance name from thread id? Pin
Blake Miller16-Jun-04 15:50
Blake Miller16-Jun-04 15:50 
GeneralC++ Arrow Keys Pin
c. s.16-Jun-04 11:55
c. s.16-Jun-04 11:55 

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.