43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Alex Edwards

Okay so I have a program that tests for collisions using a complicated and 80% accurate method, but I want 100% accuracy. Like someone posted earlier about shapes colliding into each other, I realized that there will be cases where my method wont work. However, I've looked into a calculus …

Software Development api c++ file-stream
Member Avatar for Alex Edwards
0
132
Member Avatar for C41R0

after i added in my JTextArea, everything seem mess up, their position have already run away, whats going on ? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.*; import javax.swing.border.*; public class MainTabbed { JLabel locationLabel; JLabel divingTypeLabel; JLabel dateLabel; JLabel maxDepthLabel; JLabel averageDepthLabel; JLabel fBuddyLabel; JLabel sBuddyLabel; JLabel …

Software Development java java-swing
Member Avatar for C41R0
0
306
Member Avatar for kux

what method is to be used to get the selected row in a CListCtrl ? i tryed GetCount() but it returnes the number of selected items i searched the method list, but found no GetRow() or something thx in advance

Software Development c++
Member Avatar for Ancient Dragon
0
241
Member Avatar for Tigran

Hi guys, As my first post, i'd like to post something usefull instead of "Hi, i'm new here". The reason for this topic is because i don't understand a few things, mostly about classes. Here are the things i don't understand: 1) Why do some people set a "_" before …

Software Development c++
Member Avatar for Alex Edwards
0
231
Member Avatar for Naruse

How can i detect mouse button clicked? does i have to use api function?

Software Development api vb.net
Member Avatar for Jx_Man
0
237
Member Avatar for Vega_Knight

help me to make a factorial function. Please help. any help will appreciated much...

Software Development vb.net
Member Avatar for Jx_Man
0
137
Member Avatar for Jishnu

Hello, I'm getting a compile-time error in jdk1.2.1 which says "Identifier expected" and points to this line in the code: [CODE]Vector<Fish> fishes = new Vector<Fish>();[/CODE] Aren't vectors supported in jdk1.2.1? I'm unable to catch the problem.

Software Development java
Member Avatar for Jishnu
0
101
Member Avatar for fddrummer06

I am currently taking a class in C online and I have a homework assignment to create a random sentence generator with arrays of specific words. I have the random part working, but I am unsure as to how to capitalize the first letter of the first word in the …

Software Development c
Member Avatar for jephthah
0
785
Member Avatar for lllllIllIlllI

Hi I am making a program that collects data and then saves it to a text file. Then i want it to print the text file on a Network Printer and i was wondering how i would go about doing that?

Software Development printer python
Member Avatar for Ene Uran
0
93
Member Avatar for timdog345

I need to make a hangman game but I have code but it won't end the game even if you ges the word, and it won't show the gesses all at once. This is what I have [code] #include <iostream> using namespace std; int main() { char solution[20]; char blank[20]; …

Software Development c++ puzzle
Member Avatar for joshmo
0
144
Member Avatar for Aamit

[code]#include<windows.h> #include<stdio.h> #include<conio.h> int main() { system("mkdir c:\\Imp"); getch(); }[/code] How to check this Imp folder exists or not?? if exists not creating again??

Software Development c++
Member Avatar for Nick Evan
0
918
Member Avatar for Jade_me

Please help me i try to display all instances of SQL Server in a combobox. Any help is greatly appreciated.

Software Development sql vb.net
Member Avatar for Jade_me
1
112
Member Avatar for ITKnight

does anyone know how to run any app that it write some vbscript or javascript or html from in vb???

Software Development javascript vb.net vbscript
Member Avatar for ITKnight
0
79
Member Avatar for Estella

[code]SearchString = "SELECT * FROM Breakdown WHERE BFrom = " & txtFrom.Text ' & " AND BTo = " & txtTo.Text Dim Con As New OleDbConnection(BCalc_ConnectionString) Dim Search As New OleDbCommand(SelectSearchString, Con)[/code] I want to stop users from being able to save a duplicate record in my Access database. I …

Software Development vb.net
Member Avatar for Estella
0
189
Member Avatar for lllllIllIlllI

Hi I have been doing text programming for a while now and i was going to start doing some graphical interfaces for my programs but i was wondering which one is the best for beginners and also what and ther advantages/disadvantages of each of them. Thanks

Software Development gui python
Member Avatar for lllllIllIlllI
0
549
Member Avatar for ff4930

Hello, I have a project that needs to implement a Safe Array which is an Array that has bounds checking. On top of that I need to create a "Matrix" class which implements 2D which is basically a Safe array within a Safe array. This is also templatized. The problem …

Software Development c++ os-x unix
Member Avatar for Radical Edward
0
807
Member Avatar for FastCat

My first vb.net post...:) What I've got: On a form, I have 'Add New Tab' button, a 'Select Picture' button and a TabControl. On the first Tab I have a textbox1and a picturebox1, when the user uses the 'Select picture' button (which calls opentdialog) I load the picture into the …

Software Development vb.net
Member Avatar for FastCat
0
2K
Member Avatar for dangermini

Hi, i've been working on simple code just prototyping the system i'd like to make. This all works and is going great apart from my "quit" button, the button appears. however when you click on it, it doesn't close the interface..i think it just stops the code from running or …

Software Development python
Member Avatar for woooee
0
4K
Member Avatar for MAXPAYNE88

Hey guys. I've been having this problem with a Dynamic list using pointers. I have built the class, then defined a MAX size to the list when first created. Then I thought about maybe the user wants to enter more values, so I made some changes. Here's the code: [code] …

Software Development c++
Member Avatar for MAXPAYNE88
0
101
Member Avatar for jem00

Hi guys, I'm pretty new to VB and am having a little bit of trouble with scroll bars. I have a text box and I want the user to input a value in there but I also want them to increase the value through a scroll bar or decrease the …

Software Development visual-basic
Member Avatar for jem00
0
249
Member Avatar for ambarisha.kn

Hi, I need some algorithms with syntax to work out logical operations using Standard template library(STLs). Please get me some examples of these or teach me regarding logical operations using STLs.

Software Development c++
Member Avatar for ambarisha.kn
0
99
Member Avatar for heshan

Hi, I have written a web service and have deployed it using Apache Axis2. What I want to do is to invoke this service using a python script. Can anyone point me in the direction of how to do this. I will be grateful If anyone can give me a …

Software Development apache python xml
Member Avatar for heshan
0
597
Member Avatar for wellibedamned

okay, this one's supposed to take n numbers, ints/floats, sort them, spit them out... now i have my code, and it looks fine to me, i'm doing bubblesort while checking with a bool function is the first larger than the second string... if i use two numbers, it works fine …

Software Development c++
Member Avatar for wellibedamned
0
211
Member Avatar for SubProf

Hello, I have a textbox which I write data out to. I use "\n" to make sure that the next line of data is written on a new line. This works but I keep getting an unwanted character at the end of each line of data written. It looks like …

Software Development
Member Avatar for SubProf
0
96
Member Avatar for november_pooh

Get Specific data from datagrid. i mean when i select row on datagrid, program will return value in that row. Any Help will appreciated. thx

Software Development vb.net
Member Avatar for Jx_Man
0
123
Member Avatar for ambarisha.kn

