43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for zachattack05

Does anyone use it? Seems kind of scary to me the thought that I would allow a mysterious command to alter data in my tables. Is it better to write your own update strings and execute them or use the command builder? Does it matter? Edit: PS the new site …

Software Development sql
Member Avatar for finito
0
108
Member Avatar for luttinj

Hello, I am making a show quiz show applet in Java and I am now basically done it, all I need to finish it off and make my teacher happy is to find out how i would get the applet to show the user what their score is at when …

Software Development apple java
Member Avatar for BestJewSinceJC
0
160
Member Avatar for ShinyDean

I am currently using the Pil library for a project, however i keep running into the same problem which will not let me do anything at all. [CODE][/CODE] def bw_negative(filename): # Create the handle and then create a list of pixels. image = Image.open(filename) pixels = list(image.getdata()) print pixels[0] print …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for neosonic

Hi, I load many of the picturebox (I named them pic) with the index 0 to 10 (pic(0) to pic(10)) on top of my main (biggest) picturebox. My problem is, pic(1) will always be on top of pic(2). pic(6) will always be at the bottom of pic(5) and so on.... …

Software Development visual-basic
Member Avatar for neosonic
0
111
Member Avatar for leesho

a) INT b) my-name c) your_name d) $dollar e) stock Price f) _UnitPrice g) while h) 1$dollar i) switch j) whileYou k) ifYou l) if m) int n) int34 o) ab.3c p) ab_3c q) 4%6 r) fourTimesSix s) 4 * 6 t) apples3

Software Development c++
Member Avatar for techsheaven
0
94
Member Avatar for DaveTran

I would like to display the current value of a class on screen for debugging purposes. For example, if I am dealing with the this class [CODE] public class Foo { public bool isSexy; public Foo() { isSexy = false; } } [/CODE] and I wish to display the boolean …

Software Development display
Member Avatar for apegram
0
167
Member Avatar for ceyesuma

I have been trying to find how to set a property for a derby connection to have a prepared statement perform several INSERT queries. it was suggested that this may be possible. [QUOTE]Are you trying to execute multiple statements with a single sql string? If so, have you activated the …

Software Development java
Member Avatar for masijade
0
118
Member Avatar for reza.adinata

Hi all, I am trying to build a ui application with thread for tcp server. I managed to build the tcp server itself using console (giving a welcome message when I telnet it), but when I copy the exact source code in WPF , I can not telnet it. The …

Software Development asp.net client-server tcp-udp
Member Avatar for reza.adinata
0
337
Member Avatar for ku95

Im currently working on a Connect4 progrqam and I'm trying to convert a string into an integer. You will see that it is under the Connect4View. Its really frustrating as I'm struggling to find a way round this. Is there a possible solution to this and can someone please tell …

Software Development java java-swing
Member Avatar for ku95
0
162
Member Avatar for krishnisilva

hi, how can i call a method when a combo box values is selected in C#. please help me what is the event in the combo box that i have to use??????

Software Development
Member Avatar for Sodabread
0
98
Member Avatar for snippsat

Many of us like wxpython,so is always fun with a new tool.:) [url]http://wxformbuilder.org/[/url]

Software Development python
Member Avatar for joetraff
2
925
Member Avatar for BLKelsey

I have selected to do a hangman console game in my C++ course (9th week) in which I have a question about wait(). I want to make the game "appear" to be loading just to give it aesthetics but I'm not sure how to do it the way I want …

Software Development c++
Member Avatar for BLKelsey
0
107
Member Avatar for elizabeth mwash

hello to you all, i need some assistance in making the right decisions here. i have been requested to create a system that will do the following:- when a customer gives his order, it is not written on a paper, everything is on soft copy. the data clerks enter user …

Software Development
Member Avatar for finito
0
99
Member Avatar for rai32

Hello people, i am really sorry to post two new threads in such a short time, but i have a problem that's driving me nuts. I think i know where my program fails, but i don't know the reason why. Let me explain: I am making a chat program. I …

