|
From: James on 15 Apr 2008 21:52 I use vb.net; just curious, can you give your treads a unique name at time of creation? "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message news:#PyxzZWXIHA.1132(a)TK2MSFTNGP06.phx.gbl... > 1. Why does it look bad to you? > 2. You can use the Toolhelp API to get all thread IDs > 3. You can use Remote Process Viewer to verify the IDs you get > programmatically. > > > -- > > Chris Tacke, eMVP > Join the Embedded Developer Community > http://community.opennetcf.com > > > > "Wanting2Learn" <Wanting2Learn(a)discussions.microsoft.com> wrote in message > news:8C09B583-6190-45EB-90D1-5453751DEDCD(a)microsoft.com... >>I am trying to get the ID of threads running in my program for debug >> purposes. Is the following code correct: >> >> DWORD dwID = GetCurrentThreadId(); >> CString sTemp; >> sTemp.Format(_T("%d"),dwID); >> TRACE(_T("%s Thread WHILE OK **\n"),sTemp); >> >> I am getting thread IDs for example: >> -1564372882 >> >> This number does not seem correct. >> >> Is this right, if not, how should it be done? >> >> >> Thanks >> >> Harry >> > >
|
Pages: 1 Prev: MS Stack, pairing no services Next: How to select wifi over gprs? |