132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for carolinatech

Hey all, I have a question how would I go about perform a comparion for two boxes. I would have to find the length, width, and height of both boxes and compare the volume of them to see which box would have be larger.

Software Development c++
Member Avatar for WaltP
0
78
Member Avatar for kalookakoo

I'm creating a game and I want to incorporate a gif of a running man when the user uses the arrow keys etc. I'm currently trying to use wxpython and I have code that allows it to be played in a small separate window, but I need to know how …

Software Development python tkinter
Member Avatar for vegaseat
0
11K
Member Avatar for vrs1155

friends i create mfc application and create two table -same database,same content. ex:table content(table 1,table 1) employee id,employee name,department,salary,mobile no. now i view data from table 1 and that data to insert on table 2. i doing many way,but i didnt done.please any one can help me? this operation only …

Software Development c++ oracle
Member Avatar for thines01
0
591
Member Avatar for KarpedByC#

I am having troubles figuring out how to extract a minimum and maximum number from an Array. This program allows a user to input up to 12 assignment grades and then my array gathers those grades and displays them in the output box. I just also am required to display …

Software Development
Member Avatar for thines01
0
180
Member Avatar for chriswinter

I have a orpaned case error and im not sure where i am missing anything. Probably just needs another set of eyes to find it. thank you in advance Here is the error code : C:\Users\winte497\Documents\FSMValue.java:109: orphaned case case 6: if ((ch >= '0') && (ch <= '9')) Here is …

Software Development java
Member Avatar for chriswinter
0
196
Member Avatar for jinna

hello every body, I am a new prog.in C.My final yr project based on incrementing ipv6 address by 1.The address format is - fe80:0000:0000:0000:0204:61ff:fe9d:ffff So the result will be - fe80:0000:0000:0000:0204:61ff:fe9e:0000 User enter the valid ipv6 address and final result will be +1 incremented.Its a incrementation of hex.value. It also …

Software Development c
Member Avatar for Narue
0
2K
Member Avatar for sahiti1988

An array is defined to be double sorted if its even-valued elements (if any) are in ascending order and its odd-valued elements (if any) are in ascending order. The array {-6, 12, 1, 24, 3, 5} is double sorted because the even-valued elements (-6, 12, 24) are in ascending order …

Software Development
Member Avatar for Narue
0
214
Member Avatar for Labdabeta

I need to clear the output console buffer from within java on a windows console. I was thinking of a batch call to "cls" how can this be achieved? [CODE]public static void cls(){ //clear the screen pretty please! }[/CODE]

Software Development java
Member Avatar for thines01
0
115
Member Avatar for spades0001

Hey guys! So, created a File Chooser that gets a picture. And I want the program to display the picture on the jFrame. How can I accomplish this? I'm using NetBeans, and I'm still kinda new to it :P Thanks guys! :D Here's my code: [code] import java.awt.image.BufferedImage; import javax.imageio.ImageIO; …

Software Development display java java-netbeans java-swing oracle
Member Avatar for mKorbel
0
247
Member Avatar for NeoSyn

Hey, I've been recently coding a java program for the High Low dice game. I'm absolutely sure of my logic in that I know what i have to do, it's just executing it. Methods and how to call them are my main crux. I'm stumped at the moment, and I'm …

Software Development java
Member Avatar for NeoSyn
0
281
Member Avatar for djjavo

Hi guys, I have a total of 72 link labels on a form and I want them to do a similar task. Is there a way to accomplishing this without writing each labels individual code? Example function of the link label [CODE] Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e …

Software Development seo vb.net
Member Avatar for djjavo
0
2K
Member Avatar for Goshutu

Hi, DaniWeb forum members! I am an above-amateur programmer and this is my first more complex SDL-based program. I am trying to make the menu of a game, but SDL cannot capture the key presses when a single key was pressed. I use only UP and DOWN arrows, in this …

Software Development c++ visual-studio
Member Avatar for Goshutu
0
742
Member Avatar for Sgt. Pepper

So, Ive created a UI in console. No questions as to why. But anyways, It used to be just a simple array, but I decided to make it with vectors both to improve my skill with them, and to make its size dynamic. Dont mind the mess of code here. …

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
283
Member Avatar for Snipererer

Hi, I am suppose to run a for loop into an array of 26, 6 times. The point is to gather the six largest numbers and put them in ascending order. I have been trying everything for this and cannot come up with a solution. The directions I am given …

Software Development java
Member Avatar for NormR1
0
97
Member Avatar for jigglymig
Member Avatar for jonspeidel

I have a snippet of code that's 37 lines long, I can't, for the life of me, seem to get it working. It compiles fine, no errors, I've had 2 friends run through it and nothing, is it just an issue with my compiler(CodeBlocks)? Long story short I really just …

Software Development c++
Member Avatar for WaltP
0
253
Member Avatar for begueradj

Hello people I have a JFrame which container is a JPanel: can you give me a piece of code that shows how to create a grid of rectangles ? I need this information for my poject Thank you

Software Development java java-swing
Member Avatar for begueradj
0
2K
Member Avatar for PF2G

Hi, DaniWeb I'm having problems with the insert: (This is the login code, i can't open the register form) [CODE] Imports MySql.Data.MySqlClient Public Class Login Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" 'Dim server As String = "Server=localhost;Database=esola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Dim da As New MySqlDataAdapter Dim sql As …

