199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nccsbim071

Hi I have a web page where i need to use some javascript. If i write all the javascripts and jQuery javascripts in the aspx page it works perfect. But when i write all the javascripts in separate file called scripts.js and include scripts.js in the aspx page it doesn't …

Member Avatar for mitulmodi.rcc
0
168
Member Avatar for richardtreier

I have problems running a compiled program with win32print and win32ui (to print an image) on a different computer. what shall i do?

Member Avatar for snippsat
0
81
Member Avatar for abarlowa

ok I am trying to convert find cost per sq yd. in $$.$$ format. I have all the coding correct except it has more than two decimal places. Here is my code: [CODE]//delcare const const int number = 9; //declare variable double length; double width; double area; double cost; double …

Member Avatar for abarlowa
0
158
Member Avatar for koolsamjust4u

Hi Friends .. need a small help can anyone help me in showing how to call a stored procedure which returns a recordset .. yea i need to pass one parameter also for getting that required data .. thanks in advance.. Sameer

Member Avatar for SANJAY.DESHMUKH
0
2K
Member Avatar for c1979h

I need some guidance formulating a Do, For, While output using a Fibonacci sequence. After searching the foums I only saw posts that had just the sequence of numbers outputed like so: 01123453 after a set number was preset. I need the output to display like so: 0 +1 = …

Member Avatar for jonsca
0
125
Member Avatar for avirag

Hi.......... I want to clear the image inside the picturebox on button click...... Can anyone tell me how can i do this.............?:)

Member Avatar for renjujpanicker
0
7K
Member Avatar for Pari13

hello sir..... suppose i want to display list of item name at specific portion on webpage(.aspx page) but coding portion is done in aspx.cs file with use of for loop i get Item name into variable from database. now i want to use that varibale to dispaly Item name at …

Member Avatar for kvprajapati
0
5K
Member Avatar for abarlowa

I need help with the errors in my code. Here is my pseudocode along with my program code following: [B][U]This is my pseudocode:[/U][/B] Start Declare Variable int length int width int area Print (“Enter length of room in ft.: “), Input length Print (“Enter width of room in ft.: ”), …

Member Avatar for abarlowa
0
1K
Member Avatar for kananpatel

hi doing i try to import data from sql server to text file bust i have some probleam like:--- 2/15/2010 12:00:00 AM ===================================================== POSITION GAMENO START ENDDAY AMOUNT TOTALSALE ===================================================== [code=text] #1 223 92 92 $1 $0 #1 121 92 92 $1 $0 #2 222 115 115 $1 $0 #2 …

Member Avatar for kvprajapati
0
134
Member Avatar for higuain14

Hi I'm new to c++ programming. This is my first ever program, it calculates the average of numbers that the user input. The user can input up until 10 numbers. I get a segmentation fault for some reason. Any ideas? [CODE]#include<iostream> using namespace std; int main() { int numbers[10]; // …

Member Avatar for naresh.M
0
115
Member Avatar for xuexue

is there anything that can replace a butoon in php which acts like a button? because we all know that buttons in php act independently, meaning once button a is clicked, the functions of button b will be disregarded already right? because i have several buttons in the page and …

Member Avatar for xuexue
0
105
Member Avatar for casjackkwok2001

