199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zifina

how to search if a file is present in the computer in c sharp?i need to find out if pdf reader is installed or not in a pc...please help..thank you

Member Avatar for zifina
0
1K
Member Avatar for zachattack05

How do you personally organize your methods, event handlers (kinda the same), properties etc... in your classes? I've been grouping things by type using regions and then alphabetizing them within the regions, but I was just wondering what other people do if there is a standard?

Member Avatar for zachattack05
0
138
Member Avatar for RenanLazarotto

Hello guys! I've followed this: [url]http://www.codeproject.com/KB/miscctrl/cutebutton.aspx#[/url] for creating my first custom control. But, I want something more visual. I want to use images as my button, with normal, hover and clicked states. But I don't know how to do it. can someone help me? Also I want to do it …

Member Avatar for RenanLazarotto
0
120
Member Avatar for minitauros

In the ZEND Reference Guide I saw this: [CODE]$select = $db->select()->from('posts')->order('date_created DESC');[/CODE] Now I'm wondering: what does that second arrow do? What does using more than one arrow when working with an object do? And can I use it all the times? For example [CODE]$myclass->function()->anotherfunction()->hello;[/CODE]?

Member Avatar for minitauros
0
477
Member Avatar for sunn shine

iv taken a list of bakery items from user in doubly linked list.. but remove func isnt working................ :(

Member Avatar for Taywin
0
297
Member Avatar for ayeshashahid

[CODE]//SOME BODY PLEASE WRITE THIS IN C++ LANGUAGE// //THANK YOU// # include<stdio.h> # include<conio.h> /*program to evaluate the given postfix expression*/ typedef struct { int a[100]; int top; } STACK; void push(STACK *s,int x) { if(s->top==99) printf("STACK OVERFLOW\n"); else s->a[++s->top]=x; } int pop(STACK *s) { int x; if(s->top<0) printf("STACK UNDERFLOW\n"); …

Member Avatar for ayeshashahid
0
196
Member Avatar for MrHG24

Hey everyone, I am having difficulty parsing digits in java. By that I mean that I am trying to make a program print out the number of bills the user recieves when he/she recieves change after there payment, (Cash register). Here is the code i've created to do this for …

Member Avatar for Taywin
0
210
Member Avatar for shandoosheri

hi how can i include a range of numbered files like file1.php,file2.php,file4.php i have tried this code but it didn't work [CODE]<?php foreach (range(0, 7) as $fileno) { include "files/file" + $fileno + ".php";}?>[/CODE]

Member Avatar for cwarn23
0
119
Member Avatar for lbgladson

I have an assignment for school...Write a program CurrencyCOnverter that asks the user to enter today's price of one dollar in euro. THen the program reads U.S. dollar values and converts each to euro values. I have the following code. It works great until I start putting the loops and …

Member Avatar for lbgladson
0
727
Member Avatar for tajendra

I am trying following code for changing css attributes with the help of javascript, But its not showing desired output. Here is the code (trying on Chrome Browser) :- [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> div { width:100px; height:100px; background:red; position:relative; animation:myfirst 5s; …

0
108
Member Avatar for TheComputerGuy

I'm having issues with the abstract class idea...I've attempted to use Eclipse, but this time the IDE is just messing it up. I've got the files uploaded. They should be attempted to be compiled as this 1. Container 2. Base Container 3. Height, and color exception 4. Round and square …

Member Avatar for TheComputerGuy
0
136
Member Avatar for Simon180

like the title says how to calculate 10 days from a date with delphi, am after simple way to get 10 days trial from current date of usage can anyone help thanks :)

Member Avatar for Simon180
0
147
Member Avatar for gedas

hi guys, i am trying to write a query that would basically display me pas 4 week, however if lets say today is Wednesday the pas for week would have to start from last Friday, none the less if i have to run the query on monday i would want …

Member Avatar for smantscheff
0
76
Member Avatar for saintrenz

i made a code to program a clock but there's a problem #1, its a bit messy when i view it in command prompt, the words i typed doesn't disappear so that i view the clock neatly.. also it blinks.. #2, how can i have it on marquee up and …

Member Avatar for saintrenz
0
123
Member Avatar for fernandodonster

How do we validate URL either with PHP/javascript? could u help me?for example, whether input text is in the format [URL="http://www.google.com/"]http://www.google.com[/URL] or not?

Member Avatar for prof php
0
610
Member Avatar for dr.4030

Hi, i wanna select some details from db and i wrote select query and i punted it in the while but, i wanna show the details in the columns instead of rows is there any body to help me ???? [CODE]$brush_price = 5; $counter = 10; echo "<table border=\"1\" align=\"center\">"; …

Member Avatar for broj1
0
60
Member Avatar for irock_4you

...Hello! Can Some One Please Help Me... I need help for my programming project...really need ASAP.,.tnx.,. [B]A. Control Structures (15 pts each) 2. Create a program that accepts a whole number which will dictate the layers of your Pascal’s triangle and displays the corresponding Pascal’s triangle. For example the user …

Member Avatar for IceFox16
0
297
Member Avatar for tapandesai007

I want to have one windows form with one progress bar on it to appear with the progress bar getting filled upto maximum to give some visual loading application type of effect. I have written some code to do this task, and it worked fine in one of my previous …

Member Avatar for tapandesai007
0
1K
Member Avatar for stereomatching

At first, I wrote something like this [code] template<typename T, size_t size> inline size_t const sizeof_array(T const [size]){return size;} [/code] but if failed, then I find a solution form the other place, like this. [code] template<typename T, size_t size> inline size_t const sizeof_array(T const (&)[size]){return size;} [/code] what is the …

Member Avatar for vijayan121
0
182
Member Avatar for volum

I want to make a linkpage where visitors can enter their webpage (title-url-description) and there are a few downloadable scripts around, but all I have found are for reciprocal linking. Does anybody have a simple php script for this purpose?

Member Avatar for volum
0
298
Member Avatar for anand01

my table design is [CODE] date income expenses 2011-08-5 1000 500 2011-09-6 7000 400 2011-10-7 2000 300 [/CODE] I have daily expenses and Income in the above table.I need to retrieve monthly(sum of daily) income and expenses for particular year. How should i write query for that . Pls help …

Member Avatar for anand01
0
569
Member Avatar for JamesPublic

Hi all, I'm trying to insert an array (which I've decoded from a JSON object) into a mysql database (for the first time!) and keep coming back with a "Could not connect - Column count doesn't match value count at row 1" error message. My server and database connections are …

Member Avatar for JamesPublic
0
314
Member Avatar for davy_yg

[CODE] <?php echo $header; ?> <script type="text/javascript" src="view/javascript/ckeditor.js"></script> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <div id="content"> <div class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } ?> </div> <?php if ($error_warning) { ?> <div class="warning"><?php echo $error_warning; ?></div> <?php } ?> …

