199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for some

Hello everyone, I have a question regarding advanced file manipulation. I am trying to make a function that will take in a number which will be the number of a record and basically take that record out and display its contents and let the user edit it. Here is the …

Member Avatar for SCarlisle
0
114
Member Avatar for johndoe444

[CODE]map<string, int> Employees; Employees.insert(map<string,int>::value_type("John A.",7582)); [/CODE] what does the value_type do? what is the difference between pair() and make_pair()

Member Avatar for johndoe444
0
125
Member Avatar for simon66

sup all. Im having a major problem with vb.net. im making a program that reads the source code from the webbrowser1 and if it contains these words "You Won!" then all my timers stop and a msgbox comes up and says "You Won!" but when the website actually does say …

Member Avatar for crazyhorse09
0
317
Member Avatar for ravin26

hi, I want to know how can i allow user to download an mp3 file on his click in asp.net vb.

Member Avatar for adobe71
0
101
Member Avatar for kaivalPrajapati

How to use for Adrottetor in my web site? pl z... all about discus and give any Essy example.

Member Avatar for adobe71
0
77
Member Avatar for ItecKid

Hello, I have written a 'predictive text' widget using JavaScript/AJAX. When user enters a string of letters into form, the list of possible matches is displayed under the form. This works well and good, now I am trying to make it so that when the user clicks on a certain …

Member Avatar for Taywin
0
756
Member Avatar for jemz

hello can you help me how to trap the textfield length..example if i will iput in my textfield 00001 then it will only accepts 4 digits can you help me how to make this trappings...hoping for your positive responds....

Member Avatar for BestJewSinceJC
0
56
Member Avatar for SCMAN2010

I am having problems with my code it says that the value compare is not being intitalized please help. I need to enter seven words total then sort them out.please help. [CODE]// it might work2.cpp : Defines the entry point for the console application. // #include "stdafx.h" /* Inputs a …

Member Avatar for aspire1
0
151
Member Avatar for lakshma.sugunan

When some datas are inserted in to a DB table from a jsp page, how do i get the primary key in my table autogenerated?? finiding out the highest value for the primary key in the table? Pls help me wid the coding in JAVA or HTML.. I use SQL*PLus.

Member Avatar for emsm
0
278
Member Avatar for dr_michali

Hi, Here's a part of the code: [CODE]#define S 1000 /* rows */ #define T 200 /* columns */ int main() { int n, i, j; float **x; x=(float**) malloc (T*sizeof(float*)); for(i=0; i<T; i++) x[i]=(float*) malloc (S*sizeof(float)); memset(x, 0, sizeof(x[0][0])*S*T); return 0; }[/CODE] This was compiled well (gcc) and had …

Member Avatar for dr_michali
0
232
Member Avatar for dsmush

Hi, I'm creating a Java Swing application that lets the user enter the usual details one would expect in an address book then click the save button. The current JPanel will then be hidden while another JPanel is shown. This second panel is used for viewing all the contacts added …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for G_S

Hi people! I need your help with a find function for a glossary program that I'm writing for my own use. I'm using python 3.x and have already made a find function, but I don't like how it came out. Let me explain with an example: First, let me show …

0
282
Member Avatar for kerek2

Hi everyone, I got prob with my proj that is reading data from Mifare Card using Contactless Card Reader (ACR120U). for the connection its successful but need to press cmdButton to grab a data from Mifare card. So if anyone got idea how to grab data automaticly such as flash/touch …

Member Avatar for lucasmadero
0
287
Member Avatar for ceyesuma

Hello; I am trying to build a JDesktopApp The structure of a Session in a web app: a user logs in and a session specific to the user is saved.(basically). My question is dealing with a Desktop app. If a user logs in can the same concept be used? I …

Member Avatar for ceyesuma
0
125
Member Avatar for sabah_786

Hey all. Ok i've written the code below with no syntax errors. However, im struggling. 1) For Button 1 - Check Balance, I want to firstly bar out the pin number so it doesn't show. How do I do this? 2) For button 1 - I have added show input …

