132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tookerello22

hi, im trying to display the attribute name of the parent node once the input matches a town name: my xml is: [CODE] <phonebook> <area code="022"> <town>mallow</town> </area> <area code="023"> <town>bandon</town> <town>bray</town> </area> <area code="024"> <town>youghal</town> </area> <area code="025"> <town>fermoy</town> </area> </phonebook> [/CODE] and the method is: [CODE] private void …

Software Development display xml
Member Avatar for tookerello22
0
211
Member Avatar for ram619

I have written this code for insertion sort but, its not generating any output. could you please tell me whats wrong in this code Thanks!! [code=c]#include<stdio.h> #include<conio.h> int main() { int arr[25]={1,2,3,4,5,6,7,8,9,21,15,16,18,22,24,72,77,79,91,62,27,35,11,90,110},i,temp=0,j,a; int *p; for(i=0;i<25;i++) { if (arr[i]>arr[i+1]) { temp=arr[i]; arr[i]=arr[i+1]; arr[i+1]=temp; p=&arr[i]; while(i!=0) { if(*p<arr[i-1]) { temp=*p; *p=arr[i-1]; arr[i-1]=temp; …

Software Development c
Member Avatar for Adak
0
187
Member Avatar for Erlendftw

Hello there DaniWeb, im switching from vb.net to c# and i think its alot better already, i just wonder about a thing How can i insert data into a variabel? this is my code: [CODE]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; …

Software Development
Member Avatar for Erlendftw
0
271
Member Avatar for Swiftle

Hi, I'm having trouble figuring how to search for a specific element of a class in a list. I saw some examples of find() but they only show how to search for a string or an int. Another thing is modifying elements of a class. So let's say I have …

Software Development c++
Member Avatar for Swiftle
0
148
Member Avatar for iammirko

I am a newbie to network programming. I been trying my luck with winsock and am stuck with no idea what to do. Here is a snippet of my code: [CODE]//Bind it to a TCP/IP port SOCKADDR_IN SockAddr; SockAddr.sin_port=24; /*Port to be used*/ SockAddr.sin_family=AF_INET; /*Connection Type: TCP/IP*/ /*Listen on IP …

Software Development c
Member Avatar for iammirko
0
241
Member Avatar for raizor89

Hey everyone, I have a task that I have to make a windows form application, that calculates the number factorial of any positive number, and the result shows the multiplication of factorials. Like here, 5! = 1*2*3*4*5* = 120 the form design is simple, 1. label1 ( enter the number) …

Software Development
Member Avatar for ddanbe
0
1K
Member Avatar for kayhantolga

I need ascii number for forward keys. i found it but it has two number examble first -32 and second 80?? please help

Software Development c
Member Avatar for kayhantolga
0
88
Member Avatar for bestex

Hi all, heres my code [CODE]Dim con As New MySqlConnection("server=localhost; user id=root; password=phoenix0931; database=accounts;") Try con.Open() Dim dat As MySqlDataAdapter = New MySqlDataAdapter("SELECT customers_id,customer_name,customer_add FROM customers ", con) Dim dt As New DataSet dat.Fill(dt, "customers") ComboBox1.DataSource = dt.Tables("customers").DefaultView ComboBox1.DisplayMember = "customer_name" ComboBox1.ValueMember = "customers_id" Catch ex As Exception MessageBox.Show(ex.Message) Finally …

Software Development dataset vb.net
Member Avatar for bestex
0
121
Member Avatar for dmaclam

