43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for SasseMan

Hi! I'm looking for a way to only run a few tests instead of all existings JUnit test cases in our automated build, which uses ant. I can't add @ignore annotations in the code since it would take to much time. Is there a way to define which test cases/classes …

Software Development java
Member Avatar for SasseMan
0
221
Member Avatar for bhagawatshinde

Hi guys, Can anybody help to figure out the problem. In my C# application project with access database when fetching the records from db it will give me error "Unspecified error". Thanks in advance...

Software Development
Member Avatar for bhagawatshinde
0
613
Member Avatar for wzunix

Hiya, recently came across these two grid methods; but am confused about the distinction between them. wonder if anyone could give a simple example to tell the diff? Thanks a million!

Software Development python
Member Avatar for wzunix
0
193
Member Avatar for Cronicle8

Good morning, Here i am again, asking help to all of you that are able to help me, my problem is the following, i translated some code from C# to VB, mas the code in C3, what it does is change the wallpaper and it's style for Windows Starter, but …

Software Development c# vb.net visual-basic
Member Avatar for Cronicle8
0
235
Member Avatar for yeeitsneo

uhm. im coding a simple log in program in vb 6 and im using access as the database. i already coded the username and password verification part successfully. but our instructor requires us to include a "Privilege" whereas, all registered usernames in the database have corresponding privilege or rights to …

Member Avatar for AndreRet
0
851
Member Avatar for SmackTubby

So, I am fairly new to C++ programming, so if you can help me, please try to keep it simple...I'm still learning. What I'm trying to do is assign a score to a grade letter (A,B,C,D,F) and then display it. This is what I'm have: [CODE]string lettergrade1; string lettergrade2; if …

Software Development c++
Member Avatar for SmackTubby
0
225
Member Avatar for six_sic6

