ultimate_fusion 0 Light Poster

sorry i was in a rush to get the problem fixed and i was tired.

when th 12 pin power is in, the heatsink fan spins fine.

when the 12pin and 4 pin are plugged in, the heatsink fan spins once.
So the problem occurs when the 4pin mobo power is in. which is needed so there is not much i can do. i have 2 power supply's that work and both have the same effect on this board.

ultimate_fusion 0 Light Poster

perhaps because the 4 pin is shorting out the board or there is a short in the board

i think that might be the case.
so what are my options?

ultimate_fusion 0 Light Poster

I think I might not have explained it correctly.
with no ram /hard drive or graphics this is what happens.

12 pin power in only heatsink fan run ok .
12pin and 4 pin in the heatsink spins once.
so the problem occurs when the 4pin mobo power is in. which power the components on the board and this is why nothing works.

ultimate_fusion 0 Light Poster

i guess that either your psu is demaged or a broken device feeded from 12V line.

please try this: connect any load which draw a few amperes to psu outside. if psu does not reduce its voltage then you must connect cards (ethernet, VGA, sound etc.), RAM, HDDs and mainboard respectively. meanwhile, you must observe or measure 12V voltage of PSU. whenever its gone, you find its defective device. it seems RAM probably

I have 2 psu's and both seem to be working. with no ram no graphics card and no hard drives my mobo runs without the 12v connected and stops when it is connected thats why I think its the mobo or cpu since i have tested the fan on another mobo.

is there anything else i can do to fix it or find the problem.

ultimate_fusion 0 Light Poster

I have a m2n32 Asus board.
I was putting my pc into another case and turned it on and the fan turned once and did nothing.

The light on the mobo is on.
I took the mobo out of the case and tried it and same thign happened.
I have took the ram and graphics card out so just the cpu and heaksink. The heaksink just spins once.
I shorted the power to get it on out the case. but still spins once.I have 2 psu's which both should work including the one I was using before i moved the pc into the other case which has been working for a while with the setup.
The same thing happens with both cpu's.

I have also reset the mobo and removed the battery.

I am out of ideas!! i hope its not the cpu. any suggestions or ideas or advice please help.

I have just disconnected the 12v 4 pin power from psu to mobo and the cpu fan works, there are no beeps and no video. my pc doesn't go when the 12v power is plugged in???

thanks in advance
UF

ultimate_fusion 0 Light Poster

the file is corrupt or invalid
,UF

ultimate_fusion 0 Light Poster

hi,
i am looking for a sample program for delphi for a server client. I was wanting to use sockets and i am using pascal. if any one know of any good resource site or has some same code.

I tired the following example
http://www.dcs.napier.ac.uk/~bill/delphi_page.htm
but when i compile t said client socket doesnt have corresponding component???


thanks for looking

ultimate_fusion 0 Light Poster

i have downloaded the sdk directx9 and installed and put the lib and include files in the dev-c++ directory.
I have adjusted the compiler options and I still get 100 errors.
e.g redefinition of struct D3DVECTOR
and C\devcpp\...\d3d9.h, in file included from C\devcpp\...\d3d9.h

any ideas???

ultimate_fusion 0 Light Poster

I thought I tried that but I got it to work cheers mate, he's what I was using for anyone with the same problem

String mydata =  numberGrid[j].getText();


if (mydata.equals("1")){
}
ultimate_fusion 0 Light Poster

