132,726 Archived Topics
Remove Filter ![]() | |
hi everyone. im currently working on a project where my scenario is that a company hired me to make programe for their company. what i need in my programe is [ICODE]I. Add/Update customers II. Add/Update products III. Add/Update salesman IV. Make transactions: Many products are sold to customers by salesman … Software Development java | |
Okay, so I've been looking at this for quite some time. I think I know what the problem is, but my C++ skills are sad a best due to stuff like Java, C# and VB. So, I'm trying to pull information from the registry, and I have no problem getting … | |
In my ToolstripMenu, there's an item called Info, when u push that Item, i want a new firefox/internetexplorer/... form opend. The link is [url]http://www.jiict.be[/url]. I can't use linklabels, but i can't figure out code to past in the clickevent... Any suggestions? (would like to use the menutoolstrip...) Greetings.. Software Development | |
HI I am learning multi-threaded programming. I have written the following code to synchronize access to a common array by two different threads. One thread to fill values in the array while the other one reads values from that array. The array is placed as member of a class and … Software Development c++ | |
i'm stumped... i get strange results from string[10:] to get the last 10 characters from a string? the code supposed to rename a batch of file sequentially and the number of numbers needs to be consistent eg. 00001 - 99999 thanks for the help [CODE]import os x=0 for file in … | |
Hi all! Hope you well! I have an application, most of it done and all fanx to the good guys and daniweb! :) I am curently using the setup project in VS2008 to create an installer for the application. In my code on I have the following: public frmMain() { … Software Development microsoft-windows | |
After the user inputs idnum and password. If thats correct the loginwindow is suppose to minimize and the mainwindow is suppose to come up. The main window comes up but the login window wont go away. :icon_evil [U]login window[/U] [ICODE]http://i41.tinypic.com/15ceblf.png[/ICODE] [U]main window[/U] [ICODE]http://i40.tinypic.com/121v2bk.png[/ICODE] [U]my problem[/U] [ICODE]http://i43.tinypic.com/4sjvy0.png[/ICODE] [CODE] if (userName_login_window.Equals("1") && … | |
I have just started Python recently and for some reason, I cannot import anything on my computer. I can do it on the computer at my school, but not my laptop. This is the message I received when I tried to import the program "cTurtle" [CODE]IDLE 2.6.1 >>> import cTurtle … Software Development python | |
when i make a setup file of my project and install it on a computer there is no uninstall file in my application folder , and I can only unistall it from ADD\REMOVE PROGRAMS , why can i add that? Software Development c# | |
Hi guys. So, i'm suppose to make a translator, here's my form: [URL=http://img213.imageshack.us/i/12081833.jpg/][IMG]http://img213.imageshack.us/img213/6067/12081833.jpg[/IMG][/URL] When i press the middle button i have to check every word from left memo (MEMO1) and insert the translated word in the memo on the right (MEMO2). So my middle button has the following code : … | |
I am having some trouble drawing a circle that is constant when the program runs. right now I am able to create one of my clock hands (that is going counterclockwise), but I can't figure out how to draw the circle of the clock..any suggestions? [code] Option Strict On Imports … Software Development vb.net | |
I have read in a lot of books that for every "new" you must use a delete....But in some books I have been currently reading they don't bother deleting their pointer to a class. I have read it is required at cplusplus.com to delete a pointer to a class but … Software Development c++ | |
A small ferry company has just purchased a computer for its new automated ticketing system. The company director has asked you to design the new system to assign seats for each trip of the 50-seater ferry, which covers the route from Penang to Langkawi and back daily. The upper deck … Software Development java | |
I need to write a declaration for a polynomial class where data members are an integer for the degree and an array for for the list of coefficients and with basic operations of input and output....and then implement the input operation.... Here is what I have class Polynomial { public: … Software Development c++ ![]() | |
Hello Daniweb. I'm new to Java, and I love learning it and want to continue learning it. I was curious about how a Java chat server could be made so I found an open source very basic one online. But the problem is when I run the server it gives … Software Development client-server java open-source | |
I am working on a project where I am building a student object from student java class. The student.java class specifies a method of: [code=java] public void setCourses(ArrayList<Course> courses) { this.courses = courses; } [/code] So I have built the following two methods in my main.java class file: [code=java] public … Software Development java | |
Hey guys. Hope you all well. A quick question, how can I make a form change backcolors so that it appears almost like its 'flashing'. Basically what I am trying to achieve is making a form more visible and getting the attention of the user. I can imagine it must … Software Development | |
How do i call another c++ code or an *.exe application in another cpp code. I actually wanted to create an AppSuite which contains an editor, a web browser, an address book etc. How to include all apps in one menu?? Any help will be appreciated, Anurag Software Development c++ web-browser ![]() | |
How should i handle click events of a JButton array i have frame containing 100 JButtons .I need to find out which one was pressed by the user[code]import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class Screen1 implements ActionListener , WindowListener { int i; JFrame scrfrm1; JLabel lblscr; JButton … Software Development java java-swing | |
Hi, I am trying to add multiple PictureBoxes dynamically at runtime using a loop but have come a little stuck. Here is the code I am working on:- [CODE] XmlDocument xDoc = new XmlDocument(); xDoc.Load(System.IO.Path.Combine(Application.StartupPath, "getPublicPhotos.xml")); XmlNodeList photo = xDoc.GetElementsByTagName("photo"); for (int i = 0; i < photo.Count; ++ i) … Software Development xml | |
Dear Friends, Please help me in getting out of the below error. I have made attachment of source file, kindly try to execute the program experience the error and guide me. D:\Tomcat 6.0\webapps\Beer-v1\WEB-INF\classes\com\example\web>javac -classpath " D:\Tomcat 6.0\lib\servlet-api.jar" BeerSelect1.java BeerSelect1.java:3: package com.example.model does not exist import com.example.model.*; ^ BeerSelect1.java:15: cannot find … | |
hi there!!! having trouble here, i have this main form and a password form, whats happening is that when i run my program my main form is dispalyed same with password form, (its on top of the main form), what i want is that my menustrip in the mainform to … Software Development | |
I've created a class PulldownArray, which contains two strings Value and Description. I created an array of this class called PulldownTABLE with the ArrayList^ command in my main program and I then populate it with the .Add method. All this works fine. How do I retrive the Value and Description … Software Development c++ | |
Hey you guys. Im doing c code where i have to make a file full of double values and then make another empty one because im going to write into that file. It does compile but i get this: Enter the input file name: randomfile.dat Enter the output file name: … Software Development c file-system | |
Three one questions about releatie in MySQL with Visual Basic 2008. How can i use Mydatapter1 over again and over agian (see code)? So that i can fill [COLOR="Green"]three datasets[/COLOR] I want to fill three datasets with tree different tables and use them in my program [CODE] myCommand1.CommandText = "select … Software Development vb.net visual-basic | |
Hi, I had a form ([B]says form A[/B])with control on it, 2 buttons with text "View Process Flow"([B]Button1[/B]) and "Manual trigger Process"([B]Button2[/B]). Both button will load and shows Form A in [B]Panel1[/B] in Form1, but button1 will let user to see the action but block them on clicking on it, … Software Development vb.net | |
This is my first c# application so I'm still figuring things out. Ok here is my setup, I have a MySqlDataAdapter filling a Dataset The Dataset acts as the DataSource for a BindingSource The BindingSource acts as the DataSource for a DataGridView The DataGridView successfully displays the data! The data … Software Development dataset | |
I closed out the other post I had "fill 2d array". The assignment is to read in a file to a 2d array that has the month #, high temp, low temp for each month. Then calculate the aver high and aver low and give the highest and lowest temps. … | |
Hi all I have a txt file. It has a maximum of 24 lines. E.g. Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 ... Line 24 I would like to delete lines 2, 4, 6 ... 24. All the even numbered lines this is the code … Software Development python | |
hi i am new to coding i have an xml file named employees.xml [code] <employees> <employee id="1" name="carla weis" budget="100"/> <employee id="2" name="tom knox" seniorid="1" budget="50"/> <employee id="3" name="karl rogers" seniorid="1" budget="400"/> <employee id="4" name="beverly smith" seniorid="2" budget="200"/> <employee id="5" name="tom stern" seniorid="4" budget="700"/> <employee id="6" name="eveyln wilson" seniorid="2" budget="350"/> … Software Development xml | |
As I understand it equal hash codes in general imply a high probability of equality between objects, but they aren't perfect. But I've been told that in Java the base hash code of an Object is simply the memory address of the object, so I've assumed that Object hash codes … Software Development java | |
I understand that this means I'm using more memory than is available to the JVM, but I'm not sure why or what to do about it. The purpose of the program is to simulate an item in a store that is being tracked with a bar code id number (or … Software Development java motherboards-cpu-ram | |
For the sake of readability, I've been trying to do something like this: [CODE]#define initialize(x)(type x = initfunction()) int main(){ initialize(example); example.item = 0; return 0; }[/CODE] where type is a typedef'd struct, and initfunction() generates one, inits values, and returns it. My problem is, I get these errors: warning: … Software Development c | |
this is my code i was wondering if somone could help me find out how to put text in the new window created at the red line [CODE]from Tkinter import * import Tkinter as tk class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.createsMenuButton() self.createsOptionsButton() self.createsHelpButton() self.createsUsernameWidget() self.createsUsernameEntryButton() self.createsLoginButton() #### … | |
I have a problem. Im working with a picturebox and a combobox. I have an image on a picturebox and then i create graphics over a picturebox depends on the combobox item selected. When the selected combobox item change needs to clear the graphics of the picturebox but the image … Software Development | |
I am using Visual C++ 2010 express edition and i am making classes but when i run i get the error: 1>c:\documents and settings\louisa\my documents\visual studio 2010\projects\ninja wars\ninja wars\game.cpp(71): error C2065: 'm_pScreen' : undeclared identifier [ICODE] In my Game.cpp i have this code void Game::Draw() { Sprite::Draw(m_pScreen, testSprite, 0, 0); … Software Development c++ visual-studio | |
Hi, we have all seen hashtable with a values of string but I want to make a hashtable that accepts the value as an arraylist,and add items to that array,delete from it, how can I do that and is it possible? thank you Software Development | |
Hi Guys, I need some help with a permutation problem. Say I have a string, 6 characters long - "123456" - how can I generate a list of all permutations of that string, limited to 4 characters long? So basically, each permutation generated can only be 4 characters long. As … Software Development java | |
Here is a good listing of library functions. [url]http://www.cplusplus.com/reference/clibrary/cstring/[/url] Software Development c | |
Hey guys I'm having a lot of trouble getting this program to work. I want to keep an inventory of different tools using a random-access file that shows the name of the tool, how many of each tool I have on hand, and the cost. I then want to put … Software Development c++ | |
I am trying to write an algorithm to determine the average of a linked list of real numbers with the first node pointed to by first... ptr = first; while (ptr != null_value) { //not sure what to put in here } Can someone take a look of this short … Software Development algorithm c++ linked-list | |
I cannot seem to get the array to work and display the second and third loans, only the first one displays. Here is what I need to clarify the situation. Can someone help me out please. Modify the mortgage program again. Remove the amortization table. This time enter 3 different … Software Development java | |
help me plz , write a java program that reads a number and verifies if it has the same value when we read it from right to left and from left to right. my program should display "having the same value so it is readable from both sides" if the … Software Development java | |
Hi there, quick (and I am sure) simple question on a program I have just created. here's the code: [CODE]#include<iostream> using namespace std; int main() { char letter; int counter=0;//set the counter to 0 for (letter=65; letter<=122; letter++) {if ((((((letter==91)||(letter==92)||(letter==93)||(letter==94) ||(letter==95)||(letter==96))))))continue; counter++;//increment the counter in the loop if (counter==27)//counter condition … Software Development c++ | |
I am looking for a way to extract an icon from a program and save it to a file, then load from the file and use again, keeping 32bit colors I have tried using ConvertTo32BitImageList() saving as file and stream When ExtractIcon() is used the icon is fine, I can … Software Development delphi file-stream pascal | |
I'm trying to find the linenumbers of a webdocument i load using urllib2. I'm trying to do this like this: [ICODE] document = urllib2.urlopen(url,'r') page = document.read() for index, line in enumerate(page): print index [/ICODE] This however, prints out the index of every 'character' instead of every 'line'. How could … Software Development python | |
Not sure this is the right place to put this. I have a batch file for a program that I'm writing, which takes a C source file, compiles it and runs it, and then tries to save the output of it to a .txt file. The program lets a user … Software Development file-system shell-scripting | |
Here I have a program and I'm getting the following error ControlPanel is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public class ControlPanel extends JPanel implements ActionListener ^ I don't fully seem to understand how the best way is to overcome this? [CODE]import java.awt.*; import javax.swing.*; … Software Development java java-swing | |
hey gues I search modules for console windows ( when program run ), i search few hours but for windows only find module Console .. I search module like for Urwid but for Windows, not Unix ( sorry, my english is not good ) | |
Hello daniweb forum members! Just a quick question which has hindered my programming greatly. I am creating an online role playing game: vorii - [url]http://www.youtube.com/watch?v=ePNxDlZ2H7Q[/url] And I have come across a problem with the chat interface. The way I have programmed my game is that each player as a place … |
The End.