199,114 Archived Topics
Remove Filter ![]() | |
Hello..I am developing a windows application in vb.net and getting an error of system.nullreference exception. I am trying to insert data in the database, insertion occurs in the first go. But, when i stop the porgram and re-run, i get the exception. Can anybody please help me with this ? … | |
I want to create a simple file....with the command Example: [CODE]touch file.txt[/CODE] ok its created *BUT* ****I want to edit this file in shell and save it, writing EOF to finish. Any suggestions? How i do that? Thanks! | |
I'm getting the following error after running my code: OleDbException was unhandled "No of query values and destination fields are not the same" Because of this query I'm unable to save data. Please help, what could be the reason? ======================================= Here is a part of the code which could be … | |
Hi all, I am working on a Chart showing the activity per customer for the last 12 months + the current month (I work in a technical support team). Basically, my SQL query is providing me with the right result most of the time. It looks like this: Sep 10 … | |
I am developing a project with wcf . I need to develop a wcf service that will take data from database. I should write it in WCF custom data provider. I can do it with wcf linq and webService with EF. But I can not understand the example of Custom … | |
hello..im a new user of the c# programming language,.im asking for your help in finding a code for my project..can you please give me the code on how to have my own log in form???since c# doesnt have a log in form. | |
Hello guys! [CODE]"SELECT * FROM $tableName WHERE cata != 'abc' AND ORDER BY times desc LIMIT $start, $limit";[/CODE] Is there any reason as to why this block is not working? What is the rule for formating such queries? Thanks. | |
hello every1, i am new to vb.net and was wondering how can i trigger a label_click event on the press of a key. thanx in advance! | |
i want to search name form table but problem is tha when some one write query it also give value by this any one can delete my data to pls tell me a way to remove sql injetcion [CODE]protected void Button2_Click1(object sender, EventArgs e) { //SqlCommand cmd = new SqlCommand("DELETE … | |
Im using pexpect to output some terminal commands, but im facing the following issue. The code is [CODE]porttype = "Gi" print expectSw.sendline ("sh int counters errors | i %.*/1 ") % porttype expectSw.expect ('.*#') print expectSw.after[/CODE] But when I run the code i get ... [CODE]Traceback (most recent call last): … | |
[CODE]import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.TimerTask; /** * @author Adrian BER (beradrian@yahoo.com) */ public class PopupAnkit extends JPanel implements ActionListener{ private JToggleButton invokePopupButton; private JFrame popupWindow; Statement stmt=null; ResultSet rs=null; // int tempCount=0; public static int count=0; /** * Constructor. … | |
So I created my ArraySet class from an interface. I'm trying to test my union method in my SetApp class, and I truly don't know where to begin. Can someone push me into the right direction? Btw, I know my SetApp class is messy atm, but I was just testing … | |
[B]Hi Guys.[/B] I am new to this forum so I thaught i'd post a useful code snippet. it changes text to clickable html links. Hope it comes in handy. Pete:) | |
i want to write a java code that prints the value for xml tags from database in java??? which method is suitable for this??? currently i can able to print <company comp:loc=" "/> here i need to get value for loc=" "... how can i achieve this??? | |
Can you suggest a program that i can submit? I need your help for suggestions.. any programs that involves GUI.. simple programs could be.. Thank you! | |
I'm just starting to learn c++ and need to know how would you read the first line from a file and write to a new file? thanks | |
I hav given the name of file as class name and saved it as .java by creating a folder in c drive.when i try to compile it shows the following exception.pls help me to resolve from this problem C:\Program Files\Java\jdk1.7.0\bin>javac HelloWorldApp.java javac: file not found: HelloWorldApp.java Usage: javac <options> <source … | |
Hello everygone!! I signed up here hoping I will receive some help. I realize that every 2nd person writes: I am new...bla bla bla. I am new:)...I was sitting last 2 days trying to solve the issue and I think I am close but I don't see something. This is … | |
Write an expression whose value is the result of converting the str value associated with s to an int value. I tried typing int('s') in python2.7, and I got an error. | |
I'm stuck on this function that is related to the game of life. It is supposed to randomly populate the game board with '*'s based on the user input (what percentage they want to be '*'). this is what I have so far, but it crashes when I try to … | |
I am currently working on writing a simple vending machine that dispenses just one drink, I am just a beginner at this so I would appreciate some help from this community. [CODE]package assignment1; public class VendingMachine extends java.lang.Object{ // fields java.lang.String givenDrinkName; private int givenDrinkPrice; private static final int INITIAL_BALANCE … | |
i m using Microsoft VS 2008 and in that VB.NET as the language the problem is i m not able to store connection string every time machine changes have to keep on changing the connection string i have searched browsed, surfed done everything but still not able to find the … | |
Hi everyone, I'm trying to store user input into an array. The output looks like this: Enter the size of the arrays: 5 Enter the cells of array1: 1 2 3 4 5 Enter the cells of array2: 5 4 3 2 1 This is my code so far: [CODE] … | |
Given the number of commodities bought, create a program that computes the total amount purchased in a fast food center. Assume that the following unit price of each commodity Fried Chicken= 29.75 Cheese Burger= 25.00 French Fries= 18.50 Soft Drinks=14.25 | |
![]() | Alright. So with c# we have SINGULAR class inheritance, correct? But we can have infinite Interfaces. I don't get this because when I inheret like so (I'm doing this right, Right?) [CODE] class Player : Zombie_Game.Variables { } [/CODE] and in my Variables class I have this... [CODE] class Variables … ![]() |
I found an online tutorial at this website how to create an online calendar [url]http://davidwalsh.name/php-calendar[/url] [url]http://davidwalsh.name/php-calendar-controls[/url] In comments to the website several people showed how to highlight the current day it worked for them how some but does not for me I tried the following codings Code 1: [CODE=php] //Change … | |
Hello All, My son (14) just finished a course on C# and I'm looking for some practice assignments for him. Can anyone tell me a good place where I can find such? Thanks in advance. | |
this is my problem! I have to create a console application that asks for numbers of quarters, dimes, nickesl,and pennies. I have to use the Scanner class that read in the integer values for each coin. Calculate total values in cents. Calculate number of dollars and remaining cents. [CODE]import java.util.Scanner; … | |
This is homework. Here is the problem: Produce a list of employee last name, first name and department name. Use appropriate, user friendly column aliases. This is from the tables [ICODE]DEMO.EMPLOYEE[/ICODE] and [ICODE]DEMO.DEPARTMENT[/ICODE]. The relevant column names are [ICODE]LAST_NAME, FIRST_NAME, DEPARTMENT_ID[/ICODE] (from [ICODE]DEMO.EMPLOYEE[/ICODE]) and [ICODE]DEPARTMENT_ID, NAME[/ICODE] from [ICODE]DEMO.DEPARTMENT[/ICODE]. As you … | |
I have an assignment Enhance the CashRegister class so that it keeps track of the total number of items in a sale. Count all recorded purchases and supply a method int getItemCount() that returns the number of items of the current purchase. Remember to reset the count ast the end … | |
I have three classes. I have a main app, a Draggable class, and a creator class. I want it so that when i click on one rectangle it produces the same exact dimensions as the shape i pressed. However, the problem is that when I use mousePressed, it seems that … | |
Dear all, I need to copy a set of files every once in a while from my build env to a shared drive. The set of files are same, names may vary but they come with same extension. So far I am doing it manually. I wish it could be … | |
Hi, I have a program that generates an outputstream with XML-data. With a socket connection, I have to read multiple XML-files from the inputstream. To read only one XML-file from the inputstream is not a problem, the fact that there are more than one and I have to split up … | |
Inspired by password entry discussions, I did this simple entry. You must of course find safe way to store the passwords, for example hashlib ([url]http://stackoverflow.com/questions/4820043/basics-of-python-encryption-w-hashlib-sha1[/url]) or [URL="https://www.dlitz.net/software/pycrypto/"]PyCrypto[/URL] and replace the simplistic example match for real life usage. The print at line 23 is just to check the attempts and to … ![]() | |
Have 2 issues. Firstly i have a text link which gives me a URL i want but this will not work correctly because it gives me my webpage URL first followed by the URL i want, ie [url]www.wheels4rent.net/www.thrifty.co.uk/cgi-bin....etc[/url]. I need the [url]www.wheels4rent.net[/url] removed. Secondly the 'book now' link i want … ![]() | |
Hey everyone I'm new here and I need help with a homework assignment that allows the user to make change. The assignment is as follows: You will write a program that will calculate the minimal amount of coins needed to make change for some amount of cents. The program will … | |
Hi, I'm trying to populate an asp:menu from a database on my master page and keep getting the error: Object reference not set to an instance of an object Here's my code on the master page: [CODE] <asp:Label runat="server" ID="errLabel" /> <asp:Menu ID="Categories" runat="server" CssClass="menu" EnableViewState="false" Orientation="Vertical" DataSourceID="categoryListSrc"></asp:Menu> <asp:XmlDataSource ID="categoryListSrc" … | |
im having the same issue with the above "You have an error in your SQL syntax; check the manual that corresponds to your MySQL...line 1"..help! myform2.php [CODE]<? ob_start(); ?> session_start(); <?php $labels = array ( "comment" => "comment", "condition" => "condition", "cartype" => "cartype"); ?> <?php if($_POST['Submit'] == "Submit") { … ![]() | |
I need to get the difference of two date time picker values and convert it to int or float, And the next thing is from the date time picker i cant select the time from front end. Only i cant select is the time only. these the some code that … | |
Hi guys, i'm trying to test my asp.net app. it works fine when in visual studio 2010 ide, connecting to Mysql database and running. but, when testing in IIS the published app get the message exception "no database selected". it's everything running local, windows xp, mysql 5.x, IIS 5.1 my … | |
Is there any way a user can input numbers into an array like you can in c++??? Or strings for that matter???? | |
Hi guys (again), I have a new issue. I am trying to bubble sort my array of objects to display in alphabetical order. Here's the code: [B] Subscriber class:[/B] [CODE]package assignmentone; import java.util.Scanner; import java.util.StringTokenizer; import java.util.Random; /** * * @author Bill */ public class Subscriber { //Field declarations private … | |
if you declared/defined a virtual function for a class and redefined it in a derived class so that when you call the derived class it calls its own version of the function and not the base class function , how do you call the base class function on the definition … | |
I have 6 textboxes in a page and i wish to loop from "textbo1" to "textbox6" and i used this code : for i=1 to i=6 dim t as new textbox t=me.findcontrol("textbox" & i) msgbox (t.text) next i get this error on the "MSGBOX (T.TEXT)" line saying "Object reference not … | |
I am compiling a VC++ source file in VS2008 licenced edition. Using the following header files: #include <regex> But I am getting the below error while compiling. fatal error C1083: Cannot open include file: 'regex': No such file or directory Please advise what Iam missing here.. :( | |
![]() | Hi, I have url links in an Access Database which open different info screens depending on the record. I want to include some code in the html which isn't blocked by browsers, but restricts the html code to an initial window of approx 800x600, but can be resized, but importantly … |
Dear Sir, I am tring to convert integer to string and using string for further find and replace operations. While doing so I am using for loop to for integers and then wants to store all these integers in strings. But I did not succeed. But If I use only … | |
friends i am learning visual c++ 6.0.i need to know how to connect the database(oracle).can you tell me how to do??.give me some example.... mfc application connect to oracle database,any example ??? thanking you | |
Hi all, I'm having problems getting my mobile device (Windows Mobile 6.1) to see my VB.NET application as genuine. Here are the steps I am taking - can anybody see why there is a problem? I use makecert.exe to create a new root certificate.... makecert -n "CN=McLernonsMARS" -r -sv McLernonsMARS.pvk … | |
HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 java.util.ArrayList.RangeCheck(Unknown Source) java.util.ArrayList.get(Unknown Source) com.mhub.ocs.dataaccess.MhubuserDAO.findByProperty(MhubuserDAO.java:106) com.mhub.ocs.dataaccess.MhubuserDAO.findByUsername(MhubuserDAO.java:125) com.mhub.ocs.aas.DelegateLoginAuthenticator.authenticate(DelegateLoginAuthenticator.java:25) … |
The End.