132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dotancohen

Seeing how C# does not support implicit fall-though in switch statements, why use the break keyword? All the code snippets I find on the web use the break keyword. Is it just habit from other languages? Thanks.

Software Development
Member Avatar for dotancohen
0
178
Member Avatar for thanatos1

hey guys, i've been designing and coding a pokemon-clone game in java for roughly 3 months and i've a huge problem in my hands. how the hell am i supposed to design a "map" in sprites? for example, i've been reading "developing games in java" and it just gives me …

Software Development java
Member Avatar for NormR1
0
125
Member Avatar for cool_intentions

Hi guys, I’m working on my assignment for school, end I got stuck. I have workflow end my host application. On my host app is one combo box. I need to write code for my ifElseBranchActivity in workflow. Something like this: [CODE=C#] if (comboBox1.SelectedItem == "option1") { //do some code …

Software Development
Member Avatar for nmaillet
0
96
Member Avatar for jhopwood

I am having some issues with my Inventory Program and could use some help. I had the program working last night where my GUI would display the correct categories but today when I tried to get the restocking fee to add in to the value, I seemed to have messed …

Software Development gui java java-swing
Member Avatar for NormR1
0
676
Member Avatar for Martin C++

Hello, this is kinda my first program. I would like to know how to clean the screen so only this code would stay in the console [CODE=C++] cout<<"Welcome to calculator!\n\n"; cout<<"[*] - a * b\n[/] - a / b\n[-] - a - b\n[+] - a + b\n\n";[/CODE] I m also …

Software Development c++
Member Avatar for Duki
0
2K
Member Avatar for sciprog1

Hello Members, I am looking into using Java to be able to model/simulate (MODSIM) discrete and continuous systems in the areas of traffic modeling, birth/death process, spread of disease etc. I have a working knowledge of Java. I have a good grasp of calculus and differential equations. I am looking …

Software Development java
Member Avatar for hfx642
0
170
Member Avatar for Zoe123

I have some menu problems. So this is my first time, and I need someone to please solve the problem for me. This is my program. When I ask it to enter on the home menu, it takes me back to the second menu and asks me again if I …

Software Development c++
Member Avatar for WaltP
0
206
Member Avatar for beginnerJavaer

Hi, I am trying to create a Client/Server application...when client is initialized it reads a file line by line and sends each line to the server which does some sort of action to the line (in my code it capitalizes the line) and writes it to a file. I have …

Software Development client-server file-system java
Member Avatar for Aviras
0
257
Member Avatar for smartjugal

how to see details about an item present on listbox....i want to know the code?

Software Development
Member Avatar for Mitja Bonca
0
87
Member Avatar for kooletz

Please help me on my bloodshed 9.4.4.2 assignment, i need to create a program that will view the name and salary. i already created 1 program but in converting Km to mile and the time of the destination when reach.. here are i need to input and to be an …

Software Development c
Member Avatar for YAMNA MIDHAT
0
149
Member Avatar for theCompiler

im creating a simple game and i want it to have continous 10 rounds . but i dont have any idea , im not allowed to use looping .tnx

Software Development c
Member Avatar for sergent
0
289
Member Avatar for raj.sokkalingam

I am a new learner of c. I am trying to code a car game .I have some problems in it . In this,the car is moving separately according to the input .The random cars are generated.I am not able to combine both the functions simultaneously. could any one help …

Software Development c
Member Avatar for sergent
0
156
Member Avatar for JeffOwens

Here is my code: [CODE] #------------------------------------------------------------------------------- # Name: Mocha Rotoscoping Via Blender # Purpose: Make rotoscoping more efficient # # Author: Jeff Owens # # Created: 11/07/2011 # Copyright: (c) jeff.owens 2011 # Licence: Grasshorse #------------------------------------------------------------------------------- #!/usr/bin/env python import sys import os import parser sys.path.append('Z:\_protomotion\Prog\HelperScripts') import GetDir sys.path.append('Z:/Blender_Roto') filename = …

Software Development open-source python regex
Member Avatar for Enalicho
0
137
Member Avatar for mariegomez84

Hi, everyone! I'm kind of in a hurry. I need to know for tomorrow how can I open a file and get the file name. I was using the Common Dialog and with ".Filename" I could be able to get the name. It was easy and it worked!! The point …

Software Development file-system visual-basic
Member Avatar for WaltP
0
637
Member Avatar for afi@alvi

i am getting some thing in while loop and want to pass that on to my rest of the programme. But i want that loop to be always running. but my code get strucks in the loop and does not move forward... i am not getting how to keep that …

Software Development c++
Member Avatar for Duki
0
94
Member Avatar for becool007

Hello DaniWeb :) For very long I've wanted to develop and venture into the Win32 API and make programs like I find on the internet. Show the world my creativity. I made a simple calculator with a GUI and Menu bar from scratch. I was proud but I was shattered …

