132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for plasticfood

i don't know what happened, but i was running an applet that i made on a webpage and it works fine. i have the latest JRE and i am running firefox 4. then i've made some changes to the applet, tested it, it works, and copy and paste the class …

Software Development html-css java java-swing
Member Avatar for plasticfood
0
327
Member Avatar for pardhu463

Hi to all, I am new to this forum..If i did any thing wrong in this thread please correct me... Let me tell you something about my project .... I am working on ARM7-LPC2148 processor with Graphical LCD. Now i am making a calculator which should be like as our …

Software Development algorithm c
Member Avatar for N1GHTS
0
196
Member Avatar for isaackhazi

Im currently working on a project to build an application for Windows Mobile 6. Im just stuck with this stupid issue: I have a SQL query string: Dim connectionString2 As String = "Data source = " + path + "\HC.sdf" Dim cmdText2 = "SELECT * FROM BigC_Rangsit_0_" I want to …

Software Development sql vb.net
Member Avatar for longstrd
0
954
Member Avatar for L0s3r

Hello guys. I currently code in C++.But I want to gain knowledge of internals of C++.So , I want to analyse my each and every program in ASM. I use Windows 7 platform and code::blocks.Please provide necessary information or tools , which can help me in this regard. Thanks!

Software Development assembly c++
Member Avatar for gusano79
0
231
Member Avatar for geekme

While debugging in VS 2010, my code gives no error but on the output screen it shows the output of the other code file in the project.Please help.

Software Development
Member Avatar for de Source
0
71
Member Avatar for trantran

I have a C++ standard related question. Let's say I have 2 derived object D1 and D2 (which may contain class D virtual functions) of an identical class base B. Now, I create base pointers bpD1 and bpD2 to those objects. 1) Are bpD1 and bpD2 *guaranteed* to be different …

Software Development c++
Member Avatar for trantran
0
193
Member Avatar for king03

Guys I need help. When I am already done inputting the needed information, when it comes to outputting file stream to a notepad it stops and says "program.exe has stopped working. windows is checking for a solution" and there is a loading bar. please help i don't know what I …

Software Development c++ file-stream ios streaming-service
Member Avatar for Arbus
0
169
Member Avatar for gingerfish

