199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 24x24

OK I have yet another homework problem. Again, help me by teaching, not writing my code for me. I have looked through the pages of threads on collision detection and found nothing to answer my question. My issue is that I have a collision detection method that should (in theory) …

Member Avatar for 24x24
0
327
Member Avatar for ilnura

ookay people, here is the code c++; im trying to read BMP image file. [CODE]#include <iostream> #include <fstream> using namespace std; void listing (void) { unsigned char pixel; int x, pix; ofstream debug("debug.txt", ios::out); ifstream inpaint( "source.bmp",ios::binary); if(!inpaint) { cout << "File not opened\n"; exit(1); } for(x=1; x<=54; x++) { …

Member Avatar for ilnura
0
145
Member Avatar for Mbot

Hey, We got an assignment to host a website, our members must be kept in a mySQL database. I honestly have no idea where to start. If you could just help me with the basics steps. Ill research the details myself. Here's what I've done so far. 1.I downloaded and …

Member Avatar for cheelee
0
220
Member Avatar for shinysherbina

Hi, I am writing a MySQL script. I used a parameter file to set a user variable [CODE]set @log_file = "C:/logs/table_creation.txt";[/CODE] I used the variable in another file in the tee command as follows [CODE] set @log = concat("tee ", @log_file); prepare stmt from @log; execute stmt; [/CODE] But it …

Member Avatar for cheelee
0
730
Member Avatar for Joshua Kidd

I am making a register page and I have one error. [CODE]if ($_POST['submit'])[/CODE] I keep getting Notice: Undefined index: submit in C:\xampp\htdocs\globallypictured\register.php on line 6 NO IDEA WHY. . . Can someone please help...

Member Avatar for Joshua Kidd
0
108
Member Avatar for saurabh2007

I am new to java and have been working on a project. The project involves two files: One with student ID numbers and their answers for 10 different questions. The second file contains a bunch of ID numbers from the first file. The second file has id numbers for a …

Member Avatar for NormR1
0
108
Member Avatar for freakunleash

Hello All, Need help in importing CSV files into Mysql. I have tried all the methods which I can think of but im not able to import it. attach is the CSV file which Im trying to import. Below is my MYSQL table structure: mysql> show columns from test; +---------------------+----------+------+-----+---------+----------------+ …

Member Avatar for cheelee
0
244
Member Avatar for cooldj

Start Main( ) or btnRun_Click( ) Create a RaceCar object Set the car name to “Fast One” Set the x coordinate to 200 Set the y coordinate to 100 Call the car’s Move( ) method and show the resulting message Display a blank line to separate the two object results …

Member Avatar for cooldj
0
148
Member Avatar for sadsdw

Hi, I would like to ask about sorting lines in C++, (4 columns = 3 columns of integers and the last one a string): 3 56 3 NA 7 50 5 NA 2 100 1 OK I tried the function sort() using a vector of strings, but failed in cases …

Member Avatar for sadsdw
0
2K
Member Avatar for galhajaj

Hi :) i am new in C# and i am a little confused with the abstruct, virtual and override terms in C#... why they are good for? i tried to google it but i got more confused... for example - i am making a chess program and i made a …

Member Avatar for Mitja Bonca
0
196
Member Avatar for SMITA6076

I have a 3x3 array of [ICODE]MSTextField[/ICODE] which is a class I created which extends [ICODE]JTextField[/ICODE]. I'm trying to set all of the text fields to display the empty string ([ICODE]""[/ICODE]). My problem is I'm getting a nullPointerException at the end of the method which is supposed to do this. …

Member Avatar for SMITA6076
0
463
Member Avatar for tracydo

Hi, I need help with some small exercises. I'll try my best to provide my code but these are ones that I don't know how. So... maybe you can help me with yours! Thanks 1. Question 1: A program contains the following method definition: [CODE] public static int cube(int num) …

Member Avatar for SMITA6076
0
512
Member Avatar for diafol

Hi all, preg-Replace has stumped me again. I'm just too thick to get it. This is my problem: I have two files. File 'newvalues.php' with an array like so: [CODE].... $lang['this_key'] => 'blah blah blah'; $lang['another_key'] => 'rhubarb rhubarb'; $lang['something_else_key'] => 'twitter twitter'; ....[/CODE] And another file: 'template.php' like so: …

