Click here to Skip to main content
11,629,614 members (81,714 online)

Visual Studio 2015 & .NET 4.6

 
AnswerRe: processor id Pin
Mike Meinz16-Feb-13 4:22
memberMike Meinz16-Feb-13 4:22 
GeneralRe: processor id Pin
vivek51117-Feb-13 23:48
membervivek51117-Feb-13 23:48 
GeneralRe: processor id Pin
Richard Deeming18-Feb-13 2:05
memberRichard Deeming18-Feb-13 2:05 
AnswerRe: processor id Pin
Mike Meinz18-Feb-13 5:23
memberMike Meinz18-Feb-13 5:23 
Great response from Richard Deeming. I used that to create a version that does not require Option Strict Off and Option Explicit Off. Both can be set to on with this version:
        Dim objSearcher As New ManagementObjectSearcher("Select * from Win32_Processor")
        Dim colProcessors As ManagementObjectCollection = objSearcher.Get
        For Each objProcessor As ManagementObject In colProcessors
            Debug.WriteLine("Manufacturer: " & DirectCast(objProcessor("Manufacturer"), String))
            Debug.WriteLine("Name: " & DirectCast(objProcessor("Name"), String))
            Debug.WriteLine("Description: " & DirectCast(objProcessor("Description"), String))
            Debug.WriteLine("ProcessorID: " & DirectCast(objProcessor("ProcessorID"), String))
            Debug.WriteLine("Architecture: " & CStr(objProcessor("Architecture")))
            Debug.WriteLine("AddressWidth: " & CStr(objProcessor("AddressWidth")))
            Debug.WriteLine("NumberOfCores: " & CStr(objProcessor("NumberOfCores")))
            Debug.WriteLine("DataWidth: " & CStr(objProcessor("DataWidth")))
            Debug.WriteLine("Family: " & CStr(objProcessor("Family")))
            Debug.WriteLine("MaximumClockSpeed: " & CStr(objProcessor("MaxClockSpeed")))
        Next

QuestionCrystal Report for Visual Studio 2010 Pin
source.compiler14-Feb-13 20:10
membersource.compiler14-Feb-13 20:10 
QuestionAdd a Class to a Windows App Pin
ASPnoob8-Feb-13 18:09
memberASPnoob8-Feb-13 18:09 
AnswerRe: Add a Class to a Windows App Pin
Richard MacCutchan8-Feb-13 22:55
mvpRichard MacCutchan8-Feb-13 22:55 
GeneralRe: Add a Class to a Windows App Pin
ASPnoob8-Feb-13 23:27
memberASPnoob8-Feb-13 23:27 
QuestionVirtual memory not released after my program ran out of memory ... Pin
Martial8-Feb-13 0:50
memberMartial8-Feb-13 0:50 
QuestionCross page posting Pin
Tanaji.C30-Jan-13 0:38
memberTanaji.C30-Jan-13 0:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150723.1 | Last Updated 21 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid