199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for guitarguy889

Hello Daniweb! :) I am brand new to this site, and wish I didn't need the help but I do! So let's give it a go shall we? I have a program I have been working on for about two weeks now, and I feel like it should not be …

Member Avatar for WaltP
0
191
Member Avatar for umer jaan

Hello dear i want to Identify filled rectangles in picture given picture in vb .net. Please help me in this matter. please

Member Avatar for umer jaan
0
104
Member Avatar for JoshuaBurleson

I'm trying to use cx_Freeze and everything everything seems like it should work fine, however I'm getting an import error for import tkinter [CODE]Traceback #... from tkinter import __fix #... import_tkinter ImportError: DLL load failed: The specified module could not be found.[/CODE] This only happens when I take the the …

Member Avatar for JoshuaBurleson
0
354
Member Avatar for jshenn

Second post on this project ... I am working on a bowling scoring system for a non-profit. They would like to be able to enter up to 9 games worth of scores into a form and have the shot results and game scores captured in a database. I have accomplished …

Member Avatar for jshenn
0
2K
Member Avatar for rcowboy

Hello all, I'm getting an error in the following code, and I can't figure out why exactly. Error is as follows: no match for 'operator>>' in 'scoresIn >> scoresArray' this is at line 28 on the code below. I'm trying to bring in some data from a text file into …

Member Avatar for rcowboy
0
191
Member Avatar for davy_yg

[CODE] <td>Kategori</td> <td><select name="kategori"> <option value=0 selected>- kategori -</option> <? $resultCOMBO = mysql_query("SELECT nama_kategori FROM kategori") or die(mysql_error()); while($dataCOMBO = mysql_fetch_array($resultCOMBO)){ echo "<option value= $dataCOMBO['nama_kategori']>$dataCOMBO['nama_kategori']</option>";}?> </select></td> [/CODE] Hey, I am trying to create a combo box but receive this error when I run it: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, …

Member Avatar for cwarn23
0
189
Member Avatar for ShadyTyrant

I am trying to install sql server 2005 express edition from the visual studio 2008 CD. This is the error I get. [CODE] [04/19/11,00:56:13] Microsoft Visual Studio 2008 Professional Edition - ENU: [2] CMSIDirectory::SetDirectory - Invalid argument ***EndOfSession***[04/19/11,00:56:13] Microsoft Visual Studio 2008 Professional Edition - ENU: [2] CMSIDirectory::SetDirectory - Invalid …

Member Avatar for ShadyTyrant
0
364
Member Avatar for rotten69

Hey everyone, I have been looking for video tutorials on SWING class and pretty much of GUI side in Java .. I found tutorials on Oracle site but they require lots and lots of reading.. if anyone knows a good site that has videos on GUI, please share it.. Time …

Member Avatar for ceyezumma
0
433
Member Avatar for dancks

A lot of problems here. I was to write a program that sorts an array. I had problems overwriting data in an array so I thought I could store the sorted array in another array. Basically it looks for the smallest value, stores it in the first spot, then finds …

Member Avatar for dancks
0
3K
Member Avatar for Fattman

Hi All, I have noticed that there is another thread about this matter, but could not quite get my head around it. Basically I have to create an application which is a quiz. According to the users score it will then determine what level of skill they have. I know …

Member Avatar for codeorder
0
370
Member Avatar for manugm_1987

Hello everyone, Is it to possible to validate cells of datagridview using regular expression? Also i am loading datagridview using combo box i.e table names are provided in the combo box depending on the selection corresponding tables data will be loaded on to the grid view. And all the tables …

Member Avatar for manugm_1987
0
145
Member Avatar for Zssffssz

Well when I run my program the bar at the top says C:\programing\C++\Test\Test.exe (<<just an example) How do I change this? And how do I make the console window look more XPish (I heard it was called luna). Answer the title one first please. I wnt this too be all …

Member Avatar for NathanOliver
0
445
Member Avatar for Tom_Weston

