199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HelpStudents

I am running into an issue trying to use an iterator to print. I am trying to print the widget name and widget type from a class and am getting an error on the iterator part. The rest of the code works fine but any comments on that are more …

Member Avatar for tajendra
0
114
Member Avatar for Johnrocks

Hello, I get this error when I try to run my code "Cross-thread operation not valid:Control 'dataGridView1'accesses from a thread other than the thread it was created on" File Name Form.cs I have method call FillDataGrid() [code] FillDataGrid(string msg) { string[] data = msg.split(';'); string Name = data[0]; string LastName …

Member Avatar for Momerath
0
259
Member Avatar for Ehtesham Siddiq

Hi, My application is in VS2008 coded in Vb.net.I have a datagridview which is populated from Database.I have a save button on the same form that has DatagridView. My requirement is i want that all the records that are populated in DatagridView should be saved in a certain table of …

Member Avatar for Ehtesham Siddiq
0
325
Member Avatar for rotten69

Hey everyone, I looked around if anyone has the same error. there are people who have had this error, but I couldn't really get to the point that what causes this error to occur. I thought the data types in my table are the reason and I changed them. But, …

Member Avatar for hericles
0
107
Member Avatar for ace3df

Am Super new to php so please be nice. :D Here is the code: [code=php] <form name="form" id="form"> <div align="center"> <select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)"> <option value="#" selected="selected">Episode List</option> <option value="episode001.php">Episode 01</option> <option value="episode002.php">Episode 02</option> <option value="episode003.php">Episode 03</option> <option value="episode004.php">Episode 04</option> <option value="episode005.php">Episode 05</option> <option value="episode006.php">Episode 06</option> <option value="episode007.php">Episode 07</option> <option …

Member Avatar for vibhaJ
0
202
Member Avatar for muthukswamy

Hello everyone. I am conducting an academic research on the use of web based IDE. It will be of great help if you can give your suggestions. I have setup a survey regarding this. Please spare few minutes to answer them. Feel free to pass this survey to your friends. …

Member Avatar for JoshuaBurleson
0
228
Member Avatar for DalekThay

I am having problems with understanding this code. The program should write all permutations of first N numbers. [CODE=c] #include <stdio.h> #include <iostream> using namespace std; void print(const int *v, const int size) { if (v != 0) { for (int i = 0; i < size; i++) { printf("%4d", …

Member Avatar for raptr_dflo
0
84
Member Avatar for RoqueyB

i am new to python and am working on a simple code for a project. I am to end up with and output that says: "Please enter your name: Bubba" I am to use [CODE]name = input("Please enter your name:")[/CODE] However, when I input the name "Bubba" the project says …

Member Avatar for RoqueyB
0
2K
Member Avatar for berwick53

I'm currently trying to split a string into a 2d array. currently I've split it into a 1d array of each line using: [CODE]string[] LinesFile = streamReader.ReadToEnd().Split('\n');[/CODE] And now I'd like to Split it further into a new variable with a 2d array. how would I go about doing this. …

Member Avatar for manugm_1987
0
143
Member Avatar for Steven_gerrard

Hey guys, I am posting here for the first time, so please be gentle with me :P. I have an assignment of storing a text file in two arrays (one contains both char and int, whereas the other contains just numbers. The text file looks something like this: Time 2 …

Member Avatar for raptr_dflo
0
162
Member Avatar for bytelaunch

Hey everyone, I've set up a dev environment on my Mac, and I'm noticing some strange things that I haven't seen before. When making a request to [url]http://localhost/test[/url], If I have a file in the site folder named [LIST] [*]test.jpg [*]test.html [*]test.php [*]test.xml [/LIST] then Apache will fetch the first …

Member Avatar for bytelaunch
0
129
Member Avatar for chiiqui

How to send the session data in one page to another? here's my code because I am going to bill out all of the orders and Name and ID of the current user logged int , the PHP code [CODE]<?php session_start(); include("Connection.php"); if (isset($_POST['submit'])) { $name = $_POST['customerName']; mysql_query("INSERT INTO …

Member Avatar for daryll1
0
3K
Member Avatar for saurabh_s

hi i was compiling a program in linux , the program had conio.h file which is generally used in turbo c in windows. now the program is not compiling and giving errors. so what is the substitute . as clrscr() cant work without this file.

Member Avatar for Duoas
0
541
Member Avatar for guccimane

Hi, I am trying to read an input text file. And read the last letter only and check if it is an '+' or '*'. Here is the code I have written so far, if anyone can help me, I would be very greatful. [CODE] while(input>>lastChar) //put file contents into …

Member Avatar for WaltP
0
103
Member Avatar for iAMyours

[CODE]// initial_project.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> using namespace std; void printmessage() { cout <<" ***WELCOME TO THE ALLOY INQUIRY PROGRAM!*** " <<endl; cout << endl; cout<< "Please Choose the Number of Your corresponding Choice\n \n (1) Aluminum Alloys \t \t (11) …

Member Avatar for raptr_dflo
0
180
Member Avatar for mools3

Hello there, i'm writing a program (pharmacy gestion), for my dad's pharmacy and i want to set a password when loging in to the program and have the ability to change it any time ... [B]BUT THE PROBLEM IS[/B] ... i thinkd to store the password in a text file …

Member Avatar for JoshuaBurleson
0
117
Member Avatar for Jared1337

I'm having trouble getting this program to work for roman numeral conversion. I hope it says that i have one error, which is C2110: cannot add two pointers. here's what i have so far... ANY help would be great, thanks a bunch! :) [CODE]#include <iostream> using namespace std; int main() …