Hellow. I have 3 variables 1. string query; 2. public static OracleCommand oracmd; 3. public static OracleDataReader reader; I have used these variables in a function [CODE=C#] . . . public void PreviousValue() { query = " select * from....... "; oracmd = new OracleCommand(); .... .... reader = oracmd.ExecuteReader(); …

Software Development c c# c++ oracle
Member Avatar for six_sic6
0
192
Member Avatar for kolibrizas

I got a file downloaded named "Rybka v2.3.2a.mp.w32.exe". In GUI chess software you are able to add this as a chess engine, but I have no clue how the input/output of that engine works. As I understand the program sends the engine current position and the engine returns some output. …

Software Development gui
Member Avatar for thines01
0
177
Member Avatar for nickliutw

I'm running a problem with install the junit to the computer. I already download the junit to my computer. But how do I install it? I try to google it, but I don't understand their instructions. I remember in the class, my teacher do a lot of copy and paste …

Software Development ide java
Member Avatar for nickliutw
0
89
Member Avatar for KazenoZ

Hello, Simple question this time, I hope, I have a program that collects an argument from execution on another program, the argument is the path to a file. Now, the problem is that when I try to read the argument to a string using argv[1], it'll only get the first …

Software Development c++
Member Avatar for Shimano
0
1K
Member Avatar for Labdabeta

I have this code for AlphaBeta implementation and have created versions of the required interfaces that work perfectly (I have debugged them quite thoroughly). Unfortunately my algorithm keeps returning an empty vector and score of 0. Here is the code: [CODE]#include <vector> #include <limits.h> using namespace std; typedef vector<unsigned char> …

Software Development algorithm c++
Member Avatar for Labdabeta
0
314
Member Avatar for mehnihma

I need to check whether the entered numbers are valid, if not output a message. this needs to be done with using exception handles. i have tried the following but does not work. i get the error : cannot invoke hasNextInt() on the primitive type int [CODE]input = in.nextInt(); if …

Software Development java
Member Avatar for zeroliken
0
281
Member Avatar for dr_iton

Ok lets start with my problem: First i have to write my date of birth with the following format: DD.MM.YYYY This needs to be shown as DDMMYYYY, which means that dots must be lost. I've solved that. This kind of number with 8 digits it needs to be converted in …

Software Development
Member Avatar for dr_iton
0
163
Member Avatar for phorce

Hello could someone explain what I'm doing wrong to get the error: Segmentation fault: 11 when trying to fill in a 2D array from two for loops? Here is the code: Matrix.h [code] #ifndef _Matrix_h #define _Matrix_h using namespace std; class Matrix { public: Matrix(); // Constructor Matrix(int M, int …

Software Development c++
Member Avatar for phorce
0
1K
Member Avatar for lxXTaCoXxl

I'm trying to make my particles fade in my application using the alpha argument of the Color.FromArgb method but my math won't work because I have a nullable DateTime variable and the error it gives me is 'System.Nullable<System.TimeSpan>' does not contain a definition for 'TotalMilliseconds' and no extension method 'TotalMilliseconds' …

Software Development assembly
Member Avatar for lxXTaCoXxl
0
1K
Member Avatar for jade_91

For the program I have the user entering their current distance and bearing from specified point with the programme then returning the nearest station and bearing/distance to this station. However I also want to include what line the station is situated so I know the code will be something along …

Software Development java
Member Avatar for jade_91
0
122
Member Avatar for emmas4impact

Hello, I'm working on a Moving Ball project and on the moving ball there are random number so i need to use the keyboard or the mouse to click on the number printed on the moving but i dont know how to go about it. here is the code below: …

Software Development java java-swing queue
Member Avatar for emmas4impact
1
2K
Member Avatar for Sevyt

I am writing a small program to quickly search through a archive. But i cannot figure out how to get it to filter. I got my regular fields like firstname,lastname, gender, birthyear, street, city, zip, phone. Which i can search through by just entering one of these fields. Then i …

Software Development vb.net
Member Avatar for Reverend Jim
0
236
Member Avatar for Tom_Krajci

Please see attached XML file. I am using the XPATH expression getValueXPath() in JavaScript to extract one value from an XML alert message - to control a robotic telescope. I need to extract the value for Dec, a coordinate location in the sky that is a child of <WhereWhen> The …

Software Development data-structure xml
Member Avatar for Tom_Krajci
0
101
Member Avatar for XO39

Please be easy on me and don't shoot me as I'm still newbie. I'm totally confused and can't for life figure out why when I run this code: [CODE]y = 9; cout << "++y = " << ++y << "\n--y = " << --y << "\ny++ = " << y++ …

Software Development c++ first-post
Member Avatar for XO39
0
179
Member Avatar for roottybrian

Hi guys, Have been trying this out for sometime with no success. I want to be able to use pdf printing application like pdfprinter to print my vb reports to and then save the reports to a particular location on my computer. Anyone with an idea how i'd achieve that? …

Software Development pdf vb.net
Member Avatar for Reverend Jim
0
371
Member Avatar for yeeitsneo

hi. can you please help me out with this program im writing. its a simple log in system written in vb6 . ms access is my database. i have a problem with connecting vb to access. heres the code: [CODE] /codes for module Public db As ADODB.Connection Public rec As …

Member Avatar for yeeitsneo
0
333
Member Avatar for mitrious

I have a node class that has a pointer to Node indicating its parent Node [CODE] class Node { . . . Node *parentNode; }; [/CODE] I receive a pointer to node in the constructor being the parent Node of the current node being created or a NULL value if …

Software Development c++
Member Avatar for deceptikon
0
5K
Member Avatar for king03

any ideas how to solve this?: I am using Visual Studio 2008 for compiling c++ programs and when I press f5(which is at default, the start debugging button) the console window flashes for a bit and then closes, but when I click on start without debugging, the console window stays …

Software Development c++ visual-studio
Member Avatar for BobS0327
0
140
Member Avatar for lxXTaCoXxl

I've recently posted a code snippet of a working 2D text menu for Windows Forms Applications. However, as I was going through and revising this snippet (trying to make it better and add functionality to it) I've created two new problems. The first problem is that my text is not …

Software Development
Member Avatar for lxXTaCoXxl
0
158
Member Avatar for rotten69

I was just wondering why the constructor makes a call to the method toString() then I have realised that it's because of the method's name. And why is its name so unique? I changed the name but I don't get the same results. Anyone could possible explain this please? Thanks. …

Software Development java
Member Avatar for rotten69
0
340
Member Avatar for jone kim

grid = [[0,0,0][0,0,0][0,0,0]] user fills the gird simultaneously. Now I want to make a list of empty squaes of the gird. Suppose user has filled: grid [col1][row1] , grid [col3][row1], grid [col3][row2]. Now I need a list with indexes of the empty list i.e. emptyGrid = [1,2,4,5,7,8,9] First I've to …

Software Development python
0
113
Member Avatar for scheppy

I have a grid of 225 JButtons in a 2d array of 15 x 15 I was windering do i need 225 if (event.equals (Grid[0][1])) { } or is their a loops or something, thanks in advance

Software Development java
Member Avatar for scheppy
0
372
Member Avatar for Luxifour

Hey everyone, How would you go about creating a loop for taking user input without knowing beforehand exactly how many times it will run - as I can't seem to work out how to generate a unique name each time. So, for instance, say you want to take user input …

Software Development python
Member Avatar for Luxifour
0
189
Member Avatar for scheppy

Ok, so I've imported import java.util.Random; and im trying to get a random number between 1 and 2, 1 and 4,and also 1 and 15, how would i acomplish this, i know how to generate random numbers, but not between 2 certain numbers?, how can this be accomplished?

Software Development java
Member Avatar for scheppy
0
164
Member Avatar for moroccanplaya

hi i got a a Tkinter text widget and a string i want to know how to display the string in the text widget ?? [CODE] abc = "hello world" text = Text(app, width=80,height=40, wrap='none').grid(row=2, column=2) [/CODE]

Software Development python tkinter
Member Avatar for bumsfeld
0
226
Member Avatar for phorce

Hello, I'm trying to create a matrix that dynamically defines the rows and columns.. Now, everything is fine, apart from when I include a function to output the 2D array.. The error: Matrix.cpp:20: error: invalid types ‘double[int]’ for array subscript ... The code is: Matrix.cpp [code] #include <iostream> #include "Matrix.h" …

Software Development c++
Member Avatar for phorce
0
130
Member Avatar for slasherpunk

So, I wrote the following program to connect to my local mysql server and create a table in the existing "test" database. The program compiled without any errors, but I got the following run-time error: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on …

Software Development java mysql
Member Avatar for slasherpunk
0
15K
Member Avatar for sagy26.1991

hello everyone, I am new to java programming and i am currently studying inheritance. I have following program and i am getting error [COLOR="Red"]"cannot find symbol"[/COLOR] .Please help me.Thanks in advance. [CODE]class Box { double width; double height; double depth; Box() { //default constructor width = 0; height = 0; …

Software Development java
Member Avatar for sagy26.1991
0
1K
Member Avatar for aashishsatya

Hi, I'm an absolute beginner in Visual C++ (Express Edition 2010). I've just been trying out this very simple program, and I can't get to use the '\b' tag like I did when I used Turbo C++ v4.5. The cursor moves backwards, but the text does not get erased, as …

Software Development c++
Member Avatar for LRRR
0
308
Member Avatar for Undeclared

I have a Gridview in which I have made a column of checkboxes named 'Status'. When the user clicks a button I want to see if a checkbox in particular row was checked by him or not. Code I have written is: [CODE]for (int i = 0; i <= Grid.Rows.Count; …

Software Development
Member Avatar for Undeclared
0
334
Member Avatar for jumboora

Hello Guys, My job is to process the text files. following are the steps that i have to do. 1: To combine multiple text files into one text file 2: Add filename (but without extension) in the beginning of each text file. 3: and Finally, index the contents of the …

Software Development file-system
Member Avatar for jumboora
0
2K
Member Avatar for cadamsjr

Hi everyone, I have a javascript, jQuery, and c++ background so im not completely new but am just starting to learn Java in a University setting. In our first program we are to run it within a Do...While loop so the user can click a JButton for yes or no, …

Software Development java javascript-jquery
Member Avatar for cadamsjr
0
192
Member Avatar for wael meto

HI ALL I HAVE SMALL PROPLEM I CANT SOLVE AND I THINK ITS SIMPLE I ONLY TRY TO FILL THE DATASET WITH TABLEADABTER BY SELECT WHERE IN FILL,GET METHOD BY SELECT STENAME, PATENT, RCOMER FROM FOURNI WHERE (RCOMER =@RCOMER) I ALWAYS GOT THE ERROR Error in WHERE clause near '@' …

Software Development dataset vb.net
Member Avatar for wael meto
0
224
Member Avatar for friknos

hi i am trying to create a dvd rental system, up till now i have entered the client's details into an array list and have created a loan for every client that rented a dvd. But now i need to edit a part of this loan, for eg i need …

Software Development java
Member Avatar for friknos
0
138
Member Avatar for fastali

[CODE]char *ReadFile(string& filepath) { string buffer=""; char temp_char; ifstream file; file.open(filepath); while(!(file.eof())) { file.get(temp_char); buffer+=temp_char; } size=buffer.length(); char *result1=new char[size]; for(int i=0;i<buffer.length();i++) { result1[i]=buffer[i]; } file.close(); return result1; }[/CODE] code looks pretty normal right? but when I run it with the rest of the program this happens... [url]http://imageshack.us/photo/my-images/267/chararray0001.jpg/[/url] [url]http://imageshack.us/photo/my-images/28/chararray0002.jpg/[/url] [url]http://imageshack.us/photo/my-images/11/chararray0003.jpg/[/url] …

Software Development c++
Member Avatar for fastali
0
144
Member Avatar for LogicalOutlier

[CODE]public class Grades{ public int scoreTotal; public int numScores; double average; static String file = "randomNumbers.txt"; int lowest; int x; int temp; public static void main(String[] args) throws FileNotFoundException{ int scoreTotal = 0; int numScores = 0; double average = 0; int lowest = -1; int temp = 0; Scanner …

Software Development java
Member Avatar for NormR1
0
192
Member Avatar for Lillylionhert

I was just wandering if there was a way to put information in to a string but increment a section of the text when putting it in the string. To put it simply: [CODE]string="to be put in string[this is to be incremented]";[/CODE] I was wandering if there is a way …

Software Development c
Member Avatar for Lillylionhert
0
132
Member Avatar for Youg

I think it's just ging to be something stupid that I've missed since the program itself runs, though doesn't solve the decrypted text. I've included the text from the decrypted file below the code and any help would be great. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Frequency_Analysis …

Software Development
Member Avatar for phorce
0
486
Member Avatar for a.muqeet khan

guys i have a little problem in my file handling program that is i cant get the whole file to be saved just the end portion i want to know why this happens and how to counter it [CODE]// file handling flag testing and practise.cpp : Defines the entry point …

Software Development c++
Member Avatar for thines01
-1
387
Member Avatar for jaskij

The program is supposed to compute the values of [URL="http://mathworld.wolfram.com/GammaFunction.html"]Euler's Gamma Function[/URL] using an infinite product (formula #15 in the link), and it does so decently for low values, but the error gets too big for bigger values. Using both Mathematica and Maxima for reference this is what I get …

Software Development c++
Member Avatar for jaskij
0
212
Member Avatar for Lillylionhert

please disregard this as i have figured out what was going on. i will delete this as soon as i know how.

Software Development c
0
116
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> union REGS in,out; void hide_mouse(); void show_mouse(); void detect_mouse(); void detect(int*,int*,int*); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any …

Software Development c
Member Avatar for DeanMSands3
0
181
Member Avatar for Jigs28

How to set case sensitivity in ms access database? I need it for password column.

Software Development
Member Avatar for Momerath
0
1K
Member Avatar for vedro-compota

Hi there)) I know that one of the ways to pass variables values into thread -is to create a special structure which includes all needed parameters/ But what about getting values from thread? Is it any way to get value after modification from the thread ? I know only one …

Software Development c
Member Avatar for vedro-compota
0
221

The End.