43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for newbie_here

Hi all i am new to Access Some info about my project.. I am designing a system for my company.. my compnay has many contractors. so i have a field in my database called contractors. In a point i need to retrieve how many different kinds of contractors are there …

Software Development vb.net
Member Avatar for newbie_here
0
77
Member Avatar for thebigo

Hello I have a VB.NET application that needs to backup a database then restore to a new database in the same Server as I am upgrading an application and I want to retain the existing database. I create a blank database using the following: [code]cmdSA.CommandText = "CREATE DATABASE [newDatabase]" cmdSA.ExecuteNonQuery()[/code] …

Software Development mssql vb.net
Member Avatar for thebigo
0
305
Member Avatar for sarifah

can anybody help me? i am new in c++.please.. ++ -- *= += -=

Software Development c++
Member Avatar for sarifah
0
112
Member Avatar for bebe11bebe

I have two other classes but they are very small, and this is where the error lies. This is my code: [CODE]import java.util.Scanner; public class Player { private boolean isHuman; private int score=0; private Scanner input; public Player(int human) { System.out.println("If you would like to play, press 1. Otherwise, press …

Software Development java
Member Avatar for r.stiltskin
0
124
Member Avatar for karthik.c

Given a list of integers, generate the list of the corresponding floats.

Software Development python
Member Avatar for scru
0
20K
Member Avatar for oldSoftDev

I am trying to read some numerical values from a file and getting this error: Input Error: Error in input: Floating point number not found.; Expecting Real number in the range -1.7976931348623157E308 to 1.7976931348623157E308 [code][code=java] import java.io.*; public class TriangleMain { /** * @param args the command line arguments */ …

Software Development file-stream java
Member Avatar for Ezzaral
0
98
Member Avatar for EJD

The following code is producing this problem (typed with exact characters printed in command prompt, aside from quotations): "Please input D for a daytime movie or E for an evening movie: This is not a valid choice." The program will not allow me to input anything following the prompt for …

Software Development java user-interface
Member Avatar for EJD
0
111
Member Avatar for olgratefuldead

I'm having some trouble with my code. I want to calculate the final balances of some movie tickets based on their day or night showing (and depending on if they are children or adults). So at the end of the code, I've been trying to get the solution to a …

Software Development java
Member Avatar for olgratefuldead
0
242
Member Avatar for olgratefuldead

I need to figure out how to set my overall ticket limit (aticket + cticket) to 100 and if a customer goes over the limit, then they are told that they have ordered too many tickets and that they need to try again and then it loops back through until …

Software Development java
Member Avatar for olgratefuldead
0
93
Member Avatar for BrianK123

What I am trying to do is read from a file to an ArrayList and then display it using a JOptionPane. The only problem is the code i am having trouble with is in an ActionListener and I believe somehow I have created an infinite while loop because when I …

Software Development java
Member Avatar for verruckt24
0
172
Member Avatar for beanryu

I start learning about python, so i read the tutorial: they show this: >>> x = int(raw_input("Please enter an integer: ")) Please enter an integer: 42 >>> if x < 0: ... x = 0 ... print 'Negative changed to zero' ... elif x == 0: ... print 'Zero' ... …

Software Development gui python
Member Avatar for breatheasier
0
2K
Member Avatar for Datanizze

I have a strange problem, when I try to join two strings, one declared as a string() [code=vb]dim string1 as string()[/code] the string contains some data in both str(0) and str(1) but when I try to add that with a regular string: "some text" like this: [code=vb] dim string1 as …

Software Development vb.net
Member Avatar for rapture
0
136
Member Avatar for karthik.c

hi guys wat if List is equivalent 2 Arrays in c or do we have Arrays seperately defined in python??

Software Development python
Member Avatar for karthik.c
0
185
Member Avatar for winrawr

So, I'm dynamically allocating a char array in a function, then returning that array to an un-allocated char array in main(). Code: [code=cpp] #include<iostream> using namespace std; char* cc(char*,char*); int main(){ char* strMain; char* str1="Well, hello there, "; char* str2="How are you?"; strMain=cc(str1,str2); cout<< strMain; } char* cc(char* str1,char*str2){ char* …

Software Development c++
Member Avatar for winrawr
0
124
Member Avatar for abcdou20

hi guys i need your help! i have two date picker and a vsflexgrid in my form then i select datepicker1 month of january datepicker2 month of february i want to display all the records in both month ... example: january 9 records febraury 10 records my sample code: [code] …

Software Development visual-basic
Member Avatar for abcdou20
0
90
Member Avatar for deepika_m

I have a login page for which users and their passwords hav been updated in database. If a user continuously enters invalid password 3 times then im displaying an error message and blocking the user. when i enter another user name the error message continues to be displayed. btw, im …

Software Development session vb.net
Member Avatar for Comatose
0
100
Member Avatar for PolarClaw

Our instructor told us to make a scientific calculator using visual basic... though he didn't yet discuss on how... what i made was just a simple calculator that can perform the four basic functions... here is my codes... [code]Dim val1 As Double Dim a As Double, s As Double, m …

Software Development visual-basic
Member Avatar for jenmedina
0
143
Member Avatar for rapture

I have the following code which outputs incorrectly. [code] public static void extend(ArrayList priceList, ArrayList quantityList, ArrayList amountList){ for(int i = 0; i < priceList.size(); i++){ amountList.add((Double)priceList.get(i) * (Double)quantityList.get(i)); System.out.println(priceList.get(i) + " * " + quantityList.get(i) + " = " + amountList.get(i) ); } [/code] The output for some of …

Software Development java
Member Avatar for sillyboy
0
112
Member Avatar for mhangman

hi, im new at c#. after using python i need c# for some windows app. my problem is: i have an axshockwaveflashobject in my prog. but its size stable. i want to change it with general desing. if user grow up the window it should change with it. how can …

Software Development
Member Avatar for mhangman
0
82
Member Avatar for juzzy

is it possible, well yes of course its possible, but does anyone know the best way to alter the colour of a word within a sentence in a wxpython window. I know how to change the colour of the entire text but not a specific word. So for instance if …

Software Development python
Member Avatar for juzzy
0
1K
Member Avatar for VBNick

Im having a very strange problem that I can't explain =/ this is what the compiler is saying: 1>------ Build started: Project: 3d, Configuration: Debug Win32 ------ 1>Compiling... 1>RENDER.CPP 1>Generating Code... 1>Compiling... 1>GEOM.CPP 1>MAIN.CPP 1>MOVEMENT.CPP 1>Generating Code... 1>Linking... 1>MAIN.obj : error LNK2005: "struct OBJECT * obj" (?obj@@3PAUOBJECT@@A) already defined in …

Software Development c++
Member Avatar for VBNick
0
298
Member Avatar for StandardsDT

I'm having some trouble with my while loop in my code. If I enter in 20 and then enter in 14 for the coupons I want to redeem, it goes into a constant loop and doesn't stop. However I did stop it from doing this by putting in a [icode]break;[/icode]. …

Software Development c++
Member Avatar for StandardsDT
0
143
Member Avatar for GadiK

Hi Guys, I'm trying to write a program (MFC) that while working displays a log to the user. For this log I thought I'd use an Edit Box because I can set it to be "multiline". What I had in mind is to display each new log entry in a …

Software Development c++
Member Avatar for GadiK
0
1K
Member Avatar for jobi116

Hi.. I had a problem using a Control [ListView] out side its Class[main form class].. So i made that control [ListView] Static ..Now I can Add and Remove Items from The ListView with ease.. Now the problem is that i cannot use the Event's of this ListView. I need Your …

Software Development listview
Member Avatar for JerryShaw
0
209
Member Avatar for sid78669

Hey! What i am looking for is help on how to work with databases in c#. I have basic knowledge of C# and a pretty good working knowledge of SQL. But I have never learned how to use them together. Can someone point me to a tutorial or something similar …

Software Development c#
Member Avatar for JerryShaw
0
197
Member Avatar for rasingh24

Hi, I have to create a project in C# in which i have to create a XML Tree View, select a xml file from hard drive(System) it is displayed as Tree View on winform. When a [B]user selects a particular node/element in the tree view,its attributes and values have to …

Software Development hard-drive xml
Member Avatar for rasingh24
0
905
Member Avatar for localp

i want to play an audio file in java without opening a player ... like an alarm ... does any1 knows how to do this.. and r there any sample codes available online ... (please provide relevant links only)

Software Development audio java
Member Avatar for localp
0
181
Member Avatar for r.stiltskin

I have two problems with the focus on buttons in this project. I've pared the code down to barebones to show the problems; there are only 2 simple classes remaining & still the problems persist. It compiles, runs (java ColorView), and all that's required to see the problems is simply …

Software Development java java-swing
Member Avatar for r.stiltskin
0
88
Member Avatar for devilz

I’m very very new in VB6.0 in my project I need a function where I want to pass month name as variable value which will be selected from a combo box by user and the function will generate the full date from starting to end along with the weekday name. …

Software Development visual-basic
Member Avatar for devilz
0
549
Member Avatar for mumuXdoll

im making a game, called memory game. i don't know the exact codes to make a picturebox move when clicked. i saw a game file that becomes a gif image when clicked, then it randomizes the last image every start of the game. i wanted to make something like that, …

Software Development visual-basic
Member Avatar for mumuXdoll
0
317
Member Avatar for dmanw100

Hello, I am working on a project that requires a set of points to be sorted by their angles in relation to the x-axis. The angles, which are in radians, store their angle as a double value. My insertion sort algorithm is failing to properly sort the points based on …

Software Development algorithm java
Member Avatar for dmanw100
0
103
Member Avatar for rudasi

Hi, I have been trying to figure this out and I know it must be something simple but I cant get it. Why does the following code give an answer of 1. double a=8; cout<<pow(a,1/3); I would think it should be 2. Thanks

Software Development c++
Member Avatar for rudasi
0
158
Member Avatar for Variance

Is it possible to take a label and add the caption to a database? If I try to link the label to the DataField when I run the program it obviously shows no label, and I'm unable to input the data that I need to. I know I could just …

Software Development visual-basic
Member Avatar for Variance
0
97
Member Avatar for Innercoder76

Hey everyone, I need help with my program it is an ipod simulator that goes like this: [CODE]/* FUNCTION - void initaPod Initialize all the slots to blank and 0 size memory*/ void initaPod (); /* FUNCTION - int addSong attempts to add a new song to the aPod returns …

Software Development c++
Member Avatar for ArkM
0
100
Member Avatar for viber101

why my executable jar file created in Netbeans cant write/output a .txt file. . .my program must create a text file and write with it, how can it doesn't work when i convert it to .jar but if i run it in netbeans it work fine?..

Software Development file-system java
Member Avatar for viber101
0
4K
Member Avatar for Stefano Mtangoo

Please anyone help me on classes. I have written this class example and keep getting error on that the function is private. I though variables in functions are private but mmh, I think I'm wrong. Can anyone clarify how to rectify this? Also, could you explain to this New Bee …

Software Development c c# c++
Member Avatar for Stefano Mtangoo
0
86
Member Avatar for ternor

Hello, this is my first post here, so thanks for your time and comprehension. English isnt my first language, so I'll be trying my best. OK, I'm in need for a tutorial where I can find examples on how to make use of files, bit operations and registers(whats a register …

Software Development c career
Member Avatar for ternor
0
100
Member Avatar for regina99

hey guys. i'm having trouble with looping a program. my assignment is to get the user to input a string and then display it backwards. i've successfully done this, but it's supposed to ask if you want to run the program again, and that's where my program fails. [CODE]public class …

Software Development java
Member Avatar for regina99
0
88
Member Avatar for VBNick

I literally picked up asm today. I have been trying to create a 3d software rendering engine in C++, and figured out doing things directly would be faster....but, I tried the following code: [code="cplusplus"] int _tmain(int argc, _TCHAR* argv[]) { int num, timestart, dur; timestart = clock(); for(int i = …

Software Development assembly
Member Avatar for VBNick
0
124
Member Avatar for eyewirejets

I'm trying to restrict the users input to the selected characters only. "W" "w" or "L" "l" Anything else entered, an error message should display. Can anyone please look at this and tell me what I'm doing wrong? Thank you [CODE] # User Enters either W = Win and L …

Software Development python
Member Avatar for jrcagle
0
118
Member Avatar for oldSoftDev

When I was using Python I created a program using basic knowledge of object orientation to compare between different cars. now when i switch to java I come up with a plan to compare lines I have created a point class and get the lines as well but now i …

Software Development java
Member Avatar for oldSoftDev
0
195
Member Avatar for scru

I know Python introspection feature are powerful, what I can't seem to figure out is how to get the name of the current class. Example: class Foo: def bar(self): print(classname) Then my output should be `Foo`. Bonus points if I can get which module it resides in too. Thanks!

Software Development python
Member Avatar for Ene Uran
0
135
Member Avatar for mattwaab

hey, i am working on this project, and have made it to the end of the hard coding part. Now i need to work out the bugs / get the thing to compile. I am having some trouble though as i am getting error messages that i dont understand. here …

Software Development c++
Member Avatar for StuXYZ
0
96
Member Avatar for trihaitran

I just reinstalled OS X 10.5 Leopard on my laptop and restored my data/applications from a Time Machine backup. When I use urllib.urlopen() I get the following error: [code] >>> import urllib >>> u=urllib.urlopen(aUrl) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib.py", line 82, in …

Software Development os-x python
Member Avatar for trihaitran
0
134
Member Avatar for thehivetyrant

I have currently built a database (based on IMDB) that i can add dictionaries too, list them and exit. [B]I will put the program so far at the bottom of the page, just paste it in and run ti to see what it's like.[/B] I am trying to add a …

Software Development python
Member Avatar for thehivetyrant
0
122
Member Avatar for MarMcD

Hello, I have to create a product class that holds the item number, product name, units in stock, and the unit price. I also have to create a java application that displays the same info. I have been working on this for three days now... I am getting frustrated because …

Software Development java
Member Avatar for javaAddict
0
233
Member Avatar for marcosjp

Hi! I'm using a C program to open PDF files with this code: [code=c] ShellExecute(GetDesktopWindow(), "open", "c:\\someFolder\\myFile.pdf", NULL, NULL, SW_SHOWNORMAL); [/code] Now I need to go furthrer; I need to open the PDF file at a certain page. I've tried [code=c] "c:\\someFolder\\myFile.pdf#page=5"... [/code] ...as is suggested in Adobe's docs, but …

Software Development c pdf
Member Avatar for Prabakar
0
2K
Member Avatar for lion_crazz

Okay, so I am taking an intro class for java programming and my instructions for this program were to write a program that found the first 20 numbers that when divided by 2,3,4,5,6 all left a reminder of one and then when divided by 7, left a reminder of 0. …

Software Development java
Member Avatar for ddanbe
0
124
Member Avatar for winrawr

So I got past my last problem using new[], but now I seem to have a new one... I created a char***, var. The goal was to build each dimension of the array to be different sizes at different times, based on separate user input... Here is the code: [code=cpp] …

Software Development c++
Member Avatar for Sky Diploma
0
302
Member Avatar for JAGgededgeOB172

Hi, I'm having issues with a program that concept-wise sounds very simple. The program should read in data from a text file (attached a2.txt), and perform stack and queue operations upon the data. The data consists of long math problems, dealing with order-of-operations. The correct output that should be appearing …

Software Development c++ file-stream queue
Member Avatar for JAGgededgeOB172
0
216

The End.