I am trying 2 write a program to solve a soduko.
I have lots of text fields and I need to compare them like
if (string1.equals(textfield){ do whatever}

but it only works for "0" e.g null??/
I have tried parsing it to an int but get the same result.
any ideas

ultimate_fusion 0 Light Poster

i am into making games and most games have cut scenes. as i am not passed the 2d stage and dont have a clue about 3d animation i was thinkin it would be easier to get a mate to make a flash movie for my game.
so can you play/open flash movies from a c++ concole?
if so how?
cheers

ultimate_fusion 0 Light Poster

as above
im am getting pretting good at java now and have make a few 2d games. i want to get into 3d now.
i have tried google but it is really hard to find normal java 3d tutorials. i keep finding the applet ones which i dont want to get into.
thanks for looking

ultimate_fusion 0 Light Poster

the stage class is needed, it was simpler just to tell you as little as possible.
that getters and setters is what I was looking for.
I need a little change to it which I cant solve.
instead of one object which fills the array
I need lots of objects and them to keep filling the next array block.
I try'd

public Block(Stage stage) {
   super(stage);
           if (s==4){s=0; t++;}
           c=c+10; 
           s++;
           fillArray(t,s,c);
}
public void fillArray(int t, int s, int c)
   {
    System.out.println(s);
    System.out.println(c);
         where[t][s]=c;
         System.out.println(where[t][s]);
    } 

but the system.out's always say "0"
I think its becuase every time I create a new object it calls the default construct so t,s,c will equal 0 again?
how to fix?

ultimate_fusion 0 Light Poster

I have two classes. block and main
public Block(Stage stage) {
super(stage);
//fill array
where[t][s]=i;
i++;
system.out.println(where[t][s]);

}
and the main.
the problem is I create an instance of the class block and I know it runs because I put a system.out there and the I a list of printed numbers in a dos window.
the problem is in the main class I call it like
system.out.println(Block.where[0][2]);
and the output is "0";
????
why is this?
AND HOW to solve?
thanks for looking

ultimate_fusion 0 Light Poster

i want to name a item and give it a color(probs an int value)
i was thinking of doing a 2d array but I need to send it to another class
i create the item by
Monster m = new Monster(this);

any ideas

ultimate_fusion 0 Light Poster

problem solved
just stored the values like
GTC[0]=x;
GTC[1]=y;
before the collsion and where it collides
if (a instanceof Monster ) {
x = GTC[0];
y = GTC[1];
}

ultimate_fusion 0 Light Poster

I am starting to make some java games and I think i have sorted out the collision side of things ( i have made a space invaders game) so i know how to shoot and kill enemies. I am now wanting to stop players/monsters going through walls etc?

p.s. what is the best way to do walls? (just paint() them)

thanks for you help

ultimate_fusion 0 Light Poster

where can you download it from?
i am using dev c++

ultimate_fusion 0 Light Poster

gl\glaux.h: No such file or directory.
i get the error above when trying to compile any code with
#include <gl\glaux.h> in it???

ultimate_fusion 0 Light Poster

I am at uni doing computer science and interested in game programming.
i just have a few questions . . .
are most games programmed in C++?
how long will it take to learn i mean to get good enough to do a game like dig dug (a classic man)?
(p.s I found java easyish and not much of a challenge, and was sick of ready made methods, and want to make interesting software or games!)

next question - how to turn c++ code into code that an xbox/gamecube can run?

last question - about graphics and animation - I know like games like sonic 3d you have to design a charater and use programming move it. will I need to learn anything special to do that or will I come across it when learning C++.

any help/advise will be much Appreciated.
thanx

ultimate_fusion 0 Light Poster

i had an eariler problem and posted it here http://www.daniweb.com/techtalkforums/thread22426.html

I have to read a file in format char, int, string, string string(but i dont know how many strings(words are on the end).
I can get the char and int(the code is on the link above) and one strings(word) but not if i dont know how many strings on the end.
theres probably a simple answer but i can't think of it, been looking at it for too long.

please help this has been doing my head in for a week(feels like longer)

ultimate_fusion 0 Light Poster

I have to read a file in format char, int string.
I can easily do it in the form - int int, string e.g. 12 34 the cat sat on the mat(which is what I want to process and output)
code below.

tokenType = inputStream.nextToken();
		while (tokenType != StreamTokenizer.TT_EOF)
		{
		   
			firstNo= (float)inputStream.nval; inputStream.nextToken();
			secondNo = inputStream.nval;
                                      thirdstring = inputStream.Sval;
			System.out.println(firstNo+"\t"+secondNo+"\n"+thirdstring );			
			tokenType = inputStream.nextToken();
			
			
      }
		}

but when theres a character at the begining or a string, int, string I can only get the first word(shown below) of the string instead of the whole title.

in.nextToken();

		while (in.ttype!=StreamTokenizer.TT_EOF)
		{
			if(in.ttype==StreamTokenizer.TT_WORD){
				type=in.sval;
			}
			else{
				System.out.println("Wrong file format");
			}
			
				if(in.nextToken()==StreamTokenizer.TT_NUMBER){
				v=in.nval;
			}
			else{
				System.out.println("Wrong file format");
			}
		
				if(in.nextToken()==StreamTokenizer.TT_WORD){
					   
		                              \\here
				     show=in.sval;
				     
				    in.nextToken();
                                       }
				
				   
				    
				    }

it will get the first word of the last string.
I want to put the foloowing code where "\\here" is to get the rest of string

show+=in.sval;
show+=" ";
 if(in.nextToken()==StreamTokenizer.TT_EOL)
{
    break;
}
show=" ";

but it doesn't like EOL, nothing gewts printed out???

ultimate_fusion 0 Light Poster

delete post

ultimate_fusion 0 Light Poster

just a quick question.
I was wondering what java programme was on mobiles and what programme would you need to make a java file to run on a mobile???

thanks 4 :eek:

ultimate_fusion 0 Light Poster

dont want to sound stupid but if you can just do keystrokes instead of trying to put the data in the fields e.g
yahoo you have to tab a couple of times and you get to the email username.
then just keystroke that in then tab and them password.
I dont know if this is possible but another way to get round the problem.

i hope this makes sense.

UF

ultimate_fusion 0 Light Poster

I am making a game and need a hell of alot of varibles. it is all so GUI so I need alot of Jbuttons. can I do it like something what I have below???

char[] mine=new char[3];
for(int count=0;count<10;count++){
//String add = "one"+count;
JButton mine[count] = new JButton("");
}

heres the error

C:\Documents and Settings\Adam\Desktop\work\MineSweep.java:42: mine is already defined in MineSweep()
final JButton mine[count] = new JButton("");
ultimate_fusion 0 Light Poster

I have this system which I only want to try and borrow books from a library.
I have data already in arrays.
I need to check that nobody else has a book then add it to the data.
I have commented where i think the problem is.
i have tried syste.out and I jst get the original data that was in the array instead of the added data???
any ideas??

thanks for looking

the code is below

import javax.swing.*;
 class LibraryMain {
   //  Creates a staff of employees
   public static void main (String[] args)    {
   	 //  Sets up the list of books.
   	 Books[] BookList;
   	 BookList = new Books[5];
   	 BookList[0] = new Books("title", "author", "B1");
   	 BookList[1] = new Books("my", "by","B2");
   	 BookList[2] = new Books("lname", "by","B3");
              BookList[3] = new Books("lname", "by","B4");
              BookList[4] = new Books("lname", "by","B5");
   	
  System.out.println("Library System\n");
  //creates object to print out details
	Borrowers personnel = new Borrowers();
    personnel.records();
     System.exit(0); //exits
   }
    
}

class Borrowers{
  
  public Students[] BorrowersList;
   public Borrowers ()   {
//  Sets up the list of borrowers.
BorrowersList = new Students[4];
BorrowersList[0] = new Students ("adam", "S1","", "");
BorrowersList[1] = new Students ("tim", "S2","B1", "");
BorrowersList[2] = new Students ("Mr", "L3","B5", "");
BorrowersList[3] = new Students ("mrs", "L4","B3", "B5");
         
 for(int count = 0;count<1;count++){ //loop to continue to enter books
 //gets student ID
 String num = JOptionPane.showInputDialog(null,
		     	   "Enter the ID number",
			       "Library System",
			        JOptionPane.QUESTION_MESSAGE);
			      
        // gets bookid
         String num2 = JOptionPane.showInputDialog(null,
		    "Enter the Book ID",
			"Library System",
			 JOptionPane.QUESTION_MESSAGE);
			  //finds if any one …
ultimate_fusion 0 Light Poster

how do you eidt /delete posts?

ultimate_fusion 0 Light Poster

code is below

int average(){ //method in class
int total = 0;
int NOS=5;


System.out.println("");
for(int i=0;i<10;i++){
if(ID ==" "){
NOS = i;
break;
}
total += mark;// total is the problem, tried printing it
// while thefor loop was running and at the end
// and its says "0" all the time why?
NOS++;


}



int avg = (total/NOS);


System.out.println(avg);
return avg;
ultimate_fusion 0 Light Poster

heres the main method then

import javax.swing.*;


public class Test{
/** Main method */
public static void main(String[] args) {


for(int count = 0;count<10;count++){
String ID = JOptionPane.showInputDialog(null,
"Enter the Students ID",
"Programming 2",
JOptionPane.QUESTION_MESSAGE);


String num = JOptionPane.showInputDialog(null,
"Enter the Students score",
"Programming 2",
JOptionPane.QUESTION_MESSAGE);


int mark = Integer.parseInt(num);



Module withData = new Module(ID, mark, count);


System.out.println("Student data   = "+ withData.setID());



}
ultimate_fusion 0 Light Poster

I have two erros which I have tried everything to fix them

C:\Documents and Settings\java:14: array required, but java.lang.String found
        ID[count] = ID;
          ^
C:\Documents and Settings\java:15: array required, but int found
        mark[count] = mark;

heres the code

class Module
 {
     String[] ID = new String[10];
      int[] score = new int[10];

    int setID(String ID, int mark, int count){
        //id, mark and count get passed from the main method
        ID[count] = ID;
        score[count] = mark;


       }
ultimate_fusion 0 Light Poster

as above
i need to know WHERE to put some code for a button to submit some data captured then transfer to an access database.

any help would be gratefull

ultimate_fusion 0 Light Poster
//main method
int number  = 1;
int num = 3;
details[] Darray = new details[number][num];

String name = JOptionPane.showInputDialog(null,
                "Enter the name",
                "Enter details",
                 JOptionPane.QUESTION_MESSAGE);
String DOB = JOptionPane.showInputDialog(null,
                "Enter the DOB",
                "Enter details",
                 JOptionPane.QUESTION_MESSAGE);

class details
// i have default construtors aswell
String getName(){
    return name;
                }

heres the problem - i was told that you are only ment to input data in the main method. I need a 2d array to store many people info.

I tried Darray[0] = name; but this came up

C:\Documents and Settings\java:34: incompatible types
found   : java.lang.String
required: details

since classes are ment to store information (possibley privately) I was wondering the easiest way to store it in a array and pass it. I also want to use the array in the main method after the have finished storing it.
any ideas?

thanks for looking

ultimate_fusion 0 Light Poster

as above.
e.g
int[] array = new int[can be any size]

joptionpane.showmessagebox(null,
"what to put here is the question"
"messageboxtitle"
joptionpane.informationmessage};
//dont correct the message box crap i was in a rush i know how to do it

e.g
array 1 = 1
array 2 = 5
array 3 = 3
array 4 = 2

the array can be any size thats the problem so i can't just put
"array 1"+ array[0]
"array 2"+ array[1] etc

i can use a for loop when outputting it in a dos window but what can you use for a message box?

ultimate_fusion 0 Light Poster

i ment to another method as below

"public static void cal(what do i put here)"

any ideas?

ultimate_fusion 0 Light Poster

might be main or another method // dont know yet

int[] num1 = new int[intA];
int[] num2 = new int[intB];


public static void cal(what do i put here)

blah blah

and

class Homework7v2
{
int a=0; // i need to use this int all the way through and
// it wont let me put it here>?
public static void main(String[] args)
ultimate_fusion 0 Light Poster

yes and yes,
i know everything like for loops, do while, switch, arrays its just methods im stuck on.

ultimate_fusion 0 Light Poster

quick question
how do you also pass(call) more than one number/char/boolean at a time?
(or all 3 types at once)

ultimate_fusion 0 Light Poster

It is a matter of scope.
Put

int number = 1

outside the Main method (at the begining of your class.)

Look up the deffinition of scope in Java to learn more

i did that and got
non-static variable thirdNo cannot be referenced from a static context
???

ultimate_fusion 0 Light Poster

not clear, i dont need a boolean , sorry to have had posted it at the top
i just need a simple number to pass

ultimate_fusion 0 Light Poster

how do you "pass it to the second method as a parameter"
is it
public static int ifstate(int number)
????

ultimate_fusion 0 Light Poster

heres the start

public class work
{
public static void main (String [] args)
{


int number = 1;
}
public static boolean ifstate()
{
if ( number == 0 )
blah blah
}

question - how do I get the second method to call on the varible from the first.

thanks

ultimate_fusion 0 Light Poster

thanx mate but I need to output a message box can you fix the code below, you can input the number but it wont appear in the meesage box?

import java.io.*;
import javax.swing.JOptionPane;

class MessageBoxInput
{
 public static void main(String[] args) throws IOException 
 {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String inData;
    String Input = JOptionPane.showInputDialog(null,
    "enter a positive 4 digit number",
    "homework3",
    JOptionPane.QUESTION_MESSAGE);

    inData = br.readLine();
    int int1 = Integer.parseInt(inData.substring(0,1));
    int int2 = Integer.parseInt(inData.substring(1,2));
    int int3 = Integer.parseInt(inData.substring(2,3));
    int int4 = Integer.parseInt(inData.substring(3,4));

    JOptionPane.showMessageDialog(null,
    int1+
    "\n" + int2+
    "\n" + int3+
    "\n" + int4,
    "homework3",
    JOptionPane.QUESTION_MESSAGE);
 }
}
ultimate_fusion 0 Light Poster

heres the problem;

some one inputs a 4 digit number e.g 1234

I stored it as a string and i have to display it in a messagebox like

-----------------------------

the digits are

1

2

3

4

------------------------------------

How?

p.s i know how to do trhe input box and display, but dont know how to put one answer on different lines?