Member Avatar for diafol
0
160
Member Avatar for OnnDay

Hi everyone. I'm using Tomcat 7.0.8 I have created servlet, which loads image to "webcontent\pic" folder of my project. Then I need to display this image. The servlet works, but with only restriction: i need manually refresh content of project, or directory (I'm using Eclipse). Otherwise ugly cross will be …

Member Avatar for OnnDay
0
170
Member Avatar for peponas

Hey! I'm new to the forum and also a new developer. I'm trying to build an numerical solution for an equoation and my parameters are in an ascii file where I already know their position The file is structured like the example: #Parameter 1 parameter value #Parameter 2 parameter value …

Member Avatar for peponas
0
147
Member Avatar for WolfShield

Hey guys, I am making a calculator program and don't want the user to type directly into the Entry, so I made the Entry 'readonly'. But that makes it to dark for my liking, so I am trying to set the readonlybackground='white', but it gives me an error saying that …

Member Avatar for WolfShield
0
395
Member Avatar for vmirce

I would like to display blank value when the value is equal to zero, but when it is a non-decimal number to be displayed with preceeding zeros, example: when it's equal to two, i want it to be presented as 2.00. I tried with '0.00' but it shows literaly 0.00 …

Member Avatar for pritaeas
0
96
Member Avatar for pseudorandom21

Is there a decent IDE for Java? Meaning, one that you don't think will end up making me rage and have annoying features that get in the way all the time making it unsuitable for development? What is the best IDE performance wise?

Member Avatar for peter_budo
0
302
Member Avatar for natchattack

Ok i am pretty new to php so i could be missing a simple trick here. I need to be able to read all text files within a given directory and have them appear in a combo box by file name. After searching for what seems like forever, i can …

Member Avatar for esilva002
0
239
Member Avatar for cmccully

Hi I have a PHP/MYSQL driven site. When a user creates a new account or updates their existing username or email address I do a quick check to make sure the requested entries are not already in use. I am concerned that in the few milliseconds between the SELECT and …

Member Avatar for cmccully
0
167
Member Avatar for ankit.4aug
Member Avatar for charvie

Is Multiple download files possible using PHP? We did find a code for single download. but we need it for multiple download. can anybody help me? Thank you! :)

Member Avatar for FloridaCI
0
134
Member Avatar for raseel

how could i read a text(character by character) from a file then store it in an array,using assembly(TASM only) for 8086 processor

Member Avatar for guyfromnola
0
9K
Member Avatar for HiHe

I was trying to create a simple Python GUI with a label on a frame. I can't get the label's position and size to work: [code]# a simple wxPython GUI program # showing a label with color text # however, label position and size do not work! import wx class …

Member Avatar for vegaseat
0
311
Member Avatar for jum2011

Hi, I just received a project in my class where i have to write my own turtle class in python which I will have to use to draw a Koch snowflake. Currently I have no idea on how to get started on the turtle class? If anyone knows or has …

Member Avatar for vegaseat
0
266
Member Avatar for shyla

I can't get rid this error IntelliSense: cannot open source file "stdafx.h" error C1083: Cannot open include file: 'stdafx.h': No such file or directory [CODE]#include "stdafx.h" #include <iostream> #include <cstdlib> using namespace std; //class BinarySearch Tree class BinarySearchTree { private: struct BST { BST* left; BST* right; int data; }; …

Member Avatar for Narue
0
969
Member Avatar for hanvyj

Hi, I am trying to use some C# code I have written in C++ - its worked fine in the past (without inheritance) so I'm totally stumped by this problem I'm getting. I have made a really simple version, which demonstrates the problem, specifically when it goes into any COM …

Member Avatar for hanvyj
0
152
Member Avatar for rkayd

I am wondering if this is possible: I have a web page that displays a table which includes Work Order Numbers. I would like to make the numbers into a link that when I click it it automatically brings up an edit form for that particular record. For example, here …

Member Avatar for rkayd
0
189
Member Avatar for hanvyj

I have two projects in Microsoft Visual Studio 2008, but I can't access the objects/namespace from one with the other. here is an example from my GCController project: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace GCController { [Guid("9949f4f1-92e6-4709-85a8-12c816b6ceb4")] public interface IGCController { // ... // } …

