132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for emcyroyale

hello everyone, I am doing a program for a class which is suppose to say the amount of pages one needs to read and then say if any of the homeworks have the same amount of pages. My teacher wants me to override the compareTo() method and then test it …

Software Development java
Member Avatar for emcyroyale
0
194
Member Avatar for jemz

Hello i have problem, how can i put icon on my toolbar below my menu bar.because i have not yet tried using the toolbar. Thank you in advance hoping for your positive response.

Software Development visual-basic
Member Avatar for jemz
0
72
Member Avatar for aanders5

Ok, 2 questions. 1. I have an applet, but it is IN the page, like, part of the HTML I think, how do I get it to like "pop up" and be its own window. It will eventually become a game tool, so it would be easier to use if …

Software Development java java-netbeans
Member Avatar for adams161
0
124
Member Avatar for MrCapuchino

Hi, I have a rectangle inside another rectangle, how can I make to do like an IntersectWith method but just the outer rectangle Border? Since one rectangle is inside the other it seems like it is always intersecting so I want to know how to tell the inner rectangle to …

Software Development
Member Avatar for Rynkadink
0
140
Member Avatar for dyingatmidnight

Hello. I'm a total noob to C++ and MFC, I've been teaching myself from books and it's not going too well. I've been asked to create a test application for a controller. The controller consists of six joysticks connected to a digital I/O board that's connected via USB. I managed …

Software Development c++ visual-basic visual-studio
Member Avatar for Moschops
0
200
Member Avatar for amin2011

hi I want to write my C functions in 2 separate .c files and use my IDE (code blocks) to compile everything together. How do I set that up in code blocks? How do I call functions in one .c file from within the other file?

Software Development c ide
Member Avatar for dkalita
0
126
Member Avatar for nard23