So example.txt contains this; [B]The Man Walked Into The Forest[/B] What I would like is for it to show, what line the word "Walked" is on. [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string line; string word = "Walked"; ifstream myfile ("example.txt"); if …

Member Avatar for Tom_Weston
0
88
Member Avatar for Wilha

im trying to write a code that i can input a,b,c and the code will run it in the quadratic formula and give me the answer but i keep getting a error problem import math from math import sqrt print print ("Welcome to the Quadratic Program") print ("--------------------------------") print a=input("Enter …

Member Avatar for Wilha
0
373
Member Avatar for jshenn

I am working on a bowling scoring system for a non-profit. They would like to be able to enter up to 9 games worth of scores into a form and have the shot results and game scores captured in a database. I have accomplished the scoring part with an html …

Member Avatar for jshenn
0
163
Member Avatar for r4rozen

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace DiceSimulator { public partial class Form1 : Form { StandardDie die1, die2, die3, die4, die5; Random rand; public Form1() { InitializeComponent(); rand = new Random(); } /// <summary> /// This is the Event …

Member Avatar for cale.macdonald
0
238
Member Avatar for ben1996123

How do I create a message box that lets me display a variable? I also need to know how to display variables with text. Here is the code in the switch(message) statement that I have at the moment that doesn't work. [CODE] case WM_CREATE: CreateWindow( TEXT("button"), TEXT("Click"), WS_VISIBLE | WS_CHILD …

Member Avatar for Frederick2
0
597
Member Avatar for Sudo Bash

Hi all, I am trying to create a class to serve as a customized cout class. Right now I have made some test code to see if I can do it. Right now I am trying to make it function just like cout, but later I will have it do …

Member Avatar for Sudo Bash
0
2K
Member Avatar for born316

hii I am trying to develop a simple image browser.this is wat i have done so far [CODE]from Tkinter import * top=Tk() def search(): global pic global photo pic=PhotoImage(file='images\\pic.gif') photo=w.create_image(250,200,image=pic) w=Canvas(top,height=500,width=500,bg="white") entry=Entry(top,bg="white") nxt=Button(top,text="next",activebackground="blue",command=next) prev=Button(top,text="prev",activebackground="blue") b=Button(top,text="search",activebackground="blue",command=search) b.pack() entry.pack() nxt.pack(side=RIGHT) prev.pack(side=LEFT) w.pack() top.mainloop() [/CODE] as u can see it will display a …

Member Avatar for Netcode
0
774
Member Avatar for StephNicolaou

Hi all, Trying to simply call method, (below) from another class and return the value found by the scanner. Please see below: [code] public int getInt(String prompt) { System.out.print(prompt + "a"); //int result = in.nextInt(); if (in.hasNextInt()) { x = in.nextInt(); y = in.nextInt(); sum = x+y; System.out.print("sum" + sum); …

Member Avatar for StephNicolaou
0
150
Member Avatar for drugoholic

I've just started my .Net courses and this is the exercise they made us do at the lab, pretty simple stuff. It worked well at the lab but now that I'm home to retest it, the [B]if condition[/B] inside [B]foreach[/B] is not working properly. The system is bypassing it automatically …

Member Avatar for cocoll
0
131
Member Avatar for maybnxtseasn

[url]www.learncpp.com/cpp-tutorial/103-aggregation[/url] In the example given they state a department can have a teacher and if a department goes out of scope/deconstructs it doesnt destroy the teacher that was in that department. for example in real life departments at different school change names,get added,and get deleted all the time. Just because …

Member Avatar for maybnxtseasn
0
118
Member Avatar for trantran

Why is this possible (in VS2009): [CODE] struct outer{ struct inner1{ void f(){ inner2 in2; in2.g(); /* no previous forward declaraction*/ } }; struct inner2{ void g(){} } }; [/CODE] ... but not this (???) [CODE] struct outer{ /* This line required to remove error: struct inner2; */ struct inner1{ …

Member Avatar for trantran
0
181
Member Avatar for Laxman2809

So I have been tasked with creating a program that is essentially a planner for a person. It has to have the abilities to add events of 3 types(Party, Dance Class,Club Meeting). It then has to be able to display everything enter, and be able to display the things that …

Member Avatar for stultuske
0
121
Member Avatar for nav010
Member Avatar for imawesome511
0
16K
Member Avatar for mihirpatel12

i m using following query for inserting data into my database... everything is ok but whenever i restart my form there is no data in my tables :( do i need to use commit statement ?? if yes then how ? [CODE] Private Sub Button1_insert_Click(ByVal sender As System.Object, ByVal e …

Member Avatar for Netcode
0
200
Member Avatar for -==Zero==-

Hello Everyone iam making a search file that retrieve data from database by letters i got this code [CODE]SELECT `name` FROM users WHERE `name` LIKE 'A%'[/CODE] it show the data that begin with letter (( A )) Ok my main page now contain this letter a b c d e …

Member Avatar for -==Zero==-
0
153
Member Avatar for DellrocK

I'm creating a link sharing website and I want the user that registers to upload an avatar and use that avatar throughout the website. I got so far that the user can register but can't find a way for him/her to have an avatar. Here I have the signup.php (for …

Member Avatar for Stefano Mtangoo
0
168
Member Avatar for Peter Hon 123

In the following code, there exist items="${message}". I know it is EL. But I cannot find out where "${message}" is came from . Please help. Thanks. [CODE]<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ taglib prefix="spring" uri="/spring" %> <%@ taglib prefix="z" uri="/WEB-INF/tag.tld" %> <%@ page language="java" contentType="text/html; …

Member Avatar for peter_budo
0
150
Member Avatar for Neversleepin

Hi all, Here is what i found with google to Find and Replace word in Java: [CODE] public class ReplaceAll { public static void main(String[] args) { String str="We want replace replace word from this string"; str=str.replaceAll("replace", "Done"); System.out.println(str); } }[/CODE] It works well but how to do the same …

Member Avatar for stultuske
0
1K
Member Avatar for 2k9-it

hello friend i want to change arabic or farsi alphabet convert into unicode so plzz give hints

Member Avatar for stultuske
0
79
Member Avatar for AQWst

I am new to GUI Java programming and I am attempting to find the best way of creating a frame to contain a series of menus. I am first adding logic to have the date and time appear in the frame, but the way I am doing it they are …

Member Avatar for stultuske
0
421
Member Avatar for drugoholic

Hello, I'm trying to edit the style of a normal html table in Joomla/K2 that outputs the author, title of the article and date. The problem is (I thought joomla does this automatically) is that the header of the table keeps repeating on every new record. [URL="http://i.imgur.com/sopAi.jpg"]Screenshot[/URL] I realized that …

Member Avatar for drugoholic
0
435
Member Avatar for anu07

The output I expected was: [ICODE]alpha beta[/ICODE] I used the following code: [CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); char choice[2][5]={"alpha","beta"}; cout<<choice[0]<<endl; cout<<choice[1]; getch(); }[/CODE] But this is what comes: [ICODE]alphabeta beta[/ICODE] Can anyone tell me what I did wrong? Thank you. P.S.:I know I am not using standard c++, but …

Member Avatar for anu07
0
177
Member Avatar for zifina

i have a trackbar bound to a text box.how can i change value of the trackbar to its maximum value if text box value exceed the max limit for trackbar.is there any setting in properties of trackbar? its very urgent..please help..thanks in advance.

Member Avatar for zifina
0
96
Member Avatar for Dersev

Hello I have a small problem with ListSelectionListener. I can not copy dataList.getSelectedValue().toString(); to global String variable text. How can I do it ? This is inside of if statement and that is the problem. Anyone knows how to solve it ? [CODE] ListSelectionListener lListener = new ListSelectionListener() { public …

Member Avatar for mKorbel
0
322
Member Avatar for iamnot

[CODE]#include<stdio.h> #include<conio.h> #include<string.h> struct node {struct node * left,*right; int freq; char c; }; typedef struct node node; int front=1; node * q[256]; char * code[128]={0},array[1024]; node * new (int freq,char c,node * a ,node * b) { node * n=(node *)malloc(sizeof(node )); if(freq) {n->c=c; n->freq=freq;} else {n->left=a;n->right=b; n->freq=a->freq+b->freq; } …

Member Avatar for gerard4143
0
191
Member Avatar for ceyesuma

Hello all. In my Apache derby db I set up Decimal data types like this: [code] admin_pay_rate DECIMAL(5,2), [/code] I use JFormattedTextFields to filter decimal usage in text fields concerning money Like admin pay rate would be 150.00: this is good. In the JFormattedTextField it will allow 1,000.00 but the …

Member Avatar for mKorbel
0
209
Member Avatar for s0bean

[CODE] <script type="text/javascript"> var divs = ["div0", "div1", "div2", "div3",]; //var divs13 = ["div1", "div3"]; function visiblox(arrDiv, hs) { var disp = (hs) ? "none" : "block"; for(var x = 0; x < arrDiv.length; x++) { document.getElementById(arrDiv[x]).style.display = disp; } } function chk(what, item) { if(item) { visiblox(what, false); } …

Member Avatar for Taywin
0
130
Member Avatar for aFg3

Hi, I am writing my output using printf(...) procedure. Sometimes I would like to use bold font.like this [CODE]interface(.... turn bold on :-) .....) printf("something in bold\n"); interface(.... turn bold off :-) ....) printf("something not in bold\n"); Is any way to do this?[/CODE]

Member Avatar for cfajohnson
0
5K
Member Avatar for glut

Here's my error. "[B]System.NotSupportedException[/B]" I have some problems with the StreamReader class. I have a textbox, and with the textbox, the text is the files location. I have tried with a pattern('@'), and with using the double slash character, and NOTHING has worked. Here is my function [CODE] static string …

Member Avatar for Mitja Bonca
0
175
Member Avatar for rotten69

hey everyone, I'm trying to get my head around this Question but it is not making that much sense .. Each receipt is issued from a receipt book whose number is encoded in the first three digits of the ReceiptNo field in the PURCHASE table. For example, the receipt numbered …

Member Avatar for hfx642
0
182
Member Avatar for manugm_1987

Hello everyone, Please someone help me out from this problem. I have an datagridview which is bound to an datasource which contains two tables CompDetails and Orders. Now when i click on button and if texbox.text=1 data will be displayed fine, if i click the button for second time the …

Member Avatar for Mitja Bonca
0
134
Member Avatar for mehmedean

hi, I use an image button to post a form. Let's say the button is on A.php and form target is B.php. when clicked, B.php comes but with extra arguments in the url. As far as I understand they are the coordinates of the point I clicked on the button …

Member Avatar for mehmedean
0
390
Member Avatar for zaxon1987

Okay so basically I'm studying Introductory programming using the 'BlueJ' Java program on Mac. I'm trying to create a 'Dynamic Billboard' program that asks a user to enter a five letter word using the letters; ' S, P, A, R, E', then displays it in white on a black screen …

Member Avatar for JamesCherrill
0
222
Member Avatar for vedro-compota

hi there) guys, plesae tell me - what should i change in this code to see message in a console window (i also need define the OS) = [CODE]#include <stdio.h> #if defined(_WIN32) || defined (_WIN64) #include <windows.h> #define WINDOWSS 1; #endif int main() { char* mtext = " Please specify …

Member Avatar for vedro-compota
0
1K
Member Avatar for Y DIY

I have a question about fnmatch function. Can fnmatch take a list return from a function for the pattern? Consider the following code. [CODE] import os import sys import time import fnmatch import shutil from logalert import log def copyLiveToPrompt(): #This function will copy all of the appropriate Voice Prompt …

Member Avatar for Y DIY
0
71
Member Avatar for kitschkath

So I've been figuring this out for an hour now and I can't seem to find the problem is so i have this code: [CODE]$QUERYsubject="select * from tbltablestudent where S_ID='".$myusername."'"; $subject=mysql_query($QUERYsubject) or die(mysql_error()); $QUERYgr1="Select * from ".$subject[Subject].", tbltablestudent where ".$subject[Subject].".S_ID=tbltablestudent.S_ID and tbltablestudent.S_ID='".$myusername."' and Grading_period='1st_Grading'"; $gr1=mysql_query($QUERYgr1) or die(mysql_error());[/CODE] and I am …

Member Avatar for kitschkath
0
150
Member Avatar for davy_yg

product_edit.php [CODE] <?php $result = mysql_query("SELECT * FROM produk AS p, kategori AS k WHERE id_produk='".$_REQUEST['id']. "', p.kategori_id = k.kategori_id") or die(mysql_error()); $data = mysql_fetch_array($result); // cari syntax sql yang pas //$result_kat = mysql_query("SELECT * FROM kategori WHERE id_produk=".$_REQUEST['id']) or die(mysql_error()); //$data_kat = mysql_fetch_array($result); ?> <form method = "POST" enctype="multipart/formdata" …

Member Avatar for davy_yg
0
128
Member Avatar for Alkis90

So my program task is to load a text file that contains for example: black | white And then i open one another text that contain a lot of words, and if for example it will find the word [B]black[/B], it will replace it with [B]white[/B]. This code below do …

Member Avatar for Alkis90
0
261

The End.