Software Development mysql vb.net
0
68
Member Avatar for coolsport04

I am trying to learn more about using HashMaps in java. I would like to write a program that searches through a list of jumbled words from one text file and returns the unscrambled word(s) from another text file. Any suggestions how to do this?

Software Development java
Member Avatar for thines01
0
281
Member Avatar for ssdeep

i want to be able to treat contents of a file as an array and traverse through it that way without having to store them in an array,can i do that?if so how?

Software Development perl
Member Avatar for Dandello
0
242
Member Avatar for yye

Hi, I want to declare an array of constant values in my header file, and this array cannot be changed in the main code. const uchar x[4] = {1, 2, 3, 4} does not work, cos the linker will complain that the address space overflow. Is there any way to …

Software Development c
Member Avatar for Moschops
0
350
Member Avatar for yamini222

Hi all, I have a datagridview with a set of rows which look like [CODE] no. name value 1 X 1 2 X 1 3 X 2 4 Y 1 5 Y 1 [/CODE] Now I want to filter the datagridview by value with respective to name and show only …

Software Development
Member Avatar for kjward
0
125
Member Avatar for Srcee

I get the error "Error 1(E4) "end." or implementation section members (types or methods) expected." Nowhere on the internet I can find information about this error. I get this error because of this line of the AssemblyInfo.pas file: Implementation SomeMethod(); end. I work in Delphi Prism.

Software Development delphi
Member Avatar for Srcee
0
98
Member Avatar for arick1234

I have an array [x,y] where the values of x is ascending and the y values are random. I would like to sum all of the y values together when the x values are within a certain range. I can't show you any code as i dont even know where …

Software Development mathematics python
Member Avatar for Gribouillis
0
2K
Member Avatar for bob12321

For example on any tinyurl/ajdeijad link (this one is fake), the link redirects to another url I cant grab the whole response because it is 200 MB- what can I do to JUST GET THE URL Here is my code: [code] Dim request1 As HttpWebRequest = DirectCast(HttpWebRequest.Create(urlvimeohd), HttpWebRequest) request1.UserAgent = …

Software Development vb.net
Member Avatar for Oxiegen
0
871
Member Avatar for MechMOn

Hello I am having an issue with syntax. I have: [CODE]wxLegendWindow::wxLegendWindow( wxWindow *parent) : wxWindow(parent, -1, wxDefaultPosition, wxSize(LEGEND_WIDTH,LEGEND_HEIGHT)) m_WinParent(parent)[/CODE] and when I compile I get: [CODE]C:\codeblocks-10.05-release\src\plugins\contrib\wxSmithContribItems\wxchart\wxchart-1.0\src\legendwindow.cpp|50|error: expected '{' before 'm_WinParent'|[/CODE] The code I originally started with was: [CODE]wxLegendWindow::wxLegendWindow( wxWindow *parent ): wxWindow(parent, -1, wxDefaultPosition, wxSize(LEGEND_WIDTH, LEGEND_HEIGHT)/*, wxSIMPLE_BORDER*/), m_WinParent(parent) [/CODE] However …

