199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for arvindikchari

Hello I want that the user should specify the full url to 2 images in 2 text boxes, and these images should be set as the hover image and background image respectively, for a div. How will this be coded Regards Arvind

Member Avatar for Luckychap
0
203
Member Avatar for JP_L

hi, I'm trying to run my 1st servlet I'm using eclipse and tomcat but I get an error that I cannot solve. can anyone tell me what I'm missing? here is my index.jsp [code=java] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> …

Member Avatar for ejosiah
0
102
Member Avatar for arka_15
Member Avatar for Alibeg
0
68
Member Avatar for TriniBabe

please help i think d error is in inputtin d values into d linked list! D files are attached

Member Avatar for Nick Evan
0
75
Member Avatar for computercobra

I am trying to make a simulation of the enigma machine and was wondering if this is the right way to start the problem? Here's the main.cpp file: [CODE] #include <iostream> #include <ctime> #include <cmath> #include "enigma.h" using namespace std; int main () { enigma machine_1; return 0; } [/CODE] …

Member Avatar for computercobra
0
2K
Member Avatar for amarjeetsingh
Member Avatar for javaAddict
0
124
Member Avatar for cproud21

I understand how to search and sort an array of int type. However I am confused how to sort/ search an array of object's in which I sort/search by a string in the object. (alphabetically) Here is the code I have so far, I want to search and sort the …

Member Avatar for vmanes
0
2K
Member Avatar for loren41

[B]I have a text file that contains multiple records. Within the records, I am able to locate the line containing the desired text and read it into a string. Inside the line, I know the number of the starting character for the words I need. The length of the substring …

Member Avatar for sneekula
0
259
Member Avatar for seaders

Ok, I've a DLL that's hooked to pick up all Mouse and Keyboard events in it. What I then want to do is through all those to another window. I understand how to do simulate these events, with PostMessage and SendMessage, to the HWND, but what I'd like to do …

Member Avatar for nucleon
0
712
Member Avatar for TriniBabe

U are given the data(startnode,end node,cost) for each edge on a separate line but u dont no how much nodes u hav b4 hand how u declare it? how do u link the nodes in an adjacency list using linked list and not d <vector>?

Member Avatar for DemonGal711
0
110
Member Avatar for ashkash

I have a number of files in a folder that are number as 1, 2, 3, 4, 5, 6, etc. I also have a text file in the same folder that identifies each of these numbered files and gives their path location. The text file looks like this: 1 C:\system\Apps\file1.exe …

Member Avatar for mittelgeek
0
420
Member Avatar for cproud21

I have the following program that declares 100 Book objects... The way that I have it now, each item in the array is set to a default value. Is there a way to add only the items that are input by the user to the array? and not start off …

Member Avatar for Danny_501
0
123
Member Avatar for madhatter84gn

I am running into an issue that involves sharing an XSD2Code generated class. I am working with one huge xml schema that I generated into a class in a common class library. The problem I am facing is multiple applications will be referencing this common class but I want to …

Member Avatar for madhatter84gn
0
95
Member Avatar for rEhSi_123

Hello fellow members: I want to nest my forum replies....meaning reply to a reply....so want to create a 2 dimensional array with one number refering to the orig post and the other for each reply on that post Could somebody please help me out. Thanks in advance my forum_replies table …

Member Avatar for rEhSi_123
0
379
Member Avatar for yorockk

hiii all, iam doing a project in asp.net and the back end is sql server. so when i tried the connection code it gives me an server error "Cannot open database "C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Data/projdb.mdf" requested by the login. The login failed. Login failed for user 'YOGESH\Owner'. "

Member Avatar for greeny_1984
0
176
Member Avatar for Danny_501

Can someone tell me why my print array method won't print strings. It works with an int array, but only prints a few strings. [CODE]template < typename T > void printArray(T * const array, int size) { for (int i=0; i < size; ++i) cout << array[i] << ' '; …

Member Avatar for Danny_501
0
175
Member Avatar for gabec94

Hi, does anyone know what is wrong here? The program is supposed to find the largest number entered, and the 2nd largest number entered. The process for assigning the 2nd largest is not working, I do not think I am evaluating it correctly, and suggestions? [code=java] package random; import java.util.Scanner; …

Member Avatar for masijade
0
236
Member Avatar for shers

Hi, I'm working on a multi user VB.Net windows application with back end as SQL Server 2008 Express. The SQL Server is installed on the intranet network drive. This is the connection string I will be using. Is this correct? Data Source=.\SQLEXPRESS;AttachDbFilename=Q:\Database\PrintDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True Thanks

Member Avatar for shers
0
136
Member Avatar for denyildani

Hi all, I want to input joystick to my code,which is very simple smile.gif.I searched the net but find out that people use DirectInput , etc... but i want a very simple application, for example like when you pull right, a variable in the code changes from 0 to 10,whne …