Software Development c client-server tcp-udp
Member Avatar for rai32
0
153
Member Avatar for Mitja Bonca

I would like to know how to programmatically call a mathod regarding on time. In my example I would like to call a method every hour. Can I use a Timer or is there something else?

Software Development
Member Avatar for mcriscolo
0
934
Member Avatar for Donnovan

can i change the value of an int with a pointer. e.q. int n = 20; int *size = n; can i change n by doing this *size++. thanx

Software Development c++
Member Avatar for sweetyk2
0
89
Member Avatar for pash101

I am writing a project to calculate the area and volume of 2d and 3d shapes. I have a class hierarchy with my abstract base class called 'shape'. I want to make a separate class to calculate a prism of a specified depth from any 2d shape, yet am unsure …

Software Development c++
Member Avatar for pash101
0
249
Member Avatar for SpyrosMet

hello forum I need help in making a function that randomly chooses between two numbers that I give through the parameters. Please give me a hint or something. Thanks in advance guys.

Software Development c
Member Avatar for Narue
0
533
Member Avatar for Lapixx

Hi, I'm trying to create a textgame in python, and after searching for a few topics about it I though I knew how to make it. Many textgames use a system like this: [CODE]def room_one(): #do stuff if something: room_two() def room_two(): #do stuff [/CODE] Most of the time the …

Software Development python
Member Avatar for ultimatebuster
0
168
Member Avatar for alabandit

I generate an array from the folders in a directory; which is placed in an array. i then compare it for changes in the currant folder.This way i can monitor for new files that are add to the system and trigger the script. but i am having problems comparing the …

Software Development python
Member Avatar for alabandit
0
124
Member Avatar for Cap'nKirk

Hi, I have a panel on a form and am displaying a picturebox on that panel. I have set the Panel Autoscroll to true. Even when I manually make the panel smaller than the picturebox, no scrollbars are shown, why is this? Here is the code I am using to …

Software Development
Member Avatar for Cap'nKirk
0
983
Member Avatar for the_preface

I'm writing a program which accepts the price of a tour. A tour is priced between 29.95 and 249.99. It's supposed to repeat until a valid price is entered... However, even when it is, the program continues to repeat. Here's what I have so far. [CODE] import java.util.Scanner; import java.util.InputMismatchException; …

Software Development java
Member Avatar for the_preface
0
126
Member Avatar for leesho

its a random number generator [CODE]#include <iostream.h> #include <stdlib.h> #include <time.h> #include <iomanip.h> using namespace std; int main () { const int MAX_RANGE = 100; int value; int random = rand( ); int num = ((random % 100) + 1); int quit; do { srand (time (NULL)); value = rand() …

Software Development c++
Member Avatar for WaltP
0
161
Member Avatar for ebay1989

Hey guys, I'm new to all this but basically I've been given the task to create a simple C# board game using the console screen. The game consists of a 36 square board and 2 players (player 1 & player 2). Both the players take it in turns to roll …

Software Development c# gaming
Member Avatar for phoenix911
0
5K
Member Avatar for lotrsimp12345

Here's the assignment: You are to create a single server (in either Java or C/C++) which can service both C/C++ and Java clients. The protocol of the server is as follows: 1. The client contacts the server. 2. The client performs a single send of a data packet containing the …

Software Development client-server data-structure java
Member Avatar for moutanna
0
1K
Member Avatar for ContactaCall

Hello. I'm currently developing an IVR system under Asterisk through the Asterisk Gateway Interface (AGI), connecting to a Mysql server using the Mysql C API. The server returns a ticket number that I have to say to the client, so I developed a TTS (Text To Speech) algorithm to say …

Member Avatar for saurabhjasuja
1
343
Member Avatar for noobuser

