132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Derek_4

I am trying to add an item to a game that will "float" a player into the correct room. The code below is where the boat is added to a room and the the boolean newBoat is set to true: Item boat = new Item(" A boat to help you …

Software Development java
Member Avatar for JamesCherrill
0
136
Member Avatar for NicAx64

Just use the SetTimer function after you Create the window , and just handle the WM_TIMER message inside the message loop. That's it !

Software Development c++
Member Avatar for irum.nageen.3
0
6K
Member Avatar for Necrozze

Hi, I need to make a program that can count and solve basic math problems (addition, subtraction) with natural integers using strings. I'm not aloved to use parseInt so thats basicly where my world started to fall apart... Would realy appreciate if someone could help me with this. The code …

Software Development java
Member Avatar for Necrozze
0
359
Member Avatar for JOSheaIV

So I have finally completed a project I have been working on for awhile, it's rather large and needs to be used in another project. With that I have decided I want to create a DLL out of the code (well a class library) ... plus I wanted to learn …

Software Development assembly
Member Avatar for Ketsuekiame
0
385
Member Avatar for meja

You are given a task to write a computer program for a Coffee Shop. Following is the table containing the list of product that you sell. Please be informed that all sales must include Sales Tax of 5%. For example if the customer orders one coffee with ice and creamer …

Software Development c++
Member Avatar for Ketsuekiame
0
230
Member Avatar for tony75

Hi I would like my python script take screenshot of my desktop every 15 mints and saving in my home dir in pic folder.but I get error? import os import sys import time import ImageGrab environ=os.environ img = ImageGrab.grab() FILES_DIR = 'pic' SAVE_PATH = os.path.join(environ['HOMEDRIVE'], environ['HOMEPATH']) LOGFILE_NAME = 'test.png' LOGFILE_PATH …

Software Development python
Member Avatar for tony75
0
4K
Member Avatar for josberty

Car passing at bridge tollbooth should pay 500. Mostly they do but sometimes a car goes by without paying. Model this tollbooth with class called toolbooth, the two data items are of tye integer total number of cars,and a type of of double total amount collected. A constructor initialize both …

Software Development c++ oop
Member Avatar for josberty
0
186
Member Avatar for Shari_1

I'm not sure whether my title is clear enough, a bit hard for me to explain. Basically, I have this card abstract class. I also have a CreditCard subclass. In my CardSystem, I have different methods. One of them is chargeCard. What it does is simple putting some cash on …

Software Development java
Member Avatar for JamesCherrill
0
193
Member Avatar for castajiz_2

I combined mouse events o move my drawn rectangle object. Everything was fine i could move it and when i released the mouse button it stopped moving and settled down. However after rotating that object and then trying to move it around I just could not perform the action again. …

Software Development image
Member Avatar for castajiz_2
0
270
Member Avatar for venkates.99

Hi, Im trying to download zip files from Artifactory, I have used webclient, it is working fine from my system which is well connected to internet. but when try from some lab network(intranet), its not wokring fine. some times it gets stopped in the middle. So what is the best …

Software Development asp.net file-system
Member Avatar for Ketsuekiame
0
335
Member Avatar for gurusingh

hi friends, I'm developing a desktop application in java. But i want to make this application in such a way so that this install on other PCs. But I don't know the procedure. Please help me with yours valuable experience. Thank You in advance.

Software Development java
Member Avatar for raza.8590988
0
222
Member Avatar for John Dover

Hey everyone, at the moment I am creating an application which will read in peoples highscores from an external text document, now at the moment I'm struggling to try and get each line from the text file and put it into an array element. If your unsure what I'm on …

Software Development vb.net
Member Avatar for Deep Modi
0
206
Member Avatar for satti

In sql server we use schema but iwant to know that how we get data from a specific column by selecting its column name. there is a combo box that contain column names , now i want that when we select column name in combo it show the data of …

Software Development vb.net
0
147
Member Avatar for SirDK

Hi Guys, Which language would be best for building utility applications for windows?(Tune-Up,Advanced System Care,CCleaner etc.) I'm inspired by the visual display of those programs.I'm currently learning VB.NET and I've beginners knowledge in C++ but I find it too difficult. Note : I'm a professional web designer.

Software Development c++ java vb.net
Member Avatar for Banfa
0
305
Member Avatar for H_beginner

Can any one tell me what I am doing wrong. I am sorting a single linked list. void ll::sort() { for(int i=0;i<size-1;i++) {node *cptr = fptr; for(int j= 0;j<size-1;j++) { if((cptr->no) > (cptr->nxt->no)) { if(cptr == fptr) { node *c2ptr = cptr->nxt; cptr->nxt=c2ptr->nxt; c2ptr->nxt=cptr; fptr = c2ptr; } else { …

Software Development c++ linked-list seo
Member Avatar for richieking
0
314
Member Avatar for Slavi

Hello everyone! I've read a lot of articles on DaniWeb and I've decided to join your community! I have a university project to make a bank account system, which consists of at least 10 account classes, and 3 of them inherit from at least 2 other. The system has 1 …

Software Development c++
Member Avatar for Slavi
0
1K
Member Avatar for sheerwoodjohn.caday

i search a lot of reference in web, but still im not satisfied to solve this problem, i used datetimepicker in vb.net to retrieve from database. i am using BETWEEN statement to search the specific date and its data. here is my code to search the data with specific date, …

Software Development mysql vb.net
Member Avatar for pritaeas
0
670
Member Avatar for SMYussef

Dear all, I am trying to write a code that would take in an array of numbers(salaries) and then calculating the mean and standard deviance. The number of salaries is first asked from the user, therefore the number of elements in the array is not predefined. I have written the …

Software Development java
Member Avatar for SMYussef
0
1K
Member Avatar for M.Waqas Aslam

Hello ! I have a remote control aricraft toy. I want to control it from my pc. I do not know where to start. Is there anyone who did this before or did any project dealing with hardware programming ? Regards

Software Development
Member Avatar for JOSheaIV
0
142
Member Avatar for sushilsth

Private Sub Form16_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim sqlquery As String = "SELECT SUM(price) AS totalprice FROM expenses" Dim sqlcommand As New OleDbCommand With sqlcommand .CommandText = sqlquery .Connection = conn .ExecuteNonQuery() End With Label2.Text= 'totalprice that is SUM(price) End Sub i want to display sum(price) in …

Software Development vb.net
Member Avatar for xerohomicide
0
150
Member Avatar for Learner010

i've 9 button(i've set "" to button text) there and all buttons have almost same code as button1 has and here is the code :- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If (exitgame = 0) Then If (Button1.Text = "") Then Label2.Text = "Active …

Software Development vb.net
Member Avatar for Learner010
0
124
Member Avatar for MrNoobieCoder

I am an amateur python coder and i was wondering if it is possible to put a timer into my times table game and if possible where i could put it. Here's my code for my game help would be appreciated , thanks :) import random import time print ("Hello …

Software Development python
Member Avatar for woooee
0
307
Member Avatar for supernova122

Using Visual Studio 2008 and generating .net 2.0 framework with VB.net for a web application. I encountered a very strange problem currently. After I build a solution and click a link in a web page, I got an error message as following. The same thing happened when I tried to …

Software Development vb.net visual-studio
Member Avatar for supernova122
0
287
Member Avatar for ddanbe

Squaring a number is a rather common task in programming, but if you want to square an integer. Easy you think! Int MySquare = AnInt *.AnInt; This will happily overflow without giving any exception if AnInt is bigger than 46340, unless you put your code in a checked block. Now …

Software Development
Member Avatar for kplcjl
0
397
Member Avatar for a8med

I nead too run a python program from another code. I have the main code wher you can chose what too do and if you chose 1 you will run a surten python program and then return and if you chose 2 you will run some other program and then …

Software Development python
Member Avatar for a8med
0
126
Member Avatar for bugmenot

Please find and correct the error in my c++ program. "Linker Error: Undefined symbol _main in module c0.ASM" The program is for transfering content of one file to another. #include<fstream.h> #include<iostream.h> #include<conio.h> class student { int rollno; char name[20]; int tm; public: void input(); void transfer(); void output(); } obj; …

Software Development c++
Member Avatar for NathanOliver
0
2K
Member Avatar for clife

What is the meaning of INSTALL_ROOT_DIR ?= ${INSTALL_DIR}/${TARGET_ROOT_DIR} I googled for ?= in shell script , but none showed up. Thanks

Software Development shell-scripting
Member Avatar for TKSS
0
133
Member Avatar for D33wakar

Similar to echoserver, but this one handles multiple clients by forking the process.

Software Development c client-server socket-programming unix
0
349
Member Avatar for Vigenere

It's ok when I use uppercase letters, but I get random stuff when I use lower case letters #include <iostream> #include <conio.h> using namespace std; string sentence, key; int todo, koef, keylenth, senlenth; int main() { cout<<"Do not use spaces!"<<endl<<endl; cout<<endl<<endl<<"Key: "; //enter the key cin>>key; keylenth = key.length(); char …

Software Development c++
Member Avatar for tinstaafl
0
569
Member Avatar for ajit.nayak

Dear all, i have data coming in file named time.csv and i wanted to convert the file in format conv_file format . How could i do it python

Software Development python
Member Avatar for slate
0
269
Member Avatar for Pobunjenik

Hello dear codegurus! I've been working on a pet project of mine for 3 weeks now, and I think it is ready to be released into the open! However, just for cosmetic purposes, I would **LOVE** to add an icon (both for the application and in the upper left corner …

Software Development java
Member Avatar for Pobunjenik
0
334
Member Avatar for inspire_all

#include<stdio.h> #include<stdlib.h> //#define MAX 10001 void quicksort(long long[],int,int); int partition(long long[],int,int); void swap(long long[],int,int); int main() { int t,k,q,i,j,qi,c,p; long long *mot,*sat,*res; //printf("Enter no of test cases"); scanf("%d",&t); for(i=0;i<t;i++) { p=0; //printf("Enter no of chefs and no of queries"); scanf("\n%d %d",&k,&q); mot=(long long*)malloc(k*sizeof(long long)); sat=(long long*)malloc(k*sizeof(long long)); res=(long long*)malloc(k*k*sizeof(long long)); …

Software Development c
Member Avatar for deceptikon
0
202
Member Avatar for get connected

Hi, I've got an application at the moment that has to process a fairly meaty job. Instead of making the user sit looking at a dead form, I figured it'd be nice to show a "Program is working" message to them... And to make it pretty, slapped an ani' gif …

Software Development vb.net
Member Avatar for paolo.marani
0
5K
Member Avatar for Is_at_work

Here's what I have. It compiles and runs the game, but when I make a guess right or wrong it ends the game. The words in the file are not separated by blank lines and idk how many are in there. (if that's significant). The problem is in the getWord …

Software Development c++
Member Avatar for Ancient Dragon
0
576
Member Avatar for DougArndt

Greetings, first, I'm totally new to python. What I'm attempting to do is rebuild a clipped off sound wave. As I've been poking around I've come across things like "cubic spline interpolation" (that sounds like what I need -- but really is way over my head) I've come across other …

Software Development python
Member Avatar for Gribouillis
0
769
Member Avatar for @di007

Through programming experiment prove your claim for float storage format?

Software Development c c# c++ storage
Member Avatar for Assembly Guy
0
112
Member Avatar for rrajeswari03

i want to upload multiple image in php.am getting image path like (image.jpg,image2.jpg,etc..).it is possible to split the path and upload each file to folder...can anyone help me with code.

Software Development image php
Member Avatar for rrajeswari03
0
105
Member Avatar for ajit.nayak

Dear all I have downloaded matplot lib for python2.7.2 windows using[(http://matplotlib.org/downloads.html)][Click Here](http://www.) . As per example i tried coding i found pyplot is not highlighted.i have attached test.cv file for which graph has to be plotted import csv import matplotlib.pyplot as plt plt.figure() def main(): pass if __name__ == '__main__': …

Software Development python
Member Avatar for Gribouillis
0
697
Member Avatar for Ruan10

1: I have to create an application that will dynamically add a menu strip with menu items to a form(ie NOT dragged and dropped onto the form) in Visual Basic. The menu strip should be created in the Form_Load event handler. I have to use a TextBox for user input. …

Software Development vb.net visual-basic
Member Avatar for Lennonbull
0
425
Member Avatar for Is_at_work

My hangman game is complete. All i'm trying to do now is write the results of the end of the game to a file but the program is not doing that?? //Libraries #include <iostream> #include <vector> #include <string> #include <cctype> #include <fstream> #include <cstdlib> #include <stdlib.h> #include <windows.h> using namespace …

Software Development c++ file-system
Member Avatar for kal_crazy
0
175
Member Avatar for supernova122

I am using .net framework 2.0. In immediate window running debug mode with VS 2008, how I retrieve and display all column names and the content of all rows of a dataview object? Thanks.

Software Development display vb.net
Member Avatar for supernova122
0
125
Member Avatar for Yeonng

I am doing an academic project, making a sales forecasting using holt-winters forecasting method. I really need help to make it in vb.net and searching in google for example but found none. Is there anyone who ever heard about this method and help me with the code? Thanks...

Software Development business-entrepreneurship vb.net
Member Avatar for Yeonng
0
612
Member Avatar for shivakr

hi... i am trying to deploy my ejb file which i learned from youtube videos... so i go an Execption while running my clientEjb code.. it is as follows while running my client "HWorldClient"... E:\ejbDemo>java HWorldClient Exception in thread "main" java.lang.NoClassDefFoundError: HWorldClient (wrong name: part1/HWorldClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) …

Software Development java
Member Avatar for shivakr
0
124
Member Avatar for pritaeas

Anybody familiar with AutoVue? Am using Desktop V20.2.2 embedded in a WinForm. Am looking if it's possible to set the background color. So far I haven't found any conclusive answer whether or not this is possible.

Software Development
Member Avatar for pritaeas
0
389
Member Avatar for Saboor880

My question is that after learning vb.net can i earn online on the basis of vb.net? if yes then tell me how?

Software Development vb.net
Member Avatar for pritaeas
0
106
Member Avatar for dean.ong.14

# calc.py - a Python calculator from tkinter import * # the main class class Calc(): def __init__(self): self.total = 0 self.current = "" self.new_num = True self.op_pending = False self.op = "" self.eq = False def num_press(self, num): self.eq = False temp = text_box.get() temp2 = str(num) if self.new_num: …

Software Development python tkinter
Member Avatar for Gribouillis
0
14K
Member Avatar for cpfevr692590

Guys I am writing a program in perl to loop through an array of integers read in from a file line by line, then notice patterns of numbers in each line and output triples(3 of the same numbers occuring consecutively), pairs(only two of the same numbers occuring consecutively) and straights …

Software Development perl
Member Avatar for 2teez
0
1K
Member Avatar for user4678

I'm trying to create a program that computes the values of cos using the Taylor Series as long as the absolute value of a term is greater than 0.0001 and prints the number of terms used in the series approximation. My code is the following and as of right now …

Software Development c++ mathematics
Member Avatar for Labdabeta
0
634
Member Avatar for KrazyCod3r

So I am using a while loop and my problem happens when I try and run this code in an online compiler which doesn't have input, it keep looping forever and doesn't wait for input. Is there a way I can force it to wait ? Please note that it …

Software Development c++ ide
Member Avatar for KrazyCod3r
0
309
Member Avatar for Patrick_3

Hello, I am making a custom control which will serve as a "timeline". An integrated timer moves a line along the control to display where the time is currently. I am inheriting a Panel control for the timeline. When I draw my line, it constantly appears below the controls in …

Software Development vb.net
Member Avatar for Patrick_3
0
1K

The End.