199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for darab

hi I have a textbox and i want when i type on it my textbox read it in many langueges how is it possible? plz with code snipped

Member Avatar for darab
0
86
Member Avatar for polo_coins

I wrote this code bellow but it doesn't work how I get to [B]bgcolor[/B] of [B]tr[/B] tag? [CODE][COLOR="Red"] <table id="menutable" name="table1"> <tr onmouseover="ChangeCol()" id="tr_1"><li><a href="main.html" name="main" target="main">Main Page</a><br/></tr> <script language="JavaScript" type="text/javascript"> <!-- function ChangeCol() { var col="#998800"; document.menu.tr_1.bgcolor=col; } //--> </script> [/CODE][/COLOR] thanks.Sergey

Member Avatar for polo_coins
0
183
Member Avatar for aosmith

I'm having an issues with this script from my own debugging it appears that the readyState is doing the following 1 ... 4 ... 1 ... 4 the second time it appears not to have any response so I end up seeing my content shortly (if all my debugging alerts …

Member Avatar for aosmith
0
170
Member Avatar for hket89

/* File: Kilowatt-hours.c Calculate and print bills for the city company.*/ #include <stdio.h> int main() { int account_number; char code; double bills, kilowatt_hours, peak_hours, off_peak_hours; printf("Please enter Your account number: \n"); scanf("%d", &account_number); printf("Enter Your user code [R/C/I]: \n"); printf("R = Residential\n"); printf("C = Commercial\n"); printf("I = Industrial\n"); printf("\nCode = …

Member Avatar for DangerDev
0
302
Member Avatar for saj_amo

hi developers my name is sajjad i have little problem in asp.net i have made two pages one is login and other is welcome page a user enters name and password in login page after checking valid user it open welcome page and after signout jumps to login page again …

Member Avatar for kameswari
0
172
Member Avatar for skiing

I am really confused on this problem someone please assist me I am suppose to create a random number generator that passes in a high and low value and return a random number using a generator that is not biased. It makes use of the idea of cuttoff. I know …

Member Avatar for kvprajapati
0
130
Member Avatar for atch

Hi, in my code below if I move scope protected below public just as I would like to see it this code won't compile. I always thought that order of members in class is without any importance but here I see something different or I'm doing something wrong? Thank you. …

Member Avatar for jesseb07
0
107
Member Avatar for aliaks

Ok, so as suggested I have rewritten this thread. It was suggested that the code posted to be shortened and only revelent code be posted. I did both of these and people started asking where all different things were, and why cant they see other files etc. Uploaded is the …

Member Avatar for NathanOliver
0
147
Member Avatar for tarekwehbe

sale_item sale_item::operator + (sale_item &s2){ } sale item is a class how to overload this operator sale_item::sale_item(const char N[],const char C[],double P){ } this is the constructor

Member Avatar for NathanOliver
0
75
Member Avatar for Hawkpath

Hello, I'm writing a rubiks cube solving program, and I would like to condense all of the turn definitions into functions like rightTurn(); I'm using Windows XP and Code::Blocks. An example of a turn definition is : [CODE]cout << "Executing bottom turn: " << endl; a = front[6]; b = …

Member Avatar for Hawkpath
0
107
Member Avatar for mrnutty

Forgive me Admin. Now that I got your attention. I just wanted to say one thing. PLEASE put meaningful titles on your thread. No, [U]Help[/U], [U]Urgent!![/U], I[U] HATE C++[/U], or even worse "[U]UNTITLED[/U]". Instead, put titles, like [U]help creating a recursive add function[/U], or [U]help I don't understand this homework …

Member Avatar for John A
0
161
Member Avatar for revenge2

hey guys how would i figure out if a string has a number in it without using any aditional libraries?

Member Avatar for Hiroshe
0
5K
Member Avatar for karin21

hi guys! can you look for my script im required to use php. i have two comboboxes namely cat and sub cat. and i have a textbox. my logic goes to when i select item from cat it will display its sub items in subcat. and then when i select …