Member Avatar for raptr_dflo
0
4K
Member Avatar for haanjae

hello all, i'm a beginner of c#. i need to develop a client server application. how am i suppose to code so that the server can get the ip address of one or more than one clients? Thanks.

Member Avatar for Momerath
0
183
Member Avatar for philipshoe

My code is suppose to take the digits i type in my raw_input and sum up the number example: if i type 123456789 then i will get 1+2+3+4+5+6+7+8+9 = 45 as an answer but it will not stop there it will continue adding until the sum reaches a single digit …

Member Avatar for TrustyTony
0
229
Member Avatar for jper

so im basically new at c++. i need to generate 20 entries randomly from 1-20, and each number must be unique. i was able to generate the number but i don't know how to make them unique. any suggestions?[CODE]#include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int …

Member Avatar for jper
0
500
Member Avatar for electricBunny

Hello, I'm new to mobile development and Java. My first project is a tower defence game. I'm using j2me. I figured out how to paint the sprites, made a cursor that moves around and turns green or red depending if you can put a tower there or not. Made a …

Member Avatar for electricBunny
0
177
Member Avatar for aspirewire

I want it to say "You are correct!" when the number they guess matches the random roll but it just keeps saying this when I type in 6 as my guess, how do I fix it? This is what I wrote in the main: [CODE] int num; int die; cout …

Member Avatar for WaltP
0
129
Member Avatar for plasticfood

i've made this little game but the image keeps on flickering. i've read about double buffering online, but i really don't know how to implement the code into my game. here's some of the source code from the constructor and paint method: [code] public Game(){ super("test"); setSize(495,429); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); try{ …

Member Avatar for NormR1
0
303
Member Avatar for behemothdave

Okay I am working on arrays in class this week and since it is an online course I don't have anyone to turn to. YAY me! Basically this is what I have been asked to do. [I]Create a class named TVShow.java. Data Fields can include a String containing the Name …

Member Avatar for behemothdave
0
249
Member Avatar for king_saqib

asalam to every one how can i attach my exe to a web browser when ever the brower open the exe starts working

Member Avatar for Drycola
0
113
Member Avatar for Djscorpion011

hello i really need code for modify button plss and some tips how make it work pls i really need an answer bfore tommorw :)

Member Avatar for Drycola
0
91
Member Avatar for kalz

Hi I have a class which I have packed as a jar file.When I run the jar on its own the application executes as expected.I have got a JFrame(Main) which has a button which when clicked, fires off the jar. But the JasperViewer doesnt launch at the end unless the …

Member Avatar for NormR1
0
288
Member Avatar for mullerfourie

Hi, I need to finish a assignment on operator overloading but this one piece of code doesnt seem to make sense.. in my int main() i have int main() { Element a, b(5), c(7), d; cout << (5+b) << endl; this is just part of it, I have already implemented …

Member Avatar for mullerfourie
0
215
Member Avatar for kunnu

Hello, I want to make a Nokia S40 Software for my personal use. But I don't know which is the best tool for making this software. I can't find any tutorial on this on Daniweb forum, please help me and suggest me simple Mobile Dev tool.

Member Avatar for Drycola
0
496
Member Avatar for shivya jain

hello, I want to link a text file in my userform. [B]Can i use linklabel for hyperlink?[/B] please help me........... thanks in advance.:confused:

Member Avatar for Unhnd_Exception
0
280
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 rch1231
0
188
Member Avatar for milil

Hello friends i am new on DaniWeb and new in Python... I have a few problems so i need help... I have a text document with a code from some web page, how can i extract some string between a two different strings in line and then that stings write …

Member Avatar for milil
0
194
Member Avatar for NathanOliver

Hey all, I was taking a look at my stringstream conversion function and I couldn't decide how I want to handle a bad conversions. I used an exception and then in main I would a use a try, catch block to get any exception. [code=c++] #include <sstream> #include <exception> class …

Member Avatar for mike_2000_17
0
163
Member Avatar for khushhappy

I want to show distinct Year in my currenttime database field which is actually timestamp by structure. I want to show years like :- 2013, 2012, 2011 and so on . but the problem , the result of my query gives me 10-09-2013 12:11:17 10-09-2012 12:11:14 10-09-2011 12:11:17 which i …

Member Avatar for diafol
0
130
Member Avatar for lynn21

This is the program that I have written, my problem is that the contents in the for loop does not execute. When I compile I get enter number of students to be registered And total cost of discount is R 0 QUESTION 2 PROGRAM #include <iostream>using namespace std; int main() …

Member Avatar for lynn21
0
116
Member Avatar for freshfitz

I can't find a tutorial anywhere on how to search a sql database using a textbox and a button in asp.net any help. I'm coding in C# Sql database has a customers table I want to display firstname and lastname by searching cust_no

Member Avatar for pradeep_skiet
0
458
Member Avatar for SoulReaper1680

Hey, when I run the following code: [CODE]for(double i = 3; i >= 0; i -= 0.2) { cout << i << " "; }[/CODE] I get the output "3 2.8 2.6 2.4 2.2 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2". For some reason, it doesn't output …

0
88
Member Avatar for hackit

i want to learn the complete working of pointer in c. i tried it many times but it is very difficult so please help me.

Member Avatar for cse.avinash
0
164
Member Avatar for Epicurus

I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src). header file [CODE=c++]#ifndef BULLETLIST2_H #define BULLETLIST2_H class BulletList2 { [...] } #endif // BULLETLIST2_H [/CODE] In …

