132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for redleafrose

hi I m working on this assignment...base class employee sub class staff .now i have to Create a StaffDriver Java program that: a. creates two staff objects b. prompts the user to enter name, id, hours and rate for each object c. compute the pay for each object d. displays …

Software Development java
Member Avatar for wildplace
0
95
Member Avatar for skylancer

hi friends, I want to develop 3 tier app but I still confused how to implement it 1. In data access layer, could I return datareader? it's the better approach? some people tell it is not good way, you better used arrayList. 2. I have one method with 3 transaction …

Software Development
Member Avatar for skylancer
0
136
Member Avatar for viziroth

ok so I have what seems like a simple problem... simple code [CODE] int date; cout << "Enter the date in MMDDYYYY format: "; cin >> date; [/CODE] problem happens when someone starts the int with a 0 for example cin >> 03081991 date = 24 if I add another …

Software Development c++
Member Avatar for iamthwee
0
106
Member Avatar for Alexpap

Hi all, I would like to ask a question. Is the way that we connect an Access 2010 with a C# application the same. Are we still using the JET ENGINE 4.0? Thanks in advance, Alex

Software Development c#
Member Avatar for finito
0
94
Member Avatar for Kesarion

How can I get an RGBQUAD array of the pixels from a bitmap created from the screen(screenshot/printscreen).

Software Development c++
Member Avatar for Salem
0
121
Member Avatar for Anigmalee

[CODE] Select Case (e.Index) Case 0 If Alarmlvl = 3 Then bwcolor = Brushes.Gold ElseIf Alarmlvl = 2 Then bwcolor = Brushes.Black ElseIf Alarmlvl = 1 Then bwcolor = Brushes.BlueViolet End If Case 1 bwcolor = Brushes.Gold If Alarmlvl = 3 Then bwcolor = Brushes.Gold ElseIf Alarmlvl = 2 Then …

Software Development vb.net
Member Avatar for Anigmalee
0
219
Member Avatar for tanha

Hi everyone, I am using Ubuntu 7.10, and I have Java and MySQL installed with the command line as follow: 1. sudo apt-get install sun-java6-jdk 2. sudo apt-get install mysql-server and my JAVA and MySQL are working well, but now I want create connection between JAVA application and MySQL using …

Software Development java mysql ubuntu
Member Avatar for peter_budo
0
224
Member Avatar for rahulr

hey the program i mentioned should be 'x' printed in a cross form.

Software Development c
Member Avatar for jephthah
0
108
Member Avatar for twampdawg

Alright Guys & Gals I have a stupid question. I've been in IT for 7 or 8 years working up to a network administrator. I'm thinking of making a slight change and moving towards programming. I've had little to no experience in programming so far. Basically I'd like to get …

Software Development c
Member Avatar for jephthah
0
141
Member Avatar for choragos

Hello all. I'm almost certain this question has been posted before, but I couldn't find it--I apologize if it's a repeat. Anyway, I'm having a peculiar problem using getline when reading to a file. I know exactly how the file will be formatted, except the presence of comments at the …

Software Development c++ ios
Member Avatar for choragos
0
349
Member Avatar for hr1212s

this code in c++ [CODE]#include <iostream> using namespace std; int main() { return 0; } struct X; struct Y; struct Y { X ox; }; struct X { Y oy; };[/CODE] gives error as:"field `ox' has incomplete type"

Software Development c++
Member Avatar for Banfa
0
63
Member Avatar for Eternal49

Ok, Let me start off and say Im new to C. Im writting a subnet calculator, in my main function I am asking the user for a subnet mask and storing it in a char variable. Im then passing the variable to another function called "truncat", where I strip the …

Software Development c
Member Avatar for Eternal49
0
124
Member Avatar for Exaktor

I have a datagridview with data in it. I want to search the whole datagridview with a searchbox. This is the code I am using but it only searches the 'model' column not also the 'make' column. [CODE] DataView Dv = new DataView(); Dv.Table = partsDataSet.Tables["partsTable"]; Dv.RowFilter = " Make …

Software Development
Member Avatar for finito
0
581
Member Avatar for andrew2325