Member Avatar for MyRedz
0
1K
Member Avatar for VelcroMan

Hi, i want to match a function-call in a text file. Which means: [CODE]print(); pRinT54(); print (); print () );[/CODE] I'm using this regexp, which only matches if there are no spaces: [CODE]((?:[A-Za-z_][A-Za-z_0-9]*)(\\s*)(\\(.*\\))(\\s*)(;))[/CODE] Sorry for the ugly regexp :( Anyone have any idea why it doesn't match if there are …

Member Avatar for pritaeas
0
101
Member Avatar for arvindikchari

Hello I have a form where the user specifies a bg image url, and I want it to be set as the background image for a div. The code for the div is as below: [code] <div class="dc m1_t" > <div class="dt m1_b" > <div class="dr"> <div class="dc m1_pad" > …

Member Avatar for Fungus1487
0
126
Member Avatar for Icebone1000

How I can do it? I want a constructor of a object to have parameters, this object is inside other class..the compiler say the class dont have proper default constructors..(error C2512) [CODE=C++] ... class Game{ private: Player P1; Player P2; public: Game(void);//constructor ... [/CODE] [CODE=C++] class Player{ private: int x;//player …

Member Avatar for NicAx64
0
169
Member Avatar for headedtomexico

I have a VB application that connects to a PHP page for user validation, and I'm having some problems getting it to work for a particular user. I didn't wanna double post in both forums and Im not sure if its a PHP or VB problem so here is the …

Member Avatar for digital-ether
0
136
Member Avatar for denniskhor

Any one can tell me how to save text area thing to text file in arranged. like i save it.. become "Splited Result:New Sentence = sdsdsdsd sdsd sds.Tokenized Result:sdsdsdsd | sdsd | sds | Part of Speech Result:sdsdsdsd/KNK | sdsd/KNK | sds/KNK | i wan it become like tat : …

Member Avatar for sillyboy
0
160
Member Avatar for sassenach

Hi, I just read thought a tutorial on how to email pipe via evolk. When i try to send an email to the email address that is suppose to do the job, i get an error. "Mail delivery failed: returning message to sender pipe to |/home/username/public_html/pipe/email_pipe.php generated by [email]test@website.com[/email] local …

Member Avatar for sassenach
0
281
Member Avatar for tygerberg

Hi I want to program a IM in java, but I don't know where to start. I can't find information on the net about IM programming. Could anyone please help me, I'm lost. I want to hopefully get the IM working from pc to mobile phone and vice versa. Any …

Member Avatar for stultuske
0
160
Member Avatar for Zohar

Hi, new to the forum, I am currently studying the basics of C++ and we have an assignment in which we have to code a Sudoku validator. Basically the validator will ask for a file to be input, it will read the file and the user will be able to …

Member Avatar for Zohar
0
235
Member Avatar for RushNP774

I'm building my first real C# project, and need just a little guidance about the best way to do it. The website is pretty simple, pretty much just a few static pages, but one is going to be a nearly 300-item survey of the activities a person enjoys. The data …

Member Avatar for P.K.Chaudhary
0
105
Member Avatar for U_A_G

I have a program to write and im stuck. It runs but not properly. idk i think my "if" "else" statements are the problem. here are some sample runs Enter employee ID ====> 123 Enter payroll status (s/h/c)====> s Enter monthly salary ====> 5280 Employee ID: 123 Payroll Status: Salaried …

Member Avatar for DemonGal711
0
99
Member Avatar for pandiarajan.pmk

I give two parameter like year & period. For example year = 2009 & period=3 Result : 22 working days in this month Plz help me.

Member Avatar for pandiarajan.pmk
0
98
Member Avatar for web_developer

Hey all, guys I hav to use calendar control in a data grid.. But the events for tha calendar(selection change n others ) are not getting fired... i am using datagrid_itemcommand and i am searching for the command name but the calendar control doesnt have command name. how i can …

Member Avatar for Hsus
0
949
Member Avatar for dmanw100

Hello, I am very new to PHP and have been working with it now for about a month. My site uses a script to process a POST and generates a new page. The page it generates is saved with the same name as a blank html file on the server. …

Member Avatar for cwarn23
0
269
Member Avatar for srpa01red

i want to insert data into third table for two tables that is first table:table struct: pid -->int,name-->string ..etc second table :cid -->int,parentid-->int....etc third table struct is:pid-->int,cid-->int now iwant to insert data into third table from the other two tables pid from first table is a prime key and pid …

Member Avatar for darkagn
0
92
Member Avatar for aman_dba

hi friends i am connecting to sql server with java through eclipse as IDE. here's my base connectivity class to sql server public class BaseDAO { public Connection getConnection() throws Exception { String userName = "aman"; String password = "password"; String url = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=amandb"; // step 1 Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); // Step …

Member Avatar for aman_dba
0
106
Member Avatar for jayb

hello everyone .. I have to create a newsletter using php .... now one problem is that .. i have to send the output of one php page through the mail . now .. when i designed the newsletter i want to include some logo or image in the newsletter …

Member Avatar for nathenastle
0
94
Member Avatar for gagan22

Hi everyone, I know this is very simple questions. But i want to know that in which case we use function include() and in which case we have to use function require() in php code. Please help me. Thanks, gagan

Member Avatar for nathenastle
0
183
Member Avatar for fuzzica

Hi I am trying to upload images and keep getting an error, The code that I am using: [code] Protected Sub dvPictureInsert_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertedEventArgs) Handles dvPictureInsert.ItemInserted 'If the record was successfully inserted, save the picture If e.AffectedRows > 0 Then 'Determine the maximum PictureID for …