Software Development asp.net c++ windows-api
Member Avatar for Frederick2
0
307
Member Avatar for Pytho

Hi all I've tried to find out which object is behind the JLabel that caused the MouseEvent. I have a code like this. [CODE]for(int i = 0; i < annetutKäsikortit.size(); i++) { URL _kuva = this.getClass().getResource("/kortit/" + annetutKäsikortit.get(i).haeNumero() + "_pieni.png"); käsikortitJLabel.add(new JLabel(new ImageIcon(_kuva))); käsikortitJLabel.get(i).addMouseListener(hiirenkuuntelija); omatKortit.add(käsikortitJLabel.get(i)); }[/CODE] Sorry about that strange …

Software Development java
Member Avatar for JamesCherrill
0
176
Member Avatar for JoshuaBurleson

so I recently wrote a function that sorted using the last value in a tuple. Obviously this couldn't be done simply say sorted(tuples, key=tuples[-1]) because that is not a "legal" call. However I did run across, while trying to figure out how to make things like this work, the utilization …

Software Development legal python
Member Avatar for nabla2
0
582
Member Avatar for learner321

Hi friends I know how to draw on form etc. But I am not able to find the logic how to draw waform and then make it seems scrolling like in ECG display units it scrolls. Please help with some simple example.

Software Development
Member Avatar for Momerath
0
188
Member Avatar for Eternal49

Im working on a program and one of the functions writes data to a socket. Everything is working except one part that Im having trouble figuring out. If I create a variable and assign a hex value to it inside the program everything works. (e.g. char variable[] = '\xff\xff\xff\xff\xff'). But …

Software Development c
Member Avatar for WaltP
0
601
Member Avatar for bettybarnes

Hi guys i have problems with the codes that i got from a site. this is the code [CODE].model .code main proc mov ah, 02 mov dl, 61h start: sub dl,20h int 21h push dx mov dl, 0AH int 21h pop dx add dl, 20h inc dl cmp dl, 79H …

Software Development assembly
Member Avatar for thines01
0
277
Member Avatar for Clawsy

I develop a chat (server and client) using [I]Sockets[/I]. It's working on [B]LAN[/B] but when I try to connect the client to the server using my public IP address it says it cannot connect to that address. My address is public - a friend pinged my address successfully. You find …

Software Development client-server java socket-programming
Member Avatar for Aviras
0
337
Member Avatar for Vaspar

Please Download This [url]http://www.mediafire.com/file/xikt4zotccrkrv4/GPA_Arid.jar[/url] I am facing Reset Problem. It Reset but when I Change Credit Hours it restore previous entered Value. Reset Button [CODE]private void Reset(java.awt.event.ActionEvent evt) { _M1.setEditable(false); _M2.setEditable(false); _M3.setEditable(false); _M4.setEditable(false); _M5.setEditable(false); _M6.setEditable(false); _M1.setText(""); _M2.setText(""); _M3.setText(""); _M4.setText(""); _M5.setText(""); _M6.setText(""); _C1.setSelectedIndex(0); _C2.setSelectedIndex(0); _C3.setSelectedIndex(0); _C4.setSelectedIndex(0); _C5.setSelectedIndex(0); _C6.setSelectedIndex(0); Master.setSelectedIndex(0); _C1.requestFocus(); } …

Software Development java
Member Avatar for Vaspar
0
245
Member Avatar for imstarting