Member Avatar for davy_yg
0
263
Member Avatar for techlawsam

Getting some errors at least this time I know why..seems like I am not declaring the methods inside my classes I tried rearranging the method and then inserting all my code into a class but Im still getting all those errors in the bottom. If you guys can tell me …

Member Avatar for arunkumars
0
559
Member Avatar for sathya88

how to free memory of byte array... code[CODE]for(int j=0;j<count;j++){ buffer=null; //[COLOR="Red"]free the memory by set as a null but not working????? shows array index out of bound exception for the second time[/COLOR] buffer= new byte[size]; //byte mem alloc temp2=di.read(buffer,total,size);// read buffer total=total+temp2; fo=null; ds=null; fo= new FileOutputStream(flist[j]); ds= new DataOutputStream(fo); …

Member Avatar for masijade
0
8K
Member Avatar for inthespotlite82

Hey guys- I'm trying to create a BASH script that will connect to a remote server, via SSH that requires a password, and then search a log file for the word error, store the output in a file, and then return the file to the local machine. I would like …

Member Avatar for masijade
0
756
Member Avatar for vasim jada

How to find index in vb.net when connected with ms-access2007:) Th'x in advance.

Member Avatar for vasim jada
0
98
Member Avatar for gahhon

i just met up a problem with array. [CODE] int[] num = new int[10]; [/CODE] this is everytime we declare and intialization one, how about to declare and intializate with unkown size?

