132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Pikachumanson

I have a hero sprite which I have implemented in in my game. He walks around in a grass field. Unfortunately, he is surrounded by a white border that is also in the btmap(or JPG in this case). Any idea on how I can get my program to differentiate the …

Software Development visual-studio
Member Avatar for Pikachumanson
0
114
Member Avatar for h3llpunk

Hi, Ive started on doing some animations in win32 but i cant seem to know how to set the starting position without messing up the movement. Also all my animations are flickering. this is my code so far exluding the intializing, windows creations and such. [code=c++] typedef struct _REDINFO { …

Software Development c++
Member Avatar for h3llpunk
0
81
Member Avatar for db11

I have two questions, the first of which is simple but I can't think of what the answer is: <code deleted and saved as attachment> lol sorry... I get the following complier error: <errors deleted and saved as attachment> why is 'string' undeclared? Where do I declare it? It is …

Software Development c++ gui
Member Avatar for db11
0
248
Member Avatar for saphira

Hello guys, i'm trying to write a menu for a C program that should implement a bank system but i'm having problems with my code... I have tried to follow the example that my tutor gave on her lecture presentation, but to be honest i don't think i'm on the …

Software Development c
Member Avatar for Salem
0
4K
Member Avatar for LindseyV

Hi there. I am writing a program for work and for one of the parts I need to open up an outlook email account and parse through the new message bodies for specific information. After I get the information I need, I need to put it in a datbase. I …

Software Development email visual-basic
0
66
Member Avatar for deerowbear

I am trying to update a jlabel, but the label is not updating. Thanks for any help. Daniel [CODE]package converter; import java.io.*; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Iterator; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.*; import javax.swing.filechooser.FileFilter; public class modelConverter extends JFrame implements ActionListener, ItemListener { // Data panel …

Software Development java java-swing
Member Avatar for deerowbear
0
116
Member Avatar for aarti_gehani

hi all... i want code for reading a binary file in C. can anyone help?

Software Development c
Member Avatar for nucleon
0
74
Member Avatar for greg022549

is there anyone that can look at my small program and tell me what I am doing wrong? If I submit it to you? I am trying to learn C++ and I am a newbie. Here is my zipped file

Software Development c++
Member Avatar for siddhant3s
0
87
Member Avatar for 94SupraTT
Member Avatar for manal

hi every one . does any one know how to insert checkbox in datagrid so user can select row and how to know which rows selected

Software Development vb.net
Member Avatar for manal
0
170
Member Avatar for homeryansta

I have a linked list of operators ()+-*/ , how would I be able to compare them if they are all of type char? I looked at the ascii table, but they are all out of order so that isn't a choice.

Software Development c++ linked-list
Member Avatar for homeryansta
0
117
Member Avatar for aarti_gehani

hi... i actually want to read the raw file(CR2 file) of jpeg image using turbo C... i m confused regarding the lib to be used and variable initialization i.e. do i need to define structure or array having pixel size... plz help its urgent...

Software Development c image
Member Avatar for Ancient Dragon
0
125
Member Avatar for Necrolis

well, after hours apon hours of serching for this, i've come up with nothing but a few sources for some plugins[from thecodeproject.com], which don't cover what I need: Basically writing to the currently active (source) file(at the position of the cursor/caret), like so(highly simplified) [code=cplusplus] fprintf(pOpenDocument,"/*\n\tTime: %s\n\tDate: %s\n\tAuther: %s\n\tReason & …

Software Development c++
Member Avatar for Necrolis
0
166
Member Avatar for k2k

hi , i am pretty new to perl and I have a quick question. below the code won't work unless fileName is under the same directory. would any one please give a quick reference in how to specify the full address of the file? such as /home/myName/fileName [code] #!/usr/bin/perl cat …

Software Development perl
Member Avatar for k2k
0
77
Member Avatar for lukechris

Hi, I am currently writing a program which will take a document: [ICODE] <?xml version="1.0" encoding="utf-8"?> <MenuItem version="1.0"> <item_text> <TEXT default_lang="en" str="NAME" /> ( language/ text string) </item_text> <item_help> <TEXT default_lang="en" str="DESCRIPTION" /> (help menu/language/ description) </item_help> <item_icon> <LEFT str="IMAGE" /> (image) </item_icon> <item_action> <ACTION type="Internal" str="Positioning_Maps_Id"/> (internal,external/????) </item_action> </MenuItem>[/ICODE] …

Software Development vb.net xml
Member Avatar for lukechris
0
128
Member Avatar for Mazor

In Linux the output is printed correctly, with 'lines2' having the same value as 'lines' minus 1, but in windows the value of 'lines2' and is always printed as -2. The source code is solely for testing purposes, hence the messy code with no for loops, bad variable names etc. …

Software Development c++ open-source
Member Avatar for Mazor
0
99
Member Avatar for Q8iEnG

Hi guys :) I have small question of course I don't want to ask for solving my homework, no i'll work on it on my own. I just need some tips :) please. I want to make a program that calculate these function: F1 = 1; F2 = 2*lgn + …

Software Development c++
Member Avatar for Q8iEnG
0
144
Member Avatar for hellIon

i am using pelles c y am i getting these errors ? something wrong wid the winbase header file?? if yes then can u tell me from where should i download another one [code] #include<windows.h> main() { WinExec ("C:\\Windows\\Notepad.exe"); } [/code] C:\Program Files\PellesC\Include\Win\basetsd.h(17): error #2001: Syntax error: expected ';' but …

Software Development c
Member Avatar for Ancient Dragon
0
394
Member Avatar for mimis

I am trying to solve an algorithmic problem. First of all the user inputs the coordinates of some nodes. I have to go to the node with the biggest x( let name it E) and then to return to the start that will always be the node (0,0)( let name …

Software Development algorithm c++
Member Avatar for mimis
0
371
Member Avatar for tazjaime

Hi to all... I've just join and found this amazing website/forum today which is very helpful. So here's the problem.. I need to find the factorial of an input number, I have a slight problem with my script, when i enter a value which is 11 upwards it doesn't print …

Software Development java
Member Avatar for JamesCherrill
0
202
Member Avatar for eigile

hi all:'( i am a newbie want to know how to get values from two tables in database. I have three tables one is the student information and the other table is the subject and grades .Both tables have id number which may join them together But what i need …

Software Development display listview visual-basic
Member Avatar for javmedia
0
215
Member Avatar for ZeRo 00

Hiiee der..guyss i wud be gratefull if some1 can help me to sort this bit of my programme. In the shell that i am writing I need to use cd command...(move around the path specified ..das wat i think it does in linux) I have no idea how to get …

Software Development c
Member Avatar for Ancient Dragon
0
84
Member Avatar for MK12

Ok, so I have a project that I've written in Python(Actually it's not done yet), its the card game "Cheat" that you play in the command prompt with (until I learn wxPython -- GUI for Python) with computer players (or other people with you). I want to distribute it later, …

Software Development api c gui python windows-api
Member Avatar for MK12
0
172
Member Avatar for JP Romano

Does anybody know of a way to rename the contents of a zip file when they're extracted? I have a program which grabs zipped files from an outlook account, gives them a unique name, saves them to a network repository, then extracts the contents to a sub folder in that …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
163
Member Avatar for ryan311

how can i save a data in listview1? i have a problem to my code heres my code [code] Dim objNewListItem As ListItem Set rs = New ADODB.Recordset rs.Open "Select * from Supplier", cn, adOpenKeyset, adLockPessimistic rs.MoveFirst Do While Not rs.EOF Set objNewListItem = lvwCustomer.ListItems.Add(, , rs.Fields("scode")) objNewListItem.SubItems(mlng_Supp_Name) = rs.Fields("sname") …

Software Development listview visual-basic
Member Avatar for ryan311
0
100
Member Avatar for XpL0d3r

I have an assignment where I need to create an inventory program where I can add information about a product to a text file, and shown in the file like shown: 1;Hammer;20;13.50 Where 1 is the record number, Hammer is the description, 20 is the quantity, and 13.50 is the …

Software Development c++ ios
Member Avatar for DemonGal711
0
124
Member Avatar for countyman

Im am trying to write a Java program with a system class called:PayScale. 1. It needs to prompt user for "Hours worked" and "Pay rate" 2. Determine if there is overtime 3. Calculate overtime at "time and 1/2" 4. Calculate regular pay It must then print out: 1. Total hours …

Software Development java
Member Avatar for countyman
0
283
Member Avatar for songweaver

Below is the code which is supposed to round to two decimal places, i.e. 1.2874 is suppose to round to 1.29, but rather gives me 128.0000. What am I doing wrong need help fast! #include <iomanip> #include <iostream> #include <cmath> using namespace std; double roundIt(double x, double n) { x …

Software Development c++
Member Avatar for kbshibukumar
0
142
Member Avatar for PhiberOptik

Hey guys, I am writing a small script that requires me to make text that is within a textArea multi coloured. I will show an example in the quote box below: [QUOTE] [COLOR="red"]Hello, How are do you?[/COLOR] [COLOR="green"]I am Fine, how are you?[/COLOR] [COLOR="red"]Great![/COLOR] [/QUOTE] I was wondering if there …

Software Development java
Member Avatar for JamesCherrill
0
66
Member Avatar for barbosmaw

HI I'm not an expierenced python programmer (yet) I want to display an image on a screen. I already installed PIL 1.1.6, and i am using the Tkinter GUI. I don't know what is missing (or were I went wrong installing the PIL), but this message <see below> is popping …

Software Development gui python tkinter
Member Avatar for barbosmaw
0
349
Member Avatar for chris5126

Hi Guys, I have a file which contains the following info (it realtes to CPU usage): [code] 1 0 2 2 0 10 1 11 [/code] It is stored in a text file. I need to read each line in turn into an array and then import it into a …

Software Development
Member Avatar for chris5126
0
173
Member Avatar for chriscross86

hi, there, im doing a small program and the output should be as below @ ** @@@ **** @@@@@ Ive coded it, but it gives different answers..please help.the code is as below. #include <stdio.h> int main() { int i,j,k,m,a,y; for(k=1;k<=3;k++){ for(j=1;j<=5;j++){ for(i=1;i<=j;i++){ printf("@"); } printf("\n"); for(i=1;i<=j+1;i+=1){ printf("*"); } printf("\n"); } …

Software Development c
Member Avatar for srikanthkadem
0
88
Member Avatar for sivak

how to pass the image file from client side to server side ? how to read and write that image file in server side ? can anyone tell me the code for it? thnaks for ur help

Software Development client-server image
Member Avatar for expvice
0
97
Member Avatar for Stefano Mtangoo

I have been in some tutorials for socket Module. It is very interesting. I want to know what I need to Know to make simple peer to peer/Client server Chat software but I'm new to Network, so anything that will help me put things together? Thanks Guys :)

Software Development client-server peer-to-peer python
Member Avatar for lllllIllIlllI
0
174
Member Avatar for thacravedawg

I currently have a pretty basic data application that I intend on adding a good deal of functionality. The application is a windows form app using a an access database connected through the oledb method. Everything works fine, until the iterations are extended to very large numbers. For example, it …

Software Development algorithm
Member Avatar for thacravedawg
0
167
Member Avatar for pythononmac

I have written one python script for each test case. Now I want to have another script that runs all the test cases one by one, and output the result of each test case to a file. How should I start?

Software Development python
Member Avatar for lllllIllIlllI
0
117
Member Avatar for atreides27

so im writing this code, trying to do an exercise with friend functions and all that I have that part down, I was told to take my original code and put in what you see now "Make function add of type AltMoney. Thus, this function now computes the sum of …

Software Development c++
Member Avatar for siddhant3s
0
450
Member Avatar for cbreeze

I am supposed to read in data from a file, create a linked list, and be able to traverse it. I feel like I have the first part of the code correct but I get a segmentation fault when I try and run the program and the pgm4.rpt file is …

Software Development c++ data-structure linked-list
Member Avatar for vmanes
0
135
Member Avatar for thijo

hi i have to group the data. i completed coding. the output is [ output] C:\Program Files\Java\jdk1.6.0_03\bin>java check Please Enter the Number of Clusters 3 Enter the file to be read with csv extension hi.csv [(345,2) belongs to 0, (300,2) belongs to 0, (390,2) belongs to 0, (400,3) belongs to …

Software Development java
Member Avatar for thijo
0
104
Member Avatar for curtissumpter

Hi people, Yeah, so I have an application that works. The code is not buggy and I have worked hard on it. It is three files long but the section I need help with is small. It is the paintComponent section. It is a multi-threaded application and if you want …

Software Development java multithreading
Member Avatar for curtissumpter
0
126
Member Avatar for JimD C++ Newb

Good afternoon all! I am writing an address book for a class that I have, and am stuck on this last part. Any help would be greatly appreciated! When the user selects the "Edit existing record" option, I can't figure out how to make the file overwrite the previous record. …

Software Development file-system shell-scripting
Member Avatar for eggi
0
390
Member Avatar for k2k

hi, i am trying to write a script to add 100 users and with certain things created. however, all the book and tutorials online recommend and only show the way to use passwd user after creating a user by useradd username. i know there is a -p option for the …

Software Development shell-scripting
Member Avatar for eggi
0
144
Member Avatar for JameB

Hello, I am trying to create a program where I can work with an array of char that contain either 0 or 1 representing a decimal number that the user enters. Basically I need to convert a decimal number into binary and store it into a char array. I wrote …

Software Development c++
Member Avatar for blacklight332
0
969
Member Avatar for koushal.vv

Hi, i just need to know is there any method in MFC / C++ which will do the validation for the entered date. ie if the date 12/11/2008 is given as input it should return saying the date is valid.i hope there exsists some standard function. it should also check …

Software Development c c# c++
Member Avatar for John A
0
510
Member Avatar for llemes4011

Hi, I was wondering is anyone could help me out. I'm trying to program Mario as my final for my comp sci. class. I'm not working about the actual Sprites now, just the basics, ie, moving, jumping and collisions. I'm stumped on the jumping part. Is there a good way …

Software Development java
Member Avatar for llemes4011
0
112
Member Avatar for nagatron

How to test a string if it is separated with space or not?

Software Development visual-basic
Member Avatar for nagatron
0
188
Member Avatar for rgfirefly24

So i have the following code: [CODE] //main program char username[15] = {'r','g','f','i','r','e','f','l','y','2','4'}; char password[9] = {'1','2','3','4','5','6','7','8'}; if(client.Send(15,9,username,password)) { printf("Connection Successfully Established"); } [/CODE] [CODE] //class file bool Class_Name::Send(int usize, int psize, char *username, char *password) { itoa(usize,sendbuffer,16); // works fine itoa(psize,sendbuffer + 1,16); // works fine for(int i = …

Software Development c++
Member Avatar for rgfirefly24
0
97
Member Avatar for trelek2

Although I'm a novice in Java I am to make a pool simulator in java with the ability to handle any arbitrary number of balls (i have created a Ball object, balls will be stored in the Ball array called balls). All the parameters are to be read in from …

Software Development file-system java java-swing
Member Avatar for BestJewSinceJC
0
245
Member Avatar for geemicah

[ICODE]#include<stdio.h> #include<conio.h> struct record_ko {char name[20]; int stno; char fav_color[20]; }record[5]; void main() {clrscr(); int no; for(int i=0;i<5;i++) {printf("\nwhats your name? "); scanf("%s",record[i].name); printf("what is your student number?? "); scanf("%d",&record[i].stno); printf("what is your favorite color? "); scanf("%s",record[i].fav_color); } for(i=0;i<5;i++) {printf("\nname:%s\t\t\t \nstudent no:%d\t\t\t \nfavorite color:%s\t\t",record[i].name,record[i].stno ,record[i].fav_color); } getch(); }[/ICODE]

Software Development c
Member Avatar for death_oclock
0
75
Member Avatar for JohnnyG23

This is for c++. Ok, I have most of this done but can't quite figure out how to get the queue to appear on screen. I also think I may have messed up my loops as well. What it is supposed to do is ask what the user wants to …

Software Development c++ queue
Member Avatar for Lerner
0
96

The End.