199,114 Archived Topics
Remove Filter ![]() | |
How to save the checked items on checkedlistbox in sql database? I searched through the web and found out that for loop or foreach is necessary. Could someone give me a sample code and an explanation. I really need to do this, but can't find a good tutorial for this. | |
Hi all - Was wondering if anyone has come across a script that verifies if an email address exists or not? Beyond verifying that the data entered has an @ symbol, I'd like to make sure that I'm not getting bogus email addresses. Would be any way to do this … | |
My project this week is to perform basic linked list operations. We didn't learn this in class, and the TA that attempted to explain can't speak English very well, so I'm having trouble understanding what I'm doing wrong. I linked the entire file, but I only had to implement the … | |
I know a lot of people have their own comforts and styles when it comes to scripting and coding, but... Some language documentations specifically state a naming convention that is considered best practice for their language, like Java specifying camelCase. However, PHP's online documentation doesn't specify a naming convention (from … | |
Here is the program that I have to make: Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month, and keep a … | |
hi, i face this problem from last three days, i want to disappear the alert box of javascript on time base, for example when page is load and the alert box is appear,i want to remove it after 10seconds if the user not press the ok button, thanks in advance | |
Hello, I am having trouble with my phpBB forum. Editing the theme widths, images etc. I am hoping someone from DaniWeb can actually help me out. My MSN - [email snipped] [Note]: I am sorry for posting in the wrong section, Just cannot find the correct place. Thank you!. | |
[CODE]public static void fun(int x){ System.out.println(x); x--; if(x > 0){ fun(x); } System.out.println("returning " + x); } [/CODE] in the main class: fun(5); [U]output:[/U] 5 4 3 2 1 returning 0 returning 1 returning 2 returning 3 returning 4 --------------------------------------- what i don't get is how the print statement is … | |
Hi, I have been trying to compile open source projects since past few months with no success. I just don't know how to go about the entire thing. Readings over the internet have not helped much. Some come with [COLOR="red"]./Configure[/COLOR] and a [COLOR="red"]Makefile[/COLOR] while others with only a [COLOR="Green"]Makefile[/COLOR]. How … | |
The class dateType in my program was designed to implement the date in a program. However, the function and constructor don’t check whether the date is valid before storing. … rewrite the definition of the function setDate and constructor so that the values for month, day, year are checked before … | |
Hi i made a program for conversion decimal to binary number ... but i need to convert the big dottef number into dotted binary like this For example 10.10.0.13 is <00001010.00001010.00000000.00001101> 8-bit of every integer .. This is making me confuse how to make it ? my conversion code is … | |
I've created a little dropdown menu with javascript. And I want this on each page of my website. I thought about adding it via iframe but it extends downwards and put a scroll bar in the iframe. I don't want to copy/paste the dropdown menu to each page because I'll … | |
Hi . I am coding the following program i will give the string my self and one is already given. given string = {a,b,c,d,3,f,g,h,i,6,j,k,l,m,9,n,o,p,q,2,r,s,t,u,v,w,x,y,z }, you are required to process an input string possibly less than 80 characters long, and an input +ive integer to encrypt the message: for example: … | |
Dear sir, I need a help. am having problem coding in vb.net. I have created a field which automatically in sql server. I want a code in vb.net so that user the text on the get focus, the automber would display the current no on the form. This autonumber is … | |
Hi, I'm currently a student given the task of programming a RPN calculator using C. The following code is some test code that I made to solve the issue described in the thread title. It calls a custom getline() function(while loop) which is also shown and then should take in … | |
I have this website and I got the script(Pdf search engine) which is licensed to all domains ,i installed on [URL snipped] and it is working fine ,but when I installed it on my other domain ,[URL snipped] and i did search ,it is saying that this script is locked … | |
anybody know how to save picture in picture box after upload and set picture witdh+heigh size. i want same picture in picturebox after i relaunch application .. i use this code to upload picture into picturebox....please anybody [code] Dim OpenFileDialog1 As New OpenFileDialog With OpenFileDialog1 .CheckFileExists = True .ShowReadOnly = … | |
Hi, I am working on a piece of OOP which needs to be ran entirely by classes, by that meaning the main function should only create the first class and the rest of the program ran by member functions of various classes. Part of this task requires me to keep … | |
Hello, I have a problem using the MySQLdb library. I'm trying to insert values into my table but MySQL isn't showing them. What's more strange is the primary key is changing when I manually insert values using command prompt. Here's an example: [CODE] '786', '2011-02-16 14:52:38', NULL '787', '2011-02-16 14:52:52', … | |
Guys, can you give me some idea on how to validate the day if the selected year is a leap year in combo box. Thank you in advance. | |
Hello everyone, I am new to this forum and programming in general and had a quick question. In the code below, I was wondering why it was necessary to initialize the variables. I understand the general purpose of initialization(no garbage data) but I don't see what the point is here … | |
Hy, i'm working on a application and i'm using a datagridview for displaying 2 columns:example: name of product and quantity. when i select a product and a quantity , pressing an ADD button this datagridview should displaying them...i've tried in this way private void adaugareGrid() { dataGridView1.Refresh(); index = this.dataGridView1.Rows.Count; … | |
import java.util.Scanner;// Import and use scanner import java.util.Arrays; public class Inventory3 { //begins execution of program public static void main(String[] args) { //create new object CD mycd = new CD(); //create and intialize array of CDs CD[] cdArray = new CD[3]; cdArray[0] = new CD("Rolling Stones",100,25,14.99); cdArray[1] = new CD("Pearl … | |
Hey all, I've posted a few other threads and all the help has been so helpful... I have another assignment and I need some more help. For 9, I'm thinking that I should use a for loop and just do i-- for each time it runs through? After that just … | |
I m work'n on a project to control the cursor with my finger. I've used openCV in VC++ to track my finger but have no idea how to link the mouse with my finger i.e control the mouse motion with finger. can someone please....!! tell me how do you control … | |
I have two programs which gives a same output.....But they uses different logics.... So I want to compare their compilation and run time so I can understand which one is better.... The program gives an output like.....If u enter a number=789 then output=890 means each input digit got increament of … | |
Hi guys, I'll try to keep it as short as possible. Basically, I love the webcomic [URL="http://www.xkcd.com"]xkcd[/URL]. And recently, I've been browsing around for a downloader, and have found one written in Perl that works great. It even grabs the Alt-Text (text that pops up when you hover your mouse … | |
Hi, I wanna ask.. suppose I have an array and a constant called threshold in my data segments [CODE]array db 1,2,3,4,5,6 threshold equ 5 [/CODE] I want to compare my array elements with the constant, and only display/print the number which is less that the threshold, if there are none, … | |
Is there a more efficient way of doing this? I am simply catching and assigning vars to a lot of $POST vars. this seem monotonous to me..lol any advise is greatly appreciated. thanks :) sorry aboout the title..wasn't sure how to title this one. lol [CODE]if(isset($_POST["submit"]) ){ if(isset($_POST["est_num"]) ){$est_num= $_POST["est_num"];} … | |
Hi there, i am desperately trying to compile the MySQL++ library header & cpp files in order to create the actual lib. I do follow the exact instructions given in the ReadMe for MinGW. [ICODE]Prerequisite: MySQL C API DLL Import Library ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Before you can build MySQL++ with MinGW, you … | |
Hi, I've got a basic javax.swing.Timer that I use to repeat itself to darken an image over and over again. This should give a fade out effect for the image however the delay on this is set to 0010 which should be so quick however it takes half a second. … | |
I am trying to use an exported function from a C++ dll with the below signature, from within my C# program. [CODE=C]extern "C" __declspec(dllexport) BOOL S_USB_Memsize(unsigned char *buffer)[/CODE] In my C# code , I am declaring the use of this function with: [CODE=C][DllImport("RSTUSBIF.dll",CallingConvention = CallingConvention.Cdecl)] public static extern int S_USB_Memsize(IntPtr … | |
I have the following xml code; [CODE]<item> <title>CBS News' Logan victim of 'brutal' Egypt attack</title> <description> <![CDATA[<p><a href="http://today.msnbc.msn.com/id/41607923/ns/today-entertainment/"><img align="left" border="0" src="http://msnbcmedia.msn.com/j/MSNBC/Components/Photo/_new/110215-lara-logan-egypt.thumb.jpg" alt="CBS Correspondent Lara Logan is pictured in Cairo's Tahrir Square moments before she was assaulted in this photograph taken on Friday, Feb. 11." style="margin:0 5px 5px 0" /></a>The correspondent … | |
Hello, first I want to say I'm a total noob to C++ and Visual Studio and MFC. Before this I studied Java in school. Anyway I'm required to learn MFC for work and I've been going through a reference book my supervisor has and I've run into an error that … | |
Hi Regex gurus, I was developing a asp.net application. I need to validate my email field. I already searched a lot in the web but didn't found any suitable regex for my situation.I need to fulfill the belows criteria 1)Shouldn't allow a user to enter numeric data only. i.e, it … | |
Hi all I am creating an application for registration form where if user select a city from the drop down list box in the state list box corresponding state should be selected automatically. Please help me ..., its very urgent thanks | |
Can please any one help in understanding the difference between .NET 1.1,2.0,3.0,3.5 and 4.0 ? | |
Hi All. I am developing a website in asp.net 3.5. I am trying to retrieve records from a database and display. Before each record I want to dispaly the title of the record such as: "Department Accounts" where the word accounts is from the database. However, if a record is … | |
Hi, a few time ago I posted a thread about a page in ajax/js/html that didn't work correctly. At first, I thought it was solved, but now I see it is not. I am trying to make a gallery using jCarousel, and it used to be very buggy until it … | |
heres the problem i made a code for sine(X) to calculate the taylor series but i need to change sine(x) for sine(x+1) but i dont know how to do it, heres the code i made [code] from math import sin as senopy def factorial(numero): factorial = 1 while (numero > … | |
I have an application that contains a textbox wherein my database could only accept an int value, which is the contact number. The contact number field is only optional, so an empty field couldn't be accepted because it's still a character and not a number. How could I fix this? … | |
I am working on a little USPS tracking class, very simple calls web api returns xml, parses the xml to an object, passes that object back via an event. for some reason I can't seem to get the XML to parse correctly. I there are an unknown amount of a … | |
I have a database oriented at clients and services provided. In several tables I would like to store documents, e.g. under clients a copy of passport and under companies a copy of the articles of association, mostly pdf's and doc's. Currently I have the documents stored in the respective tables … | |
Hi, I want to learn mfc, but as I read in wiki mfc is not included in visual express editions, IS THE ONLY WAY TO LEARN MFC is buying visual studio software? are there any other solutions? | |
Hi folks, I am working in linix and i have a little bit confusion that whether i can access the PCB of current process or not? if yes then what content of it we can print it using it process id (getpid())..... thanks for answering ..... | |
The assignment I am doing is almost complete but the while loop doesn't exit. package lessons; import java.util.Scanner; public class Chp4417 { public void determineMileage() { Scanner input = new Scanner(System.in); int miles, gallons; //read in the inputs. int counter = 0; // counter int totalGallons = 0; //calculate total … | |
If I want "3x²" to be output in my program, and I have a variable holding the "3" as float coeff and one holding the "2" as int expn, how do I go about displaying the polynomial using cout? Do I need #include<cmath> as well? thanks in advance. Jess | |
Ok, so I am building a website, and am trying to use jquery to get video thumbnails from YouTube and pass them into the corresponding images. I am still fairly new at jQuery and could use some help with the code. Here it is: [CODE] $(function() { $(document).ready(function() { var … | |
I don't have any code for this yet (I have no idea on how to start), but I was planning to make this game (RPG), where one of the special features is a 'language' selection thing. I experimented using a static class to show the different dialogue lines (to keep … | |
hi. In the later versions of mysql5.1 we can create an event which can be scheduled accordingly. What is the siimilar way to create in oracle which can be scheduled. Thanks in advance |
The End.