199,114 Archived Topics
Remove Filter ![]() | |
Hello All, First thanks for taking time to read my thread. My problem is I have created a Gui Class that contains multiple JPanels inside another JPanel or ContentPane. I have just now created another Gui2 Class in the same java project and I would like this new Gui2 Class … | |
Hello. I am a beginner to programming. I would like to use a form to populate my sql database. Can somebody tell me where to find information on doing this? I have my database and I'm able to display the information from from the database but I don't know how … | |
Hello im quite new to java and have been writing this game for my computer science class. ive been getting this illegal start of expression error on line 215 which is my 2nd public class dice extends applet and can not figure out how to fix it. ive tried moving … | |
Note : this is not a question but a snippet(i dont prefer to post to snippet section as it is not much useful) Form1.Designer.cs : [CODE]namespace GrabDeviceInfo { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up … | |
im going to risk getting a beating, because this is something i should (used to?) know... anyhoo, given a function, how do you tell the size of the array that is passed? obviously trying to find the sizeof the pointer doesn't work (it returns the size of the pointer, duh) … | |
hello, i have a java game but i have a problem with healing i get the error client.java:2791: orphaned case case 315: ^ 1 error files compiled successfully! this is the code: [ICODE]public boolean healing() { boolean eat = false; int heal = 0; case 315: Message("You eat the shrimps."); … | |
How can I write a loop using letters instead of numbers so it looks like this: 2 sets used 'a-z' and 'A-Z' aaaaa aaaaA aaaAa aaAaa and so on: aaaAA then on to b: bbbbb bbbbA I can do it with numbers, something like this: [code] for i in range(10): … | |
Hi, I have PCRE library for window 32 bit . I want it for window64 bit From where can i get this? I have source code also and i built it on 64 bit machine but created library is not supporting. | |
string path =c:/document/abc.doc this is my input string i want the output only abc not .doc can any one tell me the code for this plz | |
Hi everyone, I'm embarrased to ask as I am so new at this but here goes anyway: I have been trying to create a simple secure login screen that when successfully logged into, will allow the user access to other services. I found, modified a good tutorial and all works … | |
Hi all python programmers..I'm new to python and i'm having a doubt.. I'm running linux in my machine and i use "ipython" to run my python programs. I also write them in independent .py files.. But I'm not able to write loop-based programs in .py files, because after i save … | |
Hi, I am trying to insert into Access Database using following code [CODE]OleDbConnection empConnection = connection; string insertStatement = "INSERT INTO d " + "([Employee],[Deduction Type],[Number of Hours],[value],[Month],[Year],[Comment]) " + "VALUES (@Employee,@DeductionType,@NumberofHours,@value,@Month,@Year,@Comment)"; command = new OleDbCommand(insertStatement, empConnection); command.Parameters.Add("Employee", OleDbType.Numeric).Value = Convert.ToInt16(txtID.Text); command.Parameters.Add("DeductionType", OleDbType.Numeric).Value = Convert.ToInt16(cmbDedNum.Text); if (txtNoOfHours.Text == string.Empty) { … | |
Hey fellas, I have searched for this answer for about an hour on and off and cannot find anything so sorry to have to resort to posting. I have a list [a, b, c, d] And I want to write it to a simple output file, but I want it … | |
I am trying to develop a java program containing two threads that reads two files simultaneously. In a program, first thread reads data from file “Personal_Record.txt” and second thread reads the data from file “Academic_Record.txt”. When one thread reads a line from one file then it should allow another thread … | |
Hi every One I am using FormView which is bound to EntityDataSource (VS 2008). It is working Correctly when I Add data manually But I want to add Dropdownlist which is bounded to another table Its Selected Value should be inserted in Database (Orginal Table of EntityDatasource). How I accomblish … | |
Ok so i want my program to read a text file to a certain point. Lets say to the line line that says fn: i then want it to read the one line only and only the the text after fn: and i want it to shoew that text in … | |
Okay, so I'm thinking of taking the plunge into wxPython. But it's especially important to me to know if wxPython can do the following things easily and well: 1) Display a vertical array of radio buttons (or perhaps any buttons will do). They must have no labels, and I need … | |
Hi All, Currently i'm using `sprintf` to copy from pointer variable to a character array. `sprintf(length,"%.*s",(int)len,part1);` where part1 is a pointer to a character array.. length is a characteter array too. Is there a way i can do the above thingy to copy the part1 to a integer variable? Thanks … | |
Hi everyone, I'm trying to link a class with a library. The script is: /bin/sh ${BOREALIS}/common/bin/libtool --mode=link --tag=CXX ${BOREALIS}/nmstl/bin/wtf g++ -g -Wall -o $1$app $1.o -L/home/vincenzo/software/borealis-projects/LoadDistributionTool -lwld I get the error: Linker errors follow. This mode is untested; type "wtf 0" for the original output. cannot find -lwld in /usr/bin/ld … | |
Hello, I'm a bit new to VB (actually use VBA), but would like to get some knowlegde about class module. One thing I was thinking of would be to create a class module which take cares of the connection to the MYSQL database. Please let me know if you have … | |
hi i have to create two programs for the same project; live and test respectively. everything for these two will be the same except for the product names and shortcut names on user's programs menu. And also i need to set setup project's removepreviousversions property to true. What i did … | |
hi everyone. i just want to know about 3 tier architecture. can we achieve 3 tier architecture without frameworks. if yes how? give me a little example of it.. thanks in advance. | |
Hello. I'm trying to get working some AJAX make statistics of links clicked. Using php and mysql as back-end. My choice is synchronous AJAX request to server using onbeforeunload event. I'm using synchronous request to be sure that browser sent request to the server before page is unloaded. With asynchronous … | |
After adding information, when i choose the option "Display all" it crashes right before it's going to display GPA... can anyone help me...also can anyone help me read from the file into the array... plzz...this is really frustrating...any help greatly appreciated. [code=cplusplus]# include <stdio.h> # include <string.h> # include <iostream> … | |
Hi frnds... i have some problem regarding uploading a s/w when hosting a website... here i am doing project like stock market news...in this i had a software for updating share prices per every seconds.... where and how can i install software on my hosting panel? | |
I have difficulties to implement variable length argument to my C function. | |
If, in Firefox, you go to [URL="http://www.incrowd.org.uk"]http://www.incrowd.org.uk[/URL] you'll see a signin page. The signin form is a table and should be spaced 35%/65%. However it is just taking up the space needed for the left label. I've got Firebug and the problem is the table is not taking up 100% … | |
hi guys, i want to be able to pass command line parameters from setup.exe to setup.msi. is that possible? | |
I am confused about static class and nested class. Is there any difference to code and use of static & nested class?. | |
if we have one text box user id and one more text box password and submit button ...after enter the data in text box then click the submit button what are the internal process are happening | |
[CODE]<? include("db.php"); mysql_connect($host,$username,$password); @mysql_select_db($database) or die("Unable to connect to database"); $query="SELECT * FROM tcg"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "<center>Viewing Records</center>"; $i=0; while ($i < $num) { $client = mysql_result($result,$i,'ClientsName'); [B]$prgno = mysql_result($result,$i,'PrgNo'); this is line31[/B] $prgname = mysql_result($reslt,$i,'PrgName'); $trainername = mysql_result($result,$i,'TrainerName'); $dates = mysql_result($result,$i,'Dates'); $days = mysql_result($result,$i,'Days'); $proffee = mysql_result($result,$i,'ProfFee'); … | |
Can someone please explain what \n\n means in a line of text in C++? For example ("\n\nWelcome to Main Menu\n\n"); Thanks | |
What is the difference between an instance variable and field in java? | |
hi frnds, i want to get the safari history in VB.Net..Safari maintains its history in history.plist file.....I want to know that how to convert this file to XML format??Plz help me out from where to start,,,cz i have no idea.. | |
Good Day All I have a textbox in a userControl and it has a Property "Autopostback" set to true, and as i know , this is encapsulated from the hosting page. now i need to set this property to true so that the Gridview in the Hosting page can recognize … | |
Hi, that's my first bigger work in C++. Programm works good but I don't know where I have to alocate memory. And for which structures or something else I have to do alocation? Can anybody help me? Thx. There is my code: [CODE=c++] #include <stdlib.h> #include <ctype.h> #include <stdio.h> #include … | |
Hi I'm new to PHP. I installes wamp2. and wrote a sample code [code]<HTML><BODY> <? echo date("M-d-Y"); ?> </BODY></HTML> [/code] saved it in www folder. but now wen i click the saved file (hello.php) the file opens but nothing is getting display pls help me Divya | |
Hi, I am hoping that someone can help. I am trying to validate and compaire date entries made by a user. The dates represent contract start and end dates. This has a one to many relation ship with a client table. A client can have one or more contracts. However … | |
print ( "fred" gt "harvey" ); what does this print. How can we compare strings. If it was single characters, we can base our comparisons using ASCII. | |
hi, im posting this because i cant find my problem, the thing is that my script works fine on Opera, Firefox, Chrome and Safari but it doesnt work on IE, i have the newest version of IE and have been trying everything please help the page is here (code that … | |
Hello, I am retrieving two values from a database. I want to get the result after addition of the two values. the code I used is [CODE]echo "$client <br> $prgno <br> $prgname <br> $trainername <br> $dates <br> $days <br> $proffee <br> $trainerfee <br> $reimbexp<br> $handoutchg <br> $invoiceno <br> $totalinvamt <br> … | |
I am doing a program on payroll before any deductions are made but i seem to be encountering some problems. Here is the program [code=cplusplus] # include <stdio.h> # include <string.h> # include <stdlib.h> # include <fstream> # include <iostream> # include <cstring> using namespace std; typedef struct { char … | |
if i click button in pqge 1 page 2 should refresh if i click page 2 button page 3 shoould refresh if i click page 3 button page 1 shoud refresh ... can any one tell me the javascript code for this plz | |
Hello Daniweb, I am a newbie student. I have a problem where I designed my web page project and eventually it must contain a background song that will continuously play even clicking the links/pages. Is there any possibities of doing this? Thanks for the help. I will greatly appreciate your … | |
Hello I made the following program for someone on this site that had requested the game. I didn't have a problem making it. During some tests I conducted I ran into a problem, at least what had seemed like a problem. Player 1 will win on average 90-96% of the … | |
Hey, I am trying to find a way to limit how many characters a user can enter into a JTextField. Does anyone know how to do this? Thanks! | |
Dear all, I want to inform that the query return zero result? does anyone know how to revised my code so in case my query return zero result and it will echo "search result =0" here is my the code, I have try it but still it doesn't inform that … | |
I would like to query regulation which it's date reminder is >= today and it's date ended is >=today. So I came with this query: [code] $query="select * from t_regulation where dt_reminder >= '$today' and dt_ended ='$today'" [/code] It works on postgerSQL but not on mysql :( I dont why … | |
Hello, I am having problems with indexOf() and contains() they work if I put letters in the code to test, but I want it to test what the user enters. And that is not working. The user enters a letter into a JTextField, and I am storing that word to … | |
Hello guys, I'm trying to create a method where it takes a InputStream as a parameter, reads the stream and returns the number of characters it contains as an int. I'm having difficulties with this. I've searched the internet for examples, but i can't find one that helps me with … |
The End.