Member Avatar for Mitja Bonca
0
145
Member Avatar for a.muqeet khan

guys here is the question elow is the main function that creates the object of Mile and Kilometer classes. Write the definition of Mile and Kilometer classes such that each statement in the main function is executed without any error. Both classes must have default constructor that initialize the private …

Member Avatar for a.muqeet khan
0
103
Member Avatar for Tellalca

Hey; I am trying to handle the SIGCHLD and therefore prevent zombie processes walking around .) The program does not work the way it should however. I am counting how many times the ZombieHandler is called and at the end of the program it says zero. What might be causing …

Member Avatar for rubberman
0
2K
Member Avatar for mipatel

i dont know how to get the image and how to store the image in the database plzz give me the complete example so i can complete my project plzz help me my project external submission date is near plzzz plzzz help me anyone

Member Avatar for peter_budo
0
186
Member Avatar for MooCrow

I'm trying to write a program which reads in a string of defined size from the keyboard and displays how many times each letter appears and also displays how many non-alphabetical characters appear. So far, it successfully counts the number of letters. However, I'm really struggling with getting the string …

Member Avatar for Narue
0
153
Member Avatar for Ritesh_4

Hello Anyone can pls guide me to a tutorial which can allow me to develop an image scroller shown at the bottom of the page of this link: [url]http://www.breitlingsionairshow.com/fr-airshow-home.html[/url]

Member Avatar for gogreen1
0
84
Member Avatar for davy_yg

Hallo all, I try to install joomla (php based CMS) in my IIS server. When I run the file (index.php): [url]http://localhost/Joomla/[/url] (it only shows me a list of file names in the folder. [url]http://localhost/Joomla/index.php[/url] (it shows me the php codes in IE instead of showing me the running joomla application. …

Member Avatar for almostbob
0
152
Member Avatar for BleepyE

Im looking to play a sound from a folder which is in my debug directory. I got this working for a PictureBox: [CODE]PictureBox1.ImageLocation() = ("Resources\picture.png")[/CODE] But I cant find something to play a sound. This is what I had before: [CODE]My.Computer.Audio.Play("C:\Users\......\Sounds\beep-2.wav")[/CODE] I dont really want to be writing the location …

Member Avatar for BleepyE
0
208
Member Avatar for iwishimgoodasu