Member Avatar for Epicurus
0
3K
Member Avatar for avinashb3

[CODE] public static void ServeAsPDF(System.Web.UI.Page webPage, Boolean download, String FileName) { try { string htmlString = GetHtmlForPage(webPage); webPage.Response.Buffer = true; webPage.Response.Clear(); webPage.Response.ContentType = "application/vnd.ms-word"; //application/octet-stream webPage.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8; webPage.Response.Charset = "UTF-8"; webPage.Response.AddHeader("Content-Disposition:", "attachment; filename="+ FileName +""); webPage.Response.AddHeader("cache-control", "must-revalidate"); webPage.Response.Write("<html xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns:m='http://schemas.microsoft.com/office/2004/12/omml' xmlns='http://www.w3.org/TR/REC-html40'>"); webPage.Response.Write("<head>"); webPage.Response.Write("<title>PF FUND</title>"); webPage.Response.Write("<META HTTP-EQUIV='Content-Type' CONTENT='text/html; …

Member Avatar for avinashb3
0
707
Member Avatar for eduard77

I know programming but I am pretty new in php. I am studying now some script and I cannot pass a config file. could anyone help me configuring a site. the root folder is in d:/situri/agptg and the server folder is in d:/wamp/www/agptg and server address is http/localhost/agptg. And here …

Member Avatar for ko ko
0
178
Member Avatar for de Source

Hi Guys, i am making an application which can take longitude and latitude as input from user and will locate the respective point on google map using default web browser i am able to open a browser through this [ICODE] private void button1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("http://www.gorissen.info/Pierre/maps/googleMapLocation.php"); }[/ICODE] this …

Member Avatar for Teme64
0
171
Member Avatar for arjen

help pls i need someone that can help me when i enter the date of birth using the [COLOR="Red"]datetimepicker[/COLOR] box it automatically compute the age and output in a textbox.text

Member Avatar for anaszaheerp
0
7K
Member Avatar for harsimran05

i want to add isEnabled() method to JTextField, i write a code [CODE]tRate=new JTextField(); if (tRate.isEnabled()){ JOptionPane.showMessageDialog(c,"press any key to get rate"); }[/CODE] but it is giving message just after compilation of program instead when tRate is enabled

Member Avatar for harsimran05
0
155
Member Avatar for rainbow9

I want to draw a editable TextBox on top of picture box and the user is allowed to enter text into this box.After entering text the text box should disappear and the text entered should be painted to the picture in the picture box.Please help me on this,I'am doing this …

Member Avatar for rainbow9
0
2K
Member Avatar for JoshuaBurleson

I'm trying to figure out how to deal with multiple matches in my address book, say the user has two people by the name of Bob; one is Bob Lastname and the other is Bob Namelast, how would you approach dealing with telling them to specify, and then allowing them …

Member Avatar for Gribouillis
0
232
Member Avatar for rimilbadal

i have a webpage form which have different no of textbox. i have to send this data to a sql database but i dont want to use the $_post or $_get command infact i don't want to send my data to other php page so i basically want a [B]php …

Member Avatar for diafol
0
910
Member Avatar for extemer

hello friends i am upto software for the school management system and i have completed student info form and class and subject form.now i am stuck in fee section i want to use head and subhead concept that is based on charts of acount.can you people clear me that thing …

Member Avatar for diafol
0
102
Member Avatar for Rhamises

[url]http://ouraubie.com[/url] try logging in my site using (username: user password: user). the script do not redirect. my code is: [CODE]header('Location: ../index.php');[/CODE] i tried using my "Location: ".URL."" but stil it doesn't work here.

Member Avatar for diafol
0
161
Member Avatar for hackit

I am given a assignment in college to make a project in java. i want to make program in java but my teachers advice to make a system program not application program. But i don't know anything about system programming in java so please guys suggest me topics and also …

Member Avatar for hackit
0
115

The End.