java help needed.......

Status
Not open for further replies.

ds_rnk

Solid State Member
Messages
12
..........
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.......
 
Okay, first off...

6a00e553adf4d5883401053603c4ad970c-800wi


Also, you'll probably want to use C for this.
 
Grammar aside, yes, just sounds like C
Do you want to use java because that is what you only know? only allowed to use?
 
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.
 
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.....

Okay, first off...

6a00e553adf4d5883401053603c4ad970c-800wi


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.....
 
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.
 
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.......
 
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.
 
Status
Not open for further replies.
Back
Top Bottom