199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ku95

Hi basically I'm current doing a connect 4 program that consist of 3 separate programs Connect4Model, Connect 4 Column and Connect4View... I'm trying to compile and run my connect4View program but for some what reason I'm unable to do so. Below I have supplied the code for the 3 programs. …

Member Avatar for peter_budo
0
209
Member Avatar for nickwl23

Hi guys.. I am having some problem with snake game project using JAVA Applet. I already have the sour code of a snake game from my friends, but I failed to make it functions probably under a JApplet. I need to do a similiar UI like click a start button. …

Member Avatar for nickwl23
0
201
Member Avatar for chihwei

Hi i just have a question, i was doing the pass midterm the question is asking that " Write a class Jacket, which has a boolean instance variable isReversible and a static int variable numJackets. There are no methods " correct Ans: public class Jacket { private boolean isReversible; private …

Member Avatar for peter_budo
0
200
Member Avatar for moni94

Hi. I made this program to capture the current screen in C#. In Visual Studio 2008, it worked perfectly, but now with VS 2010, I get the following exception: ExternalException - a generic error occured in GDI+ on the line where I save the bitmap: bmp.Save("screen.jpg"); I have looked everywhere …

Member Avatar for kvprajapati
0
117
Member Avatar for manowar666

Hi, I am building my first VB2008 application and I am trying to figure out a way to make some check boxes being checked when an entry from a combo box is selected on top of these check boxes. More specific, I am trying to describe the services offered in …

Member Avatar for manowar666
0
164
Member Avatar for Bonolo

Hi all plz help i need to search my database using data from the combo box which works fine the problem that I an experiencing is that FIND function gives me a runtime error, saying the string is not in the correct format plz help. here is the code that …

Member Avatar for kvprajapati
0
127
Member Avatar for BuhRock

Ok, I know most of you will read this and think I am a liar, but I am really just trying to practice with multiple classes and methods. So I picked out a programming challenge from my book to see if I could get through it. I wrote the class …

Member Avatar for vchandra
0
125
Member Avatar for Bobon

Hey lads, Firstly apologies for the long message. I just thought it might be easier to explain my issues. I'm doing a website for myself and have been getting some amazing info from this forum. I've moved onto the database part to it. Now, for my website, user can sign …

Member Avatar for ds2r
0
109
Member Avatar for miklavcicmatic

Hello everybody! My name is Matic and I've been checking these forums for quite a while now. I know C++, C# and a few other languages. I really did not know where to ask this question, and I think this is the right place. The problem is, I changed my …

Member Avatar for miklavcicmatic
0
86
Member Avatar for tanvirahmad

hi experts i m facing a problem , i m using these code for inserting data, but showing error “[B][U]The Conversion of the char data type to a date time resulted in an out-of-rang date time value . The Statement Has been terminated[/U] [/B] “ Their is "[B]ro_date[/B]" is [B]datetime[/B] …

Member Avatar for tanvirahmad
0
142
Member Avatar for rahul8590

I have an array, which i want it common to both the f1.cpp and f2.cpp . since f1.cpp will be used to store some values in it and f2.cpp has to use it for some other computations , is there any way i can share these 2 variables . well …

Member Avatar for WaltP
0
270
Member Avatar for SammyFrancis

Hi guys, Does any body know of a good Quick ColdFusion Reference on the App Store.

Member Avatar for samaru
0
122
Member Avatar for c++student01

I keep getting NoClassDefFoundError so I cannot check if the rest of my program works. It works on the school computers but it does not at my house. I set up the path and classpath variables how my teacher told me for derby but it still will not work, any …

Member Avatar for vchandra
0
116
Member Avatar for cjay175

Hey everyone, I just got a solution from here, but I think I spoke to soon, as I ran into another problem right away. I have been playing around with it for a couple days now, and just hoping that someone could explain or see why it isn't working. I …

Member Avatar for cjay175
0
600
Member Avatar for lwschjang

Basically, I am having trouble figuring out how to work my if statements. The only one that works is the final statement and that is due to it not having the [CODE]if("#".equals(e.getActionCommand()))[/CODE] statement. So, how should I go about allowing the user to select the quantity in the combobox and …

Member Avatar for lwschjang
0
152
Member Avatar for sitieda

hi helper.. i tried search many time to search this but still dont have the answer here is my code.. [COLOR="Green"]textBox11.Text = Convert.ToString(textBox3.Text) - Convert.ToString(textBox4.Text); [/COLOR] and it error : Operator '-' [COLOR="Red"]cannot be applied to operands of type 'string' and 'string' [/COLOR] please help me..im new in programming

Member Avatar for sitieda
0
129
Member Avatar for rukshilag

i want a print button to be able to print out details of a php form by connecting to a printer. can someone explain this to me with an example code please?

Member Avatar for Airshow
0
117
Member Avatar for pinsickle

Hello, I'm working on a problem (Huffman Tree encoding/decoding) and I need to covert and Int to a char. I was trying to use [CODE] char temp = static_cast <char> (index); //index is an integer [/CODE] it compiles but if I try to print, it crashes so obviously that idea …

Member Avatar for jonsca
0
269
Member Avatar for fugnut

I am writing a hangman program for class and so far I am able to read in and randomly pick a word from the file. The problem I am facing is counting the number of letters in the chosen word. Once I get that I can work on the rest …

Member Avatar for jonsca
0
190
Member Avatar for andrew732

I'm not sure exactly what I'm looking for or whether it exists, but I was hoping to get any ideas from the assembly experts here. I do know basic x86 and ARM assembly from classes but have not used them much in "real life." Ideally, what I would like is …

Member Avatar for andrew732
0
437
Member Avatar for bgx90

I am trying to place a friend function of a template class named sort in its own header file. I keep getting errors when compiling my test program. I have tried different things to fix it, but nothing works. My experience with template classes is limited as is my knowledge …

Member Avatar for bgx90
0
237
Member Avatar for Ammar1990

Hi All, I am new to C language and am suppose to write a program that gives me an even integer with cube greater than 40000 and also is divisible by 7. This is what i have... [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ float a,b,c,d,e; a=pow(40000,1/3); while(pow(40000,1/3)<=a){ a=b; …

Member Avatar for Adak
0
119
Member Avatar for JordanWalcaraz

Hi everyone, I know this is a very beginner inquiry, but I can't seem to figure out exactly what it is that I'm doing wrong. I'm using this tutorial: [url]http://www.sthurlow.com/python/lesson05/[/url] to build a simple calculator program. My version of Python is 3.1.2 here is my code: [code] loop = 1 …

Member Avatar for hondros
0
142
Member Avatar for ITGuy2010

Hello, I am trying a better way to write what I have coded below, the idea is I have a one dimensional array with set values and a rectangular array that gets the number of items entered each into a text box. 1. Is there a simpler way to get …

0
45
Member Avatar for gunnarflax

ok, here's the thing: If I were to create a fileserver website like Microsofts SkyDrive then how should I structure the database? There are incredibly little information about database structure on the internet (web security too) and I've searched a whole lot. Should I create a table for every user …

Member Avatar for gunnarflax
0
88
Member Avatar for Gé48

When entering a value in dgv I want the Tab key to fire a routine. Works out ok only thing is I have to hit the Tab twice before it fires. Don't know why, is there a way to prevent it, so that I have to hit the Tab key …

Member Avatar for Gé48
0
100
Member Avatar for angel19

hi, I have a simple monopoly style board game ready (in c++). I would like to ask you how can I add additional features to the game play such as ‘chance’ cards and ‘shake again’ squares. Is it possible to create a GUI interface for this game too? At the …

Member Avatar for angel19
0
113
Member Avatar for gnarlyskim

Having issues with this program. I've been trying to identify all the areas where data is created, then tried to destroy it likewise after using it. I've put a lot of delete[] coef (coef is a pointer double array to hold coefficients). The program will run half the time, then …

Member Avatar for gnarlyskim
0
130
Member Avatar for bjeffries

I currently have some code to show the latest update on my site. I have two problems: 1) how do I get the date to Display "04-13-10". I know the php code is date("m-d-y") But how would I incorporate that for an updated item? 2) limit the number of updates …

Member Avatar for genevish
0
107
Member Avatar for Fulladder

I am designing a cinema system I want to call a another class which has a arraylist method and then display the elements inside the arraylist. Please help I made two sample classes [CODE]Class cinema() . . . . public ArrayList<time> getTime() { for (Show show : getTime){ } return …

Member Avatar for quuba
0
3K
Member Avatar for Dream2code

Hi All, 1)I want to watch a directiory in unix using a shell script. 2)In case any change happens to any of the files inside that e.g new file creation or new directory creation or any file modification we need an automated mail. 3)Mailing part i will take care 4)on …