i have this dataset: [CODE]String[][] trainData= { //featIdx////////classInfo {"s", "y", "r"},//0 {"s", "n", "r"},//1 {"w", "y", "r"},//0 {"r", "y", "p"},//0 {"r", "n", "r"},//2 {"r", "y", "p"},//0 {"w", "n", "p"},//0 {"w", "n", "r"},//3 {"w", "y", "r"},//0 {"s", "n", "r"}};//1 int[] trainClassInfo = {0, 1, 0, 0, 2, 0, 0, 3, 0, …

Software Development dataset java
Member Avatar for gingerfish
0
921
Member Avatar for Toulinwoek

Borland has released some "Turbo Explorer" editions of it's development tools. I am wondering if anyone here can tell me (as objectively as possible) if the Delphi language is -"Better" -More powerful -Easier to learn -More Flexible -Able to create better performing apps Than C# (I am particularly referring to …

Software Development c# delphi pascal
Member Avatar for conhulio
0
2K
Member Avatar for fatalaccidents

Hey guys, I'm writing a program for a class that basically is a menu that allows you to add people, delete people, change info, locate them by ID and last name, print the list, load the list from a file, and save the list to a file (in that order …

Software Development c++ linked-list
Member Avatar for fatalaccidents
0
250
Member Avatar for newcoder310

Hi , I'm new to servlets and I'm trying out the Date function in servlets. Instead of printing todays date it is giving something like "Date@fbb7cb" this . Could you please point of my mistake .... Following is the code snippet [code] PrintWriter pw = response.getWriter(); Date today = new …

Software Development java
Member Avatar for NormR1
0
115
Member Avatar for Arjun_Sarankulu

I am using windows username and password to authenticate user for login following is my code [CODE] namespace Test1 { public partial class Login_Form : Form { string emp_code = ""; public static string temp_emp_code = ""; string s = WindowsIdentity.GetCurrent().Name.ToString(); private string _path; private string _filterAttribute; public Login_Form(string path) …

Software Development
Member Avatar for Arjun_Sarankulu
0
118
Member Avatar for erinpzk

Recently, I've been using Selenium to record a few simple tests. Although Selenium tests are initially stored as html files, the program allows you to export the test cases in a variety of languages (in this case, I'm using C#). I downloaded NUnit to use as my testing framework -- …

Software Development assembly gui
Member Avatar for erinpzk
0
214
Member Avatar for simagen

I am using 2 checkboxes on WinForms. I am trying to say to the program, if the box is checked.. do this.. If the box is unchecked..do that.. I know how to make it do what i want when the button is checked, but i dont know how to make …

Software Development
Member Avatar for Momerath
0
226
Member Avatar for rminator

I have a Binary logfile,and i have to read it and convert it to a normal file,and use the obtain values and represent it in a Datagrid. I joint a example of my Logfile and the convert form, and hope that somebody can help me thx in advance

Software Development
Member Avatar for rminator
0
142
Member Avatar for king03

Hi there guys I need a little help about separation of two worded strings. Below is a program that will ask a user to input first name, middle name, and last name. Whenever I input a two worded string in the "Enter First Name" part, for example: "Michael Jordan" and …

Software Development c++
Member Avatar for Ancient Dragon
0
106
Member Avatar for emmaand

hello I have build a high score list that asks the user to enter name and score and then sort the list so the score comes in the right order. My problem is that the sort function only works once, the second time I enter name and score the list …

Software Development c++
Member Avatar for emmaand
0
123
Member Avatar for leo88

Hi, I am doing login using data reader of C#. Here is my codes, [CODE] try { Access_Db.OpenTransaction(); Access_Db.BeginTransaction(); bool usrExist = false; string SQLStr = "SELECT ID,Password FROM RegisterEmployee"; OleDbCommand sqlComm = new OleDbCommand(SQLStr); OleDbDataReader reader = sqlComm.ExecuteReader(); // program got exception when run till here while(reader.Read()) { if …

Software Development
Member Avatar for leo88
0
296
Member Avatar for revjim44

I'm trying to understand the correct way to instantiate objects in C#, and I just can't seem to get it right. My code is in lines 17-37 lines 47-51 and lines 102-103 Any direction would be genuinely appreciated. Jim [CODE] private void findMortgagePayment() { string prompt; bool validPV = false; …

Software Development c c# c++
Member Avatar for ddanbe
0
182
Member Avatar for EneilShade

Hello DaniWeb community! I am writing code for problem 10 of Project Euler. I have decided that the Sieve of Eratosthenes was the best option for creating a list of primes less than two million. Here is my code (yes, I mis-spelled Sieve and Eratosthenes): [CODE]package projecteulerjava; class ProblemTen { …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
217
Member Avatar for TheMightySpud

Hi all, I'm hoping someone can help me with this as I can't for the life of me figure it out. I have a single form called 'FolderSelector' with a label, textbox and a button. The problem I'm having is that everytime I run the application, the only thing that …

Software Development vb.net
Member Avatar for TheMightySpud
0
295
Member Avatar for CeeGee

Hey all, i am a newbie at C# and need help with this program. This is what i have so far.The first part of the program work, but the second method InchesToFeetdoes not work. Please help. Due on Monday. Create a class named InchesToFeet. Its Main ( ) method holds …

Software Development c c# c++
Member Avatar for DaveAmour
0
895
Member Avatar for localp

Hello , I have a .exe file written in C++. i have used; Process.Start("E:\\cmdf.exe"); to execute the code from C#. Now i need to ; (1) hide the command prompt (2) Then to find a way to stop the command prompt (as in closing the application) How do i do …

Software Development
Member Avatar for sandeepparekh9
0
96
Member Avatar for kevinmax101

Hi, im currently doing a pacman game in c++ as a project. im currently not using graphics but only using the console for simple representation. right now, I'm having problems concerning detection of pellets. Im a bit confused why it detects it as walls even though i check if the …

Software Development c++ gaming
Member Avatar for TrustyTony
0
1K
Member Avatar for cretaros

Im to develop a payroll calculating system using abstract classes and implementing polymorphism, With respect to inheritance of super class Employee by sub classes. i dont know how to start implementing it on GUI, bt its okay on cmd. Any help either with sample code is highly appreciated. cretaros.

Software Development gui java
Member Avatar for ztini
0
160
Member Avatar for else

hi! we are having trouble in our program. every time we click login button it will proceed to the next form even if it doesn't have anything on it. can you please help us regarding this problem [code] Private Sub Command1_Click() Adodc1.RecordSource = " select * from login where username …

Software Development visual-basic
Member Avatar for shelexelex
0
140
Member Avatar for crapgarden

Can someone explain this excerpt from a book I'm studying: [CODE]char phrase[] = "Game Over!!!";[/CODE] [U]BOOK:[/U] [I]"C-style strings terminate with a character called the null character to signify their end. You can write the null character as ’\0’. I didn’t need to use the null character in the previous code …

Software Development c c# c++
Member Avatar for crapgarden
0
189
Member Avatar for CeeGee

This program is giving me a count up to 999. which is not what it is suppose to do. can someone tell me how to fix it. The question is as follow: Write a program that allows the user to enter any number of integer values continuously (in any order) …

Software Development
Member Avatar for saravind84
0
2K
Member Avatar for prvnkmr194

My problem is that I have to send my textbox data to crystal report, i am trying a lot but iam not getting I know how to use crystal though database. Thanks

Software Development
Member Avatar for vishalrane
0
106
Member Avatar for merse

How to determine the encoding of a text file? And are there any tools to handle the content of a text file independent of its encoding?

Software Development c++
Member Avatar for Ancient Dragon
0
120
Member Avatar for Lilcrew

I need to make a SIMPLE BASIC program that plays crabs [code] #include<iostream> #include<string> #include<ctime> using namespace std; int main() { int money, i, wager, roll, roll1, roll2; string name; char bet, R; cout <<"Lets Play Craps!" << endl; cout << endl; cout <<"This program stimulates a session at a …

Software Development c c# c++ session
Member Avatar for NathanOliver
0
303
Member Avatar for khocmedemmua

I have 2000 emails to send to my customers. But I what that, it sends 400 emails at a time. How can I do that? Please help me! Thanks

Software Development c# email
Member Avatar for khocmedemmua
0
192
Member Avatar for thijscream

hi i have 2 timers... and i want them to count just 1,2,3,4.... etc now i have figured out how it works with date and time but not with ticks... do you maby know a short way to do this? Thijscream

Software Development
Member Avatar for Alpha-Bit
0
79
Member Avatar for M1n1m@l1$t

The following is the code for my program that is supposed to choose a random number and then get the user to guess it by using the basic hints. It seems like it should work but it keeps coming up with the error:'else' without a previous 'if'. it is getting …

Software Development c++
Member Avatar for m4ster_r0shi
0
783
Member Avatar for crapgarden

This is just a quick question about when calculations are performed in a line of C++. Say I have the following block: [CODE]int numItems = 0; inventory[numItems++] = "sword"; inventory[numItems++] = "armor"; inventory[numItems++] = "shield";[/CODE] the ++ operator increments the array number of inventory AFTER it reaches the ; operator? …

Software Development c++
Member Avatar for crapgarden
0
120
Member Avatar for riahc3

Hello Ive been searching around Google and while I have found some answers, Im not sure how to implant them correctly. I wish to disable the Close (X) button on a Windows Form. I read about ControlBox (I think that the property) but I perfer to do it another way. …

Software Development vb.net
Member Avatar for riahc3
0
117
Member Avatar for xanawa

Hi, I have the database of the application i am doing stored in the bin. Now i want to make a new connection how can i do so?

Software Development
Member Avatar for de Source
0
126
Member Avatar for masterofpuppets

Hi all, I am writing a server in Java and I have an issue which I've been working on for days now and I can't seem to find a solution. I want to upload files to the server using an HTML form. I can read the whole POST request and …

Software Development client-server file-system java
Member Avatar for masterofpuppets
0
225
Member Avatar for emmaand

Hello Im am trying to write a high score list . The user is suppose to enter name and score that will be sorted.. like Emma 500 Andy 400 Linda 300 there will be room for five names on the list... I know how to make the program work to …

Software Development c++
Member Avatar for emmaand
0
154
Member Avatar for localp

I have a Visual C++ console application (I am using windows Vista, Visual studio 2008). When executing the program i don't want to see the Console popping up. How do i code this. I tried simply removing all cout and printf statements but yet this didn't help. Need help here.

Software Development c c# c++ visual-studio windows-vista
Member Avatar for Ancient Dragon
0
397
Member Avatar for sergent

I don't understand why it is allowed to declare variables in a while or for loops. For example this is allowed (or at least compiles ??) [CODE] for(int i = 3; i > 0; i--) { int d; }[/CODE] and this will give you a compiler error; [CODE] int d; …

Software Development c++ legal
Member Avatar for sergent
0
144
Member Avatar for perksexcuse

Hello DaniWeb! I've found your website very useful for previous problems in my course, but this time I've come across something I just can't figure out. I'm attempting to create a program thats instructions are defined in the code. I've used a previous post as a guideline, and it was …

Software Development c
Member Avatar for perksexcuse
0
153
Member Avatar for jay_el_em

Hi, I have a flowLayoutPanel, into which I want to add new labels when the user clicks on a button. Is this possible? C#, Winforms, Visual Studio I am trying something like this: [CODE] //inside click event handler string submitWord = tempWord; Label lbl = new Label(); lbl.Text = submitword; …

Software Development visual-studio
Member Avatar for jay_el_em
0
136
Member Avatar for king03

Hi there I need your help about a program because I am not quite sure if there's still a need for me to use streaming in this program here it is: [COLOR="Green"]Create a program that will prompt the user to enter how many students she/he wants to enrol. After the …

Software Development c++
Member Avatar for Arbus
0
112
Member Avatar for IIM

I have tried a lot for JDBC using mysql but none of them work.... Can anyone help me how to get this work.... [CODE] import java.sql.Connection; import java.sql.DriverManager; public class Main { public static void main(String[] argv) throws Exception { String driver = "com.mysql.jdbc.Driver"; String connection = "jdbc:mysql://localhost:3306/abc"; String user …

Software Development java
Member Avatar for IIM
0
124
Member Avatar for localp

I have C# windows form application, with all default settings. I am using VS 2008, OS - Windows VIsta. When my form loses focus, (as in when a user clicks on something behind the form), i need the same form that lost focus to regain it. I made use of …

Software Development windows-vista
Member Avatar for ddanbe
0
224
Member Avatar for Jessurider

can anyone tell me why sorting is not working in the below code.......... [CODE] using System; class stringarray { public static void Main() { int n,i; string [] str= new string[10]; Console.WriteLine("enter the limit:"); n=int.Parse(Console.ReadLine()); for(i=0;i<n;i++) { str[i]=Console.In.ReadLine(); } Array.Sort(str); for(i=0;i<n;i++) { Console.WriteLine("\n"+str[i]); } } } [/CODE]

Software Development
Member Avatar for ddanbe
0
115
Member Avatar for UltimateKnight

Any function for changing the text color in Microsoft Visual Studio 2008? Thanks.

Software Development c++ visual-studio
Member Avatar for UltimateKnight
0
235
Member Avatar for king03

Hi there friends I have an inventory program that stores all the data entered by a user. I am having trouble trying to output the infos entered. I tried to use for loop but no luck. Mine only outputs the last set of keyed in information. It will not output …

Software Development c++
Member Avatar for Arbus
0
161
Member Avatar for localp

I created a windows form application (using windows vista, MS visual studio 2008). This form only has a button and a textbox. I need this form not to lose focus. for example when the form is on the screen, the user can click something that is behind the form, then …

Software Development visual-studio windows-vista
Member Avatar for ddanbe
0
218

The End.