So I am currently writing a custom proxy server to handle http requests on a local computer. I am able to get the headers but am not sure how to then send them to the browser. here is my current source code: [[CODE] Imports System.Net Imports System.Net.Sockets Imports System.Text Imports …

Software Development client-server flash vb.net xml
Member Avatar for dmaclam
0
1K
Member Avatar for bestex

I dont know what code to put Here? to get the exact value of my record on my database here is my code [CODE] Protected Const strConnPubs As String = "server=localhost; user id=root; password=phoenix0931; database=accounts;" Protected strPubsCMD As String = "select customers_id, customer_name from customers" Protected dvName As DataView Protected …

Software Development dataset vb.net
Member Avatar for bestex
0
213
Member Avatar for yousafc#

if (txtMath.text >= "90") lblgrad.Text = "A+"; else if (txtMath.Text >= "80") lblgrad.Text = "A"; else if (txtMath.Text >= "70") lblgrad.Text = "B"; else if (txtMath.Text == "60") lblgrad.Text = "c"; else if (txtMath.Text == "50") lblgrad.Text = "D"; else if (txtMath.Text == "50") MessageBox.Show ("You are failed in your …

Software Development
Member Avatar for ddanbe
0
90
Member Avatar for Howdydoody

Hey guys, The question on the homework is "Write a function that returns a count of the nodes that contain a value less than the parameter value." I was wondering if someone could point me in the right direction maybe with some pseudo code or something of the like. ive …

Software Development c++
Member Avatar for Howdydoody
0
139
Member Avatar for alice06

Hi all I hav written a very small shell script in bin bash & its not working. The script is :: [CODE]#!/bin/bash i=1.0 while [ $i -le 3.0 ] do i=`expr "$i + 0.5" | bc`; echo "i=$i" done [/CODE] The error is : [CODE]line 6: [: 1.0: integer expression …

Software Development shell-scripting
Member Avatar for alice06
0
92
Member Avatar for micmo

Hi guys, I've been searching for hours now and haven't yet found a good source of C# information for what I need to do. The general gist is this: I have 1 Client app (a simple windows form which gathers data) and 1 Server console app (which holds the business …

Software Development c# client-server
Member Avatar for micmo
0
656
Member Avatar for micmo

Hi Guys, I'm currently developing a project using WCF (hosted on local IIS) which connects to a local SQL database using LINQ to get data. My problem is that when I run the code, 9/10 times it'll fail with the "Specified Cast Is Not Valid" error, but the other 1/10 …

Member Avatar for micmo
0
1K
Member Avatar for r0n

hello everyone, got issue regarding reading duplicate records in a text file... i need to read the file and look for any duplicates data/keys in the text file and write them to another file (all the duplicates records)... how can i do that, in looping...:-/ any help...:) thanks!

Software Development file-system java
Member Avatar for r0n
0
2K
Member Avatar for keicola

hi. i made a function which is supposed to create a binary tree from preorder and inorder traversals using recursion. i did this by making arrays for the left subtree and the right subtree in preorder and in inorder at each call of the function. makeNode() puts the data into …

Software Development c
Member Avatar for keicola
0
202
Member Avatar for bklynman01

I have a function that imports an Excel sheet into a SQL database. This function works except ONE line. [CODE] If sheetContent.Range("A" & exRow).Value2.ToString.Length < 1 Then Exit For End If[/CODE] The rest of this function works great, and it uses lines of code that are VERY similar to that …

Software Development vb.net
Member Avatar for bklynman01
0
101
Member Avatar for hariharan89

int main(int argc, char **argv) { char **myargv = argv + 1; while (myargv[0] && myargv[0][0] == '-') { if (strcmp(myargv[0], "-d") == 0) { myargv++; continue; } exit(1); } argc -= (myargv - argv); argv = myargv; Hi , I am new to C programming . I understood the …

Software Development c
Member Avatar for gerard4143
0
136
Member Avatar for ninjatalon

I've tried google a way to sort a table but couldn't get my code working. My program lets the user input enter information such as first name and last name in textboxes, once done they click on update button(so far everything works). On the top right of the form it …

Software Development vb.net
Member Avatar for zy_430l
0
630
Member Avatar for arjunpk

hi.... i have an xml file which i've pasted below... [CODE] <?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> <opensearch:Query searchTerms=""/> <opensearch:totalResults>1</opensearch:totalResults> <people> <person> <popularity>3</popularity> <name>Aamir Khan</name> <also_known_as> </also_known_as> <id>52763</id> <biography></biography> <known_movies>18</known_movies> <birthday></birthday> <birthplace></birthplace> <url>http://www.themoviedb.org/person/52763</url> <filmography> <movie name="Earth" id="7504" job="Actor" department="Actors" character="Dil Navaz" url="http://www.themoviedb.org/movie/7504" cast_id="2" poster="http://cf1.imgobject.com/posters/5ac/4bc91f50017a3c57fe00c5ac/earth-cover.jpg" adult="false" release="1998-09-16"/> <movie name="&#2352;&#2306;&#2327; &#2342;&#2375; &#2348;&#2360;&#2306;&#2340;&#2368;" id="7913" …

Software Development xml
Member Avatar for arjunpk
0
161
Member Avatar for poonams

hi all, I need a code which export access table data into excel sheet.I am working in vb.net2003

Software Development vb.net
Member Avatar for Pgmer
0
99
Member Avatar for mak_sutt

Hi I have a GUI created using VC++. I want to read the value or content from a text box of another GUI in windows(dont have sourec for this GUI). Can you pleae suggest me how can i do this, please also point me to some basic tutorial or books …

Software Development c++ gui
Member Avatar for ninjatalon
0
122
Member Avatar for cyrusmay13

Hi can anybody provide me with the code for c++ programme for the famous game who wants to be a millionaire. Thanks

Software Development c++
Member Avatar for eightyseven
0
835
Member Avatar for frankge973

My program uses MS Access as DB and Visual Basic 6. I've experienced an issue loading a recordset with about 300000 records, some fields indexed, when I place a SELECT SELECT * from Materials m INNER JOIN Quantity s ON m.code=s.materialcode ORDER BY code in a ADO recordset with the …

Software Development visual-basic
Member Avatar for frankge973
0
1K
Member Avatar for Pandamonium

Hi, I am having a lot of issues using grep. I am trying to counts the number of lines which start with the letter “L”or “W” and end with the number 3. I can find and count the lines that start with L or W just fine, but I cannot …

Software Development shell-scripting
Member Avatar for shibblez
0
173
Member Avatar for mugged ur mom

Hey guys I’m trying to export data from a access form into an excel sheet when it is clicked by a particular button... but the VB code I’m using for the button will not work. Here is my current code: Private Sub Command12_Click() DoCmd.OutputTo acOutputForm, "frmExport", acFormatXLSX, "h:\mydocu~1\exports\F_assignments.xlsx", True End …

Software Development visual-basic
Member Avatar for AndreRet
0
498
Member Avatar for sj5536

hi, i am using ITEXT to create Pdf File . i want to reduce spacing between lines in pdf file is this possible if it is possible then how can i do that. thankx

Software Development java pdf
Member Avatar for peter_budo
0
180
Member Avatar for Shodow

invalid use of property [CODE] Dim search As String search = Trim(txtSearch.Text) Select Case cmbSearch Case "By: Customer Name": Call DataGrid("select * from list1 where CustomerName like '" & search & "%'") Case "By: Date": Call DataGrid("select * from list1 where Date like '" & search & "%'") Case "By: …

Software Development mysql seo visual-basic
Member Avatar for AndreRet
0
222
Member Avatar for Gowrishankar

Hi every one,Could you help me in creating one login page,in which the username and password get validate with the backend db(sql server)And the password is encrypted and stored in db.So I want to know how to encrypt the user inputting password and validate that one against the encryted password …

Software Development asp asp.net c# sql
Member Avatar for afjal nathani
0
412
Member Avatar for obicerno

hello guys, can any one know how to extract an amount for an instance.. this was in access data. i just picking up some sample.. a given amount to be extracted was 50,000.00 kilos i have to table 1 is the master and the other was the list of pickup …

Software Development visual-basic
Member Avatar for AndreRet
0
97
Member Avatar for i4ba1

Hai all, i want to create interactive multimedia software. the software want to run in windows, linux, and mac. what the programming language that suite to developed that software?. c++ or adobe air? Best Regards

Software Development adobe c++ mac-software multimedia
Member Avatar for i4ba1
0
174
Member Avatar for bensewards

Hey everyone, In my COMP 208 class, I was asked to do the following: "Redo Lab 2 Problem 2, only this time use vectors to hold the names and gpa’s instead of arrays. So you will work with 2 vectors, one holding the gpa’s (type double) and the other holding …

Software Development c++
Member Avatar for user422
0
201
Member Avatar for tzmen23

I keep getting a segmentation fault error with this program. It is supposed to read in a file that reads: ABC=EFG$#$HIJ #$#KLM=NOP The program will then take out the all the "=" "$#$" and "#$#" and write it all back into another file. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> int …

Software Development c
Member Avatar for rajeevpareek
0
107
Member Avatar for lebna

I am creating a project for video surveillance. How do i send the live video to the client using socketing and Udp. I tried sending consecutive images to the client using tcp so that it finally looks like a video when viewed at the client side. But was not successful.... …

Software Development c# tcp-udp video
Member Avatar for lebna
0
2K
Member Avatar for pkty31

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.skynet.simpleHttpServer; /** * * @author Gryffy */ /* "Copyright (C) 2001,2005 by SkyNet Corporation \n"+ "\n"+ "Redistribution and use in source and binary forms, with or without\n"+ "modification, are permitted …

Member Avatar for masijade
0
471
Member Avatar for txwooley

I am trying to learn C++ through on-line tutorials and such. In almost all tutorials, the author tells you which headers to include for that particular exercise, but never tells you how he knows that. I understand that if you are advanced enough to be writing tutorials, you know off …

Software Development c++
Member Avatar for mike_2000_17
0
122
Member Avatar for junjun61991

what is the code of the [U]DoubleClick[/U] if i will search, using txtbox?

Software Development visual-basic
Member Avatar for debasisdas
0
148
Member Avatar for KazenoZ

Hello, I'm having this problem with the transparency in GDI+. I have 2 pictureBoxes, one over the other, and one of them has its' alpha color set to magenta(255, 0, 255). My goal is that when the upper pictureBox has a picture on it with a section of the magenta …

Software Development
Member Avatar for KazenoZ
0
183
Member Avatar for noonz

hi everyone so I am trying to do something after waiting a random number of seconds in a while loop.I have python22 installed and I am working on windows xp. The problem is that it time.sleep works fine the first time but returns the following error after that. I dont …

Software Development python
Member Avatar for woooee
0
946
Member Avatar for kartikkp

Hey I'm having trouble with compiling this code, I keep getting a "undefined refernce to winmain@16 I feel like it has to do with int main() I tried just main(), im not sure how to fix that [CODE]#include <iostream> #include <fstream> #include <string> #include <stdio.h> #include "HangmanBoard.h" #include "FileProcessor.h" using …

Software Development c++
Member Avatar for jonsca
0
114
Member Avatar for chamnab

do u know some code that we can use mouse in c++ because i want to click some button in my assignment ?

Software Development c++
Member Avatar for Red Goose
0
139
Member Avatar for xxxtian

I have this code in design's code behind [CODE]int id; cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "usp_addvisitor"; cmd.Connection = con; cmd.Parameters.Add("visitorname", SqlDbType.NVarChar).Value = textBox1.Text; SqlParameter bookidparam = new SqlParameter("@visitorid", SqlDbType.Int); bookidparam.Direction = ParameterDirection.Output; cmd.Parameters.Add(bookidparam); id = Convert.ToInt32(bookidparam.Value); con.Open(); cmd.ExecuteNonQuery(); con.Close(); for (int i = 0; i < checkedListBox1.Items.Count; i++) { if …

Software Development
Member Avatar for kvprajapati
0
537
Member Avatar for javagiek

i am having trouble with this code. It does not let me compile in eclipse but there seems to be no error? Any clue where my mistake lies? thank you [CODE] package useToken; import java.io.*; class readFile extends StreamTokenizer { readFile(InputStream in ){ super(in); } public static void main (String …

Software Development java
Member Avatar for ztini
0
105
Member Avatar for fishsicles

Hello, I am working on developing an interpreted programming language for a capstone project and have hit a snag dealing with two classes. In the interpreter, the classes represent a scope containing a procedure pointer and the procedure pointing back to the scope containing it. The former to allow the …

Software Development c++
Member Avatar for fishsicles
0
149
Member Avatar for arguav74

Hi everyone, I am taking a C++ 100 level beginners course and we just got this assgnment that I am stuck on. Here is the assginment description: [QUOTE]We are going to just compute the first 15 or so digits of π using doubles. In any case, to compute the value …

Software Development c++
Member Avatar for WaltP
0
896
Member Avatar for revjim44

I have a comboBox that is populated by an array. When one of the choices is no longer available, I'd like to remove that item from the comboBox. I tried [CODE]if (firstClassAvailable == 0) { this.comboBox1.Items.Remove("First"); }[/CODE] which throws this exception System.ArgumentException: Items collection cannot be modified when the DataSource …

Software Development
Member Avatar for kvprajapati
0
199
Member Avatar for CronosAkroma

ok so here the problem the code works just adds break on to every line i want it to only add breaks to the line that don't alraedy have spaces after them. while (! fileIn.eof() ) { getline (fileIn, linea); fileOut << linea << b <<endl; }//end while is what …

Software Development c++ html-css
Member Avatar for WaltP
0
111
Member Avatar for SoftwareGuy

Hi. This is probably too easy, but... Can anyone tell me how to add or remove a checkbox from a panel by using the Designer? The only samples I could find online had the code nside an arbitrary method called CreateMyPanel(). I'm looking at a file called MyControl.Designer.cs, and inside …

Software Development asp.net
Member Avatar for SoftwareGuy
0
218
Member Avatar for moone009

C# command prompt. I have a program that builds an xml file for me but then I need to open the command prompt and enter: 1.D: 2.cd\rplcarts\createprogram 3. createprogram.exe "XML file" then enter does anyone know how I could automate this in c#?

Software Development c c# c++ xml
Member Avatar for kvprajapati
0
93

The End.