Member Avatar for Dan08
0
156
Member Avatar for cool_jatish

hi........ can anyone tell me the connection strings to connect JAVA JAPPLET to sql server 2005 database and also the execution of SQL statement in java thanks

Member Avatar for Ezzaral
0
126
Member Avatar for ereruh

Hey. I'm making a Hangman and I have this code to retrieve a random word from a txt file: [CODE] private void ord() { Random random = new Random(); StreamReader read = new StreamReader("sweord.txt"); ArrayList lines = new ArrayList(); string line; while ((line = read.ReadLine()) != null) lines.Add(line); read.Close(); int …

Member Avatar for ereruh
0
160
Member Avatar for softdev

Hi Guys, I am trying to create a game of a two way traffic with a human trying to move between the cars to the other side without being hit by a car. I can detect the collisions, but the main problem is my cars don't move. what maybe the …

Member Avatar for quuba
0
107
Member Avatar for ctrl-alt-del

Good afternoon all! (It is over here anyway, but chilly though) As per usual in a forum of this type, I find myself mindboggled by what is probably not that difficult to solve. Thus, I was hoping any of you could enlighten me. I am in the process of writing …

Member Avatar for Diamonddrake
0
238
Member Avatar for hosam2k

hi all do anyone understand hash function? how to use it in order i can count a digit number of size 10? then i separated it half half (into 5 digits each) :)

