132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for samueal

Hi, I am using HTTPRequest and HTTPResponse to get the page source of a site. and i'm getting a warning message "Enable JavaScript to view your site". Is there any request i should add to enable JavaScript

Software Development java javascript
Member Avatar for samueal
0
206
Member Avatar for niranga

Hi, I am working on a project which requires to update a JEditorPane or JTextField simultaneously by multiple clients. It is something like this. [B][1]. There are several users( i.e a group) with the same application which contains a JEditorPane. [2]. There is a group leader for a group( note: …

Member Avatar for JamesCherrill
0
279
Member Avatar for failbot

Hi, I am working on this code: [CODE]#include <iostream> using namespace std; send(to, from, count) { register int *to, *from; register int count; { register n=(count+7)/8; switch(count%8){ case 0: do{ *to++ = *from++; case 7: *to++ = *from++; case 6: *to++ = *from++; case 5: *to++ = *from++; case 4: …

Software Development c++
Member Avatar for failbot
0
226
Member Avatar for munitjsr2

[CODE] #include <iostream> #include <vector> #include <algorithm> using namespace std; class A { public : void getData(vector< A > &); void putData(vector< A > &); private : int x; char name[90]; }; vector< A > v; void A :: getData(vector< A > &Aref) { cout << "id = "; cin …

Software Development algorithm c++
Member Avatar for munitjsr2
0
243
Member Avatar for coolbeanbob

Hi, I am getting a null pointer exception with the code below. From what I have read, it seems like something is null, but I do not understand how this could be a problem? The error is occurring on line 205 of the StudentContainer class. (This is at the very …

Software Development gui java java-swing
Member Avatar for jon.kiparsky
0
717
Member Avatar for lxXTaCoXxl

I'm trying to get some information on the live XBOX stat's feed. Like recent games, gamer score, rating, and gamer picture. I want it to update continuously (like if you were on Microsoft's website viewing someone's XBOX Live profile, or on the XBOX itself looking at their live stats) and …

Software Development
Member Avatar for jh00
0
135
Member Avatar for carinlynchin

here is my one class (controller) and the other (GUI) what is happening is inside the SearchListener inner class for the button, I am calling a method from the controller class (i have already tested the parameter sent and that part works fine) but when i click on a code …

Software Development api gui java java-swing web-server
Member Avatar for carinlynchin
0
3K
Member Avatar for Naruse

Hi, There are a way to separate the string by commas? Please Help. Best Regards

Software Development visual-basic
Member Avatar for Jx_Man
0
185
Member Avatar for Robbie Y.

Hey guys! I'm trying to write a program that involves a switch/case on Microsoft Visual Studion 2010. Unfortunately, some of my variables are not being initialized. I am a very novie programmer so please have mercy on me! Two of my options (1,4) are working but options (2,3) are not. …

Software Development c++
Member Avatar for Robbie Y.
0
172
Member Avatar for bensewards

Hey everyone, I'm new at visual c++ and MFC Applications, and so I am going through Ivor Horton's Beginning Visual C++ 2010 to make a drawing application through Microsoft Foundation Class. I added menu bars for options, such as shape(rectangle, line, and ellipse) and select colors (black, red, blue green). …

Software Development c++ gui
Member Avatar for bensewards
0
293
Member Avatar for APCompSci

Consider the following two classes. [CODE]public class Dog { public void act() { System.out.print("run"); eat(); } public void eat() { System.out.print("eat"); } } public class UnderDog extends Dog { public void act() { super.act(); System.out.print("sleep"); } public void eat() { super.eat(); System.out.print("bark"); } }[/CODE] Assume that the following declaration appears …

Software Development java
Member Avatar for jon.kiparsky
0
2K
Member Avatar for cppjosh

Hey everyone! I was recently assigned this program in class and have only finished about half the work but am already very confused. I was just hoping that some of you could give it a shot and share what kind of code you came up with. Well here it is …

Software Development c++
Member Avatar for pseudorandom21
0
120
Member Avatar for SillySpAz

I keep getting an output of zero, I don't know what's wrong.. #include <iostream> using namespace std; double determineCommissionRate(double totalCommission, double totalSales); double determineBasePay(double basePay, double yearsWorked); int main() { double yearsWorked, totalSales, totalPay, totalCommission, basePay; cout << "Please enter the number of years you have worked at this company" …

Software Development c++
Member Avatar for SillySpAz
0
129
Member Avatar for almoj4ever

hi there ,,, im new to this forums and i really need somehelp in paython as i've got this homework and i need somehelp with it !! ,,, and im so stuck in it ! 1.Write a function to find average of a series of numbers entered by the user. …

Software Development python
Member Avatar for predator78
0
168
Member Avatar for jowana

Hello, I have a line on my image and i want to find the maximim grey-level value on that line . so i need to scan the line and pick the pixel with the highest value how can I do this? should I calculat the gradient magnitude ? Thanks in …

Software Development c++
Member Avatar for jowana
0
124
Member Avatar for blahbla

need some help with this lab this class is to draw a line with *'s i guess in the command prompt since it uses System.out to print i was given the function names and the comments that tells me what the function does i wrote the code in the functions …

Software Development java
0
101
Member Avatar for lochnessmonster

Local * pLocal = *(Local**)0xE6EB54; // valid How would u interpret these in english i understand it has to do with a pointer to a double pointer? Local * pLocal = (Local**)0xE6EB54; // not sure if this is even valid if the above is valid as well how would u …

Software Development c++
Member Avatar for mike_2000_17
0
92
Member Avatar for andimiami

I am doing a program involving an unsorted list of names that I have to turn form Firstname Lastname into Lastname, Firstname. So I wrote the main program, and my instructor told me that under my getList function, to retrieve the data just do data >> first and data >> …

Software Development c++
Member Avatar for Greywolf333
0
135
Member Avatar for veena1555

Hi friends i have dell inspiron laptop with i3 core processor..having Oracle 10g as database. i could n't run JDBC programs in my lapy. so many ppl spoke to me that dell lapy doesn't support type1 driver.. So i tried for third party type 4 drivers(OJDBC14.JAR) it is also not …

Software Development java oracle
Member Avatar for veena1555
0
91
Member Avatar for turt2live

Ok, So I'm amking a game and need walls so you can't walk through walls (This is a top down view game, screenshot [URL="http://turt2live.servebeer.com/game_stuff/walls.png"]here[/URL]), although, my calculation for seeing if you are going to hit a wall slows down the game with the 3 walls I have (I stopped making …

Software Development image java
Member Avatar for turt2live
0
196
Member Avatar for JakeA

hi! i have a listbox binded to a list. the list contains checkboxes binded to a field/member of the list. what i want to achieve is that i want to delete the data from list when it's corresponding checkbox is checked... here's my xaml code: [CODE]<ListBox Name="ListBox1" ItemsSource="{Binding histList, Mode=OneWay}" …

Software Development
Member Avatar for Mitja Bonca
0
191
Member Avatar for daviddoria

n windows I used GDI+ to capture a region of the screen. Is there something similar for linux? I want to do ScreenCapture(Top, Left, Width, Height); and save it to a file (png or something). What's the easiest way to do this? Thanks, Dave

Software Development c++
Member Avatar for Mual
0
1K
Member Avatar for chester1908

Hello all. I got a project which includes many classes.One of them is a class extending JPanel which is used to load an image as a background for my JFrame. Now,there are 2 other classes,instances of which are used to represent people interfering with each other or moving within the …

Software Development gui java
Member Avatar for mKorbel
0
145
Member Avatar for xnutcracker

So I need to write a program..this is the basic outline: Start -Print "Enter input:" -Accept String and store from $2000 -> then print all letters in upper case -Count String length -> print -Count lower case letters -> print End **Got to use variables letterstotal = 0 and modifiedtotal …

Software Development assembly
Member Avatar for xnutcracker
0
194
Member Avatar for ROTC89

Hi I am new to python. I am trying to get my fraction program to work but I keep getting this error message: Any advice would be helpful! [ICODE] File "main.py", line 5, in ? from fraction import* File "/home/students/bf133052/CS4223/fraction.py", line 10 def__init__(self,numerator,denominator=1): ^ SyntaxError: invalid syntax [/ICODE] here is …

Software Development python
Member Avatar for ROTC89
0
3K
Member Avatar for coolbeanbob

I am using a keylistener and I need to know when the backspace and delete keys are used. Does anyone know how this is done? I have not found anything online.

Software Development java
Member Avatar for niranga
0
1K
Member Avatar for bibiki

hey there, I am trying to make my first connection to a mysql server with java. I took the following code from another thread: [CODE] import java.sql.Connection; import java.sql.DriverManager; public class Connect { public static Connection ConnectDB() { Connection conn = null; try { String userName = "root"; String password …

Software Development java mysql
Member Avatar for bibiki
0
166
Member Avatar for Usmaan

Hey forum, When we make a button on our WPF form and double click on it, we get the following code generated for us: [CODE] private void button1_Click(object sender, EventArgs e) { }[/CODE] Now obviously, the button is a _Click method which basically means that whatever code that goes within …

Software Development
Member Avatar for Usmaan
0
393
Member Avatar for techie929

Hi, I want to make a JLAbel clickable. For example if a user click on the jlabel he is directed to some url like [url]www.google.com[/url]. Any help would be appreciated. Thanks.

Software Development java
Member Avatar for JamesCherrill
0
98
Member Avatar for superjj

I'm making a project in c + +. I am now creating help, so if you push a button or F1. but I do not know how to make this. can someone help me Thanks in advance jongen joeri

Software Development c++
Member Avatar for superjj
0
108
Member Avatar for ihatehippies

how do I catch changes to a mutable object ie: [CODE=python] class test(object): def __init__(self): self.x = [] def __getattr__(self, atr): print 'retrieving atr %s' % atr return self.__dict__[atr] def __setattr__(self, atr, val): print 'setting atr %s to value % s' % (atr, val) self.__dict__[atr] = val [/CODE] >>> instance …

Software Development python
Member Avatar for ihatehippies
0
229
Member Avatar for zebnoon

Hye dear ! please till how barcode reader read and put code in VB6 textbox.for example in the General store software.If you have any example please send me. zeb noon

Software Development visual-basic
Member Avatar for zebnoon
0
181
Member Avatar for joru819

[CODE]#include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; void displayCardFace(int value)// gives 10 value cards a face to make gameplay more realistic { if ((value >= 2) && (value <=10)) cout << value; else if (value == 1) cout << "Ace"; else if (value == 11) cout …

Software Development c++
Member Avatar for abhimanipal
0
108
Member Avatar for cppgangster

Hi started learning c from book "let us c". I noticed that I can't find string unformated functions such as putch,putche or stricmp? Are these funtcion are part of standart?

Software Development c
Member Avatar for abhimanipal
0
128
Member Avatar for quartaela

hi there i am trying to build a linked list from read a file operation. this code only adds the first node to the list. the problem is i am facing with "error: request for member 'head' in something not a structure or union" error. i call add_Node function in …

Software Development c linked-list
Member Avatar for abhimanipal
0
444
Member Avatar for JohnBoyMan

Hello. I have been programming for a while now and am ok but for some reason i can never figure out weather or not to do something like this [CODE] code * c; c->something(); [/CODE] or [CODE] code c; c.something(); [/CODE] no where has explained that to me, but ive …

Software Development c++
Member Avatar for WaltP
0
86
Member Avatar for Mr. K

I am trying to move a ball using time. What do I need to know to move the ball? How can I move the ball 20 pixel per second? [CODE]#include <allegro.h> int ballx = 320; int bally = 240; void ball(){ if(key[KEY_RIGHT]){ } else if(key[KEY_LEFT]) { } acquire_screen(); circlefill(screen,ballx,bally,5,makecol(255,255,255)); release_screen(); …

Software Development c++
Member Avatar for Mr. K
0
193
Member Avatar for CodyOebel

OK I figured after looking at some of my top down style original application that I wanted to make it a bit more classy, and organized as well as simply just use a class to both keep familiar and give me dynamic options. I have ran into problems and cannot …

Software Development c++ flash
Member Avatar for CodyOebel
0
279
Member Avatar for xander25

So ive been trying to figure this out on my own and searching the books and the net and still no success. Can anyone give me some input with this thing. [code=php] #pragma once #include<iostream> #include<cstring> using namespace std; class hugeint{ friend ostream &operator<<(ostream &, const hugeint &); public: hugeint(long …

Software Development c++
Member Avatar for ztdep
0
379
Member Avatar for cestra

[COLOR="Red"][B]//This is the main file[/B][/COLOR] [CODE]#include<iostream> #include<fstream> #include<string> #include "Books.h" #include"account.h" using namespace std; int main() { cout << "\tWelcome\t" <<endl; cout << "1-Login" <<endl; cout << "2-Register" <<endl; cout << "3-exit" <<endl; cout << "Please enter a choice: "; cin >> choice; switch (choice){ case 1: system ("cls"); cout …

Software Development c c++ oop
Member Avatar for cestra
0
206
Member Avatar for pseudorandom21

Hey I'm making a small application for my gaming buddies, and I have a picturebox that I'm drawing on. The problem is, it appears as though the Location property of the MouseEventArgs is wrong, and it becomes even more so toward the bottom + right portion of the picture, like …

Software Development gaming
Member Avatar for pseudorandom21
0
95
Member Avatar for ztdep

Dear friends; I write a stack template, the head file and the main are as follows; but when i test the push function, it give me the following error. i do not understand the reason. could you please help me out. 1>f:\computation\datastructure\stack template\stack template\main.cpp(31) : error C2664: 'Stack<T>::push' : cannot …

Software Development c++
Member Avatar for mike_2000_17
0
177
Member Avatar for olsane

hey i have a little problem with this app, and i hope somebody can help me. i have to create an application that watch over your appointments. i have the JFrame up and running, but i have some issues with the buttons: when "New appointment" clicks, the data for the …

Software Development java
Member Avatar for mKorbel
0
101
Member Avatar for ellorinco

good day guys! anyone can help me about this.. i need to create a login form with database (users.mdf) im newbie in c# .net i manage to create a connection my problem is the code behind the Login_Button thanks God bless

Software Development c# sql
Member Avatar for ellorinco
0
200
Member Avatar for Euphan

I've been tasked with reading in multiple emails that are stored in a single archive file and then scanning it to find certain things. My problem now is that I seem to only be reading in the first of the many individual files stored in the single archive. The "archive" …

Software Development c++ regex
Member Avatar for Euphan
0
243
Member Avatar for loveman47

I'm trying to make the ball move to a specific place then falls into the bottom of the app and this is an quick image I made to make it clear [URL=http://img845.imageshack.us/i/sssssv.gif/][IMG]http://img845.imageshack.us/img845/6651/sssssv.gif[/IMG][/URL] and this is what I've been doing , I know it's a mess :S [CODE] private float ballRadius …

Software Development java
Member Avatar for loveman47
0
130
Member Avatar for sms5660

I can't make my array work. I have never encountered this error before and I am a beginner programmer, this is my homework assignment. Please help! I really don't understand/know a lot of terminology, so it would be most helpful if you showed me how to change my errors. Thank …

Software Development c++
Member Avatar for sms5660
0
260
Member Avatar for warlord902

I want to expand my Jtree nodes into multiple lines. Any idea for how to achieve this?

Software Development java
Member Avatar for warlord902
0
1K
Member Avatar for moshiurbest

i want to make a game where different player can join.this is as like a dice game.first time numbers of player can join,after joining the game will start.the game will continue up to 5 or 6 round.after that highest scorer will be declared as a winner, one thing i like …

Software Development c
Member Avatar for kiranroy
0
87
Member Avatar for LMat619

Hi everyone. I am writing a code that receives two numbers and puts them into strings. The first number works fine, but when the program tries to get the second number, it crashes. I found out that the problem is with "12(%ebp)." If I change it to 8(%ebp) or 16(%ebp), …

Software Development assembly
Member Avatar for untio
0
172

The End.