Eclipse: Start: Applet not initialized - help?
I'm new to programming with Java and using eclipse. I have recently started to work with a Tic Tac Toe game in Java via Eclipse, however, when I attempt to run the code in an applet via the Eclipse...
View ArticleComparing objects - cleanest approach
I have a class A which has 5 fields. I want to be able to sort the class based on every field. Now, i have 2 related question. First, what is the cleanest solution to provide the sorting functionality....
View ArticleOleDbException (0x80004005)
I'm developpin an aplication to my boss,i get an OleDbException (0x80004005) when i'm trying to implement this...
View ArticleTerminal Emulation with Slick2D
Ok, so I realize that the description may be a little misleading... So let me expand just a little: I'm presenting the user with what looks like a terminal interface. At the bottom is the "Input"...
View ArticleParsing a key value text file
Hello everyone, I have come across a fixed formatted file that I need to parse in python. An example of the file would be something like this: "user" "jdoe" = { "mail" "\"john.doe@something.com\""...
View ArticleParsing a key value text file
Hello everyone, I have come across a fixed formatted file that I need to parse in python. An example of the file would be something like this: "user" "jdoe" = { "mail" "\"john.doe@something.com\""...
View ArticleProblem with text handling.
I have to create a code that interacts with code. When I try to [Dim doconvert As New ConvertPostCode] it is saying that it is not defined. I have the following code for one of the private subs. [Dim...
View ArticleIDisposable Interface
class Item:IDisposable { int id; string Description; int price; public Item() { id = 0; Description = ""; price = 0; } public void Dispose() { Dispose(true); //Garbage collector...
View Article<vector> back() throws an instance of 'std::out_of_range
I have defined: vector <string> _contents; int _lines; ifstream* _file; string _path; And I read content from a text file using bool File::_refresh(const string path) { _path = path; _file = new...
View ArticleHaving trouble fixing my errors in the code
I have trouble fixing this part of code in my assignement. #include <iostream> #include <iomanip> #include <string> #include <string.h> using namespace std; int main() { int P;...
View ArticleIt displays something it shouldn't
Hello, I'm writing a simple code that will determine your mark based on your score. Here's the code import java.util.Scanner; public class ap { public static void main (String args[]){ Scanner J = new...
View ArticleReading data in datatable recursively
hae guys.... how do i read and refresh my datatable each time i execute an sql statement.... i want to create a treeview structure with data in my database ...the node is a recruiter id (rid) and the...
View Article2D game vs 3D game
Hi, My family is planning on a family project to make a game. So far, we've gone through some of the Contruct 2 tutorials on gamedev.tutsplus.com as a start. Reading some of the threads in here, such...
View Articlecreating a flashlight
Hi all Just wondering if anyone can provide some tips on coding a 3D flashlight? I have read XNA Game Studio 2nd Edition and have read the chapter the covers lighting. I have been able to change the...
View ArticleDoing this program without a "do" statement
I'd like to not make use of the "do" statement and instead only use a while. The problem is I don't know how to execute the while statement without looping forever. import java.util.*; public class...
View ArticleThe value for the useBean class attribute view.IndexView is invalid
Hey I am trying to make a JSP site for the first time, and I have the trouble as you can see in the topic heading. But I can't see me mistake, my index.jsp looks like that, and yes I hav checked the...
View ArticleGetting Error The remote server returned an error: (401) unauthorized
Hello, I'm trying to access a text file from web site using the code below but I get an error message stating "The remote server returned an error: (401) unauthorized If I manually click on the link I...
View ArticleGood Books on C++ for anyone who needs help.
http://81.5.154.125/Media/drop/C++_Programming_for_the_Absolute_Beginner,_Second_Edition/C++%20Programming%20for%20the%20Absolute%20Beginner,%20Second%20Edition.pdf...
View ArticleChange non-void method's parameters.
What is the best way to change a non-void method's parameters WITHOUT instancing a new one.. For example class ReadStdout{ public ReadStdout(Process p, JTextArea c){ (....) } } then on the main...
View ArticleRunning Bytes Or EXE From Resources
Hello People! I searched for several hours about how to run an EXE from Resources, Memory but i dint have any sucess Here is my code: Dim a As System.Reflection.Assembly =...
View Article