Hello, I was wondering about learning C++ not from books but from video tutorials. Anybody have experience in learning from video tutorials? I found a video course like that: [url]http://video-courses-online.com/programming-courses-online/c-course.php[/url] but i'm not sure if it will be any good. Well there are 3 demo lessons, which I pretty liked, …

Software Development c++ video
Member Avatar for m4ster_r0shi
0
250
Member Avatar for zachattack05

I'm looking for suggestions on the best, and easiest way to install a Windows OS (in this case, XP, Vista and 7) on a hard drive, install my app., test it, make changes and then reinstall my app with a clean copy of the OS? Instead of sitting around going …

Software Development hard-drive windows-vista
Member Avatar for Ketsuekiame
0
114
Member Avatar for kapojian

hi, how do you add days automatically to current date? lets say i created an account in my program, and get its current date, augest 3 2011 for example, how would i add days automatically every after day, still keeps the date when i created my account. my goal is …

Software Development
Member Avatar for bhagawatshinde
0
783
Member Avatar for rhyza

i have a simple asterisk graph program but i am having trouble anout the output how will i align the result of the other perosn.. this is my code [CODE]#include "stdafx.h" #include <iostream> #include <conio.h> #include <string> #include <windows.h> #include <iomanip> using namespace std; void main() { int cartoon; int …

Software Development c++
Member Avatar for Narue
0
93
Member Avatar for sabareesh

Hai all, I want to "re-enable" the stick without unplugging and plugging the stick again. How can i do this please help me for this. now i did some coding for get the device information. Thanking you

Software Development c++
Member Avatar for sabareesh
0
78
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? If i will override static method means, friends are saying it is not compile time polymorphism, It is method hiding. I need some examples …

Software Development c++ java
Member Avatar for Fbody
0
596
Member Avatar for nyaxinya

Write down all the shapes you can think of–both two-dimensional and three-dimensional– and form those shapes into a shape hierarchy. Your hierarchy should have superclass Shape, from which class TwoDimensionalShape and class ThreeDimensionalShape are derived. Once you have developed the hierarchy, define each of the classes in the hierarchy. We …

Software Development java
Member Avatar for Aviras
0
134
Member Avatar for xoid

using a free memory spac available in a machine create 4 memory segments of 1/4K each and create storage units containing (Name,age,sex address) for each segment and then link them! HELP NEEDED!

Software Development java storage
Member Avatar for xoid
0
87
Member Avatar for Xploit_

[B]Goal:[/B] I'm trying to create a PHONY target inside my Makefile so that when I run the command "make backup", It will move all the files that end in "~" into the specified backup folder. Here is my code currently, and I'll explain the problem after: [CODE].PHONY: backup backup: @mkdir …

Software Development c++ ubuntu
Member Avatar for nezachem
0
355
Member Avatar for Kerlix

Basically, how would one take this code (written for a parallel port) and change it to make it work with a serial port? [CODE]#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/io.h> #define base 0x378 /* /dev/lp0 */ main(int argc, char **argv) { int value; if (argc!=2) printf("Enter a number between …

Software Development c++
Member Avatar for nezachem
0
148
Member Avatar for kahaj

I'm having a terrible time understanding this for some reason. I'm supposed to be creating a Class to "Define four private instance variables to represent each property value Use the above variables to define a constructor Establish a property to correspond with each variable which allows user to set or …

Software Development vb.net
Member Avatar for Yase
0
151
Member Avatar for JoshuaBurleson

if I wanted to remove all of the strings within a given list that met a certain criteria, such as having the str'a' in them, how would I go about doing that? the only way that's intuitive to me a for/in loop, but that can't be done. any ideas? Using …

Software Development python
Member Avatar for Enalicho
0
239
Member Avatar for dayghost

I don't exactly know how to explain this, but I'm trying to get 6 sentences from a webpage, to my java control panel thing. I've tried to use a snippet I found for twitter updates, and it works, except for the fact that I can't seperate them into new lines. …

Software Development file-stream html-css java
Member Avatar for peter_budo
0
167
Member Avatar for l3l4c7_h4t

