199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ruchi224

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 ? …

Member Avatar for Ruchi224
0
330
Member Avatar for aFg3

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!

Member Avatar for aFg3
0
134
Member Avatar for aadarsh_khare

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 …

Member Avatar for divyam_shukla
0
241
Member Avatar for Cifale

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 …

Member Avatar for lolafuertes
0
125
Member Avatar for arcaolcer

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 …

Member Avatar for arcaolcer
0
247
Member Avatar for sha2

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.

Member Avatar for ddanbe
0
295
Member Avatar for Infame

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.

Member Avatar for pritaeas
0
70
Member Avatar for aadi_capri

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!

Member Avatar for aadi_capri
0
196
Member Avatar for naraza

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 …

Member Avatar for G_Waddell
0
91
Member Avatar for felix001

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): …

Member Avatar for felix001
0
571
Member Avatar for ankit.pandey3

[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. …

Member Avatar for ~s.o.s~
0
418
Member Avatar for BuhRock

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 …

Member Avatar for ~s.o.s~
0
382
Member Avatar for kudosvisions

[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:)

Member Avatar for pecp
0
199
Member Avatar for manjushreekaran

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???

Member Avatar for leiger
0
107
Member Avatar for archie.herbias

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!

Member Avatar for leiger
0
226
Member Avatar for thenewbiecoder

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

Member Avatar for WaltP
0
258
Member Avatar for gayathriselvam

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 …

Member Avatar for leiger
0
196
Member Avatar for Proda

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 …

Member Avatar for leiger
0
235
Member Avatar for syjytg

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.

Member Avatar for syjytg
0
745
Member Avatar for dimmu11

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 …

Member Avatar for WaltP
0
133
Member Avatar for spittaxjets

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 …

Member Avatar for leiger
0
143
Member Avatar for naazsayed

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 …

Member Avatar for naazsayed
0
252
Member Avatar for mdegges

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] …

Member Avatar for mdegges
0
8K
Member Avatar for ambigouscase

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

Member Avatar for cherrymae.calma
0
185
Member Avatar for majorawsome

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 …

Member Avatar for majorawsome
0
156
Member Avatar for rusty813

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 …

Member Avatar for rusty813
0
1K
Member Avatar for NeilA

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.

Member Avatar for skatamatic
0
54
Member Avatar for Alviery

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; …

Member Avatar for Taywin
0
225
Member Avatar for iamthesgt

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 …

Member Avatar for iamthesgt
0
192
Member Avatar for lbgladson

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 …

Member Avatar for Taywin
0
3K
Member Avatar for Judas3213

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 …

Member Avatar for NormR1
0
165
Member Avatar for boshu

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 …

Member Avatar for d5e5
0
378
Member Avatar for lucas.ploeg

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 …

Member Avatar for JamesCherrill
0
3K
Member Avatar for TrustyTony

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 …

Member Avatar for Enalicho
0
10K
Member Avatar for alltech

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 …

Member Avatar for diafol
0
199
Member Avatar for weakprogrammer

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 …

Member Avatar for Narue
0
199
Member Avatar for mysitemanager

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" …

Member Avatar for dnanetwork
0
184
Member Avatar for ronysios

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") { …

Member Avatar for diafol
0
125
Member Avatar for chathuD

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 …

Member Avatar for Mitja Bonca
0
334
Member Avatar for gmonroyg

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 …

Member Avatar for gmonroyg
0
1K
Member Avatar for Zvjezdan23

Is there any way a user can input numbers into an array like you can in c++??? Or strings for that matter????

Member Avatar for Mitja Bonca
0
1K
Member Avatar for Syrne

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 …

Member Avatar for Taywin
0
2K
Member Avatar for rockerjhr

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 …

Member Avatar for Fbody
0
196
Member Avatar for deceivingrakesh

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 …

Member Avatar for nakor77
0
97
Member Avatar for Deepali_Jain

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.. :(

Member Avatar for Ancient Dragon
0
976
Member Avatar for stephen_UK

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 …

Member Avatar for Taywin
0
186
Member Avatar for somshridhar

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 …

Member Avatar for somshridhar
0
321
Member Avatar for vrs1155

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

Member Avatar for Stefano Mtangoo
0
563
Member Avatar for railrover

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 …

Member Avatar for railrover
0
187
Member Avatar for sabirsk

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) …

Member Avatar for javaAddict
0
211

The End.