Hi, I want to replace the numbers which are less than 5 in a container. So i write a code as follows. But it is not working. Please get me the solution for this. Destination container should be V2 itself. Where we have to specify destination container. [code] replace_if(V2.begin(),V2.end(), //range …

Software Development algorithm c++
Member Avatar for ambarisha.kn
0
107
Member Avatar for JeffN00B

I have a headache over this one. what i am trying to do is take the text from a multi-line textbox and put it into one line so i can put that into a file for another program to read one line at a time. is there some way to …

Software Development vb.net
Member Avatar for dadelsen
0
236
Member Avatar for Sawamura

i found my file in vb 4/5 and i want to convert them into vb.net. How i can convert my vb project in vb version 4 / 5 to vb.net? or i must to use convertion tools?

Software Development vb.net
Member Avatar for Sawamura
1
113
Member Avatar for pukebag

Hi there, I have a mixed list containing strings, integers, strings with numbers both prefix and suffix and mixed case strings as follow: mixedlist = ["cake", 12, "cakecar", "cAKe", "orange", "apple", "1cake", "cake1"] I'm trying to filter the list for any element containing "cake" so I get a new list …

Software Development apple python
Member Avatar for vegaseat
0
148
Member Avatar for merkuries

It's my revision question. Please help... Create a Class Employee. This class holds member variables: employee number and salary. It has an array of 4 employees and includes 4 employee number and salary. Has 2 member functions: Get() employee detail, namely number and salary Display() employee detail Create main() I'm …

Software Development c c# c++
Member Avatar for merkuries
0
172
Member Avatar for Alex Edwards

Correct me if I'm wrong but... Each time I declare an object without assigning it a value, I am instantiating it (so long as the valid constructors is called upon doing so--) like... [code=c++] Triangle tri1 (3, 4); [/code] and this object exists on the stackk but only for the …

Software Development c++
Member Avatar for Alex Edwards
0
218
Member Avatar for hazmatt

I found some open source code written in C that does most of what I want for a project and am having some trouble making the modifications I need. I am hoping the solution will help me better understand pointers and memory allocation as well. The original code takes in …

Software Development c open-source
Member Avatar for hazmatt
0
129
Member Avatar for cheguashwini

Hello, I am new to proogramming and I need read the elements from two csv files into a 2 vectors and display the elements of vectors. The csv file is in the following fomat: 200, New york, -23.456, 23.455 201,Chicago,-34.5434,34.546 ..... ..... After that I have to perform string matching …

Software Development c++ display
Member Avatar for VernonDozier
0
5K
Member Avatar for DustinS

I just started messing with Python, and was having a great time with entering Tkinter GUI commands into the Python shell (ActivePython 2.5). Its fun entering commands one at a time and seeing components appear real-time (instead of normal process of having to compile the whole thing first). Anyway, I …

Software Development gui python tkinter
Member Avatar for DustinS
0
7K
Member Avatar for darklich13

I'm having a little trouble with one of my exceptions. The following code is just a simple division of two integers. I have built two exception to handle an InputMismatch and divide by zero. What I want to happen is when there is an exception, I want the program to …

Software Development java
Member Avatar for darklich13
0
257
Member Avatar for QuantNeeds

Hello, I am having the following problem with calling my function to return the salary it calculated depending on the switch statement. I don't understand the error: ": error C3861: 'getSalary': identifier not found" [code] double Salary::getSalary() { return salary; } void Salary::compute() { cout << "Enter the employee's paycode …

Software Development c++
Member Avatar for QuantNeeds
0
157
Member Avatar for Alex Edwards

The error is listed in the title and then commented in main (last comment). The program runs but once it encounters the bool expression I overloaded, it seems as if the program pauses. I have a feeling it's a stack overload due to the way my function operates, but I …

Software Development c++
Member Avatar for Alex Edwards
0
85
Member Avatar for Kadence

I'm trying to use fstreams to read and write binary data to a file with the following code: [CODE]#include <fstream> #include <iostream> using namespace std; int main(){ ofstream out("test.data", ios::binary); for(uint i=0; i<10; i++){ uint outcount = i+100; out.write((char*)&outcount, sizeof(uint)); } ifstream in("test.data", ios::binary); for(int i=0; i<10; i++){ uint incount; …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
83
Member Avatar for cam9856

Ok, I am building a text based rpg. This an excerpt from my code. at one point it asks what your name is. When you type that in I put it into a string variable called name but I want to be able to save it to a binary file …

Software Development c++
Member Avatar for cam9856
0
143
Member Avatar for apuamy

i am working on an application where some test results are received from a serial port and getting stored line by line in a text box.now i have to compare each line with an existing data base( that is with a field of each record )and display interpretation of each …

Software Development visual-basic
Member Avatar for apuamy
0
2K
Member Avatar for QuantNeeds

Help - the static_cast< double > is not calculating the value of term and I cannot see what is wrong. [code] void eConstant::compute() { cout << "Enter the desired level of accuracy to calculate the mathematical constant e, \nmeaning the number of terms in the summation: "; cin >> accuracy; …

Software Development c++
Member Avatar for QuantNeeds
0
616
Member Avatar for henpecked1

3.6 * vector_a; why can I not implement this binary operator as a member operator of a class Vector? [code] class cycle { cycle(); ~cycle; pedal(); }; class bicycle { bicycle(); ~cycle; pedal(); }; bicycle *bikeptr = new bicycle; cycle cycleptr=dynamic_cast <cycle>bikeptr; cycleptr->pedal(); [/code] Okay, here are the questions I …

Software Development c++
Member Avatar for bugmenot
0
143
Member Avatar for K?!

Hello everyone As you can see, this is my first post. We're trying to write a cards game and it uses 12 cards. Someone taught me to put the buttons in an array, which i think is a really good idea. I'm encountering one problem, how do i create an …

Software Development java
Member Avatar for sciwizeh
0
2K
Member Avatar for Futbol10

<HTML> <BODY> <APPLET CODE= MyHangman.class WIDTH=1000 HEIGHT=1000> </APPLET> </HTML> I need to know what to do next below is my java file and I am confused with how to check the words i have in the array and the letters guessed in the word....anything would be useful thanks......and do you …

Software Development java
Member Avatar for Alex Edwards
0
100
Member Avatar for CK01

Hi, was wondering if anyone could help me. I'm creating my own little simple tree structure, consisting of several JTextFields. Each TextField is added to a JPanel, which is finally added to a JScrollPane, which is then added to a JFrame. Everything is fine, apart from the position of the …

Software Development java java-swing
Member Avatar for CK01
0
102
Member Avatar for Jboy05

How do I reverse the numbers in my program to produce the orginal numbers and the numbers in reverse? int magic_box (int N) { int digit1, digit2, digit3; digit1 = N / 100; digit2 = N % 100 /10; digit3 = N % 10; return digit1 + digit2 * 10 …

Software Development c++
Member Avatar for tesuji
0
270
Member Avatar for Alex Edwards

Ever since I have heard that you can generate classes during runtime (from say, a URL I suppose) and can use java.lang.Reflect to fire methods based on String input, I was wondering how the process is done?

Software Development java
Member Avatar for Ezzaral
0
105
Member Avatar for Jennifer84

In a dataGridView1, you can Edit for example 5 Columns but before the First Column there is one column that has a star(*) in fron of the first row. What I wonder here is if it is possible to take this column away. It is possible to 'drag' the column …

Software Development c++
Member Avatar for Jennifer84
0
107
Member Avatar for Jennifer84

I wonder if it is possible to change the color on the headers on a dataGridView1. I have searched in the members and properties but are not sure if I can find anything. By default it seems that the headercolor is "Control". Ex: is it possible to change the color …

Software Development c++
Member Avatar for Jennifer84
0
121
Member Avatar for eibwen

OK guys, I've hit a wall & can't find any info on what I'm wanting to do. Maybe someone can help me out here or point me in the right direction please? I have a shelve object- book. If I do book.keys(), naturally I get a list of the keys- …

Software Development python
Member Avatar for eibwen
0
140

The End.