Member Avatar for matthewl
0
108
Member Avatar for satasonic

Guys, Im in desperately need of help, and I need the whole program to be written, as I dont understand anythuing in pascal haha. Thanks for any help, I really appreciate it! By the way, this is also my first post here, yay :D

Member Avatar for JameB
0
6K
Member Avatar for agent154

I'm writing a program to convert one image type (for example, png or gif, or tif) to a jpg. What I want to do is to feed the file name into the program via the console, and it will spit out the converted image. How can I make sure that …

Member Avatar for DdoubleD
0
509
Member Avatar for Stefano Mtangoo

[CODE=python] import sqlite3 as sql class Tables(object): def __init__(self): print "Class created!" def CreateDb(self, dbname): self.conn = sql.connect("?", (dbname, )) self.cur = self.conn.cursor() def CreateNewTable(self, tablename):#, tablename self.cur.execute("CREATE TABLE IF NOT EXISTS ?(id INTEGER, name TEXT)", (tablename, )) listed = [(1, "Mary"), (2, "Martha"), (3, "Jesca"), (4, "Don")] for i …

Member Avatar for Stefano Mtangoo
0
152
Member Avatar for Missy_poo

I need help with writing a program that asks the user to enter distance in kilometers and then converts distance to miles

Member Avatar for Stefano Mtangoo
0
104
Member Avatar for basitchk
Member Avatar for Stefano Mtangoo
0
83
Member Avatar for dantheman3141

I appologize for the length of this post, but I have no clue what is wrong with my program. As an experiment, I wrote a XOR encryption program. It isnt very fast, but it works. Apparently, only for strings. I implemented a file encryption function, and it seems that some …

Member Avatar for dantheman3141
0
99
Member Avatar for iamsmooth

Hey guys: I'm working on a chess program for comsci, and surprisingly, the pawn is the hardest piece to program. If you're not familiar with chess, this is the basic move of the pawn: If the pawn is in its initial position, it can move 2 spaces forward, however, subsequent …

Member Avatar for wildgoose
0
286
Member Avatar for lecotti

Hello, having a bit of trouble with this. I am writing a program which sorts a sequence of numbers using a binary tree however i cannot to seem to get it to work; i belive it is something to do with passing the digits to makenode(). Any help would be …

Member Avatar for lecotti
0
96
Member Avatar for madhavb