I'm working on my c++ assignment (bubble sort), but i 'm stuck on my code. Is there anybody know how to print out the array contents after [B][U]each pass [/U][/B]of the sort? Should I use a for loop or a function call to print out?? thanks int first_array[8] = {13, …

Member Avatar for vmanes
0
262
Member Avatar for AmigaCarolena

I do not have a clue here. I am floundering along but not getting anywhere. Any suggestions would be greatly appreciated. Thank you. /*This is a program that processes a loan for a car using appropriately named variables. It will use those variables in the input, calculation, and output of …

Member Avatar for gnarlyskim
0
337
Member Avatar for newcuser

I have gotten my program to the point that it allows me to enter the data I want to enter. However, I do not know how to get the program to loop back correctly and ask for salesperson number and stop the loop when I enter -1. Help![CODE] #include <stdio.h> …

Member Avatar for jonsca
0
203
Member Avatar for chriselda

deleting string... example: deleting... enter string: the quick brown fox and the lazy dog. enter string to delete: the([I]the first one[/I]) new string: quick brown fox and the lazy dog.

Member Avatar for Dave Sinkula
0
115
Member Avatar for MohitB

Hi, I am working on a project where i need to store data in App_Data, any one can help me to tell how can i do it.

Member Avatar for Sakshi_11
0
199
Member Avatar for klactose

Hello all, I have a program that creates an array of structs. It is consistently exhibiting 1 of 2 problems and I can't figure out exactly what is wrong, but the problems seem related to each other. Problem 1: For some reason the category member of the mediaItem struct fails …

Member Avatar for gerard4143
0
174
Member Avatar for ananthaninfo

Dear Friends, I am new to Visual basic 2005 as I have used VB6 till now. I wish to do a database application using Microsoft Access 2003 and Visual basic 2005. I am very happy, if any one could give the step by step instruction to connect Access, insert, delete, …

Member Avatar for ananthaninfo
0
116
Member Avatar for bheegi

Hello i am a beginner in java and this is my first project my project is about cinema which have 10 theaters and i need to provide set of films to each theater i try to do this but i am a bit confused and lost [CODE]import java.util.Arrays; import java.util.List; …

Member Avatar for kvass
0
113
Member Avatar for jmaddy10

Hello all! I am making a site for a club on campus and we need to show the presidents quotes on the site. He has some lengthy ones so I want to save space (can't tell him to KISS) so I'm using a little code I learned to do so. …

0
103
Member Avatar for corby

the only problem i have now is that when i enter the symbols to draw the border and fill for the rectangle, this is what is drawn: lets says witdh 10 and length 5, the border is % and the fill is @. %%%%%%%%%% %% %% %% %%%%%%%%%% The filling …

Member Avatar for EngSara
0
144
Member Avatar for gnarlyskim

As you can see I am new here. I found this site from googling a question about a getChoice() function , and I was able to learn how to implement the function in my project to fit my needs from the post. ([url]http://www.daniweb.com/forums/thread162456.html[/url]). Well anyways, I have more issues that …

Member Avatar for gnarlyskim
0
1K
Member Avatar for zhaviere

Hello, I am a new programmer. I am trying to copy the elements of this 20x3 array into a 1x60 or 60x1 array an[60]=A[20][3] one of my attempts is:[code] for (i=0;i<20;i++) { for(j=0;j<3;j++){ at1[i]=A[i][j]; at2[i]=A[i][j]; at3[i]=A[i][j];} } an[60]={at1,at2,at3};[/code]

Member Avatar for mrnutty
0
2K
Member Avatar for adrawat

Hi, Im trying 2 write the contents of a input file to an output file in reverse order using file I/O in C. Is there a more efficient way 2 do it? [CODE] int main() { FILE *fp1,*fp2; char ch,arr[100]; int i=0; if( (fp1 = fopen("input.txt","r")) == NULL ) { …

Member Avatar for adrawat
0
399
Member Avatar for corby

my compiler keeps saying that i have an operator error at lines 22 and 50. what did i do wrong??? plz help [CODE]#include <iostream> using namespace std; class Rectangle { public: Rectangle()/*rectangle constructor defaults the values for length, width, area, and perimeter to 1 and initializes five rectangle objects to …

Member Avatar for corby
0
115
Member Avatar for SuntechWebsites

Hello, I am looking for a few things... 1. How to put an upload field into a web page to that I can upload files to a directory on server. 2. I want to be able to choose different directories to upload it to (clients) 3. I would like to …

Member Avatar for SuntechWebsites
0
79
Member Avatar for Jiwe

Hello, today I got a new issue on the program im developing so.. the issue is that I want to change a file in this path [B]C:\Users\[USERNAME]\AppData\Roaming\[PROGRAM NAME].[/B] But the thing is when a user's computer has a different language then english this path changes to something like this [B]C:\[Users …

Member Avatar for Jiwe
0
145
Member Avatar for cassds

I just started a C++ class at a local tech school. It is a self taught course, and I have just learned how much "self taught" applies to this course. The instructors have no experience in programming and can not answer the simplist of questions!! The book I was asked …

Member Avatar for cassds
0
831
Member Avatar for instinctfx

I have this one specific pas file that i try to open, its just plain text in it, i can view it elsewhere (notepad, wordpad etc!) BUT [B]When i open it in d2007, she displays it as hex[/B] [CODE]756E697420494658 5F5574696C733B0D 0A0D0A696E746572 666163650D0A0D0A 7573657320537973 5574696C732C2043 6C61737365732C20 53796E634F626A73[/CODE] WTF!!! Any Ideas ??

Member Avatar for instinctfx
0
120
Member Avatar for drewpark88

I am trying to figure out the best way to configure my search bar. It will be searching my website for posts members have posted. I tried this but this does not work. Here is the PHP file that I use as the form action. Do you know how or …

Member Avatar for drewpark88
0
118
Member Avatar for Stefano Mtangoo

I work out a small project. I need to Get list of folders in each drive. Up to now I can get the drives but I have no Idea on how windows treats Drives. Does it treat them as super Directories (Super folders) that contain many sub-folders? If not How …

Member Avatar for Stefano Mtangoo
0
120
Member Avatar for Stefano Mtangoo

What are your thought on this? There are many framework there and my thought was CakePHP is rather popular. I'm I wrong? What do you think?

Member Avatar for Stefano Mtangoo
0
107
Member Avatar for james0192

Hi im writing a program and one of the things i need it to do is get today's date and display it at various times. creating the date using 'datetime' i can do the problem is passing the created date strings to different classes i currently have 2 classes one …

Member Avatar for woooee
0
2K
Member Avatar for MrYrm

First of all im new here so Hi all.. im also new to c/c++ have been a java php and actionscript developer for some time now and finally have time to learn something new so im gonna go for c++ im just tryna get familiar with everything but i ran …

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Kruptein

I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to …

Member Avatar for Stefano Mtangoo
0
276
Member Avatar for xylude

I need to replicate the encryption shown below: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end [/code] I am trying something like this to no avail: [code] $salt = 'edc93eaf81aa1d64368c35213f192bb4ea81d20d'; $password = $_POST['input']; $password = sha1($salt.$password); echo "password sha1 value: " . $password; [/code]

Member Avatar for ruby_rocks
0
551
Member Avatar for newcuser

Hello, I am attempting to rewrite a program in c. Here is what I have so far. Thanks in advance for assistance. [CODE]#include <stdio.h> void sales[ salesPerson ][ product ] += value; int main() { const int PEOPLE = 5, PRODUCTS = 6; double sales[ PEOPLE ][ PRODUCTS ] = …

Member Avatar for mitrmkar
0
183
Member Avatar for wwsoft

Hello , I a creating program in witch objects are stored in the namespace var in var.h. How do I make the var namespace available to more than one file without having redefinition errors ? [CODE] ### var.h ### namespace var { ... } ### main.cpp ### #include "var.h" //multiple …

Member Avatar for wwsoft
0
145
Member Avatar for dragontruong

I am unable to print out the error message when there is no input. I've tried different methods for it, but I can't get it to work. What am I missing? print should be: p2 invalid input but I get: p2 segmentation fault when I do this with an int …

Member Avatar for dragontruong
0
111
Member Avatar for mebob

i was trying to make a program that uses the chudnovsky algorithm to calculate pi with this code: [code] #include <cmath> #include <iostream> #include <cstdlib> using namespace std; float fac (float num) { float result=1; for (float i=1; i<=num; ++i) result=result*=i; return result; } int main() { double pi=0; float …

Member Avatar for vmanes
0
441
Member Avatar for iarkey

Ok well I'm making a console msn client. [CODE]#pragma comment(lib, "wsock32.lib ") #include <windows.h> #include <iostream> #include <stdio.h> #include <string.h> int main(){ char buf[12]; WSAData wsdata; WORD wsver=MAKEWORD(2, 0); int nret=WSAStartup(wsver, &wsdata); if(nret != 0){ std::cout<<"Startup failed, error code: "<<WSAGetLastError(); WSACleanup(); return -1; } std::cout<<"Init success\n"; SOCKET kSock=socket(AF_INET, SOCK_STREAM, 0); …

Member Avatar for iarkey
0
149
Member Avatar for bbxrider

you can see the page under development at [url]http://job1data.com:8098/admin.aspx[/url] at first i had no validationGroup and the validations for add row fields would always fire, so that was no good. so i'm trying to put them in a validation group. you can see from the sample code i put the …

Member Avatar for bbxrider
0
158
Member Avatar for wdow

I'm trying to write code for a very basic version of the game 24. This code will receive either two, three, or four integers and determine if there is any way that these numbers can add, subtract, multiply or divide to the number 24. Locations of parenthesis can change as …

Member Avatar for wdow
0
186
Member Avatar for Nerathas

Hello, Lets assume we have the amount 110,11 euro. The used money bills are 500, 200, 100, 50, 20 10, 5, 2 , 1, 0.50, 0.20, 0.10, 0.05, 0.01. So this amount would give on the console screen 1 x 100 1 x 10 1 x 0.10 1 x 0.01 …

Member Avatar for ddanbe
0
122
Member Avatar for daveoffy

I have been trying to get the day of the year into an int(0-365). I have tried the time.h library and did int tm_yday but it returned an incorrect number. I am using Linux. G++(gcc) compiler. Thanks for the help.

Member Avatar for daveoffy
0
191
Member Avatar for JHus00

It wont compile! I know something is probably wrong with my if condition but im unsure of what. [CODE]if (weight > 200) shipping_cost = 49.95; else if (weight >= 100 & < 200) shipping_cost = 39.95; else if (weight >= 50 & < 100) shipping_cost = 24.95; else if (weight …

Member Avatar for JHus00
0
114
Member Avatar for ceyesuma

Hello. I am building a XML reader class DOM. Does anyone have a link that has some code where the text from a JComboBox.selectedItem()("text") for example or any text is used to find a Node in a the DOM document and then work with that nodes siblings?

Member Avatar for ceyesuma
0
86
Member Avatar for cane23

i have a small problem deleting from the data base that i have created using a form. this is the error that i am getting on the webpage Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right …

Member Avatar for MrYrm
0
140
Member Avatar for exonwarrior

Hey all, I'm writing a program in C++ for a contest. The code executes no problem on my computer at school that I'm writing it on. I get all the correct answers. When I upload it however, it keeps on saying "runtime error (SIGSEGV)" Please Help!! here's the link to …

Member Avatar for Salem
0
169
Member Avatar for lolster

Hello there, I'm trying to understand this source code to block the packet send to the application I'm using right now. Basicly this source code is for making application that will crash the application that Im using atm. I have no basic C++ knowledge. I hope someone could explain this …

Member Avatar for lolster
0
248

The End.