Hi, can anyone help me with this program. the program inputs a string and replace the first char with the second one. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 200 int main(void) { char myString[MAX]; char getCh; char setCh; int i = 0; printf("Please enter the string: "); gets(myString); …

Software Development c
Member Avatar for noobuser
0
175
Member Avatar for kiyu2keith

How do you terminate the program?? for example I input exit on the dialog box as it should terminate the program. I really don't have any idea on how to do it.

Software Development java
Member Avatar for kiyu2keith
0
78
Member Avatar for new2programming

Hi i am using Visual c++ with SDL I have been using a tutorial from lazy foo productions but when i go to build my solution my complier says: Cannot open include file: 'SDL.h': No such file or directory

Software Development c++
Member Avatar for new2programming
0
916
Member Avatar for bigsurya

I am getting a NullPointerException in the statement which I've hidden. Can some1 tell me why is it so ? [code] import java.io.*; class College { String branch,name = new String(); int avg_marks,rno; InputStreamReader in= new InputStreamReader(System.in); BufferedReader buf= new BufferedReader(in); String s=new String(); void read()throws IOException { System.out.println("Enter name"); …

Software Development java
Member Avatar for bigsurya
0
133
Member Avatar for ubi_ct83

Hello experts, actually i have a situation like this. i have a drop down menu value:{2,3,4,5,6}. there is a common operation need to be done if any number in menu list chosen.each of the number must have different number of layers. if user choose 2 means 2 layers,if 3 means …

Software Development java
Member Avatar for ubi_ct83
0
154
Member Avatar for NathanOliver

Hey All Yesterday I was writing a recursive form of a prime factorization program and I wasn't sure about the syntax I used. the function works as is but I'm curious if I am being redundant or if this is the proper way to code it. Here is what I …

Software Development c++
Member Avatar for NathanOliver
0
134
Member Avatar for speedy94519

Hey guys im having trouble writing this code for my function. I have the idea down and a way to solve the problem but im having trouble writing it in C code. Basically im writing a function that runs exactly like the function strcat from the string.h library but we …

Software Development c
Member Avatar for anonymous alias
0
361
Member Avatar for coolguy_003

Hi, I did the stack implementation using arrays and i would like to do it with function pointers but i have no idea. If anyone could help by illustration that would be great as function pointers is pretty difficult for me! Thanks in advance. coolguy

Software Development c
Member Avatar for anonymous alias
0
269
Member Avatar for ragedsparrow

HEy everyone. I've been workign on this for a few days now and it's due tomorrow, so I thought I would ask a developer community for any input. Here is what is supposed to be happening. The Server starts. The Client Starts. The user enters a table name into the …

Software Development client-server java sql
Member Avatar for ragedsparrow
0
162
Member Avatar for giodoli93

I know: -basic cout/cin -declaring single integers/strings -currently learning 'for' loops as you can see, my knowledge is extremely limited as of now, and i wish to have a few practice problems to have a go at. May i have some suggestions?

Software Development c++
Member Avatar for giodoli93
0
168
Member Avatar for yongj

I have a program where the cout "ing" a string misses the beginning letter of the string. I have made it so that there are 3 options to input/output the information. The "missing" letter in the string is ONLY evident in option 1; option 2 and option 3 does not …

Software Development c++
Member Avatar for yongj
0
225
Member Avatar for alex9292

hi im new to programing and im trying to make a program that would calculate the tax on a given price but that would accept the tax rate as either an integer or a double but i get this error [QUOTE]Index (zero based) must be greater than or equal to …

Software Development
Member Avatar for Ionelul
0
97
Member Avatar for basma.lm

hi, i have this code which do search in Table1 and use the result of search to search in another datatable Table2: [CODE] SqlCeConnection conne = new SqlCeConnection(); conne.ConnectionString = @" Data source= |DataDirectory|\Database1.sdf"; conne.Open(); SqlCeDataReader rrs; SqlCeCommand comd = new SqlCeCommand("select CodePersonne from Table1 where DateRP ='" + DateTime.Now.Date …

Software Development open-source
Member Avatar for basma.lm
0
93
Member Avatar for Hawkeye Python

I'm trying to create a python cards game (a Brazilian cards game). But when I try to print some values (the cards played) it returns the following error: [QUOTE]Traceback (most recent call last): File "<pyshell#16>", line 1, in <module> play() File "C:\Documents and Settings\Terminal\Desktop\Truco.py", line 71, in play print "You …

Software Development python
Member Avatar for Hawkeye Python
0
235
Member Avatar for Cap'nKirk

Hi, I have a dynamic picturebox created at run time that loads an image and I want this picturebox to be clickable and open a web page. Here is the code that creates the picturebox in the formload section:- [CODE]void MainFormLoad(object sender, EventArgs e) { PictureBox pb = new PictureBox(); …

Software Development
Member Avatar for Cap'nKirk
0
117
Member Avatar for manish.ranjan

if i want user to enter a single char in a variable...then how to restrict him/her from typing more than 1 character.....??

Software Development c++
Member Avatar for manish.ranjan
0
76
Member Avatar for jpl1993

so i'm almost done with my project. however, i'm still getting some errors when i run. you can find my code below. if you see any problems and know how to fix them, please, please, please let me know! class tennis: def __init__ (self, name, rank, tournamentsPlayed, country, racquetBrand): self.name …

Software Development python
Member Avatar for woooee
0
147
Member Avatar for basma.lm

hi, i work on windows application. i have the first form of the authentification ( with username and password) after that i have the principal form. in the load event of this principal form i put a code that shows another form. my problem is that i delete this code …

Software Development
Member Avatar for finito
0
108
Member Avatar for Sailor_Jerry

Can someone provide sample code on how to create and fill a DataTable with the table schema and data from a mySQL database? I found examples where you set up columns and other information programmatically. But i wanted to know if there a way to "sync" the schema in the …

Software Development
Member Avatar for Sailor_Jerry
0
179
Member Avatar for stabzagg

Hey guys, I am having some trouble getting my head around tkinter at the moment. I am new to programming and have been using python for about 2 months now. The problem I am having is with RadioButtons. I have a set of radio buttons numbered 1-9 and I can …

Software Development gui python tkinter
Member Avatar for stabzagg
0
309
Member Avatar for moni94

How can I make a stream appendable and readable at the same time? Because when I do this: [CODE]static FileStream fs = File.Open("keys.txt", FileMode.Append, FileAccess.ReadWrite, FileShare.None);[/CODE] I get the following error: "Append access can be requested only in write-only mode."

Software Development file-stream
Member Avatar for finito
0
958
Member Avatar for dbphydb

Hi, Please check the below code. [CODE] URL = "http://11.12.13.27:8080/cruisecontrol" from urllib2 import urlopen from HTMLParser import HTMLParser import re # Fetching links using HTMLParser def get_links(url): parser = MyHTMLParser() parser.feed(urlopen(url).read()) parser.close() return parser.links # Build url for Deploy page def get_deploy_url(): url = URL + "/buildresults/xxx_%s_nightly_build" % branch print …

Software Development python
Member Avatar for dbphydb
0
113
Member Avatar for Rhap

[CODE]//// point.h using namespace System::Drawing; class point { protected: int x; int y; Color col; public: point(); };[/CODE] [CODE]////point.cpp #include "stdafx.h" #include "point.h" point::point() { x = 0; y = 0; col = Color::Blue; }[/CODE] [CODE]///Error c:\...\point.h(10) : error C3265: cannot declare a managed 'col' in an unmanaged 'point' 1> …

Software Development c++
Member Avatar for jonsca
0
237
Member Avatar for painejake

I have this code: [CODE]Byte[] OriginalBytes; Byte[] EncryptedBytes; MD5 md5; md5 = new MD5CryptoServiceProvider(); OriginalBytes = UTF8Encoding.Default.GetBytes(OriginalPassword); EncryptedBytes = md5.ComputeHash(OriginalBytes); return BitConverter.ToString(EncryptedBytes); MessageBox.Show("MD5 Hash is: " + EncryptedBytes);[/CODE] However I get the error "A return keyword must not be followed by a object expression." I'm quite new to C# so …

Software Development encryption
Member Avatar for painejake
0
203

The End.