Hi all, Having a problem with this code. It should run 2 threads but at the moment it is only running first void run. I am a noob so any help is much apprecated. Cheers in advance.
import Semaphore.Semaphore ;
public class TestAccounts {
private Object lock = new Object ();
Semaphore...
Basically i have a piece of code and need to know how many threads are in it and what they do. The code only has one piece of code that states that it extends thread so it must only have one thread.
After reading a book from T Budd it gave the impresion that any piece of code that did different...
How do you identify a thread. Is only when a class extends a thread or can it be any be any code that does something else within the main code. i.e a mouse listener. I am a noobie so any advice is warmly apprecated.
Cheers
Can anybody tell me how to easily convert a normal java file into an applet. I am using Jbuider 4 foundation and have created an applet wizard. I am then copying java text into the applet file and then trying to convert it.
I am totally stuck with it can anybody give me soom pointers.
Hi Salem
Cheers got the encryption working? I don't think the decrpytion process is working know. After encryption the word when put into the decryption comes back with a differnet word. The fun of it all.
Hi Salem
the other code to de/ encrypt is
/*
* function encrypt()
* ==================
* encrypts a single character
*/
unsigned char encrypt(unsigned char letter)
{
unsigned char r;
r = (unsigned char)random(26);
letter = letter + r;
if (letter>'z')
{
letter = letter - 26;
}...
Hi all
I am having some bother with a while loop that is driving me nuts. The code works but doesn't seem to encrpt the inputted text. It works on that it will encrpt until a higher letter is entered that small a to z.
c = (unsigned char)getchar(); /* read in first character */
/*
* main...
Can anyone tell me what i need installed on my nt4 sp6 server to run a formmail script. I have created a cgi-bin folder and gave it permission to run and execute scripts. Is there anything else i need to install or do to get tis working. The reason i ask is that my form can't see the formmail...
Hi all
I am having in problem with my smtp on my NT4 sp6 server. Emails arive in the pick up folder and move to the queue folder. A second file is created with the error "550 Sender verify failed". What isn't set up correctly to cause this. And also is smtp something that is set up by...
I have 2 Brother mono lasers connected to to print servers (1 intel and 1 Hp). the problem i have is that occasionally the print queues get blocked. I have tried canceling job but the job sits there deleting itself. the only solution i have found is restarting the server. Is there any way to...
Cheers bcastner
Done that and users can map printers OK but they still need to map them everytime they logon. As it is a educational enviroment, i need the printer to stay there.
Thanks
Hi all
I have a problem in that i have set up 2 networked printers on my XP stations. But when i log on a standard user the printers aren't there. They are there when i log back on as admin. How do i set them up to be visible to all users.
Cheers in advance
Hi all
I have a problem that is doing my head in. Brief scene: -
Windows 2000 server, 10XP pro Stations, 3 Windows 2000 stations and 6 windows 98se stations.
I am tring to map drives, map printers and finally run some reg files. This is what i have:-
net use G: \\server1\globalshare
net...
Hi all
I have a problem that is doing my head in. Brief scene: -
Windows 2000 server, 10XP pro Stations, 3 Windows 2000 stations and 6 windows 98se stations.
I am tring to map drives, map printers and finally run some reg files. This is what i have:-
net use G: \\server1\globalshare
net...
Hi
I have a problem that my event viewer. It reports errors 3208 and 3216. The replication actually works within the seven minutes but the errors are annoying. What is the cause of these errors. I have a PDC and a BDC.
Cheers
I can create a new user but when i try and log on at a server with that user it gives access denied. It returns this very quickly giving the impression that the account doesn't exist. I can change a password on the server but when the user logs on their accounts seems to get messed up and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.