Click here to Skip to main content
15,904,348 members
Home / Discussions / C#
   

C#

 
AnswerRe: desrialization fail due to xsi:type Pin
Peace ON19-Jul-10 23:31
Peace ON19-Jul-10 23:31 
GeneralRe: desrialization fail due to xsi:type Pin
jainiraj20-Jul-10 0:35
jainiraj20-Jul-10 0:35 
AnswerRe: desrialization fail due to xsi:type Pin
Peace ON20-Jul-10 1:17
Peace ON20-Jul-10 1:17 
GeneralRe: desrialization fail due to xsi:type Pin
jainiraj20-Jul-10 2:06
jainiraj20-Jul-10 2:06 
AnswerAlmost always a namespace issue Pin
Ennis Ray Lynch, Jr.20-Jul-10 3:23
Ennis Ray Lynch, Jr.20-Jul-10 3:23 
GeneralRe: Almost always a namespace issue Pin
jainiraj20-Jul-10 20:37
jainiraj20-Jul-10 20:37 
GeneralRe: Almost always a namespace issue Pin
Ennis Ray Lynch, Jr.21-Jul-10 3:22
Ennis Ray Lynch, Jr.21-Jul-10 3:22 
GeneralRe: Almost always a namespace issue Pin
jainiraj21-Jul-10 19:45
jainiraj21-Jul-10 19:45 
QuestionCompare 2 DataTables and insert differences into first table Pin
norjali19-Jul-10 22:21
norjali19-Jul-10 22:21 
AnswerRe: Compare 2 DataTables and insert differences into first table Pin
Peace ON19-Jul-10 22:35
Peace ON19-Jul-10 22:35 
AnswerRe: Compare 2 DataTables and insert differences into first table Pin
PIEBALDconsult20-Jul-10 3:31
mvePIEBALDconsult20-Jul-10 3:31 
QuestionHow to open a word document from C# application Pin
seeism19-Jul-10 22:04
seeism19-Jul-10 22:04 
AnswerRe: How to open a word document from C# application Pin
Luc Pattyn19-Jul-10 22:57
sitebuilderLuc Pattyn19-Jul-10 22:57 
GeneralRe: How to open a word document from C# application Pin
seeism20-Jul-10 0:26
seeism20-Jul-10 0:26 
GeneralRe: How to open a word document from C# application Pin
seeism20-Jul-10 0:44
seeism20-Jul-10 0:44 
AnswerRe: How to open a word document from C# application Pin
Peace ON19-Jul-10 23:04
Peace ON19-Jul-10 23:04 
GeneralRe: How to open a word document from C# application Pin
seeism20-Jul-10 0:27
seeism20-Jul-10 0:27 
AnswerRe: How to open a word document from C# application Pin
Luc Pattyn20-Jul-10 0:43
sitebuilderLuc Pattyn20-Jul-10 0:43 
GeneralRe: How to open a word document from C# application Pin
seeism20-Jul-10 0:49
seeism20-Jul-10 0:49 
GeneralRe: How to open a word document from C# application Pin
Luc Pattyn20-Jul-10 1:12
sitebuilderLuc Pattyn20-Jul-10 1:12 
GeneralRe: How to open a word document from C# application Pin
seeism20-Jul-10 1:25
seeism20-Jul-10 1:25 
GeneralRe: How to open a word document from C# application Pin
seeism20-Jul-10 19:00
seeism20-Jul-10 19:00 
QuestionError Getting Processor Id Pin
PDTUM19-Jul-10 13:44
PDTUM19-Jul-10 13:44 
Gentleman,

I wrote an application that needs to get the Processor ID from the OS. I have been using it exactly as designed below for the last several years on Win XP and Vista. A recent user of this app reported to me that he is getting an error that would indicate that the Processor Id is not being returned as designed. Now, the only difference that I know of is that he is using Windows 7. Question: is there any reason why the Management Class call that I have here will not work on Win 7?...or should I look for a different problem elsewhere? Thank you in advance...Pat

public string GetProcId()
        {
            ManagementClass mc = new ManagementClass("Win32_Processor");
            ManagementObjectCollection moc = mc.GetInstances();
            foreach (ManagementObject mo in moc)
            {
                if (cpuSerial == string.Empty || cpuSerial == null)
                {
                    // only return cpuSerial from first CPU
                    cpuSerial = mo.Properties["ProcessorId"].Value.ToString();
                    cpuSerial = cpuSerial.ToUpper().Trim();
                }
            }
            return cpuSerial;
        } 

AnswerRe: Error Getting Processor Id Pin
Luc Pattyn19-Jul-10 14:20
sitebuilderLuc Pattyn19-Jul-10 14:20 
GeneralRe: Error Getting Processor Id Pin
PDTUM19-Jul-10 16:50
PDTUM19-Jul-10 16:50 

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.