How do I access the base class protected/public methods in a derived object ? For example A and B are as defined below... [code=cplusplus] class A { int a; protected: int set(int v){ a = v; }; public: A(){}; int foo(){ return 0;}; }; class B : A { int …

Member Avatar for tazboy
0
87
Member Avatar for Iamkishan

Hi, I'm using eclipse to write my programs but for some reason this code does not work can someone tell me whats wrong with it? here is the code. and sorry if i didnt use the code wrapper properly. package dataTypes; import javax.swing.*; public class Window { JPanel pnl = …

Member Avatar for Nathan Campos
0
93
Member Avatar for daviddoria

I know you can't usually define things in the class like this: [code] class MyClass { double DefaultForward[3] = {0.0, 1.0, 0.0}; }; [/code] but I have some values that don't really make sense to set in the constructor - they are more "deeply connected" as THIS SHOULD ALWAYS BE …

Member Avatar for daviddoria
0
152
Member Avatar for Acegikmo

I have a Player class, a Weapon class and a Projectile class in my applet game. The weapon class uses Projectile objects when fired. For example, everytime I click I want this code to execute: [CODE]projectileList.add( player.weapon.fire() );[/CODE] player.weapon.fire() returns one or more projectiles that the projectileList handles every frame. …

Member Avatar for Acegikmo
0
168
Member Avatar for lotrsimp12345

word is a private variable. MAin [code] #include <iostream> #include "FrameThePhrase.h" using namespace std; int main() { Frame_The_Phrase frame; char in; ifstream input; bool a=true; bool b=true; bool c=true; string length; while(b==true) { cout<<"to quit type 'q'\n" <<"enter 'c' to get from console\n" <<"enter 'f' to get from file\n"; cin>>in; …

Member Avatar for lotrsimp12345
0
158
Member Avatar for amarucla

Hi All, I'm developing GUI for my project. I'm working in Windows and using VC++ 2008. I've found some examples, on internet using which I've developed a dailog box window (like shown in attached figure) using win32 api. The example has a list box and few buttons. I managed to …

Member Avatar for amarucla
0
364
Member Avatar for rip_snoopy

hi i need help to sort a file in terms of CourseCode i have this file COURSE.DAT In the file this is the format.... <CourseCode>|<CourseName>|<SubjectArea>|<TeacherID|<Date>|<NoEnrolled>|<Support> <CourseCode>|<CourseName>|<SubjectArea>|<TeacherID|<Date>|<NoEnrolled>|<Support> eg of this file(raw) CS10|Computing|CS|20845|12-12-2008|12|1 MA10|Mathematics|MA|20845|12-12-2008|12|1 PH11|Physics Practical|PH|20845|12-12-2008|12|1 CS11|Computing Practical|CS|20845|12-12-2008|12|1 PH10|Physics|PH|20845|12-12-2008|12|1 i need it to be sorted (the end result should be this CS10|Computing|CS|20845|12-12-2008|12|1 …

Member Avatar for VernonDozier
0
114
Member Avatar for eamonn_henry

I really am stumped by this problem and would appreciate some help.. I am tryiing to build a site on a computer running Wiindows XP and using, mainly, FrontPage 2003 although I have also used Notepad to try and solve a problem that has arisen. The problem is that IE6 …

Member Avatar for fredricksmith
0
119
Member Avatar for kiel19

Hi. I would like to build a web crawler, but I am only familiar with C and C++. Can any one give tips on how to develop one using those two environments. I have a Borland 4.5 compiler that I will be using.

Member Avatar for Protuberance
0
383
Member Avatar for psyb0rg

I have a main.php page with multiple divs. I load whole pages in these divs using AJAX. Some of these pages have forms with submit buttons. The structure of the pages is like so: For acc_settings.php [CODE]<form enctype="multipart/form-data" method="post" action="acc_settings.php" > . . <button type='submit' name='update' >UPDATE</button> </form>[/CODE] So the …

Member Avatar for psyb0rg
0
138
Member Avatar for dwdata

I am trying to code some advertising banners on my page based on random picks from a table in my DB. I have successfully got my top banner to display and log an impression: [CODE] // Top Banner $query="SELECT * FROM sm_ADS WHERE id_Maze_Category='$Category_ID' and Type='large' and Active='1' ORDER BY …

Member Avatar for matthewl
0
193
Member Avatar for mahdi68

Hi , i want to learn programming for android , so i download android sdk 1.5 and netbeans plugin . i have a problem when i run program that i Have written emulator not shown !!! and this message shown : select device please help me , what i should …

Member Avatar for mahdi68
0
74
Member Avatar for Lensva

I have a class Banner that extends JFrame implements ActionListener and is responsible for thread handling via actionPerfmored. "launch banner", "pause banner" works. "resume banner" seems to be dead alltogether [code=java] import java.awt.*; import javax.swing.*; public class BannerP extends JPanel implements Runnable { int width, height, xPos=10; boolean stopT; public …

Member Avatar for JamesCherrill
0
134
Member Avatar for jitender.ind

Hi, I'm having a very strange problem. I use lampp on centOS linux. My application has a upload Script (in PHP) which uploads file to file system. after upload and moving file to correct location, uploaded files are getting deleted. I check file upload and moving of file by putting …

Member Avatar for FlashCreations
0
199
Member Avatar for smartness

I have downloaded a lyrics script, and that works, but the author of that script didnt create a file for submiting lyrics... i have tried to create a script but im not a php pro so i ask help from daniweb, to help & create that ""submit.php""... the one who …

Member Avatar for smartness
0
337
Member Avatar for sravan953

Hey guys... I have some code here: [CODE] import os import threading import urllib import time a=0 class launch(threading.Thread): def start_now(): try: urllib.urlopen("http://www.google.com") except: a+=1 start_now() def end(): print("\nOut of 10000 requests, "+str(a)+" requests failed.") for x in range(10001): launch().start() print("http://www.google.com") end() raw_input("<Done>") [/CODE] This works, in the sense that …

Member Avatar for woooee
0
94
Member Avatar for sab786

Hi all,:'( his for over a week now i cant get my head round it so i hope some one can help me... i have a dictionary which reads my file line by line and counts the occurance of tuples ...ok great. then for every key in my dictionary (which …

Member Avatar for woooee
0
310
Member Avatar for Nathan Campos

Hello, I'm starting in Java ME development, but i'm already a Java for desktop developer, but how i can build Jar files for my Java ME applications using my Eclipse or command-line, i want to build it only. Thanks, Nathan Paulino Campos

Member Avatar for Nathan Campos
0
72
Member Avatar for licktress

Hey guys, I'm making a program that asks the user to input a folder path (string), which it then displays the contents of said directory, but the problem I have is that it won't accept space bars, it just screws up and enters into an infinite loop. So is there …

Member Avatar for Protuberance
0
261
Member Avatar for scooby36

not too sure why this problem is happening. I can update the dataset from a textbox but then when I click the update button it is showing an error "Object reference not set to an instance of an object." The dataset is empty when I try to run the update. …

Member Avatar for scooby36
0
169
Member Avatar for bernadlosini

the question given like this The TetraPek manager assumed that you are already familiar with the game rules. Now, the manager wants your program to be able to auto-generate some numbers before the player gets to key in their numbers into the empty boxes. It is up to you how …

Member Avatar for mrnutty
0
236
Member Avatar for Nathan Campos

Hello, I'm learning Java and i want to build a program that save emails to an [i]*.txt[/i] file, like this: One guy send me an email, then the program periodically search if i have emails every 10 minutes and if i have it saves all the emails in a single …

Member Avatar for Nathan Campos
0
113
Member Avatar for Bhilal

how can I align the link i mean i can i manage the 4 link two of them at the left corner two of them at the right corner? [code=html]<style type="text/css"> .sag {text-align: right} .sol {text-align: left} </style> <a class="sol" ... <a class="sag"...[/code] but it doesn't work

Member Avatar for essential
0
119
Member Avatar for chozhan

How to implement the activexcontrol at runtime. Activex control name is A32Control.

Member Avatar for debasisdas
0
87
Member Avatar for kehar

Hello, My problem is that when i try to see other datails of the person names selected in the list box, i can see the details of the firstname (first item) of the list box only and not the second onwards. So pl tell me the code to write so …

Member Avatar for debasisdas
0
74
Member Avatar for nileshgr

I have two class modules namely DbConnection and Database. Database has all methods which are required to manipulate the tables (Insert, update, delete, move). And DbConnection has connection related methods (Connect, Close, StartTrans, CommitTrans, RollbackTrans) I have a global instance of DbConnection in a standard module and I don't initiate …

Member Avatar for nileshgr
0
82
Member Avatar for grin2dan

Hello All, I need to generate a simple script according to the following: "Using only one update write query to update a salary by 10% for salaries below 100k and 15% for salaries above 100k" TIA

Member Avatar for grin2dan
0
81
Member Avatar for himgar

Since gotoxy() function can have maximum values (35,25) I want to know is there any alternative to this which i can use in Turbo C++ 4.5 version. I have to make a project and therefore i urgently require a one for a better look of my project.

Member Avatar for Ancient Dragon
0
116
Member Avatar for tarekwehbe

guys my instructor gave me a project : a file that contain 5 text files 2 for sale_item( header file, cpp file_ 2 for sale file ( header file, cpp file 1 for main ------------------------------------------------------------- to start u need 2: 1. create new project 2. call it the same name …

Member Avatar for mrnutty
0
129

The End.