Member Avatar for cwarn23
0
122
Member Avatar for ulab

Hi All, we are currently analyzing our client data warehouse and we found few of the dimension tables are having only two columns (such as ID and DECSRIPTION)...while we are trying to remodel it ..is it a good idea to have the columns in the FACT table itself... there are …

Member Avatar for ulab
0
58
Member Avatar for johnhuge

hello, i have tired to sort my link list but unfortunately i can't seem to get it working. The problem i having with the sort function is that it will sort the function when i enter a member to the list at the end except for the head. Also when …

Member Avatar for johnhuge
0
125
Member Avatar for Vermouth

I need to write a poker game that simulates a penalty kick in a soccer match. Three cards are drawn randomly. [CODE] void DrawCard(int& numberOne, int& numberTwo, int& numberThree) { RandNoGen(); //init random number generator numberOne = rand() % 13 + 1; //random number in [1, 13] do { numberTwo …

Member Avatar for WaltP
0
394
Member Avatar for Srcee

I want to create menu structure from a database. For example, the database is the following: id name parent 1 x null 2 y 1 3 z null 4 a 3 5 b 2 The result should be: -x --y ---b -z --a Now, the algorithm I have on mind …

Member Avatar for buddylee17
0
232
Member Avatar for wonderlhily

[code=php] <?php include("C:/xampp/htdocs/mySalon/connect_database.php");?> <?php if(isset ($_POST ['username']) && $_POST ['password']){ $username = $_POST['username']; $password=$_POST['password']; $query=mysql_query("SELECT * FROM admin WHERE username='$username'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while ($row=mysql_fetch_assoc($query)) { $dbusername=$row['username']; $dbpassword=$row['password']; } //check to see if they match! if ($username==$dbusername&& md5 ($password)==$dbpassword) { header ('Location: http://localhost/mySalon/admin/admin_page.php'); $_SESSION['username'] = $username; } else echo …

Member Avatar for cwarn23
0
142
Member Avatar for Mohsin AITS

ASP.NET Pls any one check this Javascript <%@ Control Language="C#" AutoEventWireup="true" CodeFile="tt_suppliegroupsetup.ascx.cs" Inherits="UserControls_tt_suppliegroupsetup" %>(here it indicates Too many characters in character literal) <script type="text/javascript"> function SetContextKey() { $find('<%=AutoCompleteExtender1.ClientID>%').set_contextKey($get("<%=ddlCities.ClientID %>").value); }

Member Avatar for Mohsin AITS
0
260
Member Avatar for plasticfood

i'm trying to write a game that show a background and a player on screen simultaneously using 2 different classes. here are the relevant parts of the program, or at least i think [code]public WorkingTitle2(){ super("Working Title"); setSize(550,429); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); loadPictures(); loadSounds(); pp = new PaintP(); pb = new PaintB(); add(pb); …

Member Avatar for plasticfood
0
144
Member Avatar for plang007

First of all, this is not schoolwork but rather me trying to read about c++ and through program examples and see if I can write my own. So help is much appreciated if you could as I am a new learner. This program that I am writing is supposed to …

Member Avatar for plang007
0
537
Member Avatar for vijaykvr

Hi friends i want to need load the images from the imageres.dll in windows..in vb.net 2008 please help me.. i waiting for your reply....

Member Avatar for NetJunkie
0
71
Member Avatar for ebanbury

Hi This is just a straight-forward dynamic field, but I still can't seem to get it to stay sticky....I have tried all kinds of things, including [CODE]if (!empty($add_area)) echo......[/CODE] or equivalent fieldnames... Any help would be really appreciated...many thanks [CODE] <label for="add_area"></label> <select name="add_area" id="add_area"> <?php do { ?> <option …

Member Avatar for ebanbury
0
142
Member Avatar for jacksantho

I have a stored procedure. This proc returns some data that needs to be put in an excel format. Is it possible to create a excel file to have the result of a select statement from the database? please help me out. Thanks

Member Avatar for buddylee17
0
321
Member Avatar for VB 2012

Hi guys sory for being ooff grade 9 was a little ruf and yet gr 10 its still the same anyway>For my question I ve got a picture box and in some size modes we all know you cant see everything so aamm then i fought about scrolling and i …

Member Avatar for NetJunkie
0
170
Member Avatar for NICEGUY123

Okay here is my question, I have an text file file which looks like this BASKETBALL John Jacob 58% 15points FOOTBALL Jason Smith 24% 1touchdown BASKETBALL Mark Ramos 23% 25points BASEBALL Isaac David 10% 2 homeruns FOOTBALL David Sarlo 10% 0 touchdowns I am attempting to take a list like …

Member Avatar for Taywin
0
193
Member Avatar for Ryden
Member Avatar for Evenbit

It is my understanding that with over 115,000 signed-up, it constitutes the largest MOOC [ [url]http://en.wikipedia.org/wiki/Massive_open_online_course[/url] ] ever. Certainly an historical experiment with possible future changes in delivery of University-level education: [url]http://www.reddit.com/r/aiclass/comments/kp1wb/amazing_we_can_probably_offer_a_masters_degree_of/[/url] I've decided to take the Basic track so that I only take the quizzes, but get to miss …

Member Avatar for cwarn23
0
244
Member Avatar for sirlink99

I have an array of cards. It looks like this [CODE] String cards[][] = {{"Spade", "Heart", "Club", "Diamond"}, {"1","2","3","4","5","6","7","8","9","10","J","Q","K"}}; [/CODE] how would I get the suit and the "rank" of the card. I have tried [CODE] System.out.println (cards[1][5] + " of " + cards [1]); [/CODE] but that gave me …

Member Avatar for Taywin
0
224
Member Avatar for lollqt

Im currently trying to make a deal or no deal with 26 unique amounts. Here ive added the loopings to try and make all the values unique, but when i debug the program, it seems to be stuck on the first loop but doesnt return any errors... any help please? …

Member Avatar for Reverend Jim
0
392
Member Avatar for askylitcity

[CODE]import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; public class WebHelper { public static String getWebContents(String url) { BufferedReader br = null; String result = null; try { URL toFetch = new URL(url); br = new BufferedReader(new InputStreamReader(toFetch.openStream())); StringBuilder ret = new StringBuilder(); String line = br.readLine(); while …

Member Avatar for Taywin
0
146
Member Avatar for davehe

Hi, I am a beginner for Python. There is one problem I encounter with a coin flip program which there are "None" involved with the print out. Any help will be appreciated. [CODE] import random def flip(): cflip = random.randrange(2) if cflip == 0: print("Heads") else: print("Tails") def main (): …

Member Avatar for davehe
0
95
Member Avatar for rcmango

Hello, I've created something, its quite large, however I decided to write it without using oop, now I believe I see why I should just use oop. Okay, so the problem is with my bool values specifically: [CODE]button_pickup2 = false; button_pickup1 = true;[/CODE] For some reason when the ReflexAgent function …

Member Avatar for gerard4143
0
318
Member Avatar for DaveyMoyes

Hi everyone, looking for some advice please. I had a mkdir working great on a shared hosting account I had, I have since moved from a shared hosting account to a virtual dedicated server, now the mkdir is not working as previous. Before i moved server is was using a …

Member Avatar for cwarn23
0
288
Member Avatar for monty486

Hi there i have a txt file containing these variables anil just_go_with_it 5 betty the_dark_knight 3 anil source_code 3 carrie just_go_with_it -3 anil paranormal_activity -5 doug the_dark_knight 5 betty shawshank_redemption 5 carrie source_code 1 betty paranormal_activity 5 carrie shawshank_redemption 5 doug shawshank_redemption 3 what im trying to do is to …

Member Avatar for monty486
0
88

The End.