(C++)I need to create a program that would input year and month in number. Display the year and the number of days in that month. The hard part is I need to include the leap year e.g. if the input year is 2000 and the input month is 2 (which …

Member Avatar for iwishimgoodasu
0
167
Member Avatar for tubby123

Guys, can u tell me a good programming practice to stop iteration inside a for loop based on a condition, that is, something equivalent to a break in a while loop suppose i am iterating inside a for loop, looking for the first number divisible by 2, i would do …

Member Avatar for Arbus
0
193
Member Avatar for cliffcc

How to rewrite the code so do the loop in this case? [code] <?php require("connect.php"); $banner1 = mysql_query("SELECT * FROM banner WHERE bannerid ='1'"); $row1 = mysql_fetch_assoc($banner1); $bannerpath1 = ($row1['bannerpath']); $bannerheight1 = ($row1['bannerheight']); $bannerwidth1 = ($row1['bannerwidth']); $bannerdescription1 = ($row1['bannerdescription']); $banner2 = mysql_query("SELECT * FROM banner WHERE bannerid ='2'"); $row2 = …

Member Avatar for perfectweb
0
178
Member Avatar for DNHK

hello everyone umm I'm having trouble in printing a structure in c... is a program to calculate benefits of employees in a company when they are fired.. getting trouble when printing the hired date of an employee here its the code [CODE]#include <stdio.h> #include <conio.h> #include <stdlib.h> void menu(); struct …

Member Avatar for TrustyTony
0
238
Member Avatar for anandhikrishnan

Hi, I have a function in java script like this.I want to append a comma in reason_txts only if there is second element in array function(result_arr){ var reason_ids="",reason_txts=""; for(i=0;i<result_arr.length;i++){ reason_ids+=result_arr[i].id+","; reason_txts+=result_arr[i].col0+","; } document.getElementById("reasonIds_disp_hdn").value= reason_ids; document.getElementById("appReason_text").value= reason_txts; document.ViewSlot.appReason_text.className="txtbox2"; } I tried like this, function(result_arr){ var reason_ids="",reason_txts=""; for(i=1;i<=result_arr.length;i++){ reason_ids+=result_arr[i].id+","; if(i == result_arr.length) …

Member Avatar for anandhikrishnan
0
96
Member Avatar for private_class_J

[code]textPane = new JTextPane(); textPane.setBounds(337, 33, 290, 198); textPane.setBackground(Color.LIGHT_GRAY); textPane.setEditable(false); textPane.setLayout(new GridLayout()); JScrollPane scrollPane = new JScrollPane(textPane); scrollPane.setBounds(337, 33, 290, 198); add(scrollPane); searchButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { List<MainManagement> sList = new ArrayList<MainManagement>(); MainMngDao mmd = new MainMngDao(); sList = mmd.search(); for(int i = 0; i < sList.size(); …

Member Avatar for mKorbel
0
111
Member Avatar for klemme

I am trying to send data from a contact form to my email adress. IT IS FROM LOCALHOST - THE SITE IS NOT ONLINE. My form looks like this: [CODE] <form name=form1 method=post action=send_contact.php> <p>Emne:</p><input name=subject class=input type=text id=subject size=64> <br /><br /> <p>Forespørgsel:</p><textarea name=detail cols=50 rows=7 id=detail></textarea> <br /><br …

Member Avatar for digital-ether
0
284
Member Avatar for MooCrow

We've started learning about arrays, but our lecture notes are really not helpful at all and we don't have a book. I'm struggling to understand this question and I honestly have no idea what to do or where to start. I've tried to read tutorials and things but I'm just …

Member Avatar for MooCrow
0
801
Member Avatar for ryan311

[CODE]cmd.ActiveConnection = cn cmd.CommandType = ADODB.CommandTypeEnum.adCmdStoredProc cmd.CommandText = "sp_login" cmd.Parameters.Append( _ cmd.CreateParameter("result", ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamOutput)) cmd.Parameters.Append( _ cmd.CreateParameter("user", ADODB.DataTypeEnum.adVarChar, ADODB.ParameterDirectionEnum.adParamInput, 15, TextBox1.Text)) cmd.Parameters.Append( _ cmd.CreateParameter("passuser", ADODB.DataTypeEnum.adVarChar, ADODB.ParameterDirectionEnum.adParamInput, 15, TextBox2.Text)) rs.Open(cmd, , ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic) If rs.Fields!result.Value = 1 Then AddProduct.Show() Else MsgBox("Your Username or Password is Incorrect", MsgBoxStyle.Information, "AEB Gasul System") Exit …

Member Avatar for Pgmer
0
266
Member Avatar for DONPAWPAW

when connecting to sql server i get getting this error . please help how to resolve this problem TITLE: Connect to Server ------------------------------ Cannot connect to SOFTCITY\EIMPRESSION. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may …

Member Avatar for DONPAWPAW
0
92
Member Avatar for EkoX

Hello All, As the title.. Does any one know how to find how many specific character in a text? Best Regard Eko.

Member Avatar for Jx_Man
0
158
Member Avatar for galhajaj

Hello :) for a chess program, i made a 8x8 array of square:PictureBox objects and i set variables inside them for the row & col there is a way to dont use those row & col variables and just "take" the index of the square from the 8x8 array when …

Member Avatar for galhajaj
0
151
Member Avatar for abhi10kumar

Some times not saving date time buy I am inserting date and time, but storing 0000-00-00 00:00:00 [U]Here is the code[/U] <?php include("connect_mysql.php"); $date=date("Y-m-s H:i:s"); mysql_query("insert into buy_db (from_site, date_time_buy, model, ip) values ('".$_REQUEST['site']."', '$date','".$_REQUEST['model']."', '".$_REQUEST['ip']."')"); //header('Location:'.$_REQUEST['url']); ?> Attachment including: 1. Data in Table 2. Table Structure

Member Avatar for vibhaJ
0
166
Member Avatar for Sarama2030

i'd lyk to upload files into the database via a dataset to first test some conditions. i've maitained the dataset's state between postbacks to add all the rows b4 updating. however the datarow line[CODE]dim autorow as datarow autorow= viewstate("dataset").tables("datatable").newrow ' the dataset and the datatable are all declared [/CODE] pops …

Member Avatar for Sarama2030
0
78

The End.