Member Avatar for greeny_1984
0
74
Member Avatar for power_computer

have to compute a function that calculates a sum in between a range let say user enters value of 10 and end value of 15 and then it is divided by a a divisor entered by the user say 2 I have the following code but its not working quite …

Member Avatar for power_computer
0
166
Member Avatar for Zcool31

[code=cpp] template<typename T> //T is a type which supports the dereference operator void foo(T& param){ //the type of expression *param is defined at compile time U = *param; //U is the type which *param returns } [/code] My question is: How can I implicitly determine the return type of performing …

Member Avatar for nucleon
0
98
Member Avatar for brains89

I have to create code for this: A voltage source supplies a load through a resistor. The voltage source has a rating of 1000 volts and a power rating of 10000 watts. The resistor is 5 ohms with a power ratings of 118.975 watts. The resistance of the load may …

Member Avatar for brains89
0
67
Member Avatar for ericstenson

Hi- Does anyone have any good code to watermark an image in vb.net? I guess this would be effectively the same as overlaying a 2nd image on top of an existing image. Thanks, Eric

Member Avatar for gauravmajithia
0
146
Member Avatar for cpsc1892

I'm studying for one of my exam's and this is my first c++ class and my professor gave one of these questions for our study guide... and I'm having trouble with it. And since our final is open book and open notes he's not giving us the answers, and i've …

Member Avatar for cpsc1892
0
2K
Member Avatar for JP_L

Hi everyone I'm new to JSP and followed a code I read in a book here is my code: [code=JSP]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <% String connectionURL = "jdbc:mysql://192.168.10.2/ox?user=moop&password=unbind"; Connection connection = null; Statement statement = null; ResultSet rs = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection cn = DriverManager.getConnection(connectionURL); Statement …

Member Avatar for JP_L
0
413
Member Avatar for anandkrishnantc

I want to display a multiline text with certain font size. How to determine the font size in windows? How to convert it into point size? I want to print next line very close to the first line ., means the gap should be minimum. I have x, y co …

Member Avatar for m610
0
202
Member Avatar for power_computer

Im looking to learn more and powerful functions like winsock to use in my dev C++ programs, Im more into the field of making application like that I really would want to learn all the necessary functions in winsock to make a simple ping program, I googled and search this …

Member Avatar for Ancient Dragon
0
179
Member Avatar for neoseeker191

When I run this program using the F or R choice the first output repeats twice, and I can't figure out why. The rest of the program works great. Prog8.cpp [CODE] #include "stdafx.h" #include "ModifyT.h" #include <iostream> #include <string> using namespace std; int main() { char ch; char exitLetter; char …

Member Avatar for SeeTheLite
0
150
Member Avatar for macfrik

Hey guys, I'm new here. Hello. I have a question for you huys. I've been stuck here for more than 2 hours figuring this out. Problem Create a menu-driven "Guess the Number Game" that allows the player to choose from two options: Version 1 - allows unlimited guesses Version 2 …

Member Avatar for BestJewSinceJC
0
95
Member Avatar for pt_solar

This is the question asked, your help is very much appreciated : One of your professors has asked you to write a program to grade her final exams which consist only of 20 multiple-choice questions. Each question has one of four possible answers:A,B,C or D. The file CorrectAnswers.txt , which …

Member Avatar for SeeTheLite
0
196
Member Avatar for pt_solar

hi I have a problem finding the lowest and highest selling product in this question. Can you please help me ? this is what I have . It also wants me to display the name of the salsa not how many jars were sold how do I include that in …

Member Avatar for pt_solar
0
779
Member Avatar for chris5126

hi, i am totally stuck i need a script (that works in ksh under solaris 10) that takes the following output [code] d15 509MB c1t0d0s5 d13 7.0GB c1t0d0s3 d11 1.5GB c1t0d0s1 d10 10GB c1t0d0s0 d25 509MB c1t1d0s5 d23 7.0GB c1t1d0s3 d21 1.5GB c1t1d0s1 d20 10GB c1t1d0s0 [/code] and for the …

Member Avatar for Aia
0
247

The End.