132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for buster2209

When I set my code going, the whole GUI freezes and I can't select anything or even move the window until the code has finished. Is there a way to interact with the GUI [I]whilst[/I] a piece of code is running?

Software Development gui
Member Avatar for nick.crane
0
98
Member Avatar for PDB1982

Why am I getting this error: [code] Please Enter 5 variables: Please enter value in slot 0:1 Please enter value in slot 1:2 Please enter value in slot 2:5 Please enter value in slot 3:4 Please enter value in slot 4:2 [COLOR="Red"]Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at Duplicates.NumberCheck(Duplicates.java:32) at …

Software Development java
Member Avatar for PDB1982
0
92
Member Avatar for glenak

I want to begin writing C++ codes in Eclipse. When I try to create a new C++ project I am given the option of choosing an executable project type, a shared library project type or a static library projec type. What's the difference between all these project types and which …

Software Development c++
Member Avatar for glenak
0
216
Member Avatar for hemal1972

[B][B]hello to all, I am making a database project in vb.net. I have one table which has 9 columns. I am using ms access database as server side. my question is that, how to insert rows with values in a table.please help me. thanks.[/B][/B]

Software Development html-css vb.net
Member Avatar for Naveed_786
0
143
Member Avatar for tanvirahmad4914

hi experts i m using ms access data base as back and in my new project, this is my code Imports System.Data.OleDb Public Class st_name Dim cmd As OleDbCommand Dim dr As OleDbDataReader Dim thismode As Integer Private Sub st_name_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load tcon() …

Software Development asp.net vb.net
Member Avatar for Oxiegen
0
132
Member Avatar for novice20

while trying to configure yapsnmp-0.7.8, i get the following.. checking for patch... patch checking for kstat_open in -lkstat... no checking for socket in -lsocket... no checking for HMAC in -lcrypto... no checking for init_snmp in -lsnmp... no configure: error:[B] Couldn't find libsnmp [/B] what might be the reason?

Software Development python
Member Avatar for novice20
0
168
Member Avatar for rizrash