Member Avatar for hosam2k
0
152
Member Avatar for FancyShoes

Hi I am trying to return a boolean value into another method, but it's not working. [CODE] public static boolean ItemFound(boolean item, String desc1, String desc2, JTextArea txt){ if(item == true) txt.setText(desc1); if(item == false){ txt.setText(desc2); item = true; } return item; }[/CODE] and inside the other method I have …

Member Avatar for FancyShoes
0
155
Member Avatar for Ranvijay87
Member Avatar for nodoso

Hi everybody, I am kind of new to vb.net and have some problems with images. I need to show multiple images but the amount can be variable. So I know there is some kind of picturebox in vb.net to show an image. But how can I show multiple images without …

Member Avatar for SolutionExpert
0
700
Member Avatar for MDanz

i have a forum, with new posts how do i use sessions for each user to determine if the posts clicked on and not? I'm guessing sessions because that is individual to the user... e.g. new post, then click on not new post. i can't assign this to the actual …

Member Avatar for cwarn23
0
99
Member Avatar for samready

Is there a way to store multiple values to a key without using any extra modules? Here is the code I have so far: [icode] $key = $ref->{$uniqueKey}; my $systemKey = GetSystem($key); push @{$referenceTable{$key}}, $systemKey; my ($k, @v); # SET UP THE TABLE print "<table border='1'>"; print "<th>User</th><th>System</th>"; # EXECUTE …

Member Avatar for d5e5
0
1K
Member Avatar for ceyesuma

Hello. Can someone explain what this InitialContext(): is looking for? [code] public JDBCSchoolofdbDAO() { try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup( ModelUtils.getResource("JavaCompEnv")); dataSource = (DataSource) envCtx.lookup( ModelUtils.getResource("DataSource")); } catch (NamingException x) { ModelUtils.log(x); throw new InternalError(x.getMessage()); } } [/code] [code] DAO=schoolAppModel.dao.JDBCSchoolofdbDAO #///////////////////////////////////////////////// # DAO=jsfdb.model.dao.JDBCSubscriberDAO #///////////////////////////////////////////////// …

Member Avatar for ceyesuma
0
2K
Member Avatar for carrzkiss

Hello All; It seems that I have just run into a small issue that I am hoping can get resolved pretty quickly, as it is the only thing that is holding me back from completely this part of my task. In an ASHX file, I am needing to read a …

Member Avatar for carrzkiss
0
159
Member Avatar for manjotpahwa

//*************************SERIOUS PROBLEM, NOT WORKING****************** [CODE]//DOUBLY LINKED LIST #include<stdio.h> #include<stdlib.h> struct dll { int info; struct dll *next; struct dll *prev; }; struct dll *head = NULL, *tail = NULL, *temp; void append(); void insafter(); void delete(); void display(); void main() { int choice; do { printf("Enter your choice:\n"); printf("1.Append Node\n2.Insert …

Member Avatar for jephthah
0
156
Member Avatar for leverin4

I'm relatively new to access and have a problem. I have multiple rows of information on a form, and each of these rows has a few text boxes and one combo box. The combo box needs to have different information in it based on another field in the row. The …

Member Avatar for ChrisPadgham
0
115
Member Avatar for owartz

My assignment is as follow: Create a class IntegerSet. The IntegerSet can hold integers in the range [1-100]. Define one or more instance variables to represent IntegerSet properties and store elements. Additionally, provide the following methods: a. One or more constructors. b. Method void add(int) inserts a new element to …

Member Avatar for jwenting
0
142
Member Avatar for Lukezzz

Hi, I wonder if there is any syntax that can detect if any Browserwindow is open on the computer and then close this/these windows. I use Firefox and then would want to detect if any Firefox browserwindow is opened and then close them if any is open. Thank you!

Member Avatar for Lukezzz
0
110
Member Avatar for fugnut

what AmI missing? I am simply trying to read in an array from a txt file and count the words. What am I doing wrong....here is the function[CODE]int countwords(ifstream& infile, int wordcount[MAX_WORDS]) { int count = 0; for( int i=0; i < MAX_WORDS && infile; i++) { infile>>wordcount[i]; count++; } …

Member Avatar for Ancient Dragon
0
86
Member Avatar for TrustyTony

I optimized very carefully program I was producing by producing the main tight loop functions half a dozen times with various implementation styles. Also i considered amount of passing information in call hierarchy in parameters or letting functions to trust proper initialization of the global variables. I got few interesting …

0
116
Member Avatar for IndranilM

Hello Folks, I have developed a s/w on vb.net2008 and want to make a setup of it so that my client could easily install it in her system without having .net framework installed in it. If anybody could provide me a step by step method i would appreciate. Regards Indranil …

Member Avatar for GeekByChoiCe
0
115

The End.