Software Development c++
Member Avatar for Ancient Dragon
0
171
Member Avatar for buchanan23

The code I pasted is for a school assignment where we have to calculate the monthly payment for 3 different loans, with varying interest rates, and then display some information about each payment for each of the 3 loans. My code compiles and runs fine (not finished commenting all the …

Software Development java
Member Avatar for buchanan23
0
250
Member Avatar for ricedragon

Okey , This is suppose to be a chat and server program and I am down to the last part but I cant seem to figure this out. I Use the JtextField to get the Input from the user and it is suppose to hold it until the sent button …

Software Development gui java
Member Avatar for harinath_2007
0
235
Member Avatar for //Gonz

Hello daniweb chums I once again cannot seems to get a simple bit of text box validation working I am trying to detect if a first name entered contains a number by converting the text box text into a char array and then convert each character entered (using a for …

Software Development
Member Avatar for Antenka
0
262
Member Avatar for kanyonb38

Can I add number's up in a column in listview? Thanks Experts, Kanyonb38

Software Development listview visual-basic
Member Avatar for kanyonb38
0
86
Member Avatar for vammy

Hi guys, Could some one please help me in validating a datagrid coloumn..,i want only alphanumeric values.,symbols like -,+..etc were not allowed..folliwing is the code wht i have.,but it allows only alphabets but not numerals.. [CODE] If Char.IsDigit(e.KeyChar) Or Asc(e.KeyChar) = 8 Or Asc(e.KeyChar) = 46 Then If Asc(e.KeyChar) = …

Software Development vb.net
Member Avatar for vammy
0
133
Member Avatar for vammy

Hi Friends, I need ur help..I have finished my proejct in vb.net with access database. could u please help me in making an exe for this with database.. please help..

Software Development vb.net
Member Avatar for vammy
0
101
Member Avatar for yoshio5908

Hello everyone! Once again I need some help on this program. I need to write a program that reads integers, finds the largest of them, and counts how many times that number occurs. The program should end when 0 is input. My teacher gave us a hint, incase this helps …

Software Development java
Member Avatar for zeroliken
0
609
Member Avatar for Kobrakai

Hi all I've recently written a program that writes and then runs batch files based on whether or not a checkbox was checked (e.g. there was a list of software with a checkbox for each one). In terms of logic, there was an if loop for an 'Install' button that …

Software Development adobe flash
Member Avatar for Kobrakai
0
163
Member Avatar for shiroshiro

I've gotten the basics of insertion code but I'm stuck on how to compare it with another condition other then (list by A-Z, Z-A) for the example a list of staff ranks were given : [CODE] public static final String[] staffrank = { "Trainee", "Junior", "Senior", "Administrator", }; [/CODE] I …

Software Development java
Member Avatar for shiroshiro
0
109
Member Avatar for lupacarjie

Hello, I created a simple number guessing game which thinks of a secret number from 1 to 100. It tells the user if his guess is high or low and finally stops after the secret number is equal to the user's input, it also notes down the number of tries. …

Software Development c++ gaming
Member Avatar for lupacarjie
0
1K
Member Avatar for gourav1

please tell me the answer of this question.it is irritating me a lot. i have searched many books but not getting it.please help!!

Software Development c
Member Avatar for gourav1
0
131
Member Avatar for hovestar

I made a program to find primes, but it can't find any prime less that 7(e.g. 2, 3, 5) any ideas? [CODE]import math from math import sqrt x = 1 y = raw_input("What number do you wish to find all the primes below? ") y = int(y) while x < …

Software Development mathematics python
Member Avatar for TrustyTony
0
168
Member Avatar for bops

Hello. I have a piece of code currently where I have a JFrame that I have removed the title bar and borders etc from using .setUndecorated(true). I have tried a number of ways with no success to make this window draggable by it's client area. [CODE] JFrame f = new …

Software Development client-server java java-swing mathematics
Member Avatar for JamesCherrill
0
2K
Member Avatar for wmurrow

I'm having the hardest time figuring out why my password check loop won't exit after excepting valid input. Can someone help? [CODE]#include <iostream> #include <vector> #include <string> using namespace std; int main( ) { vector<string> credentials; string login; string userName; string password; string CheckPassword (string password); cout << "Enter user …

Software Development c++
Member Avatar for wmurrow
0
4K
Member Avatar for ricedragon

I was given a client and server and I have to create a gui for it. I have done the entering part using the JTextField and the problem is getting the output of the class to go to JTextArea. (Its a Client server simple chat program) Here is the set …

Software Development client-server gui java
Member Avatar for ricedragon
0
452
Member Avatar for mkmk123

i have list. [CODE]Here is list 1 http://example.com/link1.html http://example.com/link2.html http://example.com/link3.html http://example.com/link4.html +++++++ Funny and Funny Sad and Sad [/CODE] [CODE]Here Is list 2 http://candy.com/link1.html http://candy.com/link2.html http://candy.comlink3.html http://candy.com/link4.html[/CODE] Append list2 into list1 we have result: [CODE]Here is list 1 http://example.com/link1.html http://example.com/link2.html http://example.com/link3.html http://example.com/link4.html Here Is list 2 http://candy.com/link1.html http://candy.com/link2.html http://candy.comlink3.html http://candy.com/link4.html …

Software Development python
Member Avatar for mkmk123
0
274
Member Avatar for M.Waqas Aslam

Hi ! i m working on asp.net project and using c# for it , i want to place my delete button on the right most of the gridview , by default button is placed at left side of the grid , can any one please help me . as i …

Software Development asp.net gui
Member Avatar for M.Waqas Aslam
0
126
Member Avatar for b-one

Hello, I have formatted an invoice and saved it in a text file. In my text file i used TAB after every field, but when I am trying to print that text file using streamreader all tabs are disappeared. Can you please tell me how to retain the TABs while …

Software Development vb.net
Member Avatar for b-one
0
211
Member Avatar for dsoto

My project is to write a Temperature class. In addition to converting between Celsius and Fahrenheit also include Kelvin. The class has read(), add(Temperature), subtract(Temperature), multiply(Temperature), divide(double), equals(Temperature), toKelvin(), toFahrenheit(), toCelsius(), and toString() methods. Methods add, subtract, multiply, and divide all return a Temperature. [CODE] public class Temperature { public …

Software Development java
Member Avatar for dsoto
0
173
Member Avatar for krejar

Ok, I have absolutely no idea what is going on for my compiler errors. I am not worried about the last part where I have to put in the letter code. I am just trying to figure out how to make this compile correctly for line 43 to work. I …

Software Development java
Member Avatar for krejar
0
771
Member Avatar for YAMNA MIDHAT

Can any one please tell me that why turbo c is not supported by windows 7?:?:

Software Development c
Member Avatar for YAMNA MIDHAT
0
165
Member Avatar for fender

i need help with my code here is what I have import java.util.*; public class Payments { private double myLoan; private double myInterest; private double myPayment; public void Payments() { Scanner pay = new Scanner(System.in); System.out.print("Principal Loan = $"); myLoan = pay.nextDouble(); System.out.print("Annual Interest Rate(%) = "); myInterest = pay.nextDouble(); …

Software Development java
Member Avatar for zeroliken
0
699
Member Avatar for terence193

This is the problem I have Read in 10 numbers, 10<numbers<100. As each number is read, print it only if it is not a duplicate of a number already read. I did the first part but couldn't work out the second,where the duplicate is used. I have some idea in …

Software Development c
Member Avatar for zeroliken
0
112
Member Avatar for minonfbf

Can someone show me how to change the cases down below to call functions for add, subtract, divide, multiply. Also return the answer back to the case to display the result in the case. Prototype the functions before main and add the function definitions after main. [CODE]#include "stdafx.h" #include <iostream> …

Software Development c++
Member Avatar for thines01
0
110

The End.