Hey Friends i am new here !! Well i have a project in which i am required to make some good program out of the Tubo C book !! Now i was thinking of a Tic Tac Game or a Mathematical equation calculation program ! I`ve seen some examples here …

Software Development c
Member Avatar for Adak
0
2K
Member Avatar for udev

Hi! I want to read from a set of documents and put the information into a matrix[x][y] , where x is the document and y is a boolean field denoting whether a particular word appears in the document x or not. So each row would have y fields/dimensions where i …

Software Development python
Member Avatar for udev
0
117
Member Avatar for judgemental

hi, this is my code to display one textarea, textfield and label in the flowlayout. and 2*2 button /** * @(#)Gui.java * * * @author * @version 1.00 2010/10/5 */ import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Gui extends JFrame{ JButton b1=new JButton("one"); JButton b2=new JButton("two"); JButton b3=new JButton("three"); …

Software Development gui java java-swing
Member Avatar for tong1
0
102
Member Avatar for crodriguez08

Hey there, I'm having trouble creating a multiplication function for the program as I have two classes to keep in mind (Monomial and Polynomial). And if possible, a little advice on how to make my for statements in the arithmetic operators more flexible to user input such as i<PolynomialSize, which …

Software Development c++ legal mathematics
Member Avatar for crodriguez08
0
2K
Member Avatar for saad749

My Object is to display a 24bit color .bmp picture in 24 bit colors via Turbo C Compiler. Turbo C can display only 16 colors so I will need to use a Windows Interrupt[or something like that] to display the image. I googled a lot but couldn't get a hint …

Software Development c image
Member Avatar for Ancient Dragon
0
613
Member Avatar for AntonyLini

I am trying some Uiculture change functionality. In that I need the name and text of controls in a form to change the culture. I got some Demo project and it is in C#. I tried to make the same functionality with the C#.net and Also using VB.net. But the …

Software Development perl vb.net
Member Avatar for AntonyLini
0
100
Member Avatar for AntonyLini

I am trying some Uiculture change functionality. In that I need the name and text of controls in a form to change the culture. I got some Demo project and it is in C#. I tried to make the same functionality with the C#.net and Also using VB.net. But the …

Software Development perl vb.net
Member Avatar for AntonyLini
0
106
Member Avatar for empyrean

Hello all.. i wanted to merge two datatables.. infact its only one which is original version and modified version.. merging both to find the differences and store them in another datatable. but for some reason merge is not working.. here is the code which i have written. [CODE] public static …

Software Development
Member Avatar for chiwawa10
0
179
Member Avatar for YingKang

Don't know why I keep getting error messages. This is first the error message: 5 F:\DPR226\Homework\Customer\Customer.h:3, from main.cpp In file included from Customer.h:3, from main.cpp Could anybody help please? Thanks [CODE] // main.cpp #include <cstdlib> #include <iostream> #include <string> using namespace std; #include "Customer.h" int main(int argc, char *argv[]) { …

Software Development c++
Member Avatar for Stefano Mtangoo
0
128
Member Avatar for Nemo_NIIT

[CODE]Using System; Using NUnit Framework; [TestFixture()] public class system { Program a1 = new Program [Test] public void Test() { Program a1 = new Program(); if(System=window7) { Assert.AreEqual("a1.window7",windowBasic); } } } [/CODE] This test case i have written. if the client change his system environment there should be not any …

Software Development
Member Avatar for Nemo_NIIT
0
84
Member Avatar for keeda

Hi, I am trying to read values from a text file that has exactly 5 numbers in each line and all numbers are "tab" separated. numbers could be one digit or two digit. I am reading it as : [CODE] if (map.is_open()) { int i = 0; int num; while …

Software Development c++
Member Avatar for nbaztec
0
97
Member Avatar for ganesh_IT

Hi Guys, I am using CDateTimeCtrl in my project.I dont know how to get Date, Month and Year Separatly. If you Know explain me with simple code Thanks in Advance

Software Development c++
Member Avatar for Ancient Dragon
0
82
Member Avatar for nubore

[CODE] string CTriangle::TriangleType(string TypeOfTriangle) { if ( ValidTriangle() ) { if ( SideA == SideB && SideA == SideC && SideB == SideC ) { TypeOfTriangle = "Equilateral Triangle"; } if ( int(AngleA()) == 90 || int(AngleB()) == 90 || int(AngleC()) == 90 ) { TypeOfTriangle = "Right-Angled Triangle"; } …

Software Development c++
Member Avatar for nbaztec
0
178
Member Avatar for shirleyyu

This assignment will exercise reference parameters, value parameters, and (most important) program decomposition. This program will act as a bank. The general behavior will be: • User walks into the bank • User opens an account. This consists of: o Asking the user for a name. o Asking the user …

Software Development c++
Member Avatar for shirleyyu
0
2K
Member Avatar for sciprog1

Hello Members, If possible, kindly let me know why I am not able to see the text in the buttons("Button" and "Button two!") when I run this Java program: [CODE]import java.awt.*; import javax.swing.*; public class Sample extends JFrame { private JButton b1, b2; private final Container container; public Sample() { …

Software Development java java-swing
Member Avatar for sciprog1
0
2K
Member Avatar for coco24

My professor said we have to write a page about how to trace this for(int count = 0; count <= 3; count++) for(int count2 = 0 < count; count2++) System,out,println(count2) Can somebody give me a general idea of how to trace this I know the answer is 0 0 1 …

Software Development java
Member Avatar for tong1
0
101
Member Avatar for hoganmadman

i have managed to write a program that reads an arbitrary number of integers less than or equal to 20 and finds the sum and average. i am now trying to write a bubble sort to order the integers from least to greatest but i am having problems. this is …

Software Development c
Member Avatar for Adak
0
130
Member Avatar for allang

I'm stuck. I'm trying to wirte a very small animation applet. It is suppose to import 15 BMPs and then of course play them back in an animation. I have the BMP's stored in a seperate directory but think I have the path right. It seems I am continually getting …

Software Development java
Member Avatar for tong1
0
86
Member Avatar for doctorjo5

My project is as follows: 2. Modify the class NumberTest.java so that: a) The user is prompted to enter an integer and a double and the following information is displayed: a. adding the two number, b. subtracting the double from the int, c. dividing the int by the double, d. …

Software Development java
Member Avatar for doctorjo5
0
161
Member Avatar for 1bh

Hi guys, So my code is below. This is a simplified version of the shell... It does not continue for ever... I guess its actually rather a program to accept a command.. has the fork and the execve etc. Anyways when i compile it and run it in the terminal …

Software Development c c# c++
Member Avatar for abhimanipal
0
242
Member Avatar for patrickm129

Hello, I'm trying to learn Python to get ahead in school but don't know where to start. I already have a shell and SW installed on my machine to write the code, but I can't find a good index of the codes. What would you suggest I do or learn …

Software Development python
Member Avatar for cghtkh
0
248
Member Avatar for Hitman Mania

I have the equation 6a+9b+20c=n with n being the total number of McNuggets, and the "a" "b" "c" being the pack combos of McNuggets. Now, for n, there are different combinations that can be used to get n where n >= 6. [B][U]The problem asks that I should be able …

Software Development c
Member Avatar for Adak
0
174
Member Avatar for craffel

Hi all, long time lurker and first time poster. I'm writing a Python program which does analysis on mp3 files, so I'd like to read in the mp3 data as a numpy array. I'm using pymad, which seems stable and works well. When you read in a frame of data …

Software Development python
Member Avatar for craffel
0
200
Member Avatar for pgset

this code is supposed to be a simple game. the computer picks a random circle in the 100 by 100 square of circles called the secret spot and when you hit a circle it says either go up go down go left or go right until you hit the secret …

Software Development java
Member Avatar for tong1
0
132
Member Avatar for networkZombie

Ok so i have to write a program called hailstone numbers. Its basically asking the user to enter a number and if its even divide it by 2, if its odd multiply it by 3 and add 1 and then output the number of iterations. I made my program but …

Software Development c++
Member Avatar for networkZombie
0
235
Member Avatar for onako

I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive …

Software Development c++
Member Avatar for princess cesxo
0
161
Member Avatar for ralph prgrmmr

Hello Guys! I am new in this site!Im start learning vb.net and I guess i could enhance more thru this environment and with the help from some experts by sharing their knowledge. Someone can give any references regarding vb.net.? Thanks

Software Development vb.net
Member Avatar for lolafuertes
0
147
Member Avatar for jmcorpse

Hello, I'm a little lost as to how to get the day part of my function to come up properly without a garbage number as it wants to do at the moment. I have everything else working well until it doesn't return the day on line . [CODE] #include<iostream> #include<cmath> …

Software Development c++
Member Avatar for kes166
0
125
Member Avatar for pmark019

[CODE]import java.awt.*; import javax.swing.*; import java.text.NumberFormat; import javax.swing.JFormattedTextField; import java.awt.event.*; import java.text.*; public class Database extends JFrame { private JSplitPane splitPaneV; private JSplitPane splitPaneH; private JPanel panel1; private JPanel panel2; private JPanel panel3; private int X1, X2, X3, X4, X5, Y; private JLabel gradeL, equivL; private JFormattedTextField gradeTF, equivTF; private …

Software Development java java-swing
Member Avatar for NormR1
0
170
Member Avatar for Aldius

Hello everyone! I just had a quick question about XSLT. I have a large xml file with many <DIMENSION_Id> nodes nested inside each other. In each <DIMENSION_Id> node there are two SYN tags: <SYN>String</SYN><SYN>Integer</SYN> What I am trying to do is take the furthest child node of each DIMENSION_Id and …

Software Development xml
Member Avatar for Aldius
0
425
Member Avatar for New2Java2010

I am working on a homework assignment. The assigntment info is as follows: Write a grading program that helps to determine your letter grade based on your exam score. For example, when you put in exam score of 80, the program will determine you get a B. Please note the …

Software Development java
Member Avatar for NormR1
0
287
Member Avatar for XodoX

I'm trying to code a sentence editor. So, basically the input comes form a file, and the code sorts the words. The input in the file is I not do know, theoutput is I do not know. This is what's gonna be in the input file, but it can be …

Software Development algorithm c++ linked-list
Member Avatar for XodoX
0
168
Member Avatar for kdott

hi all, i have a programming assignment where i read a text file through command line arguments. i then use that information to get a list of photos (just strings, not actual images) and a list of keywords that correspond to each of those photos. i am stuck on how …

Software Development java linked-list programming-construct
Member Avatar for JamesCherrill
0
160
Member Avatar for PerplexedB

I need functionality to retrieve the new pk, like I could in DAO. I would like my "nLog" function (see code below) to return the new pk. I have found [URL="http://support.microsoft.com/default.aspx?scid=kb;en-us;815629&Product=adonet"]this[/URL], and I was able to make it work fine in my environment, so I'm pretty sure the problem I …

Software Development dataset ide microsoft-access vb.net
Member Avatar for PerplexedB
0
161
Member Avatar for bmos

How would I go about finding the first/bottom element 'pushed' into the linked list stack? would I need to copy the stack, then pop the elements until I reach the first element? I'm not even sure how I would go about doing this. The only thing I can think of …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
183
Member Avatar for mi.mac.rules

I go to Rutgers, NB, and I'm taking a class that requires the use of C without teaching us much of C, so sorry if I'm a bit uneducated. My first question is, when using fgets(), how do I get the [B]next[/B] line? I have [CODE]while((fgets(line,MAX,file)) != NULL){[/CODE] to get …

Software Development c
Member Avatar for mi.mac.rules
0
2K
Member Avatar for PDB1982

I'm trying to find a way to search an array to see if the values entered bu the user are already in the array. For example, if numbers[0] = 1, and the user tries to input numbers[1]=1, then I want the program to kick an error back that won't allow …

Software Development java
Member Avatar for kvass
0
92
Member Avatar for burcin erek

[CODE] #include<iostream> #include<fstream> #include<conio.h> #include<stdlib.h> using namespace std; void write(); void rear(); void search(); void write() { int no; char name[80],surname[80]; ofstream file("student.txt",ios::out|ios::app); cout<<"name:"; cin>>name; cout<<"surname :"; cin>>surname; cout<<"number :"; cin>>no; file<<name<<""<<surname<<""<<no<<"\n"; file.close(); } void read() { string line; ifstream file("student.txt",ios::in); if(!file){cout<<"file not found.\n"; getch(); exit(1);} while(!file.eof()) { getline(file,line); cout<<line<<endl; …

Software Development c++ ios
Member Avatar for burcin erek
0
204
Member Avatar for yingfo

I'm having trouble with this windows program its in Visual C++ and it's my first time really using and type of windows console. I'm trying to get the program to where the program starts up there is nothing on the screen but then the user left clicks a 'X' appears …

Software Development c++
Member Avatar for nbaztec
0
169
Member Avatar for chuckjessup

I have written two programs that need to use an exe.manifest file, when I attempt to run the either of the applications it says that it cannot start because the application configuration is incorrect. I will post below and hopefully someone knows what to do with it. [CODE] <?xml version="1.0" …

Member Avatar for chuckjessup
0
301
Member Avatar for fandango

I have a struct "Telegram" which contains a time offset, the Sender ID, the Receiver ID, and the Message itself: [CODE]struct Telegram { int Msg; // Message unsigned long Time; // Time offset (i.e., GetTicks() etc.) int Sender; // ID of Sender int Receiver; // ID of Receiver Telegram(int tMsg, …

Software Development algorithm c++
Member Avatar for fandango
0
203
Member Avatar for Fbody

I'm doing some self-study concerning statistics right now and while doing so I want to get some practice with templated classes. As a result, I'm working on a collection of templated classes designed for statistical analysis. What I would like to know is how I would handle creating typedefs for …

Software Development c++ data-structure
Member Avatar for nbaztec
0
1K
Member Avatar for aiki985

Hi, I'm working on a project where I have a text file that needs to be parsed into assembler instructions. For example: 01364820,8D280000,FFFFFFFF will be parsed as: ADD $t1, $t1, $s6 LW $t0, 0($t1) I need help parsing the text file. I thought I would start by first reading the …

Software Development c
Member Avatar for aiki985
0
229
Member Avatar for ja0

I want to know how to transfer between two server a data table without using the SPROC for link them.

Software Development sql
Member Avatar for Momerath
0
139

The End.