I want to print one colum of the database, we'll call it foo, to a richtextbox, and then match the input in a textbox the user inputs to it. Any suggestions?

Software Development
Member Avatar for finito
0
345
Member Avatar for ChargrO

Im working on this bit of code below, The only thing im worried about editing atm is the self.toggle() and self.hello(). Im currently getting this error TclError: unknown option "-menu" from this line of code self.config(menu=menubar), does anyone know how i could fix this problem?? [CODE] from Tkinter import * …

Software Development python tkinter
Member Avatar for Ene Uran
0
1K
Member Avatar for hoofbeats95

Hello. I need to include an excel file in the installation project of an application. I've added it to the install project under application folder. I need to read that file into a dataset during runtime. The file needs to be included on install so that the customer can change …

Software Development dataset file-system vb.net
Member Avatar for hoofbeats95
0
808
Member Avatar for jemz

hello can you help me please.. i have this trapping that will trap the characters..but my problem my code is too long..are there other ways to shorten my code..please help me ...hoping for your positive responds... [CODE]Public Function mchnotrap(KeyAscii As Integer) If KeyAscii >= 33 And KeyAscii <= 44 Or …

Software Development visual-basic
Member Avatar for jemz
0
83
Member Avatar for Robert1995

Heya , I was thinking of making a site opener application :). But I had a lots of problems . The next problem is facing this , it just crashes.:( [B]What do I want my program to do ?[/B] I want to assign a nickname for each of my favorite …

Software Development c c# c++ ios
Member Avatar for Robert1995
0
206
Member Avatar for VERMUNDr

[CODE] #include <iostream> using namespace std; const int ROWS = 3; const int COLS = 3; //char matrix[3][3]; void showBoard(char[][3]); void pTurn(int&, int&); void checkPlayerWin(bool&, char[][3]); void checkCompWin(char[][3], bool&); void checkForBlock(char[][3], bool& ); char compRandomTurn(); void compWinCheck(); // Main // Main// Main // Main// Main // Main// Main// Main// Main …

Software Development c c# c++
Member Avatar for Robert1995
0
181
Member Avatar for Talguy

I am still working on my realtime application for my car that will be running on Minimal Ubuntu and the gtkmm library. My current application runs alright for a singly thread application. I am in the process of multi-threading it (still learning threads). What I thought would be the best …

Software Development c++ queue ubuntu
Member Avatar for Talguy
0
685
Member Avatar for jakethecake

Hi I want to write an x86 assembler function that multiplicates two 64 bit integers on a 32 bit processor. It has the following C signature: [B]void llmultiply(unsigned long long int l1, unsigned long long int l2, unsigned char *result);[/B] The result of l1 * l2 are to be but …

Software Development assembly
Member Avatar for jakethecake
0
2K
Member Avatar for Qwazil

I'm an absolute beginner. Is there a function to search inside a set? If not, does anyone have a function that does so? (set to search in, value to search for)

Software Development python
Member Avatar for Ene Uran
0
62
Member Avatar for dreadyteddy

I am TRYING to write a program that finds restriction sites in a DNA file and returns a picture and information box of the enzyme which cuts it. My problems are; a) I have no idea if my program works past opening the file directory. b) I dont know how …

Software Development programming-construct python tkinter
Member Avatar for dreadyteddy
0
855
Member Avatar for softdev

hi, looking at this example code: [CODE] public void writeList() { PrintWriter out = null; try { System.out.println("Entering try statement"); out = new PrintWriter( new FileWriter("OutFile.txt")); for (int i = 0; i < SIZE; i++) out.println("Value at: " + i + " = " + vector.elementAt(i)); } catch (ArrayIndexOutOfBoundsException e) …

Software Development java
Member Avatar for JamesCherrill
0
98
Member Avatar for SquirrelProdigy

I would like to know how to do this. Are there any functions specifically for it? Or do you have to do it manually?

Software Development c++
Member Avatar for yangacer
0
169
Member Avatar for jellybeannn

Hi I'm trying to pass data from one page to another, but it does not display anything, Page 1: [code] protected void submit_Click(object sender, EventArgs e) { addData(); Session["value"] = space_01.Text; } public void addData() { string tenderDate = start_txt.Text; string cost = totalCost.Text; string companyName = name_txt.Text; string scon …

Software Development open-source session
Member Avatar for finito
0
159
Member Avatar for prodstar

hi im trying to read a txt file and could you please check what is wrong with this? this is my code [CODE]// This program will calculate the charges for shipping #include <iostream> #include <iomanip> #include <string> #include <cstdlib> using std :: ifstream; using namespace std; int main() { // …

Software Development c++
Member Avatar for jonsca
0
195
Member Avatar for laks_samy

Hi i am using List View in vs 2005, i added check box but i can't set the properti enable = false, how to set enabled =false in all checkbox coloumn?

Software Development vb.net
Member Avatar for finito
0
95
Member Avatar for lightshift

Hey all, am stuck! Basically I have a version of the Game of Life to create and I am currently having trouble with moving the items in the array. Basically my code shows the 20x20 grid, populates it with .'s to start, then adds 5 x's and 100 o's. That …

Software Development c++
Member Avatar for lightshift
0
252
Member Avatar for runee1000

[CODE] import java.awt.*; import java.awt.geom.*; import java.awt.event.*; import java.applet.*; import javax.swing.*; //need this for the timer to work. ///public class DoubleBuffering extends Applet implements MouseMotionListener class Ship { private int xpos, ypos, height, width, speed, xdir, ydir; private Ellipse2D.Double c; public Ship(int x, int y, int w, int h, int …

Software Development java java-swing
Member Avatar for quuba
0
880
Member Avatar for miotvsingtel

For those who understand El Gamal signature scheme . U may have known the verification process of the signature : y^a *a^b (mod p ) = g^M (mod p) We have to compute both side of the equation. If they are equal, the signature is verified. but i have issue …

Software Development java
Member Avatar for quuba
0
278
Member Avatar for aloush91

Hello everyone,,am os glad to join daniweb finally ! i like all of u and i think u're really smart guys am facing really hard assignment i couldn't do it at all :( the issue is ; 1. Write a program that finds and prints all of the prime numbers …

Software Development c++
Member Avatar for Banfa
0
177
Member Avatar for Pradnya.117

I am using MS Access 2003 to connect with VB. I have added all the referencess. Still there is an error in the line [code]If conn = "" Then conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Automobiles.mdb;" conn.Open [/code] Will you please help me to solve this problem?

Member Avatar for AndreRet
0
86
Member Avatar for student.09

I am new to java, taking an intro to java class, my grade is on the border line, need major help! I'm having a lot of trouble getting this program to work. I have written the entire program, but clueless of how to overcome these errors; program needs 2 be …

Software Development java
Member Avatar for wildplace
0
545
Member Avatar for lilpinay

write a program that computes the nth root of a number. given a real number X greater than 1 and less than -1 and given an integer Y, compute the nth root Z such that Z*Z*Z*Z*Z*Z*Z...(Y times)..Z*Z=X, or Z^y=X(Remember if X is negative Y must be odd.) The user enters …

Software Development java
Member Avatar for JamesCherrill
0
173
Member Avatar for nageshkore

In an ancient land, the beautiful princess Eve had many suitors. She decided on the following procedure to determine which suitor she would marry. First, all of the suitors would be lined up one after the other and assigned numbers. The first suitor would be number 1, the second number …

Software Development c++ linked-list
Member Avatar for iamthwee
0
467
Member Avatar for nemoo

hey guys, I wanna use a transparent panel so as to place it on the top of other controls without hidding them and If I draw some lines on this panel those lines will appear on the top of the controls. when I set the backcolor to transparent it desn't …

Software Development
Member Avatar for finito
0
176
Member Avatar for sachintha81

I am required to create a Desktop shortcut to a specific folder from within my C# program. I have two requirements. 1) On the Desktop of Current User 2) On the All Users Desktop Following is the code I used: [code]WshShellClass WshShell = new WshShellClass(); IWshShortcut MyDesktopShortcut; MyDesktopShortcut = (IWshShortcut)WshShell.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) …

Software Development windows-server windows-vista
Member Avatar for finito
0
2K
Member Avatar for gjames

I have two questions that are Eclipse and Mac OS X specific. Question 1: Referring to eclipse preferences > java > Installed JRE's > Execution Environment: Can someone explain the [ execution environment's ] and compatible [ JRE's ]? I'm interpretting this as the execution environment being the JVM eclipse …

Software Development apache api java mac-software os-x
Member Avatar for gjames
0
159
Member Avatar for fiveseven

Hi, I have been making a checkbook program for my final project. When I run my program and try to read a file into my array, it is giving me this error: Exception in thread "main" java.lang.NullPointerException It is pointing to this specific line: balance = myRegister.alterRegister(checkBook[i].getAmount()); I'm not sure …

Software Development java
Member Avatar for jwenting
0
678
Member Avatar for g2gayan

:) Hey , Im creating a small application to convert pendrives from [B]FAT[/B] format to [B]NTFS[/B] :| but i have a small problem.. [CODE] Process p = new Process(); string d = txtPath.Text.ToString(); d = d.Substring(0, 2); p.StartInfo = new ProcessStartInfo("cmd", "/c \"format '+ d' /fs:ntfs" ); p.Start(); p.Close(); [/CODE] …

Software Development
Member Avatar for g2gayan
0
146
Member Avatar for cchris

I'm in the beginning stages of writing (and learning as I go) a Python database app using SQLite. I have the db structure planned on paper, and I have the queries I'll need in mind, but before I start coding I want to fully test the db design to make …

Software Development database-design python sqlite
Member Avatar for griswolf
0
300
Member Avatar for khan17

hello all, im using the code below now to extract table of contents from a html page. it extracts the data which is available after the <table> tag. but what i need is to get the result which appear as though it appear on that html page. [i need the …

Software Development html-css
Member Avatar for khan17
0
108
Member Avatar for ceyesuma

Hello Can someone get me started in the effert to fix this SQL statement to be excepted to create a table in a derby embeded db? [code] public boolean createTables(Connection conn) throws FileNotFoundException, IOException { System.out.println("in createTables:"); boolean createdTables = false; Statement stmt=null; try { String thisTable=ModelUtils.getXMLResource("createAdminTable"); System.out.println("thisTable sql String: …

Software Development apache java sql xml
Member Avatar for ceyesuma
0
338
Member Avatar for eggberto

When I start to debug the following code in Visual C++ and it runs in debug mode, it gives me this error: "Unhandled exception at 0x1027d51c(msvcr100d.dll) in st.exe:0xC0000005: Access violation reading location 0x00000009." The weird part is that the program starts to run, but shows me the error a little …

Software Development apple c++
Member Avatar for Salem
0
270
Member Avatar for chathuD

guys i need a help on virtual function on c++. what is a virtual function and how to use it, and what are the benifits of a virtual function

Software Development c++
Member Avatar for Salem
0
152
Member Avatar for bobyx

Joined: 14 Mar 2010 11:05 Posts: 2 Hi.Still I have problem in my program codes.I write a program in mikroC PROV2.50 for my microcontroller(PIC 18F452) but I faced to a problem that related only to C language and compiler give me the following error messages; extern int adcvalmax[8]= {0,0,0,0,0,0,0,0};// 16 …

Software Development c
Member Avatar for 0x69
0
2K
Member Avatar for JhonRR

Hello everyone, I'm trying to write a script, i would like to say the child process will kill the parent process how would i do that? Thanx,

Software Development shell-scripting
Member Avatar for griswolf
0
67
Member Avatar for sofakingjewish

I have to create a simple calculator and I dont know what I am doing wrong! The code I have so far, there are 23 errors I got it down from 42! Now I am stuck and dont know which way is up or down! [CODE]#include <cstdlib> #include <iostream> #include …

Software Development c++
Member Avatar for jonsca
0
172
Member Avatar for fellixombc

How would I exactly do this? Heres what I'm talking about: src/test.h src/etc/work.cpp how can i get src/etc/work.cpp to include src/test.h?

Software Development c++
Member Avatar for fellixombc
0
66

The End.