Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
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 
Questionnode hottracking Pin
xilefxilef19-Jul-10 12:39
xilefxilef19-Jul-10 12:39 
Questionpass resource name as variable Pin
Jassim Rahma19-Jul-10 12:21
Jassim Rahma19-Jul-10 12:21 
AnswerRe: pass resource name as variable Pin
Luc Pattyn19-Jul-10 12:40
sitebuilderLuc Pattyn19-Jul-10 12:40 
QuestionCreating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 9:25
roman_s19-Jul-10 9:25 
AnswerRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 9:36
sitebuilderLuc Pattyn19-Jul-10 9:36 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 9:47
roman_s19-Jul-10 9:47 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 9:58
sitebuilderLuc Pattyn19-Jul-10 9:58 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 10:52
roman_s19-Jul-10 10:52 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 11:22
sitebuilderLuc Pattyn19-Jul-10 11:22 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
DaveyM6919-Jul-10 10:02
professionalDaveyM6919-Jul-10 10:02 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s19-Jul-10 10:46
roman_s19-Jul-10 10:46 
AnswerRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn19-Jul-10 11:15
sitebuilderLuc Pattyn19-Jul-10 11:15 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
roman_s20-Jul-10 3:35
roman_s20-Jul-10 3:35 
GeneralRe: Creating a function using Dictionary and Datetime help?? Pin
Luc Pattyn20-Jul-10 4:22
sitebuilderLuc Pattyn20-Jul-10 4:22 
Questiongeneric List - Remove Duplicates Pin
Kevin Marois19-Jul-10 7:15
professionalKevin Marois19-Jul-10 7:15 

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.