199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for asdftrew

I'm having trouble printing out what I want. If I put my printing statements inside the Calculate method, it does print out what I expect. However, I want to do it in a separate method. Can anyone tell me what I did wrong? Also, can anyone point out to me …

Member Avatar for JamesCherrill
0
143
Member Avatar for bornwith

I am trying to catch the System.InvalidCastException error. If I put a number into the calculator the program runs ok. If the calculate button is pressed with nothing in the text boxes I get the casting error Conversion from string "" to type 'Decimal' is not valid. I understand why …

Member Avatar for bornwith
0
169
Member Avatar for Esofts

Am developing an application with c#. I want to know how to insert data set values into the database

Member Avatar for Esofts
0
496
Member Avatar for rajesh1158

I have to design a database where one requirement says "For each project, for each user, for each skill, store the marks gained". Initially, i had a table where each skill was a column(proj_id, user_id, skill1, skill2, ......., skill_N) I felt this was a bad design because the number of …

Member Avatar for hfx642
0
196
Member Avatar for Virangya

how to automatically redirect to a fullscreen page? i googled it but everything ifound don't work for me.. don't know why. all of those codes just open a popup with half a page width and height. And i need it compelety like when u click F11. no any other detail. …

Member Avatar for Virangya
0
251
Member Avatar for himanjim

Can anybody tell me the diff between keywords and identifiers? Cin and cout in C++ are keywords or identifiers?

Member Avatar for Ancient Dragon
0
160
Member Avatar for hackit