hello I want create game server in my City which can many people play at the same time, but not only one game, there can n games running. i want to create 2 programs: [LIST=1] [*]for Clients (players) [*]for server (game server) [/LIST] So when someone would like to start …

Software Development c c# c++ client-server
Member Avatar for kvprajapati
0
278
Member Avatar for MareoRaft

Hello, I am looking for a good library to manipulate matrices. The criteria is as follows... 1. It must have a large amount of functions that we may need to use in the future. Functions will include but are NOT limited to: --sortbyc( Mat, col) (sorts rows in a matrix …

Software Development c++ open-source
Member Avatar for L7Sqr
0
154
Member Avatar for aldeene

what's the reason that I should set RtsEnable and DtrEnable to true?? it worked for me but I can't understadn why I should set those two property to True..

Software Development vb.net
Member Avatar for aldeene
0
322
Member Avatar for 4everct01

Im having some problem in shuffling the deck. There are some repetition after it shuffle. Any solution for it>? [CODE] #include <iostream> #include <windows.h> #include "stdlib.h" #include <cstdlib> #include <ctime> using namespace std; const static int BLACK = 0; const static int BLUE = 9; const static int RED = …

Software Development c++
Member Avatar for 4everct01
0
463
Member Avatar for ssai

i need to search for a pattern match in an array of strings, where each string is a list of symbols and a given string in the array may match to only one symbol in the pattern. So suppose we have a pattern as A+B*C and we have the string …

Software Development java
Member Avatar for ssai
0
200
Member Avatar for senergy

Hi, I have few problems, so I hope someone will help me :) I started with win32 API yesterday and I really like it, but I need little help :) #1 edit: I already fixed this :P #2 I created small "login" application, after user press "login" it should get …

Software Development api c++
Member Avatar for caut_baia
0
361
Member Avatar for rhyza

im having trouble with my output i want to justify it the name and the result but i dont dont how when i enter a number it is not centered......pls help me this is my codes [CODE]#include "stdafx.h" #include <iostream> #include <conio.h> #include <string> #include <windows.h> using namespace std; void …

Software Development c++
Member Avatar for Satyrn
0
174
Member Avatar for zeulb

input : a sentance between 1 to 10.000 char. every word on the sentance include 1 to 200 char 'a' to 'z'. output : word which is a palindrome Example : Input apa yang di alami malam ini oleh anna dan saras tidak pernah ada Output apa malam ini anna …

Software Development pascal
Member Avatar for thines01
0
612
Member Avatar for zachattack05

OK so I have a decent database that I have set up with all the correct tables and relationships, but now I have another issue, and that is distributing it. I don't know how to achieve what I am after. I know how to install SQL Server Express during my …

Software Development client-server sql
Member Avatar for zachattack05
0
126
Member Avatar for smokepk

Hi guys, I want to store recording(voice recording) in my SQL database. Please let me know is it possible and how ? Thanks, Smoke

Software Development
Member Avatar for zachattack05
0
661
Member Avatar for wildplace

i used one register in my inline asm. when i compare the asm codes with and without clobber, i dont see any different between them. so, what exactly does clobber do?

Software Development c
Member Avatar for thines01
0
103
Member Avatar for mools3

Hello everyone , as you can see i'm very beginer in python programming 1 mounth ago , i'm teaching my self from a python and tkinter book i'm trying to write a program that opens the main window after entring the username and password Problem 1: The usernames and passwords …

Software Development python tkinter
Member Avatar for Enalicho
0
161
Member Avatar for Inquisit0r

I am getting this error that I can't quite wrap my head around. The code segment calls a mysql stored function that basically assigns an available id number. This is the code: [CODE]try { CallableStatement call_proc = conn.prepareCall( "{ ? = call getAvailableId(?, ?) }" ); call_proc.registerOutParameter(1, Types.INTEGER); call_proc.setString(2, tableName); …

Software Development java sql
Member Avatar for Inquisit0r
0
918
Member Avatar for vincezed

hi all , i am developing a project that uses sdf database and i want to connect to it using odbc driver.. recently i found that there is no odbc driver for sdf database. I also found we can use ADODB and ADOX with oledb to connect with sdf.. but …

Software Development c++
Member Avatar for thines01
0
386

The End.