the output is supposed to be like this: [B]1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1[/B] what I have is this: [B]1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1[/B] [CODE]import java.util.*; class Array{ public …

Software Development java
Member Avatar for nard23
0
83
Member Avatar for jaku78

Hi. Basically I first made some code to do mergesort on a list of numbers. Worked like a champ. Then I said, what the heck, why not do a mergesort on an array of structs, this is where it gets a little funky. While the first sort of the data …

Software Development c programming-construct
Member Avatar for dkalita
0
106
Member Avatar for isamuhunter

Hello everyone...I'm trying to create a journey planner for an underground system...but the first thing Is to create the skeleton of the underground system... my problem is I don't know how to add more links to a single node when the station has an intersection with other lines... [CODE]public class …

Software Development java linked-list
Member Avatar for isamuhunter
0
2K
Member Avatar for DDirectJ

i'd like to ask how one can get rid of all the components in a JPanel (buttons, labels, comboboxes etc), so that you can add new components (at run time that is)

Software Development java
Member Avatar for DDirectJ
0
168
Member Avatar for mangopearapples

Hey guys, I just started to try and use OpenGL and I wanted to run an example but I get linker errors. The code is just fine but it has linker errors says the console. Linker Errors/Console: [CODE] [Linker error] undefined reference to `glFinish@0' [Linker error] undefined reference to `wglSwapBuffers@4' …

Software Development c++ opengl
Member Avatar for Stefano Mtangoo
0
532
Member Avatar for BMW87

hello I'm new to this and will like some help. I will like to create a visual program with to command buttons, the first to open a file by having the user choose the file and the second command button is to open the file and read in the text. …

Software Development c++
Member Avatar for BMW87
0
338
Member Avatar for asha2009

[CODE] Protected void Update(object sender, GridViewCommandEventsArg e) { if(e.CommandName == "Change") { int index = GridViewemp.EditIndex; GridViewRow grid = GridViewemp.Rows[index]; TextBox salary = (TextBox)GridViewemp.FindControl("TextBoxsalary"); sqlcon.Open(); string query = "Update Employee set Salary="+salary.Text+"where EmpID ="+GridViewemp.SelectedDataKey.Value.ToString(); sqlcom = new SqlCommand(query, sqlcon); sqlcom.ExecuteNonQuery(); sqlcon.Close(); } } [/CODE] I am getting the error Error: …

Software Development asp.net
Member Avatar for asha2009
0
116
Member Avatar for Kath_Fish

how to convert sb.toString() to char type?? who can help me..?

Software Development
Member Avatar for Kath_Fish
0
409
Member Avatar for campy

i got a small piece of soft that connects to a huge .gdb database (500000 lines) through the network. using .movelast will give me memory out. any good advice to access in a fast way the last record? Dim cn As New ADODB.Connection sConnStr = "Provider=ZStyle IBOLE Provider;Password=masterkey;User ID=SYSDBA;SQL Dialect=3; …

Software Development open-source visual-basic
Member Avatar for AndreRet
0
301
Member Avatar for bleedsgreen33

Let me start off by thanking the individuals who have helped me before on other projects, you are awesome. Now on to my new issue. We are learning STRUCT in our new assignment. I had an issue before that was resolved by using a call by reference instead of value. …

Software Development c++
Member Avatar for mike_2000_17
0
133
Member Avatar for dangari

Hi guys, I have a class called [B]Gen [/B]under a package [B]diaby[/B], project name diaby. I then have my other project andy, with class [B]Anders [/B]under package [B]andy[/B]. I have built successfully project dan, gone into its dist folder and copied the jar into project kim's common jars/libraries, included the …

Software Development ide java
Member Avatar for dangari
0
140
Member Avatar for adams161

At present i have a folder lantern with files lantern/*.class or java also in lantern are graphics folders. lantern/img with files /lantern/img/image1.gif for example The folder lantern folder is in is called build and its in my class path. each file in lantern/*.java has package lantern; i type java lantern/multiframe …

Software Development java
Member Avatar for adams161
0
147
Member Avatar for Mike Askew

My project I am working on is a product location system for a large supermarket. My current issue is that the map I am using to display the product location is assembled from rectangle objects which I will then change the colour of when required. The array storing the locations …

Software Development vb.net
Member Avatar for Mike Askew
0
212
Member Avatar for Amadman114

Hi, Im brand new to VB and almost completely new to scripting. Where could I find a list of the most basic and useful commands with explanations, or even just like a dictionary of commands in VB? Also, (this is a painfully easy question but searches haven't come up with …

Software Development vb.net
Member Avatar for Jx_Man
0
124
Member Avatar for Behseini

Hi I am running a simple application which has three Radio Button and I have two problem with that as following: 1- First of all, two of the radio buttons [R2(Blue) and R3(Green)] are automatically selected when I run the code!(As you can see in attached screen shot). I tried …

Software Development python tkinter
Member Avatar for Behseini
0
5K
Member Avatar for Mr_PoP

[CODE] #include "includes" int main() { time_t rawtime; struct tm * timeinfo; char buffer [80]; time ( &rawtime ); timeinfo = localtime ( &rawtime ); string timetest; timetest= strftime (buffer,80,"%Y-%m-%d",timeinfo); puts (buffer); } [/CODE] now instead of print the time i want add the value of the time to a …

Software Development c++
Member Avatar for jrhitokiri
0
135
Member Avatar for moni94

I have the following code: [CODE] static void foo<T>(this List<T> list, T t) { ... } [/CODE] So in order to call the extension method I'll have to do this: [CODE] myList.foo<myType>(myVar); [/CODE] Is it possible to change my code so that I can call my method like this: [CODE] …

Software Development
Member Avatar for Momerath
0
96
Member Avatar for paulablanca

Hi! Can someone help me? I have a datagridview and I declared this code: [CODE] i = dgStudentsHandled.CurrentRow.Index txtStudentNumber.Text = dgStudentsHandled.Item(0, i).Value [/CODE]. I can get the value of the first cell of the first row of the first column. But I have to get the value of the first …

Software Development vb.net
Member Avatar for Jx_Man
0
333
Member Avatar for george61

In these problem I have to find triangular number by the number of it's divisors. The program takes about 0.65 seconds to find the first triangular number with >100 divisors and about 87 seconds for the number with >200 divisors which means that my algorithm is very inefficient. Any help …

Software Development c
Member Avatar for Momerath
0
528
Member Avatar for Saint OTB

Had an assigment making a bankaccount, and validating the account owners age, this is just a bit of the code..... [code]public boolean checkDate(String myDate) // my date should be in the format 20111224 { int year = Integer.parseInt(myDate.substring(0, 4));// convert the year 2011 to int int month = Integer.parseInt(myDate.substring(4,6)); //convert …

Software Development java
Member Avatar for peter_budo
0
2K
Member Avatar for lse123

return printLCS(i-1, j-1) + index(x, i); i found this in a recursive java program, well [B]that is being done is[/B] return index(x, i) (returns a character) and same time continue recursion?

Software Development java
Member Avatar for JamesCherrill
0
185
Member Avatar for AntonAL

Hi! I develop the app, that must be binded to hardware-specific information. This is a part of license protection scenario. The serial number of motherboard must be obtained. How to do it under Windows ?

Software Development c c++ motherboards-cpu-ram
Member Avatar for somjit{}
0
2K
Member Avatar for imKEN

I'm making a simple java calculator. I'm done with the GUI part but don't know how to start on it's functions. Anyone can tell and help me how to start it's function? [CODE]import javax.swing.*; import java.awt.*; class Calculator extends JFrame { private JPanel p1,p2; private JTextField tf; private JButton b[]; …

Software Development gui java java-swing
Member Avatar for imKEN
0
318
Member Avatar for normanallen

I am trying to drag a program originally written in Borland C version 3 into the light of the present using Visual C++ 2010. I have a curious, apparently simple, problem. The program read data from a file. I can create a noddy program that opens and reads the contents …

Software Development c++ visual-studio
Member Avatar for normanallen
0
220
Member Avatar for sreekiranws

Hello everyone I have written a small c++ program where two files are compared line by line and in case the lines are different, the differing ones are put into a report.txt document.But its not working right! The first few lines which are same are not put into the report.txt, …

Software Development c++
Member Avatar for Agni
0
424
Member Avatar for Shodow

[CODE]#include<stdio.h> #include<conio.h> main() { clrscr(); double sales[10]; int index; double largestsale,smallestsale,sum,average; //initializing for(index=0;index<5;index++) sales[index]=0.0; //reading printf("Enter Value:\n"); for(index=0;index<5;index++) scanf("%d",&sales[index]); //printing for(index=0;index<5;index++) if(sales[index]<index) printf("%2d",sales[index]); //sum & average sum=0; for(index=0;index<5;index++){ sum = sum+sales[index];} average = sum/5; printf("\nThe Sum is %d",sum); printf("\nThe Average is %d",average); //largestsale int maxIndex = 0; for(index=1;index<5;index++) if(sales[maxIndex] < …

Software Development c c++
Member Avatar for jonsca
0
152
Member Avatar for swathys

hi, i have develop an application in vb.net which is running well with windows xp but when i install it to win 7 basic home it doesn'nt execute at all. It stops when it reach the form that has flash player. I have instal flash player version 10 but it …

Software Development flash vb.net
Member Avatar for Pgmer
0
237
Member Avatar for cheers07

HELP!! can someone please help me, because i need to create a game in which i have to count how many times i've pressed enter in a matter of 1 minute.

Software Development c c# c++
Member Avatar for cheers07
0
250
Member Avatar for RenanLazarotto

Hi! Since my last thread hasn't been answered and I simply cannot wait until it gets answered, how can I validade what is being written on a textbox? I need to know when the user types a "-" (minus) char. And when he do so, an message appears (preferably an …

Software Development vb.net
Member Avatar for codeorder
0
176
Member Avatar for james6754

Is it good practice to do all instantiation inside the Main() method and not in any other classes?

Software Development
Member Avatar for ddanbe
0
86
Member Avatar for sahil1991

cananyone tell me wats goin on in these files???? especially the 1st,3rd and 5th..... i hav tried a lot but cudnt figure out wats going on in the above mentiones files...my job is to prepare code for it.....anyone plz help! [URL="http://incognito.co.in/programs.zip"]http://incognito.co.in/programs.zip[/URL]

Software Development c++
Member Avatar for Ancient Dragon
0
128
Member Avatar for ODs

Hello All, I have a little experience with C programming but from last 2-3 years i didnt use C. Now i have to develop a GUI which can send and receive data via RS232. Basically i have to send via CAN (Control Area Network) which is a BUS use in …

Software Development c gui visual-studio
Member Avatar for Ancient Dragon
0
435
Member Avatar for MichaelSammels

OK, so I know that I can search binary records in C, by entering the number and returning the corresponding data, however I need to search a binary file using text. In my opinion I would need to load this file into a buffer and search the buffer for the …

Software Development c
Member Avatar for Ancient Dragon
0
1K
Member Avatar for borich_cj

I need help with an assigment - I am to create a number systems table which consist of converting a decimal number to binary, octal, and hexadecimal. Here is my code i have so far but does not create output - any suggestions would be great - thanks #include <iostream> …

Software Development c++
Member Avatar for caut_baia
0
314
Member Avatar for Koinutron

Hello, First, this is an extension to homework. I have all the requirements completed, but I'm attempting to write a switch that will allow me to toggle between sorting on actual data structs, or on smart pointers to data structs. By themselves, they both work, but when attempting to combine …

Software Development c++
Member Avatar for Koinutron
0
416
Member Avatar for bakwanyana

Hi all I have been tasked to implement a median filter on an image - this involves creating a window that will traverse the entire image. When the window goes out of bounds of the image, the guilty indices are supposed to be set to zero. My problem is that …

Software Development c
Member Avatar for bakwanyana
0
262
Member Avatar for chanthung

Hi all. I am trying to add a record into the database wothout much success. sometimes it works and sometimes it returns error "[B]overflow exception unhandled[/B]" And even the database is not all the time updated. How do you add the Datatimepicker value into the database...? Will really appreciate help …

Software Development vb.net
Member Avatar for chanthung
0
134
Member Avatar for premtpt

currently i am developing an image processing software it loads images from disk to application for processing .As more and more images loaded to application memory used for each image is not freed so system become slow and slow.In java theory it is stated that garbage collector automatically deallocate unused …

Software Development image java
0
64
Member Avatar for sc0field1

I have created 3 sorting methods. My problem is I need to have the user tell the program which sorting method they would like the computer to use. This sounds simple but I am confused on how to do this. My classes are below. If someone could help me out …

Software Development java
Member Avatar for peter_budo
0
138
Member Avatar for makibao

PLease help me !! how can i uppercase the half only of the string and the half is in lower case??

Software Development c
Member Avatar for makibao
0
149
Member Avatar for dos_killer

im trying to replicate the screen contens in my application .. i need a certain area of the screen to be drawn in my app...although this code works fine, its very very slow...takes more than 20 seconds with inferior quality and around 30-40 with best quality... is there a quicker …

Software Development python
Member Avatar for vegaseat
0
246
Member Avatar for jemz

Hi Can you help me please how can i encrypt my password in ms access just like this “¼ÞÔ:o½½ñ²6³' so that if someone will open my database they could not read the password..can you help me please.Thank you in advance hoping for your positive response....

Software Development visual-basic
Member Avatar for Jx_Man
0
104
Member Avatar for trume

Hello, I want to make a code to sort the numbers in array from the biggest to the smallest. How can I do it? [CODE]static void Main(string[] args) { int[] Array = { 108, 112, 87, 71, 49, 105, 49, 78, 63, 42 }; int length = Array.Length; }[/CODE] Any …

Software Development
Member Avatar for anilalogix
0
99
Member Avatar for nikhilsamkumar

HI, I WANT TO BUILD A TREE STRUCTURE BY TOKENIZING THE WKT STRING STREAM ( BELOW ). ALSO I WANT TO ACCESS AND STORE THE VALUES OF THE CHILD NODES IN THE TREE. EX : VARIABLE PROCS_NAME : "OSGB 1936 / British National Grid" . I AM ATTACHING THE REQUIRED …

Software Development c++
Member Avatar for nikhilsamkumar
0
114

The End.