Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 25th, 2006, 8:00 PM   #1
enhanced08
Newbie
 
Join Date: Feb 2006
Posts: 5
Rep Power: 0 enhanced08 is on a distinguished road
Send a message via AIM to enhanced08 Send a message via MSN to enhanced08
best language to use

I'm not a programmer, I took C++ in high school a few years ago and learned the bare basics. I'm working on a project in which I need a program written and dont know what the best language would be to do it in. I'm trying to find someone to write the program for me but if I can figure out the best language and/or method it will make their job easier.

This is what I'm lookin at.... I need to collect data from computer systems such as L2, CPU Speed, RAM, CAS, etc and send them to a webserver to be put into a database. I need a program for Windows, Linux and Mac operating systems. At first Java seemed to be the best because one program can run on all 3 OS's but Java can't do hardware queries. C/C++ was next inline but 3 programs would need to be written and updated. Another option is to use CPUz to collect the data and save it to a txt file and have another program read the file and send it.

The CPUz idea seems like the best because the program would be easier to write, could be in almost any language, and most of the updates (new CPUs etc) would be done by CPUz and not on my end. BUT CPUz is only for windows and even tho you could write the other program in Java so it would run on Linux and Mac, CPUz wont run so something else would have to work.

So, what I'm asking is this, what would be the best bet? I would like to get this running asap so I think I'll go with the CPUz idea and only work with windows machines while I find someone to code an entire program for me and who would be willing to keep it updated.

Any thoughts?
TIA
enhanced08 is offline   Reply With Quote
Old Feb 25th, 2006, 8:24 PM   #2
jaeusm
Programmer
 
jaeusm's Avatar
 
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3 jaeusm is on a distinguished road
Quote:
At first Java seemed to be the best because one program can run on all 3 OS's but Java can't do hardware queries.
You don't need to query hardware, you just need to ask the operating system -- it should know how to talk to the hardware. You actually could use Java for this task. Here is a link to Java code that obtains the CPU name and speed for a Windows system.
jaeusm is offline   Reply With Quote
Old Feb 25th, 2006, 8:28 PM   #3
enhanced08
Newbie
 
Join Date: Feb 2006
Posts: 5
Rep Power: 0 enhanced08 is on a distinguished road
Send a message via AIM to enhanced08 Send a message via MSN to enhanced08
Hmmm... that makes things easier. Is this true for all 3 systems, Windows Linux and Mac?
enhanced08 is offline   Reply With Quote
Old Feb 25th, 2006, 9:07 PM   #4
jaeusm
Programmer
 
jaeusm's Avatar
 
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3 jaeusm is on a distinguished road
If you want to obtain information about the underlying hardware, you need to ask the operating system.
jaeusm is offline   Reply With Quote
Old Feb 25th, 2006, 9:18 PM   #5
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 769
Rep Power: 3 Jimbo is on a distinguished road
Quote:
Originally Posted by jaeusm
If you want to obtain information about the underlying hardware, you need to ask the operating system.
... which would probably result in 3 different versions for 3 different OSs.
Jimbo is offline   Reply With Quote
Old Feb 25th, 2006, 9:22 PM   #6
enhanced08
Newbie
 
Join Date: Feb 2006
Posts: 5
Rep Power: 0 enhanced08 is on a distinguished road
Send a message via AIM to enhanced08 Send a message via MSN to enhanced08
So what would be the best choice for this? I really liked the idea of Java because only 1 program would need to be written....
enhanced08 is offline   Reply With Quote
Old Feb 25th, 2006, 9:26 PM   #7
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Hardware querying is a very OS-specific venture. You are about equally likely to find a library for it that works with one language as you are the next. Otherwise, you will probably writing several different versions. Usually it comes down to a windows version and a nix version, though. If you've ever looked through the source of a cross-platform app, don't be surprised to find an #ifdef (or equivalent) here and there to deal with platform-specific eccentricities.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Feb 26th, 2006, 1:16 AM   #8
enhanced08
Newbie
 
Join Date: Feb 2006
Posts: 5
Rep Power: 0 enhanced08 is on a distinguished road
Send a message via AIM to enhanced08 Send a message via MSN to enhanced08
so in the end i'll still probably endup with 3 ports of this program?

jaeusm, that page you link me to, would it be able to get the same kind of data as CPUz? I dont know if asking the OS for the data would work the same as i know MS reports the stock CPU speed rather than the overclocked speed.
enhanced08 is offline   Reply With Quote
Old Feb 26th, 2006, 1:57 AM   #9
jaeusm
Programmer
 
jaeusm's Avatar
 
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3 jaeusm is on a distinguished road
Quote:
... which would probably result in 3 different versions for 3 different OSs.
and...?
Quote:
jaeusm, that page you link me to, would it be able to get the same kind of data as CPUz? I dont know if asking the OS for the data would work the same as i know MS reports the stock CPU speed rather than the overclocked speed.
Since you know that, I guess you answered your own question
However, it is much easier to write software that queries the OS rather than bypassing it.
jaeusm is offline   Reply With Quote
Old Feb 27th, 2006, 12:58 PM   #10
enhanced08
Newbie
 
Join Date: Feb 2006
Posts: 5
Rep Power: 0 enhanced08 is on a distinguished road
Send a message via AIM to enhanced08 Send a message via MSN to enhanced08
Well, I need specific data like that of CPUz so what are my options now? I'm thinking about using CPUz and comeup with a program that reads the text file from CPUz. Once my project gets more intrest It should be easier to find someone to program an entire program that can be ported to all 3 OSes and kept updated easily.
enhanced08 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:03 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC