
On Fri, Aug 21, 2009 at 9:44 PM, Bernard Owuor <b_owuor@yahoo.com> wrote:
@Aki! I think you found a convenient and artificial crossroads because you're facing some challenges in C#. I'd urge you to stick with C# because all other languages are cheesecake once you master one.
I'm currently converting a VB app to C# (so that it can run in *nix - using mono) and seem unable to notice the differences between the languages, apart from the abundance of C# docs. Stick with it or take a subset to get through.
@Bernard, Much thnks for the above info :-) .... I managed to go a bit deeper into WMI much better today ( until my brain can handle no more for now ), especially System.Management and create new instances of the objects to query hardware like HDD and serial numbers etc etc. *Incase anyone is looking at connecting to hardware and c#, the here's how to use WMI :* - In IDE, add a Ref to System.Management namespace - Add directive at top of code page : using System.Management - //Add directive at top of code page : using System.Management.Instrumentation Within class method, create a new instance ( to query a Fan ) : ManagementObjectSearcher Fan = new ManagementObjectSearcher(string eg "SELECT * FROM Win32_Fan"); There are 22 properties of the Fan Object like Active Cooling etc. These will become available from the instance above. Might need some corrections but working on it. Asante. :-)