|  | |
03-22-2009, 05:29 PM
|
#1 (permalink)
|
Newb Techie Join Date: Mar 2009 Posts: 12
| java help needed....... ..........
before starting anything let me clear that i am just a beginner.....
so sorry if any of my questions are foolish enough......
well i am onto a project for my College....
Am building a TRAFFIC CONTROL and MANAGEMENT project wherein i want 2 connect LED's and LASER's to the parallel port (printer port) of my PC....get the inputs and thereby follow a algorithm......
MY QUESTION is how can i control the port via JAVA????
i googled but i might be searching it in a wrong way......so plz people help me code this small part.....
THANX in advance....
also if u knw any better way of doing dis plz let me know........because my group members are not of any help.....and m alone 2 do it......
any kind of help'll be appreciated.......
Last edited by ds_rnk; 03-22-2009 at 09:37 PM.
|
| |
03-22-2009, 07:33 PM
|
#2 (permalink)
|
Wizard Techie Join Date: Feb 2006 Location: Maine Posts: 3,683
| Re: java help needed....... Okay, first off...
Also, you'll probably want to use C for this.
__________________ Need website help? PM me! |
| |
03-22-2009, 07:36 PM
|
#3 (permalink)
|
HONK if you route packets Join Date: Sep 2003 Posts: 4,664
| Re: java help needed....... Grammar aside, yes, just sounds like C
Do you want to use java because that is what you only know? only allowed to use?
__________________ A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP |
| |
03-22-2009, 08:29 PM
|
#4 (permalink)
|
Junior Techie Join Date: Mar 2009 Location: U S A Posts: 55
| Re: java help needed....... Grammer Nazi!
Patrolling...
Ha.
Yeah that sounds right... Craz |
| |
03-22-2009, 08:31 PM
|
#5 (permalink)
|
Wizard Techie Join Date: Feb 2006 Location: Maine Posts: 3,683
| Re: java help needed....... Quote:
Originally Posted by Ryan Riot Grammer Nazi!
Patrolling...
Ha.
Yeah that sounds right... Craz | I'm a bit of a grammar nazi, yes. But I usually don't speak out.
However, spelling "that" as "dat" is just retarded.
__________________ Need website help? PM me! |
| |
03-22-2009, 08:48 PM
|
#6 (permalink)
|
HONK if you route packets Join Date: Sep 2003 Posts: 4,664
| Re: java help needed....... Substituting a "D" for a "TH" is just the start.
"MYT" for "MIGHT" is where I draw the line.
The code is going to be filled with comments like
//dis is where I'm checking the login password yo, ta make sho' dat **** is lagit ta quit fo' sho'!
If you can't talk/type intelligently, don't try to code intelligently... at least to the point where you want people to take you seriously.
__________________ A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP |
| |
03-22-2009, 09:09 PM
|
#7 (permalink)
|
Newb Techie Join Date: Mar 2009 Posts: 12
| Quote:
Originally Posted by mikesgroovin Grammar aside, yes, just sounds like C
Do you want to use java because that is what you only know? only allowed to use? | No, i can do it on C.
I even foubd a bit of code in C till here
#include <dos.h>
#include <conio.h>
void main(void)
{
unsigned int far *ptraddr; // Pointer to location of Port Addresses
unsigned int address; // Address of Port
int a;
char unsigned value,result,ch;
clrscr();
start:
ptraddr=(unsigned int far *)0x00000400;
printf("\n\nEntr data 2 b insrtd in port : ");
scanf("%X",&value);
clrscr();
printf("\n\n");
for (a = 0; a < 4; a++)
{
address = *ptraddr;
if (address == 0)
printf("COM%d Not Found\n",a+1);
else
{
printf("COM%d Address:%Xh ",a+1,address);
result = inport(a);
printf("Read:%X ",result);
outport(a, value);
printf("Write:%d ",value);
result = inport(a);
printf("Read:%X\n",result);
}
*ptraddr++;
}
ch=getch();
if(ch != 'x')
goto start;
else exit();
getch();
}
but i dont knw how to proceed.......
well i can code it in both C and JAVA
but i need to give a GUI, n i feel THAT i can give a better GUI in java then in C........m i right??
Actually i have gone insane with this.......i seriously need help.....
what would be your approach if u were me?
thanks in advance..... Quote:
Originally Posted by CrazeD Okay, first off...
Also, you'll probably want to use C for this. | Sorry bro!!!!
rather SORRY BrOTHER!!!
Actually this is my frist post.
i m new to all this thing .....anyways i'll surely refer to that grammar thing......
grammar aside.....thanks for siggestion.....
Last edited by Trotter; 03-22-2009 at 09:33 PM.
Reason: Merged
|
| |
03-22-2009, 09:21 PM
|
#8 (permalink)
|
HONK if you route packets Join Date: Sep 2003 Posts: 4,664
| Re: java help needed....... I dont reply to many development threads because of code ownership. I've been down that road before. I still get calls from a company that I wrote code for 5 years ago from installers, on site. I'll reply to simple simple simple things like a batch file or perl. But for a "simple question" concerning code that I'll be glad to write from scratch and own, I'd rather say I can do it for you and charge you.
__________________ A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP |
| |
03-22-2009, 09:23 PM
|
#9 (permalink)
|
Newb Techie Join Date: Mar 2009 Posts: 12
| Re: java help needed....... Quote:
Originally Posted by mikesgroovin Substituting a "D" for a "TH" is just the start.
"MYT" for "MIGHT" is where I draw the line.
The code is going to be filled with comments like
//dis is where I'm checking the login password yo, ta make sho' dat **** is lagit ta quit fo' sho'!
If you can't talk/type intelligently, don't try to code intelligently... at least to the point where you want people to take you seriously. | Well it seems i did a big crime......
Sorry people!!!!!
Actually i had a habit of chatting, thats where i got this habit from.......OK then i'll watch out for my language from now...
keep helping because i m totally new to this thing....... |
| |
03-22-2009, 09:29 PM
|
#10 (permalink)
|
HONK if you route packets Join Date: Sep 2003 Posts: 4,664
| Re: java help needed....... Think about it... seriously though.
No, you didn't commit a crime. If you want people to take you seriously, exuberate yourself as such. If you want a reply that intelligently explains how to perform a function, present your question with the same respect.
__________________ A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP |
| |  | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | |