132,726 Archived Topics
Remove Filter ![]() | |
I need a functioning login code for a windows form. my code that I made has some problems. I posted my code to prove I made Effort. thanks. [QUOTE] -------- Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username … Software Development c# open-source | |
Hey I'm currently writing a program which takes a file of data sorts it (using bubble sort) and for some reason I keep getting a segmentation fault. [CODE] #include <stdio.h> #include <stdlib.h> void compare(int numberstocheck[], int n) { int i, j, k; int thebucket[n]; for(i = 0; i < n; … Software Development c | |
This fe. My system able to run, but at seat number for the ferry is not changing. i am not sure what happening, but i guess it related to the for loop. It you start the system. Press P -> Press B-> Name -> Select ferry -> Then it print … Software Development java | |
Hi at all, this is my first post on this forum, thus i think it's nice whether i introduce myself. My real name is Nilo Redini, i came from italy (Pisa), i'm 25 years old and i'm a computer engineer. It's a lot of time that i read this forum … Software Development c++ | |
I like STL but the performance of the STL of visual C++ 2005 is not good enough, could I find some containers which looks like STL? Oops, I just found 1.48 release a brand new library--Container This library even support rvalue reference, so sweet. I love you, boost. Thanks Software Development c++ | |
I'm working on a portion of the codes to encrypt the ATM card of the user. [CODE] Public class AtmCardAuth{ public static byte[] computeCheckBytes(int acctNum, int pin)throws Exception { // byte[] ret = new byte[32]; // for(int i=0; i<ret.length; ++i) ret[i] = (byte)i; // return ret; String password = Integer.toString(pin); … Software Development encryption java | |
Hello, i'm back with new question :) So i found how to make non-blocking gui with threading: [CODE] class SearchThread(threading.Thread): def __init__(self): super(SearchThread, self).__init__() self.window = frame.panel_one self.window2 = frame.panel_two def run(self): seit = self.window.inputArea.GetValue() se = self.window.engine.filest(seit) for it in se: self.window2.transferArea.AppendText(it) [/CODE] and i bind it to check-box: … | |
i create downloader in vb.net. i need to add resume/pause buttons to it.whats the program for it? Software Development vb.net | |
Hello again. Well, I've been trying to get this to work, and I finally was able to combine two functions into one, but now I have to create a new function called FillTime() which will calculate the time to fill to fill the pool, though it seems that it doesnt … Software Development c++ | |
hello all i m new at using C1truedbgrid..... and feeling very uncomfortable in shifting frm datagridview to c1truedbgrid.... can you help me in doing so????? my question at this time is that i m using a checkbox column in c1truedbgrid nw in order to select all checkbox i placed an … Software Development | |
Hi everyone... I just finished making a program for Video Rental in java..its not much..just retrieves the data from the DB and we can add or edit it...it works perfectly. But now, i want it to display the "Client Name" and "Client ID" field from my Client table and "movie … Software Development java microsoft-access | |
![]() | Well' I'm trying to print image from my PictureBox...this is my code for drawing image: [CODE]e.Graphics.DrawImage(PictureBox1.Image, 0, 0)[/CODE] But I need something more specified...when I print my document with this code, for some of those, I don't get the whole document. So I need to specify that...I need to stretch … Software Development vb.net |
I'm having trouble with the calculate mean method in my Average Driver. The Average class is fine it's just declaring the objects and instantiating them I'm having a problem with. Any help would be greatly appreciated. [CODE]import java.util.Scanner; public class Average { Scanner input = new Scanner(System.in); private int[] data … Software Development java | |
can somebody help. i m getting following errors. i m creating postfix calc C:\Users\Hamza\Pictures\CalcGUIPanel.java:204: int cannot be dereferenced Integer arg2=resultValue.pop(); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:205: int cannot be dereferenced resultValue.push(resultValue.pop()+arg2); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:205: operator + cannot be applied to <any>,java.lang.Integer resultValue.push(resultValue.pop()+arg2); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:205: int cannot be dereferenced resultValue.push(resultValue.pop()+arg2); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:211: int cannot be dereferenced … Software Development java java-swing | |
Hello programmers, 1. could give me an[b] example code[/b] how to set up username and password for the service, which have been created using wsdl file, which has been given from web service creators on other side of the world. Web service client has been created using NetBeans IDE. When … Software Development ide java java-netbeans oracle | |
Hi, i am new to c#. i write a code as below.You see that i obtained columnname and dataType but How can i get size of field in Table ? Pls help me. foreach(DataColumn dc in ds.Tables[UpdateTableName].Columns ) { lFound = false; cNewName = dc.ColumnName; cNewType = dc.DataType.ToString(); Thanks a … Software Development | |
Hi, I'm getting the error at the doc.close in the last argument; type mismatch error using object 11 com addin; for which the doc.close takes 3 arguments. thx [code] Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass(); object file = textBox1.Text; object nullobj = System.Reflection.Missing.Value; Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Open(ref file, ref nullobj, ref … Software Development microsoft microsoft-office | |
Hi guys, is there a way to get worksheet names from a close workbook? thanks for any help. Software Development vb.net | |
helo, I learn Classes and methods according to a manual "Think Python: How to Think Like a Computer Scientist" I am stuck on "Polymorphism" There is a part using built-in function sum. I don't know what to do... It should be connected to __add__ function, but still the code must … Software Development python | |
i have a combobox and few textboxes in Form1. i inserted new item into combobox by entering new item in one of the textbox. i manage to add item into combobox in Form 1. But how can i achieve if the item i added in Form1 to be inserted automatically … Software Development mysql vb.net visual-basic | |
Hello everyone at Daniweb! This is my first post here, sorry if i do something wrong. Ok, so just a quick background on me and where I'm at in java. This year I'm taking my first Comp Sci class as CSUN (Cal State University Northridge). I am a complete beginner … Software Development java | |
when ever i execute this code it hangs ..any help how to troubleshoot the problem [CODE]Imports System.Net Imports System.IO Partial Class vbIPNexample Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Post back to either sandbox or live Dim strSandbox As String = "https://www.sandbox.paypal.com/cgi-bin/webscr" Dim … Software Development vb.net | |
I'm trying to write a test class which shows the user the following menu and implements all options. The program should continue to run and process requests until the user chooses to exit. The program should double-check that the user really wants to exit. All input must be validated and … Software Development java | |
Hi all! I was hoping I could get some help. I have a input file of data in 5 columns eg. [CODE]A 1 10 B 0.7 B 1 203 A 0.98 C 2 805 C 0.99 ...[/CODE] So what I'm trying to do, is when each item in the first … Software Development python | |
Hey guys! I'm trying to figure out how to create a program that lets the user find a picture on the hard drive and display the picture. How can I accomplish this? Software Development hard-drive java | |
[CODE]#include<stdio.h> int main() { int a,b,c; (printf("\nEnter 2 no.s"))?(scanf("%d%d",&a,&b))?(c=(a>b)?a:b):0:0; while(c>=1) {if(a%c==0 && b%c==0) {printf("\nGCD:%d",c);return 0;} c--; } }[/CODE] | |
I am having trouble figuring out how to test 2 bools in a loop. This is an example. do { }while (!done || !validMove); [CODE] #include <iostream> #include <cmath> using namespace std; int main() { int number1, number2, total; bool done = false, validMove = false; do { cout << … Software Development c++ | |
"Select * From CashReport where convert(varchar(10),StartDate,101)>=@pStartDate and Convert(varchar(10),EndDate,101)<=@pEndDate and Type = 'I'" [B][COLOR="Red"]Hello! i want to add CUSTOMER NAME in this code how to view each customer datewise report plz help me..[/COLOR][/B] Software Development vb.net | |
this worked a few times and now its not :( anny help would be greatly appretiated [CODE] #include <iostream> #include <string> using namespace std; string vowels(string str) { string vow = "aeiouAEIOU"; for(size_t i = 0; i <= str.length()+1; i++) { str.erase((str.find_first_of(vow)),1); } return str; } int main() { string … Software Development c++ | |
I am also a New Learner, Base on the Request, This Simple Code would detect if a Number is Even or ODD number.... // This is to Detect Odd and Even Number [CODE] bool ValidateDegreeValue; // This is to Validate that the User Enter Number Data double DegreeValueNum; // This … Software Development c++ | |
Hey guys im new to this programming thing and im starting of with pascal.I have a small problem here is the program i want to input a number and that number will determine how man times the for loop runs the problem is the program is compliling but is stoping … Software Development pascal | |
I have a tic tac toe board i am finding it hard to figure out how to change parts of the array that contains char. I am looking for a way to to ask the user to select a char to change in the the array and then once they … Software Development java | |
I am trying to record many small MP3 files from my computer's microphone. There are numberous examples using mciSendString Library "Winmm.dll" to record .wav files. I find the .wav quality to be lacking and I really want to record straight into the MP3 format rather than converting my .wav files. … | |
[CODE] ifstream in_gradebook; ofstream out_gradebook; in_gradebook.open("gradeBook.txt"); out_gradebook.open("gradeBook_edit.txt"); while (???) //while int is being read { in_gradebook >> score; out_gradebook << score << " "; sum = sum + score; } average = sum / 10.0; out_gradebook << average << endl;[/CODE] Here is a small snippet of the code I have … Software Development c++ programming-construct | |
Colafone Corp, an internet service provider has just started operations in Fiji. They require a program that calculates and prints the bill for Colafone Corp’s clients. As such the Corporation has come to you to create such a program. The corporation offers two types of services plan: Broadband Lite and … Software Development c++ | |
hey guys need help... Declare an enumeration type consisting of the nine planets in their order by distance from the Sun (Mercury first, Pluto last). Write a value-returning function that converts the name of a planet of the enumeration type declared in Step 1 into the corresponding string. The planet … Software Development c++ | |
Hey! so my teacher is forgin, as i am and i'm having trouble understanding what he says... here is an assignment i got and im not sure what exactly it's asking. Would be big help if any of you guys could figure out what the question is wanting me to … Software Development c++ | |
I m new.I am not getting any result for Number of A Number of B Numbers of C Number of D number of F for A,B,C,D,F i always get 0. [CODE]import java.util.Scanner; public class ExamScores1 { public static void main (String[]args) { String a; int count= 0; int grade=0; // … Software Development java ![]() | |
I am trying to read a file using a string input as the filename. For example, if the filename is datafile.txt then if the input is "datafile.txt" and there is a file of that name in the directory, how do I read it? Here is my initial code: [CODE]Scanner kbd … Software Development file-system java | |
Hi all, Does anyone know how to read a .doc file with reader in java? Is it possible to read a doc file the same way you read a txt file? Thanks in advance Software Development java ![]() | |
it says can not find symbol.... [CODE]import java.util.Scanner; public class wage2 { private static Scanner Reader= new Scanner (System.in); // private static double OverTimeRate=1.5; public static void main(String[] args) { //constants double person_Name; double hourly_wage; double regular_hours; double overtime_hour; double regularpay; double overtimepay; double totalpay; person_Name=InputPersonName(); hourly_wage=InputhourlyWage(); regular_hours=InputRegularHours(); overtime_hour=InputOvertimeHours(); regularpay=regular_hours … Software Development java ![]() | |
Hello Daniweb, I am writing an App that uses two buttons, two radiobuttons, and a textbox to use the Windows shell command to print the "getmac" command to a text file: i.e. "getmac /v >> whatever.txt" I want to save the "wireless" MAC addresses to a text file from a … Software Development shell-scripting visual-basic | |
I am developing an application that involves serial port communication (using an FTDI device) and an operation which takes 3 minutes on an XP box, takes 9.5 minutes on a Windows 7 box. The application should handle data at a rate of about 11 kilobytes/second. I know my application is … Software Development | |
I am designing an application which communicates with another device via a serial port. My application buffers the received binary data until the data is valid/of known format, does some processing and then writes back a response. I understand this model is known as the consumer/producer model. The issue I … Software Development multithreading | |
[COLOR="Red"]First off let me just say i don't want anyone to do my homework for me. I get a greater sense of satisfaction knowing that I did the work. with that being said I'm looking for some way to start or some input on what measures I should take while … Software Development c++ data-structure operating-system queue | |
I can't get the object array in lab9 class (named "thelist") to be populated with objects from the Foreign class. please see line 35 in lab9 class. I've tried using toString, useing a Foreign type variable as a parameter in a addData(), a addData() method ect... I am really really … Software Development java | |
I am new to Java and I am having trouble knowing if my array is populating when I click the enter button and printing out the data into the text area when I click the run reports button. When I put data in the text boxes the boxes are being … Software Development java java-swing | |
Ok so my problem should have a fairly simple fix. My program takes the number of families and their income and prints the families that make less than 10% of the maximum income. Below is a sample run. Please enter the number of families: 5 Enter an income: 8500 Enter … Software Development java | |
My problem is in the guessing method, I am not sure if the way I set up playing the game again works, (don't know if entering yes will work) and I'm not sure on how to call the main method to play again, and also I'm suppose to give the … Software Development java | |
I'm a complete beginner to c++ so this may be a really stupid question... Basically so far i have this: [CODE]s1Textbox->AppendText( gcnew String(ss.str().c_str()));[/CODE] Obviously the text being displayed keeps appending. I looked at all of the methods for text boxes on the API but couldn't find anything to set the … |
The End.