199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gajoline.marascino

class ThreeException extends Exception { /** * */ private static final long serialVersionUID = 1L; static int count = 0; public static void main(String[] args) { while(true){ try{ if(count++ == 0) throw new ThreeException(); System.out.println("No Exception"); } catch(ThreeException e){ System.err.println("Three Exception"); } finally { System.err.println("In finally clause"); if(count == 2) …

Member Avatar for gajoline.marascino
0
160
Member Avatar for orar

#include<iostream> using namespace std; #include<iostream> using namespace std; void main() { int a ,b,c; cout<< "Enter three integers"<<endl; cin>>a,b,c; if (a<b && a<c) cout<<"a is less"<<endl; if (b<c && b<a) cout<<("b is less"); if (c<a && c<b) cout<<"c is less"<<endl; else cout<<"all numbers are the same"<<endl; }; I GET A …

Member Avatar for np complete
0
282
Member Avatar for tapuwa2002

Am trying to get my script to read in a directory and search for a a file, if the file doesnt exist it should print"that it doesn't exist" then add Notinfolder in an array. Please assist <?php $connection = ftp_connect($server); $login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); if (!$connection || !$login) { …

Member Avatar for tapuwa2002
0
1K
Member Avatar for kshahnazari

Have a question , if we can compare two arrays for equality like this #include <iostream> using namespace std; int main() { int a[5],b[5]; for (int i=0;i<5;i++) { cin>>a[i]; cin>>b[i]; } if (a==b) cout<<"they are equal"; } as you see isnt there a way like this or a function to …

Member Avatar for L7Sqr
0
147
Member Avatar for Bumpehh

So, i wanna try graphics, and i was wondering if sfml or sdl is better? I cant find any good tutorials on sfml and its kinda confusing. i havent used sdl so im asking your opinion. and also, **What did you start off with, and why?**

Member Avatar for Bumpehh
0
125
Member Avatar for Lemony Lime

I've recently started college at Digipen, and have developed carpal tunnel already from all the writing/coding/etc... but fortunately for me, I'm learning to be a programmer, and have already made a few programs to assist with things like opening command prompt/bat files faster/without clicking, etc. Since clicking the mouse is …

Member Avatar for np complete
0
177
Member Avatar for Sasquadge

Hey guys I'm having a minor issue here, I'm having an issue with my sterling.cpp in the add functions sterling add(sterling s1, sterling s2) my question is how do I get it to realize when my shillings is > 20 to goto pounds and when my pence is > 12 …

Member Avatar for Sasquadge
0
1K
Member Avatar for nitin1

**Because it is a compile-time operator that, in order to calculate the size of an object, requires type information that is only available at compile-time. This doesn't hold for C++.** i have read this statement roght now when implementing one library function. why it doesn't hold for C++? secondly, i …

Member Avatar for myk45
0
269
Member Avatar for silverastrid

I have read online that the CalendarExtender doesn't trigger a postback when inside an UpdatePanel. My page is similar to this: <UpdatePanel> <ContentTemplate> <UserControl /> </ContentTemplate> </UpdatePanel> Inside the UserControl is a textbox that has a CalendarExtender hooked to it. It causes a postback even to be triggered, so my …

0
48
Member Avatar for jaimin4829

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Try Dim usr, pswd As String Dim i, n As Integer obcon.con.Open() obcon.cmndcon() obcon.cmnd.CommandText = "select count(*) from users " n = obcon.cmnd.ExecuteScalar MsgBox("n=" & n) For i = 1 To n Step 1 obcon.cmnd.CommandText = "select usr_name …

Member Avatar for Begginnerdev
0
145
Member Avatar for tspga

i want to display data from text file in list view and in tree view root will be file name, but i dont know how to do it, the problem is with displaying text file data in list view, i don't know anything about that. text file data is very …

Member Avatar for tspga
0
319
Member Avatar for ayat abukhadra

Hey, I'm using Addins to loop through access forms and create an equivalent to access controls and add them to the active window if it was a form , the only problem I'm facing is my access form language differ's from the default language for windows form application , is …

Member Avatar for Begginnerdev
0
143
Member Avatar for Binary1010

Write a function, swapSubtrees, that swaps all of the left and right subtrees of a binary tree. Add this function to the class binaryTreeType and create a program to test this function. This was my assignment this week and I am just at a loss I don't even know where …

Member Avatar for Binary1010
0
926
Member Avatar for vaibhav1983

Hi All, I have configured a spring JPA project but when I deploy and start the tomcat I get the exception nin stacktrace as shown below. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/database-config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: …

Member Avatar for vaibhav1983
0
382
Member Avatar for gs1344

Help please -I am still learning Visual Web Developer in VB.Net code Sorry to ask, there is probably an easy fix or I have this completely wrong. I have a DropDownList2 (CustName) and a TextBox16 (for CustID) I want the command to look at the SQL Table and fill the …

Member Avatar for JorgeM
0
171
Member Avatar for subrat_p

I want to do a project on hotel management. But I can not know how to take the print of the bill of a customer. After I entered data in textfield how to take printout those data in a money receipt format.

Member Avatar for subrat_p
0
122
Member Avatar for ragonss

Hello, I am new to this web and new to programming. I am not sure what does mean the following algorithm: set counta = 0 set countb = 0 read number while read was succesful do if number mod 2 equals 0 then set counta = counta + 1 otherwise …

Member Avatar for Taywin
0
119
Member Avatar for Kunal Lakhani

I have created an application using swing. On clicking a particular menu item, a form is loaded,and after saving it a pdf generates. For reporting, i am using iReport. Here is the code snippet MyiReportViewer.java package sms.ui.ireport; import java.awt.BorderLayout; import java.awt.Container; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import …

Member Avatar for Taywin
0
316
Member Avatar for ajay.motah

hi, im having an issue when using the .load() function of jquery. im using my index .php file to dynamically load contents in a div using the load function. but when i refresh the browser i taken to index.php. can u please suggest me? thank you

Member Avatar for ajay.motah
0
97
Member Avatar for dboxall1234

hi i've recently been learning about python on cssciencecircles.com. After a while i decided to download it so i can save some of my programmes. When i make a programme in the IDLE shell and save it, even the most simple instructions, eg. print('hello world') , when i try to …

Member Avatar for dboxall1234
0
750
Member Avatar for scales

i added this code to my index.php (joomla ja-purity file 1.5) <?php if($this->countModules('user6')) : ?> <table class="nopad user6user7"> <tr valign="top"> <?php if($this->countModules('user6')) : ?> <td> <jdoc:include type="modules" name="user6" style="xhtml" /> </td> <?php endif; ?> <?php if ($this->countModules('user6') and $this->countModules('user7')) : ?> <td class="greyline">&#160;</td> <?php endif; ?> <?php if ($this->countModules('user7')) : …

Member Avatar for scales
0
466
Member Avatar for edgar5

I am converting an app I wrote when learning VB (I primarily use C++). In VB it was trivial to minimize a window to the Taskbar: Private Sub GoButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoButton.Click Me.WindowState = FormWindowState.Minimized Setting the window state in the "Go" button's _Click …

Member Avatar for edgar5
0
209
Member Avatar for pucivogel

I have created a cube in visual studio, when i want to deploy it i get the following error: Error : The project could not be deployed to the 'USER-PC\SQLEXPRESSR2' server because of the following connectivity problems : A connection cannot be made to redirector. Ensure that 'SQL Browser' service …

Member Avatar for pucivogel
0
179
Member Avatar for //Gonz

Hello Daniwebbers I have a 2 dimentional control array which gets added to it programatically. There's a lot to add to it but i have already stumbled at the first hurdle. I keep getting the standard "Object reference not set to an instance of an object." error when the first …

Member Avatar for nmaillet
0
218
Member Avatar for kshahnazari

Im training for olaympiad and need a little of your help to know useful functions that You use . one of an important things I need , Is that to take a number base 10 to base 2 for example : 66 (base 10) , 1000010 (base 2) if available …

Member Avatar for deceptikon
0
111
Member Avatar for Trebron

Hi can anyone see what the problem is below I am new to c# so not sure why this code does not excute? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace Eight_Stage { public partial class Form1 : Form …

Member Avatar for nmaillet
0
546
Member Avatar for niladri.prima

Hi All, I am new comer in this site. Through Google serach I have found this community. Hope this site is really helpful for the beginers who wants to learn everything However I have written a query and got the result. Now I want to insert the data (what I …

Member Avatar for BitBlt
0
154
Member Avatar for jell28

Hi, I am an I.T student and currently working with my system. Please teach me how can i save the image link im my database using vb.net, i am done with the browsing, uploading and removing of image except saving.. please help i would be really ideas only on how …

Member Avatar for jell28
0
403
Member Avatar for dstoltz

Gulp, I hate to even ask because I think I know the answer... Has anyone ever, or does anyone know if ASP can be used to query a MUMPS database? Any information appreciated.

Member Avatar for dstoltz
0
112
Member Avatar for akosivivas

Supposed i will input a string like "java"but the display will change instead of "java" the display will change every character and become **** please help.. :)

Member Avatar for akosivivas
0
85
Member Avatar for stevensonnz

Basically the program is a database of student enrollments. I cannot get the the search delete/undelete and update functions to work and need help asap. Need to implement a bool field to the delete / undelete Please help #include <cstdlib> #include <iostream> #include <iomanip> #include <conio.h> #include <fstream> using namespace …

Member Avatar for np complete
0
11K
Member Avatar for kny_jay88
Member Avatar for kny_jay88
0
233
Member Avatar for kothaisaravan

Hi, I am writing code for connecting to an access database in my windows 7 machine. Am using visual studio 2010 with access 2007. While debugging the code am getting the exception **"The 'Microsoft.Jet.OLEDB.4,0' provider is not registered on the local machine"**. Below is my code, Try connection = New …

Member Avatar for deceptikon
0
187
Member Avatar for arabgogs

Hi, I am trying to validate an XML file against a schema, which i can achieve without issue normally, however, in this particular schema, there is an imported namespace, that appears to be preventing the validation from happening, as the error being returned is pointing to node of the elements …

Member Avatar for Mike Askew
0
262
Member Avatar for anglwthnati2de

Hi I have this code that performs error checking on initial values. Everythinbg works good but how would I go about allowing for user input? I am thinkging JOptionPane but where would I add that? public class Date { private final int month; private final int day; private final int …

Member Avatar for anglwthnati2de
0
345
Member Avatar for kishoresai438

Hi Team, This is my first thread from Daniweb.. I observed Daniweb is great support for PHP Developers... I am planning to integrate this Tiny Editor in my website for mathematical calculations. As per my observation Our math expression images saved in Codecogs server. In future is there any trail …

Member Avatar for pritaeas
0
165
Member Avatar for tirso

hi to all I have list of names in list view with corresponding unique employee id. The user could select more rows. In each employee id I will find it in database in retrieve all the details information and print it using crystal report. What I want is in each …

Member Avatar for maboho25
0
758
Member Avatar for Violet_82

Hi there, quick question about onchange method usage. I have a couple of checkboxes and when I check/uncheck them I want a function to be called, therefore I have decided to use the onchange method. But I am not sure I get how this works. Take the following example: HTML …

Member Avatar for Violet_82
0
3K
Member Avatar for riahc3

Hey How do I run my web service as root? Yes, I know the security implecations of this. Thanks

Member Avatar for Irina54
0
163
Member Avatar for mark.scutt.7

Hiya, Andre kindly showed me how to put my points into a listbox and sort in numerical order decending. I need a way, (Perhaps another list box) of adding a string, (Players Name) next to the points after they are sorted so we can clearly see who's first etc. Here's …

Member Avatar for AndreRet
0
177
Member Avatar for angel06

Hello everybody! I'm currently creating my first employee monitoring system here in Visual Basic 6. I have a problem with regards to my program, it has an error of no value given for one or more parameters. The code that I will show here is just a part of my …

Member Avatar for AndreRet
0
329
Member Avatar for semicolon

Hello i have a datatable |row|col2|col3|col4|col5| | 1 | val| val| val| val| | 2 | val| val| val| val| | 3 | val| val| val| val| | 4 | val| val| val| val| | 5 | val| val| val| val| | 6 | val| val| val| val| | 7 …

Member Avatar for arunkumars
0
333
Member Avatar for london-G

Hi, I don't know what happen all a suden but all my textfiels variable are now underline in red. I have : st.setString(1, t1.getText()); st.setString(2, t2.getText()); st.setString(3, t3.getText()); Where t1,t2 and t3 are my textfields variable name but is says cannot find symbol. Everything was working fine, I don't understand …

Member Avatar for JamesCherrill
0
105
Member Avatar for xixi.li.7

I need a help with this Java project. And please note that Iam not try to cheating to complete this project,my teacher is give the permission to use any source to help do this project and I'm not plagiarism I will give the credit to the source code in this …

Member Avatar for JamesCherrill
0
95
Member Avatar for Yusuke00

Determinate,if it's possible,p numbers of n binary digits,so any 2 of this numbers to match in exactly m positions.There must no be positions same digit to appear in all the p numbers. Restrictions 1 <= p <= 25 1 <= n <= 25 1 <= m <= n a number …

Member Avatar for Bob
0
232
Member Avatar for haqua

**Hello Programmers,** Your newbie programmer wants to ask a help regarding his program (That’s Me :D). My program is in Visual Basic 2010, I want to ask how I can search a words or strings. I use TextBox, ListBox and Button for my program. For detailed explanation about what my …

Member Avatar for Gé48
0
2K
Member Avatar for precision_lawns

A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. Write a program that asks for the month, the year, and the total amount collected at the cash register (that is, product sales plus sales tax). The …

Member Avatar for Yusuke00
0
948
Member Avatar for poojavb

Is there a way to set Max date in Java for the calendar control or restrict the user from selecting the future dates?

Member Avatar for JamesCherrill
0
205
Member Avatar for Tinnin

Hi all. This regards chapter 6 of "Accelerated C++". The program is intended to scan a document and find all the urls in it. I am testing it with just one string input "text http://www.page.com more text". The program is compiling but doesn't run beyond me entering the input. I …

Member Avatar for Tinnin
0
289
Member Avatar for ImagingMachine

Hello All, I am writing an image processing application in C# that needs to be speed optimized for faster performance. I have been told that using Unsafe Code together with Pointers can speed my algorithm up significantly. Unfortunately, I have no experience with Pointers at all. How can I make …

Member Avatar for Momerath
0
539

The End.