199,114 Archived Topics
Remove Filter ![]() | |
Hii friends I am creating a web application Now there are only two users who will login to the system the two users are Admin and staff When Admin logins he is directed to Admin.aspx and when staff login he is directed to Staff.aspx I have created a database Table … | |
I was trying to print the location of array elements using the following code [code=c] #include<stdio.h> main() { int arr[]={10,20,30,40,50,60}; int i; for (i=0; i<6; i++) printf("%d ", &arr[i]); return 0; } [/code] Error: [B]printArrayLocation.c:7:3: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘int *’[/B] While i … | |
Hi. I have a bounded datagridview and it's work fine. I want to know if I can to add a combobox column to datagridview. Thanks for all. | |
hi. i'm doing a search option in my system where if your searching for a entry even if you didnt typed the whole word, all of the entry that contains the letters that you have typed will appear, well i really cant explain it but it goes like this if … | |
i really need a GOOD socket tutorial, i've followed some of them from google but they aren't complete, i know that socket programming is forked into many categories, basically i am interested blocking & non blocking sockets, synchronous & asynchronous sockets(used with select() and FD_ISSET macro etc) PS: i know … | |
I developed a sales management system in ASP.NET using Razor WebPages. How can I ensure that the business data associated with the system to be secure? Does hosting it using Web Hosting services secure? How about VPN? And if I am going to host it in the company server, how … | |
Hi, I have a cookie issue. On localhost i have a cookie file "cookie.txt" (located ir root dir) which works fine. However, on remote server the app seems not to find the file. Is there a server config option that prevents my app from seeing that cookie file? Thanks | |
Is it possible? Currently, I am inserting data to a CSV file using PHP via the fputcsv() function. When opened in Excel, it works fine. The problem is that all the columns are of the default size. Is there a way to autofit the column width and possibly modify the … | |
plz explain complete step by step procedure to insert update and delete for asp.net2008 with c# and in built sql server. plz tell me where to make object & class. I am confused. | |
ok this is one of the many things I don't trust google on. What is a good new compiler (C++ and D would be nice) for Linux? Kubuntu PS Is the system() function universal as in it will do the same thinge in Linux Windows and OSX | |
I'm wondering: Why would I need to use a static variable? When I initiate a class, that class remembers the value of a variable I declare in that class anyway, right? What does the [I]static[/I] part add to that? For example, what's the difference between [CODE]class Hello { public $variable; … | |
Ok so I want to have the user imput a name of a file to decode it. How would I do that? EX: cin>>fill ifstream in (fill) | |
Hi, I was preparing for SCJP 1.6 and i have the following snippet of code. [CODE]package com.self.trials3; public class Animal { public void Animal(){ System.out.println("Obviously Works"); } Animal(){ //System.out.println("Constructor"); //super();use super or this() as first line in your cons to call other //cons. this("Adarsh"); } Animal(String AnimalName){ //System.out.println("AnimalName >> "+ … | |
Hey, I need a bit of help... I am trying to create a simple invoice script... but im stuck on the invoice lines... I think I can use javascript to add more lines when the user clicks a button but then not sure how to process that list as I … | |
[CODE]#include<iostream> using namespace std; void prin();//statement a main() { int x; //statement 1 x=34;//statement 2 return 0; }[/CODE] I wanted to know if the variable x is allocated memory in statement 1 or in statement 2. Its a long time doubt and no one really gives a clear and confident … | |
My rss feed wont validate, throwing this error but I dont understand it...please help? error on line 10 at column 75: EntityRef: expecting ';' [CODE=php]<?php require_once('../includes/functions.php'); if (file_exists(SITE_ROOT.'/themes/'.THEME.'/feed-rss.php')){//feed-rss from the theme! require_once(SITE_ROOT.'/themes/'.THEME.'/feed-rss.php'); } else{//not found in theme header("Content-type: text/xml"); ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>RSS - <?php echo $html_title;?></title> <link><?php … | |
Hi guys, I need some help from you. I know it's lame to ask for help for college, but for oracle databases we have a professor that really doesn't know how to explain anything. We are learning it all theoretically and nothing practically and now he gave us a code … | |
Hi, Is there a way i can pass variable column names to a stored proc? Here's what i want to do: i have lots of tables and for each of those i want to select out a few columns. e.g from table titles i want to pick out title_name and … | |
Hello, I have produced some VBA in Access that creates a spreadsheet. I have also created an SQL query that retrieves records from an Access table. I have 48 tables (each table for a specific institution centre). I have created another bit of VBA code that creates a spreadsheet and … | |
How tract a mail sent from our id is forwarded or not using PHP code. | |
Hi!(: Sorry, I'm totally new and have no real idea about what I'm supposed to tell you. I just really need some help on my java homework so anything would be much appreciated. (: I feel like I'm already asking for so much.. so I'm really sorry, but can someone … | |
[CODE]// bintodec.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> using namespace std; int main(){ string inp; int dec = 0; char base; cout << "Input a number: "; cin >> inp; cout << "Input the base your number is in: "; … | |
Menu Items has ONLY: [U]New[/U], [U]Open[/U], [U]Save[/U], [U]Save As[/U] and [U]Exit[/U]...nothing else i dont know how to do: -Create a member boolean variable to track when the contents of the textbox have changed. This boolean variable will be used to prevent the contents of the textbox from being lost, after … | |
Hi everyone; I'm working on a c# service that queries the DB and checks if the right info is available for users. It's an Airline tickets reservation system. I am not sure why my code is breaking after it gets the query and it gives an error about sqlclient.. [CODE] … | |
this program calculates all the prime numbers between two input numbers num1 and num2. first an array is created and num1,num1+1,......num2 are stored in that array and then all elenemts of array are scanned and if they are divisible by any odd number except itself or by 2 then 0 … | |
Hello I'm new to sql (sql 2000 database) and i'm trying to get two simple things. I have two sql queries that i run in order to display a result and to update another one. The queries that i run in sql query analizer are: 1. select memb_guid from MEMB_INFO … | |
The input for this program should be like this: How many tests? 4 Grade on Test 1? 95 Grade on Test 2? 88 Grade on Test 3? 80 Grade on Test 4? 96 Your average is: 89.75 <------- this is where I can't get it right, can anybody take a … | |
Hello, I'm very new to programming and I am working on a program to test to see if a random number is prime. This is what I have so far. I'm really stuggling with the logic of it. I understand what I have up to the while loop. I'm pretty … | |
Can anybody tell me how to get the bios number or hard disk number or any other number which is unique for every computer in vb6? | |
[B][I][I][U]Introduction:-[/U][/I][/I][/B] [COLOR="Red"] Hi guyz today I am going to writing a tutorial on dictionaries in Python....As per as getting comments from my readers I'll try to make this tutorial Short....[/COLOR] [B][I][U] Layout:-[/U][/I][/B] [COLOR="Green"] 1.What are dictionaries? 2.Why dictionaries? 3.How to declare/make dictionaries in Python? 4.What all you can do with … | |
Hi I know I have been going round the houses with this image resizing quite a bit...but still trying to do it. Some progress has been made. This is not using Imagick, as I have no idea about this library. So what the below code is now doing is picking … | |
Hi guys. I would just like to know if there is a way to integrate a progressbar that shows the progress of the process? I mean when process.Start is activated, that's when the progressbar starts to load until and stops only when process.HasExited. I hope someone can help. Thanks. | |
Hi - I have an xml document that has the following data. <?xml version="1.0" encoding="utf-8"?> <ValidateClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <addr1Valid>73 McKNIGHT RD</addr1Valid> <addr2Valid /> <cityValid>PITTSBURGH</cityValid> <stateValid>P</stateValid> <stateZip>S15237351</stateZip> </ValidateClass> I am trying to convert the xml data to comma delimited string. for eg: 73 McKNIGHTRD,null,PITTSBURGH,P,S15237351 I' m trying to accompolish this using StringWriter … | |
I am trying to use functions in the following program. The program is supposed to use a vector of structures to store a students first name, last name, and grades. Also, to get a average for each student and a class average. I do not think I am calling the … | |
I have nearly finished an assignment that calls for implementing a media library. I have pinpointed my current solution for the addItem method in the library class as a memory leak, but so far I am not certain how to fix it. The addItem method I have so far is … | |
hello all, i am new here, i saw your community and i think to start here :) i opend new site base on wordpress i got this prob : Warning: Cannot modify header information - headers already sent by (output started at /home/down/domains/4downyoutube.com/public_html/wp-content/plugins/youtubefreedown/stream.php:1) in /home/down/domains/4downyoutube.com/public_html/wp-content/plugins/youtubefreedown/curl.php on line 185 this is … | |
When you are generating report in your application then everytime you run it then it will automatically create temp files. To avoid these junk files you have to kill the TEMP files. Code Syntax: KILL "Directory\Temp filename" Sample (delete all temp files): KILL "D:\OMI FILES\Project\*.TMP" Sample (specific temp file): KILL … | |
I'm having a severe brain drain moment and can't figure out how to validate user input? I need to make sure that it is an int and it is greater than 2. And I need it to loop until the user meets those requirements. I tried a try-catch block but … | |
Hello, I am just starting and introductory course in Assembly. We are using 8086, and I am having trouble with the assignment. We are to start with the number 1, and then double that number 18 times, and print out each number in hex. For example, output should look like: … | |
Hey guys, I'm working on an entry level java programming assignment and I'm running into some trouble. I've attached 3 java files and will quote the problem below. If anyone can point me into the right direction I would really appreciate it. Thanks! I'm fairly sure the code needs to … | |
I am working on part five of the Farmers Market program and am ready to pull my hair out. Not getting much help from the instructor either. here is the code [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. … | |
Hi, How would i go about creating a menu like the one that this website has? [URL="http://oas.com.au"]http://oas.com.au[/URL] | |
hi friends I have run the one php script live server([URL="http://www.live.com/samplee.php"]www.live.com/samplee.php[/URL]) . this file access the staging server and run the staging server php file and display the result. But I need the live server address server name also display in the staging serevr php page result page. How can … | |
Hello, I am having trouble with a python 3.2.2 problem. Here is the problem, followed by the answer I have right now (I've put the example in green for clarification): Write a program that declares a different series of lists (lists should not have the same number of words), and … | |
php and mysql form Hi all, how I can add values in a table to a combo box in html .. eg: the user's table has the id 1,2,3,4 and that using a query, being able to move to a combo box, to make a selection of id?. Greetings and … | |
Hi guys. Im new to PHP by necessity really due to a friend of mine asking me a favour. I know vb.net so not completely new to the whole programming scene. But anyway, I have approx 5 drop down lists. Each item in each drop down has a value "option … ![]() | |
[CODE]#include<iostream.h> int main() { int num,j,c=0,limit,i,k; int*freq=new int[]; int*munam=new int[]; cout<<"How many times u want to enter the numbers\n"; cin>>k; cout<<"tell ur range in which u will enter\n"; cin>>limit; for( i=0; i<k; i++) { cout<<"Enter number\t"<<i+1; cin>>munam[i]; if(num>limit) { cout<<"invalid num"; return 0; } for( j=0; j<limit; j++) { freq[j]=0; … | |
Hi, How can I use preg_replace to determine if a string contains a word beginning with a pattern, and if it does, remove it? Basically I want to capture query strings from a search, but throw away search modifiers. For example, the search query string: site:daniweb.com query would just become … ![]() | |
I'm not sure how to describe this in the title, so it may be misleading. Basically, I want to change the image of a LOT of buttons. And when I say a lot, I mean 93 of them. So obviously, this approach: [CODE]btnSinglePlay.BackgroundImage = Image.FromFile(buttonN);[/CODE] would take too long, since … | |
[CODE]#include <iostream> #include <cstdlib> #include <math.h> #include <iomanip> using namespace std; const string FILLER = " "; int main() { int w1 = 20; int w2 = 20; int w3 = 20; int w4 = 16; //variable declarations string firstname,lastname; int marital_status; float gross_income; const float tax_rate_0 = 0.10; const … |
The End.