Member Avatar for sabah_786
0
278
Member Avatar for python08

Hi all, I've looked through this forum for some hours and am absolutely unable to fix my problem; no matter what I do. I'm trying to pass a PHP variable as part of a MYSQL query like so: [CODE] $id = $_GET["bodyid"]; $blog = getEntries("SELECT `Articlebody` FROM `Blog` WHERE id …

Member Avatar for warren88
0
167
Member Avatar for kjock002

[CODE]# PURPOSE: to calculate the sum of the first (n) odd counting numbers # # INPUT(S): the number (n) which will be the last number added to the sum # # OUTPUT(S): the sum of the first (n) counting numbers # # EXAMPLES: input: 23 ; output: 144 # input: …

Member Avatar for The_Kernel
0
3K
Member Avatar for g0pal

i want to create a feedback form for my website [url snipped]. as i m using free host it doesnt allow PHP so i want to create it using JAVA. please help me create a feedback form which when submitted automatically send an email to my ID. if it is …

Member Avatar for Taywin
0
292
Member Avatar for Priyanka88

hi I am having VC++ 2008 express edition downloaded few days before....will you please help me how to compile c++ source file,debug and run it....pls....hv no time to read dat help topics...pls help me out!!

Member Avatar for Priyanka88
0
176
Member Avatar for MVB

Hey guys. I'm having some issues with my Visual Studio 2008 Pro. I'm trying to compile the following code, included in the link [url]http://pastebin.com/r6WsG5r7;[/url] but, whenever I try compiling the code, I get like 5 erros: The errors are listed below. Why is it that moving certain declarations around changes …

Member Avatar for Salem
0
427
Member Avatar for jobojo

Good evening everyone and hope you all had a good weekend. I am working on a site which allows the user to search database records based on entering either a reference number of a person' last name and then clicking the submit button. This brings the user to a results …

Member Avatar for kvprajapati
0
238
Member Avatar for sana zafar

Hi all, I need to write a program that will first read a file and then 1. Output all the words that appear in a file. 2. Treat only sequences of letters and digits as words, i.e., all other characters such as punctuation marks should be used as word delimiters, …

Member Avatar for gnarlyskim
0
125
Member Avatar for lrolsto1

For a CS project, I need to have my program "gracefully terminate" in case of certain user input errors. What is the best syntax to do this?

Member Avatar for aspire1
0
78
Member Avatar for phpDave

Hi everyone, I am trying to validate a user registration form. User must enter letters and/or letters only. [CODE]//check username $_POST['user_name'] = trim($_POST['user_name']); $checkChar ='/^[a-zA-Z0-9]+$/'; if (!preg_match($checkChar, ($_POST['user_name']))); { $error['char'] = 'Username must contain letters or numbers only'; }[/CODE] When I submit the error message keeps coming up when it …

Member Avatar for vitana
0
206
Member Avatar for lrolsto1

Assignment: Create a program to practice reading in from a file, search for a particular word when the user inputs a word to search for and a file via command line args. Print out the entire line each time it is found. Progress: It compiles, and runs.... kinda. Problem: I …

Member Avatar for BhagatS
0
91
Member Avatar for wale89

[QUOTE]Hello..can anyone help me in order to solve this problem regarding the collision that happend.. I use the modulo-division hash function and intended to use the chaining solution method to resolve this collision but i got stuck.. because i dont really have the full knowledge in link list..Can someone that …

Member Avatar for craig_ka
0
634
Member Avatar for tkpanther

Hello, it is me again with another homework assignment. I am having issues starting this one. Every draft I make for it feels way too long and that I can make it much, much shorter. First, I am using Python version 2.3.2. I am using graphics.py, buttons.py, and am basing …

Member Avatar for tkpanther
0
170
Member Avatar for buzzykerbox

Hey,have been having a problem with this code,dont no what to do here,trying to find the letter in the secret word in hangman.when the user inputs their choice how do i compare it with the secret word.was using a for loop but not sure [CODE] cout<<"\n\t\t *********** H A N …

Member Avatar for Fbody
0
83
Member Avatar for biggie_smalls

Hey all, I got interested in using smart pointers and tried to implement the following solution: [URL="http://www.davethehat.com/articles/smartp.htm"]http://www.davethehat.com/articles/smartp.htm[/URL] It's probably far from perfect but this is mainly a learning experience. It's a non intrusive reference counted implementation of a smart ptr. And somewhere in the article the assignment operator is defined: …

Member Avatar for Fbody
0
193
Member Avatar for mk1200

Hey guys, I'm sure this has been done before, but I haven't found the snippet yet. I think I have to use preg_match_all. Here's my very simple stopping point: [CODE]$content = $obj->introtext; $xml .= "<ImageUrl><![CDATA[$content]]></ImageUrl>";[/CODE] Here are two examples of the introtext table data: [QUOTE]<p><span style="font-size: 10pt;"><img src="images/stories/D-West.jpg" alt="D-West" style="margin: …

Member Avatar for mk1200
0
1K
Member Avatar for niths

hi, i am new to php. i had a problem with insertion. when i upload a file i should get the filename,uploadedby,uploadeddate,and size of the file in a table. first of all i am not getting inserted in the database itself. so can any one help me ..... --------upload.php-------- [CODE]<html> …

Member Avatar for JRM
0
110
Member Avatar for gunbuster363

The title maybe a little bit confusing, I will explain it. I am using opensuse. Usually I work in a shell like this: $vim test.py $python test.py >>>running... >>>running... >>>running... >>>running... $ Here the program end, but I cannot make further change nor access to the variable. I know I …

Member Avatar for gunbuster363
0
120
Member Avatar for Fenlevi

Hi guys, In my lab I was given a source code and was tasked to write the function to compute the largest value of a vector, and a for loop to show how elements does the vector has.But the output is now right,it gives me the largest element is zero,and …

Member Avatar for MyrtleTurtle
0
144
Member Avatar for psyb0rg

This has taken many hours of mine. I have to get this .Net app to run on an XP system. Someone seems to have messed up some files so conn.Open() in the C# is causing this error: [CODE]Connection Error:Oracle.DataAccess.Client.OracleException ORA-12170: TNS:Connect timeout occurred at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, …

Member Avatar for debasisdas
0
2K
Member Avatar for rumpleteaser33

Hi, I'm trying my first program using servlets and JSP and would appreciate any help or advice about a problem I'm having. In my servlet I'm connecting to the database and displaying all the records in there. I'm then trying to add data to a JavaBean so that I can …

Member Avatar for peter_budo
0
169
Member Avatar for jgehlot09

Below is the code, when it run shows a combination of back-slash and forward slash and by putting them together and printing them shows a stick rotating. The problem is that it is only rotating at a same position I want to move it back and forth in a line. …

Member Avatar for MyrtleTurtle
0
122
Member Avatar for vijaycare

Hi, I am having the same problem [I]<<mod edit: [URL="http://www.daniweb.com/forums/post228229.html#post228229"]as this[/URL] >>[/I] when i update my record in Access Database. It is successfully updated the record in the database. but the dataset in my project is still not updated. I am using vb 2005 to develop the application. Any one …

Member Avatar for vijaycare
0
100
Member Avatar for Pankaj18

Hi, I am using following code to Highlighting keywords in a text or resume. My code: // al is an Arraylist which have keywrods as .net, java, xml... [code] al = (ArrayList)Session["keyWords"]; for (int i = 0; i < al.Count; i++) { if (s.Contains(al[i].ToString().ToLower()) || s.Contains(al[i].ToString().ToUpper()) || s.Contains(al[i].ToString())) { //s …

Member Avatar for Pankaj18
0
111
Member Avatar for shroomiin

hey everyone. I am supposed to make a program that finds the smallest number out of a set of numbers. the amount of numbers input is up to the user. i have to print the smallest number, and what input it was (ex, 1st number 2nd number 3rd number...) i …

Member Avatar for dlucke17
0
116
Member Avatar for sallycheng

It cannot display the value of the checkbox,please tell me what wrong of it! Thak you [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c /> <title>Untitled Document</title> </head> <body> <?php if(isset($_POST["Sumbit"])) { $fruit=isset($_POST["apple"]) ? $_POST["apple"]:""; if(isset($_POST["bananan"])) { if(!empty($fruit)) $fruit.=", "; $fruit.=$_POST["bananan"]; } if(isset($_POST["orange"])) …

Member Avatar for sourcebits
0
291
Member Avatar for Falmarri

It's been about a year since I've used C++, and I'm having a weird error that I can't remember why it does this, or if there's actually something wrong. My destructor gets called twice when I declare my object via the first method, and only once (correctly) when it declare …

Member Avatar for webs1987
0
241
Member Avatar for aa_day90

I haven't got any luck finding why this program wouldn't work. Here's the code. [CODE]int main (void) { ifstream file; char *streamer = NULL; file.open("now.txt", ios::in | ios::binary); if (file.is_open()) { while (!file.eof()) { streamer = new char[33]; cout << "Prestream: " << streamer << endl; file.read(streamer, 32); cout << …

Member Avatar for aa_day90
0
96
Member Avatar for a4aadi

here is code[ [CODE]#include<iostream> #include<fstream> #include<conio.h> using namespace std; struct book_dtail { int copies; char title[50]; char author[50]; int year; char **bn; }; void main() { int size; ifstream indata; book_dtail user_book[5]; indata.open("file path to be added here"); for(int count=0;count<5;count++) { indata>>size; user_book[count].copies=size;//2D array initialized. user_book[count].bn=new char*[size]; for(int temp=0;temp<size;temp++) { …

Member Avatar for a4aadi
0
98
Member Avatar for hurricane123

I wanna know how 2 return string by using function for example if we want to check the lenght of string we use cout<<strlen("c") but how to use this by fuction

Member Avatar for webs1987
0
120
Member Avatar for niths

[QUOTE]hi, i am new to php. i want to get the uploaded filename,uploadedby,date, and size of the file. dont know how to get the name of the file and size. so please any one.... [/QUOTE] [CODE]<html> <body> <form enctype="multipart/form-data" action="upload2.php" method="POST"> <table> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> </table> <table> <br><br> <tr> …

Member Avatar for prem2
0
293
Member Avatar for rumpleteaser33

Hi, I am writing a program that has a listbox which is bound to a dataset. When I click a button (e.g. delete) the item is deleted from the database ok using an SQL query but is still shown in the listbox. How do I get the listbox to refresh/update …

Member Avatar for rumpleteaser33
0
1K
Member Avatar for anuradhu

could someone please let me know the encryption level of the encrypt function of coldfusion.... as far as i know it supports onjly 32 bit encryption...are there any chances of it supporting any other encryption levels.... has anything happenend in coldfusion7?

Member Avatar for arrgh
0
160
Member Avatar for kunyomi

Hi all, I have a database with contact info, and I need to display the info in groups. Currently in my database table called contacts I have a field called 'groups'. The values are 'favorites', 'home', 'work', and 'friends'. I tried creating a page called group.php and used a dropdown …

Member Avatar for kunyomi
0
377
Member Avatar for vedro

Hello I have 2 databases, one is like a backup for the other. So they have identical tables: Alarmi, which has columns: OBJEKT, OPIS, VREDNOST, START, E_A, UPORABNIK I want to compare those two tables and copy only new entries (rows) to the backup database. How can I do that? …

Member Avatar for vedro
0
333
Member Avatar for ramsham

Hi I am using C#.net to develop one web site . I want to search facility means if i enter word for search then it must get highlighted on page /text box then if i click(OR move mouse there) on that highlighted word then it shows detail information. Just like …

Member Avatar for ramsham
0
158

The End.