132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
![]() | 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 ![]() |
![]() | 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 … Software Development client-server http-protocol open-source user-interface xml ![]() |
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 | |
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 | |
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 | |
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 | |
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 | |
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="रंग दे बसंती" id="7913" … Software Development xml | |
hi all, I need a code which export access table data into excel sheet.I am working in vb.net2003 Software Development vb.net | |
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 … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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.... … | |
/* * 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 … Software Development api audio bsd client-server file-stream http-protocol java open-source pdf session | |
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++ | |
what is the code of the [U]DoubleClick[/U] if i will search, using txtbox? Software Development visual-basic | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 ![]() | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
The End.