i want to make a program that contains two main classes and they call each other. [CODE]class Main1 { public static void main(String arg[]) { for(int i=0;i<5;i++) System.out.println(i); Main2 m1=new Main2(); } } class Main2 { public static void main(String arg[]) { static int j=0; for(int i=0;i<5;i++) System.out.println(i); if(j==3) break; …

Member Avatar for hackit
0
183
Member Avatar for hackit

Hii guys.... i am a new programmer of java. i want to implement a problem using CALL BY REFERENCE as i have done in C. please help me to do this.

Member Avatar for JamesCherrill
0
190
Member Avatar for Dani

A thread was started ([url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/363816[/url]) inquiring about creating an objective-C forum. I am open to this as long as it is indeed a unique language with unique characteristics (and not a subset of C or C++, for example). However, my main hesitation is that creating a forum is, often times, …

Member Avatar for jbennet
0
466
Member Avatar for shivya jain

Hello Experts, How can i save the optionbutton and checkbox value in sql database? please send the query: dim cmd as new sqlcommand("insert into [tablename] values(........)",c.con) please help me :)

Member Avatar for adam_k
0
108
Member Avatar for thepales

I have a simple php script that starts sessions. On every page, I include : if(isset($_SESSION['sessionname'])){ //The rest of the page } else { die("Not logged in"); } I always include the session start and always regenerate the session id after <?php. The code works fine withevery browser except for …

Member Avatar for fenixZ
0
294
Member Avatar for fenixZ

Hi guys, I am experienced in PHP or at least until today I was thinking so. I am not sure what is it all about exactly. In my opinion the following code should not echo anything BUT IT DOES. [CODE] $cache = 'all'; if($cache == 0) { echo 'Execute something'; …

Member Avatar for fenixZ
0
130
Member Avatar for Zippyvinman

I need to make the integer "order" save to a text file or database (All I need it to do is to count how many times you win & save it there). Every time the game starts up, I want it to read it, & every time the game is …

Member Avatar for JamesCherrill
0
134
Member Avatar for kalz

Hi I am using jasper reports to generate pdf reports from product data.I am storing the pdf file into a database column (blob) using FileInputStream.I have got a desktop application which retrieves the tables from the db.What would be the best way to retrieve and view the pdf file in …

Member Avatar for Aviras
0
148
Member Avatar for shandoosheri

Hi i have a directory containg about 300 files with different extensions like : .txt, .php, .html,etc.. and i have tried this code but it displays a files list instead of only thier extentions [CODE]string[] filePaths = Directory.GetFiles(@"c:\tmp]");[/CODE] so what i need to do is to display all the files …

Member Avatar for shandoosheri
0
246
Member Avatar for cent91

0 down vote favorite share [fb] share [tw] share [in] i am working on a tiny tiny app that just uploads a file to the ftp server, i have reviewed my code but am quite unable to locate the problem, here is the code, [CODE=C]#include "stdafx.h" using namespace System; #include …

Member Avatar for Moschops
0
2K
Member Avatar for WhYuLoOkIn

Having trouble with a simple database command I keep getting the error invalid column name and I cant seem to figure it out. Please help me figure out some possible problems Thanks. [CODE=VB] Dim ConnString As String ConnString = "Data Source=.\SQLEXPRESS;AttachDbFilename= C:\inetpub\wwwroot\KiKoGraphics\App_Data\aspnetdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" Dim sqlConn As New SqlConnection(ConnString) …

Member Avatar for jasminvictoria
0
342
Member Avatar for Naveed_786

When i pass the parameter and run the report it works fine as i close the form it closes the form is there any way so that i should be able to close the crystal report viewer and pass the parameter again and should be able to view report again. …

Member Avatar for Naveed_786
0
107
Member Avatar for mishphar

I have a csv file in drive C: when I am going to display in datagridview but the 1st line is not display in gatagridview, My csv file content data is as follows "^NSEI",5040.00,"9/2/2011","6:00am",+39.00,0.00,0.00,0.00,0 "RCOM.NS",84.70,"9/2/2011","6:29am",+5.15,81.90,85.65,79.70,13378691 "RELIANCE.NS",805.45,"9/2/2011","6:29am",+22.85,796.70,813.70,789.45,7791545 "DLF.NS",207.85,"9/2/2011","6:28am",+11.10,194.25,209.90,191.05,10297314 "UNITECH.NS",26.85,"9/2/2011","6:30am",-0.75,27.80,28.45,26.70,44035656 "HANUNG.NS",101.10,"9/2/2011","6:29am",-0.50,102.35,104.80,100.60,326326 "LITL.NS",16.75,"9/2/2011","6:29am",-0.30,17.00,17.50,16.35,9415675 "INDIABULL.NS",149.95,"9/2/2011","6:28am",-4.00,155.00,157.00,148.50,677258 My code is below: [CODE]Dim csvFileFolder As String = …

Member Avatar for Phasma
0
597
Member Avatar for GrinShady

Hi Guys. I'm still a php newbie. In our class, we have just discussed creating PHP functions. As expected, we were given some exercises. Unfortunately I was not able to make my self-made function. There were actually two files, namely; functions.php and max_of_3.php the 'functions.php' is where the function is …

Member Avatar for GrinShady
0
127
Member Avatar for susees

[CODE]#include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> int main() { char org[50],r[50],m[50],a; int i,j,c=0,length=0,h=0,g=0,z; char token [3] [20] = { "void", "main", "int"}; printf("\nenter a line:"); gets(org); for(i=0;org[i]!='\0';i++) { length++; } for(h=0;h<3;h++) { for(g=0;g<length;g++) { z=strcmp(org[g],token [h]); if(z==0) printf("Keyword:%s\n\n",m); else printf("NO_Keyword:%s\n\n",m); } } printf("\n"); system("pause"); return 0; }[/CODE] it is showin this warning....[Warning] …

Member Avatar for raptr_dflo
0
1K
Member Avatar for guccimane

Hello, basically I want to read an input .txt file, and check to see if '+' or '*' is at the beginning or end of the file. The file can have a space at the beginning, and that should be ok. This is the code that I think should work, …

Member Avatar for vijayan121
0
281
Member Avatar for Pankaj18

Hi, Need some help with an problem that bugging me.. I have to open a .doc file at the client side when the user clicks a button. Opening is not a problem.. I am able to do it using the following code which is executed when the user clicks on …

Member Avatar for LaxLoafer
0
1K
Member Avatar for starkk

In chain hashing how can the order of deleting a node in double linked list be O(1) it should first check for the slot which is of O(1)and then it should check for the element to be to be removed in the linked list pointed by that slot which is …

Member Avatar for raptr_dflo
0
106
Member Avatar for zxcvbnm,.

Okay, so I have tried to write a program that would generate the rule of 110. quoted from wikipedia: The Rule 110 cellular automaton (often simply Rule 110) is an elementary cellular automaton with the following rule table: current pattern 111 110 101 100 011 010 001 000 new state …

Member Avatar for raptr_dflo
0
582
Member Avatar for Micko

Hello, I'm learning Python. It is my first interpreted language. I have some experience with C and C++. I must admit that it's very hard for me to accept a concept of interpreted language. For example I write code in C++, compile it, link it and I have .exe file …

Member Avatar for darkside2205
0
327
Member Avatar for scrivomcdivo

Hey folks. I currently have a large JSON file made up of entries similar to the below. The file contains information relating to photographs:- [CODE]{ "SourceFile": "C:/Users/Me/Desktop/Photos/5294030805_9497032cd7_o.jpg", "ExifToolVersion": 8.63, "FileName": "5294030805_9497032cd7_o.jpg", "Directory": "C:/Users/Me/Desktop/Photos", "FileSize": "1094 kB", "FileModifyDate": "2011:09:09 22:40:39+01:00", "FilePermissions": "rw-rw-rw-", "FileType": "JPEG", "MIMEType": "image/jpeg", "JFIFVersion": 1.01, "ExifByteOrder": "Big-endian (Motorola, …

Member Avatar for Momerath
0
273
Member Avatar for SCass2010

Hi everyone, I was wondering if anyone could help me - at the minute I have a c++ program that renames a file and then attempts to move it too a new folder using linux commands and passing them to the 'system()' function. It renames the files no problem - …

Member Avatar for SCass2010
0
214
Member Avatar for NerdyChick27

I'm writing a simple cryptography program that uses ISAAC, and I've run into a wall. I am planning on XORing each of my input bytes with 1 random byte each that gets returned from the ISAAC PRNG. This is basically what I'm trying to do [CODE]while(input character != EOF){ read …

Member Avatar for Narue
0
379
Member Avatar for nasgaillean

Ok, I've been trying to research this, but have had no real luck for my level of understanding. I've been programming C++ for a while and have decided to learn DB programming (just because I want to). Anyhoo, I am unable to figure this one out: I have a simple …

Member Avatar for raptr_dflo
0
209
Member Avatar for now how abt tht

I have the following code for shell sort (recursive) given in the question where t[ ] is an array to be sorted, n=no of elements initially. h is any large no initially,say h>n. [CODE]void shell_rec(int t[],int n,int h) { int aux,i; if(h<=0) return; if(n>h) { shell_rec(t,n-h,h); if(t[n]<t[n-h]) { aux=t[n]; i=n; …

Member Avatar for Adak
0
508
Member Avatar for mrbungle

As the title says- I'm not sure which appdata folder to use- Should I use CommonApplicationData, The directory that serves as a common repository for application-specific data that is used by all users. Or LocalApplicationData, The directory that serves as a common repository for application-specific data that is used by …

Member Avatar for mrbungle
0
123
Member Avatar for yo123

i m having trouble in constructing a edge detector by using the sobel kernels and expected results are the vertical, horizontal and gradient edge image. Sobel kernels : [-1 0 1 hx = -2 0 2 and -1 0 1] [-1 -2 -1 hy = 0 0 0 1 2 …

Member Avatar for imagecraze
0
785
Member Avatar for philipshoe

I got my code to check for how many digits that i type in my raw input [CODE]num = int(raw_input("Enter, ")) import math digits = int(math.log10(num))+1 print digits [/CODE] example 1587898 then it prints 7 digits I need my code to calculate the digits i type in my raw input …

Member Avatar for TrustyTony
0
181
Member Avatar for jh3lps

Hi all, I'm having problems writing to a file, and can't figure out what's happening. Basically I have a program which tracks movement over several timeunits (each timeunit takes several timesteps). At each timeunit I write the results to a .txt file. However my program keeps crashing on the last …

Member Avatar for raptr_dflo
0
784
Member Avatar for SolImages

Sorry I"m a bit of a newbie but I'm trying to set up a form on my website and when I click the submit form I get an error that reads: [COLOR="Red"]Warning: mail() [function.mail]: SMTP server response: 554 The message was rejected because it contains prohibited virus or spam content …

Member Avatar for fenixZ
0
271
Member Avatar for Johnny666

Im trying to make a game. Theres a player and he shoots bullets, and i was told whats wrong is it is making a shallow copy instead of a deep copy even though i researched this i cannot completely understand it. This is my attempt however i know it is …

Member Avatar for raptr_dflo
0
185
Member Avatar for logan_231_2009

good evening guys. I have a problem with my -simple- application. I have 2 forms (Form1 - Form2), i create an object in Form1 (Person type) and i want to get the values of data members when i focused to the Form2 and i press getPerson button. But how can …

Member Avatar for raptr_dflo
0
113
Member Avatar for TheNNS

I have a 2D array with generated doubles. I need to write this array to a CSV file so that I can open it in Excel. Is there a method or function in C++ that allows for this to be done? I could do it manually, but it would take …

Member Avatar for TheNNS
0
3K
Member Avatar for emmstarr82

I know there are several related threads, but a lot are more advanced than what I'm trying to do. I swear, I've looked at ALL of them, on many different forums. I'm in a 2nd year Java class in college, professor is not the best...I've read the book, Googled for …

Member Avatar for emmstarr82
0
3K
Member Avatar for starkk

can any one tell me what is the advantage of using double linked list over single linked list in chain hashing during deletion and searching of the node???

Member Avatar for tajendra
0
150
Member Avatar for pinkygirl

This is my code to hash [CODE]class hashing { private static $algo='$2a'; private static $cost='$10'; public static function unique_salt() { return substr(sha1(mt_rand()),0,22); } function hash($password) { return crypt($password,self::$algo.self::$cost.'$'.self::unique_salt()); } public static function check_password($hash,$password) { $full_salt=substr($hash,0,29); $new_hash=crypt($password,$full_salt); return ($hash==$new_hash); } }[/CODE] This is my login page [CODE]require("hashing.php"); $password=hashing::hash($_POST['txtPassword']); $checkPassword=mysql_query("SELECT * from …

Member Avatar for diafol
0
289
Member Avatar for mshdpotato

I'm completely new to PHP and I'm using dreamweaver. I'll be displaying a list of names but I want its background to stretch as long as the list of names. Something like the middle portion of this site - [url]http://library-online.org.uk[/url] I can't really describe it well and I don't know …

Member Avatar for diafol
0
128
Member Avatar for yousafc#

Hello In My Visual C# 2008.Its References has not Direct show in .Net Reference . Tell Me how I can Install Direct show library in c sharp.net

Member Avatar for yousafc#
0
116
Member Avatar for Lek Plepi

Hello i have created a form that has a combobox.the combobox displays the products.how can i add a selected product into a listview?????

Member Avatar for Lek Plepi
0
175
Member Avatar for uamahmood

I have found this code for using control array in VB.net, but this only works when I place text boxes on form, whereas in my case within tab control i have created group boxes and within group boxes there are a number of text boxes which i have used for …

Member Avatar for Reverend Jim
0
361
Member Avatar for catalin4

Hello!I'm new in this business(c learning ),for a month or so.I'm trying to learn C and so far i think i'm doing well.I have a friend who's helping me and giving me tips...the last time i meat with him he gave me a task:i have a garage with 3 floors(1,2 …

Member Avatar for Narue
0
135
Member Avatar for Matth963

[CODE]import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Calendar; import java.util.GregorianCalendar; public class CheckIn{ Date today; void getArrivalDate() { DateFormat df = new SimpleDateFormat("dd/MM/yyyy"); try { System.out.print("Enter Date in dd/mm/yyyy format: "); String d = Keyboard.readString(); today = df.parse(d); df.format(today); } catch (ParseException e) { e.printStackTrace(); } } void …

Member Avatar for NormR1
0
136
Member Avatar for zygimantelis

I scripting chating program in python... And i'm on chating program scripting auth with mysql. But no know how to script authentication on python-mysql. How to script chat auth program for chat with python-mysql. -- Sorry with English language.

Member Avatar for zygimantelis
0
215
Member Avatar for ameen_al

Guys, I’m trying to integrate libssh2 libraries(windows version libssh2-1.2.5) with Dev-C++( v4.9.9.2). The OS is Windows XP SP3. I’m facing the following error when I compile the test file ssh2_exec.c (built in example) file. Compiler Output: --------------------- [Linker error] undefined reference to `libssh2_session_block_directions' [Linker error] undefined reference to `select@20' [Linker …

Member Avatar for rubberman
0
1K

The End.