199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for YingKang

the program draws lines, but every time I draw a new line, the previous one disappears. How can I let it show all the lines drawn? I know my problem is in the array, but how to fix it? thanks for help [code] import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import …

Member Avatar for YingKang
0
825
Member Avatar for whiteyoh

Hi all, On compiling, i get no errors at all, the data is taken, but when checking the database, a record is made, but it is NULL. What have i missed? [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. …

Member Avatar for Ezzaral
0
163
Member Avatar for Stretcher75

I'm having an issue trying to update a field in my database that is a INT type. I'm using this field for a checkbox on my form. The checkbox works correctly by using the field in the database containing a 0 for unchecked and a 1 for checked. The problem …

Member Avatar for zid8ne
0
117
Member Avatar for miskeen

Hi guys, Can I enable/disable an #ifdef based on a specific condition? Let's say that I've a loop [CODE]#define MYCONDITION 1 // code here for (int i=0; i<5; ++i) { printf("Hello #%d", i); #if MYCONDITION printf("I wanna be reached only if i == 3, is that possible?"); #endif }[/CODE] Is …

Member Avatar for miskeen
0
107
Member Avatar for suchita

i want to know the program how to insert at the beginning of a circular linked list in C.

Member Avatar for subhashkataria2
0
110
Member Avatar for janinesamson

Hey, Is there an easy way with a TListView in report mode, to store a unique integer with each row? I've tried using the ".Data" property, but seem to end up with corruption quite often. I'm trying to do this because I want to associate each row with a primary …

Member Avatar for cao
0
177
Member Avatar for cole davidson

Hey! I just started learning C++ last month, so I am not that good yet. I am trying to write functions to compute the total surface area, lateral surface area, and volume of a right-circular cylinder. So I wrote the code, and it makes perfect sense to me. When I …

Member Avatar for cole davidson
0
2K
Member Avatar for docdoc

My laptop doesn't have a parallel port so I purchased a USB to parallel convertor. I wrote a program which sends data to the parallel port to turn on some LEDS and it works ok on a PC with a built in parallel port but it wont work on my …

Member Avatar for azze
0
178
Member Avatar for kilermage

I run the program, from what I see the game runs fine. Then when I click on the object that suppose to send a dialogue, it disconnects me and throws this error in the run.batch window. [CODE]Exception in thread "main" java.lang.NullPointerException at NPCDialogue.UpdateNPCChat(NPCDialogue.java:18) at client.process(client.java:8471) at PlayerHandler.process(PlayerHandler.java:137) at server.main(server.java:55)[/CODE] Here …

Member Avatar for ejosiah
0
155
Member Avatar for pojke

Hi. Perhaps a lot of you heart this problem, but i can't find a solution. Java Script is crashing when see \n sign. I have a lot of functions like this: [CODE=JavaScript] function drawDocumentMainRowColor1(unique, content, align, padding, color) { drawDocumentHTML += '<tr class="stdTab" bgcolor="#' + color + '"><td>&nbsp;</td><td style="padding: ' …

Member Avatar for farkhan
0
142
Member Avatar for caprio.nups

this code is not working as per its expected output.please tell me the errors and how to rectify them. [CODE] #include<iostream.h> #include<stdlib.h> #include<conio.h> int* getwaitingtime(int* proc,int* arr,int* bur,int noofproc) { int i,j,c[10],t,p,m,s[10],out[10],f,l; int *wait; for(i=0;i<noofproc;i++) { if((arr[0]!=0)||(arr[i]>arr[i+1])||(arr[i]==arr[i+1])||(bur[i]<0)||(bur[i]==0)||(bur[i]>10)) { return NULL; } } for(i=0;i<noofproc;i++) { c[i]=arr[i]+bur[i]; } for(i=1;i<noofproc;i++) { for(j=1;j<noofproc;j++) { …

Member Avatar for caprio.nups
0
122
Member Avatar for karthik.c

hi guys im tryin to do a java client / c++ server socket program .in the java client program i serialize the object and pass them over socket to c++ server.now when im gettin them in c++,im not able to deserialize it properly as i tried for binary serialization since …

Member Avatar for ejosiah
0
603
Member Avatar for daniyalnawaz

I want integrate following apis in my website, 1. Yahoo BBAuth 2. Google OAuth 3. Live ID Delegated Authentication 4. Facebook Connect Does these facilities enable me to get their email addresses as i cant find any mention of email address of the logged user in the API documentations.

Member Avatar for pritaeas
0
153
Member Avatar for whiteyoh

Hi all, this is a bit of a follow on from a previous post, but slightly different so thought a new post would be best. i want to pass my scanner variables into an object. the following is the last scanner (Added as example), followed by the creation of a …

Member Avatar for whiteyoh
0
119
Member Avatar for crashovercool

hi guys.. i need help in creating a 'c' program. i ve written the quest below.. pls take time to see the quest n answer it..thanks in advance you must provide a sentence as the arguments. The first word of this sentence is to be treated as a key word, …

Member Avatar for ithelp
0
109
Member Avatar for farahshafilla

hai... i need idea how to make security code in jsp.. for example: when we register to any website, mostly we need to fill the security code that appear at the registration form page. so how can,I as a developer to do that security code? this is the example of …

Member Avatar for muhdadeel
0
200
Member Avatar for Kadence

I'd like to turn PHP off within a folder, with the exception of certain files (e.g. disabling PHP for all files but test1.php and test2.php, or test*.php). I believe PHP can be turned off for a folder by placing "php_flag engine off" within that folder's .htaccess, but how can I …

Member Avatar for Kadence
0
113
Member Avatar for masocha

Ok here is my code for the authenticate page. When l log in it comes on blank. [CODE]<?php if(isset($_POST['log'])) { $username = $_POST['username']; $pass = $_POST['passd']; include("connectOrder.php"); $sql = "SELECT * FROM users WHERE user_name='$username' AND password = '$pass' AND access_level != 0"; mysql_query($sql); $num=mysql_num_rows($sql); if($num == 1) { session_start(); …

Member Avatar for network18
0
288
Member Avatar for mrclark

I have never made a game before, but have been interested for a while, but i have no idea where to start. could someone recommend some software on where to start, and how to actually program a game. Thanks ~Matt

Member Avatar for ajmacca
0
120
Member Avatar for AutoPython

I can't find a compiler to compile version 3 Python scripts to .exe. All the compilers I see are all for Python 2.

Member Avatar for vegaseat
0
189
Member Avatar for whiteyoh

Hi all, I have a constructor with 2 numbers both set as longs however in my driver class, it is showing as an error, even after casting the already longs to a long again. This is constructor [code]public Personal(String forename, String surname, long dob, String add1, String add2, String county, …

Member Avatar for whiteyoh
0
105
Member Avatar for jyotidagia

could someone point out the error in the followin php/mysql code [code=php]$strSearchVal = $_GET['q']; //database connection.. //... $strSQL = "SELECT DISTINCT area FROM hospital where area like '%'+ $strSearchVal; "; $result = mysql_query($strSQL); while ($arrThisRow = mysql_fetch_array($result )) { echo '<li>' . $arrThisRow['area'] . '</li>';[/code]

Member Avatar for pritaeas
0
73
Member Avatar for tomtetlaw

I tried to make a leet speak converter, but it outputs characters that I don't even tell it to.. This is what I mean: (Test run) Enter something to convert to L337 5P34K: Hi, how are you? L337 5P34K equivilent: hi,@H0w 4R3 Y0u? I don't know why it's got the …

Member Avatar for willygstyle
0
534
Member Avatar for calcucool

i need to write a method that in my program student object for the student class that validates it's own data. background on student class: it's a program that ask for a name of a student and 3 test scores and print the highest , the lowest and the average. …

Member Avatar for javaAddict
0
106
Member Avatar for sembawyo

i want to know the strategy to know Register Edit By Specific process how can i get its status and implement in c# i need necessary help for this point any tutorial link idea

Member Avatar for sembawyo
0
123
Member Avatar for kira4

Don't know why my coding appear this error: "Notice : Undefined index: PK in c:\easyphp1-8\www\associationdeleteprocess.php on line 24" But I still can delete my database. Who can help me to solve this problem? This is my "AssociationDeleteProcess.php" coding: [CODE]<html> <head> <title>Index</title> </head> <body background="E-Filing%20Management%20System%20Picture/Snow.gif"> <p align="center"> <img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" …

Member Avatar for kira4
0
103
Member Avatar for Folaju

hi i keep getting this error on my php page Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 871 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 877 the code below works perfectly on my test …

Member Avatar for Folaju
0
206
Member Avatar for JLynn

Hello, I am having trouble figuring out the correct syntax for a small portion of my code. I am trying to have my code search through a column and for each entry in that column copy and paste only the rows that have the following characteristics: the first character = …

Member Avatar for JLynn
0
130
Member Avatar for Hirez

Hi, I'm new to c# although have written in a few other langues in the past. I'm trying to get a list of services and their status and create an xml file from this info. I use the ServiceController. [CODE]ServiceController[] services = ServiceController.GetServices();[/CODE] If I send the info to the …

Member Avatar for Hirez
0
83
Member Avatar for necrolin

My C++ course hasn't covered a topic yet, but I'm expected to solve a few problems with this material. I've got some working code I just don't fully understand it. Can someone help me, please? [CODE] void f(int** a) //What is this ** business? (1) { cout << **a; //prints …

Member Avatar for dkalita
0
90
Member Avatar for e04047

hi all, I have this file [myfile.txt] with some user data. example: $cat myfile.txt FName|LName|Gender|Company|Branch|Bday|Salary|Age aaaa|bbbb|male|cccc|dddd|19900814|15000|20| eeee|asdg|male|gggg|ksgu|19911216||| aara|bdbm|male|kkkk|acke|19931018||23| asad|kfjg|male|kkkc|gkgg|19921213|14000|24| aera|bprb|male|cccc|pppp||15000|20| . . . // and so on So what I want to do is to take out (to a file) the missing fields as following format: <FName> <LName> <Company> Missing …

Member Avatar for natufor
0
202
Member Avatar for SKANK!!!!!

how do i i figured out how to make one now i need to know how to delete the directory(and everythin thats inside it) WITH PHP

Member Avatar for SKANK!!!!!
0
147
Member Avatar for shubhamjain1

In orkut, as soon as one receives a new scrap, one gets an alert at side bottom even if page is not refreshed. I am sure that orkut doesn't check for scraps again and again by Ajax. Then how does orkut know that i have received a new scrap?? Similar …

Member Avatar for jomanlk
0
136
Member Avatar for xyz12

Hi all i have a problem in C# window application........... Well i am making a application in which i am making treeview control, in which i have some nodes, and when i click on particular node, so related form is displaying in side panel............ But the problem is that,After debugging …

Member Avatar for sknake
0
214
Member Avatar for fawadkhalil

Hello guys I have datagridview with each record containing a checkbox. I need to loop through the grid rows and get checkboxes that is being checked and also row numbers. There is also a delete button outside gridview.The above process should got executed on delete button click. Please provide some …

Member Avatar for fawadkhalil
0
439
Member Avatar for wangatang126

hi im trying to write a C program that produces an array like this 1,2,4,8,16... Basically i produce an array with with the power of 2 starting at 0 and going up to n. Here is my current code: However the array dosent show. What is the problem? # include …

Member Avatar for neithan
0
158
Member Avatar for shroomiin

Hey everyone. I have to write a program that estimates the value of mathematical constant e by using the following formula and i have to allow the user to enter the amount of terms to calculate. the only problem is i dont really know how to get started with this. …

Member Avatar for javaAddict
0
104
Member Avatar for smoking clutch

Hello everyone/anyone. This is my first post anywhere on the internet .But I've spent years reading them trying to learn varios things. I read on an MSDN forum that its appropriate to ask after 2hours of trying or something like that,But that would be many times a day for me …

Member Avatar for ddanbe
0
102
Member Avatar for Tajna

hello ! I`m trying to use sqlite database with c++, but something isnt working right... The problem I`m dealing here is that i cant insert other datas into the table i`ve created except NULL, because i get following error message: Error in select statement : INSERT INTO a (a,b,c,d) VALUES …

Member Avatar for Tajna
0
102
Member Avatar for restrictment

The question is in the title. I am trying to make an image that includes this character... *typo in title. It should say 'do', not 'to'.*

Member Avatar for jbennet
0
871
Member Avatar for ssreevidya.m
Member Avatar for sam023

This is my Stored Procedure DELIMITER $$ [code=mysql] DROP PROCEDURE IF EXISTS `call`.`sp_login`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_login`(userid varchar(50),pass varchar(50),out chk int(11),out user_alias varchar(50),out user_tariff varchar(50),out c_credit decimal(15,5),out r_reseller varchar(10),out r_level varchar(10),out c_tariff char(2)) BEGIN select id into chk from cc_reseller where useralias =userid and uipass=pass and level!=0 and activated!='0'; if(chk!="") …

Member Avatar for network18
0
283
Member Avatar for mymyzzz

how do i get int in fstream? i am in need to change my char to int. i am not allowed to use anything above and including fuctions. this includes sstream. is there any way for the program to read "3" in the program as an interger?

Member Avatar for pecet
0
159
Member Avatar for dan1992

it say theat he error is in line 16 i dont no wat error is :( plea help [CODE]<?php if($_POST['post']) { //gat data $title = $_POST['title']; $body = $_POST['body']; //chec fot existance if ($title&&$body) { mysql_connect("localhost","root","")or die(mysql_error()); mysql_select_db("dan")or die (mysql_error()); $date = date ("Y-m-d") //adaugarea inoutati $insert = mysql_query("INSERT INTO …

Member Avatar for Froger93
0
85
Member Avatar for rouse

I have be struggling to turn the below while loop into a foreach loop with no result, so I am asking for help here on how to do this. [code] $query = "Select * from TIME_TABLE Where Extract(month from DATE_FIELD ) = DATE_FORMAT(NOW(), '%c') and Extract(day from DATE_FIELD ) = …

Member Avatar for kekkaishi
0
120
Member Avatar for verilu

So, I'm stuck trying to figure out how to move the object. I am using the keyboard as a call to Key Event to move the object. Right now, it isn't moving. I'm pretty sure that this is correct. [CODE]import java.awt.Color; import javax.swing.*; import java.awt.Graphics; import java.awt.Image; import java.applet.Applet; import …

Member Avatar for nambro
0
110
Member Avatar for mymyzzz

i need to know how many times the while loop is done. while (myin) { myin >> name; cout << name ; myin >> num1 >> num2 >> num3; cout << " " << fixed << setprecision(0)<< num1 << " "<< num2 << " "<< num3 ; average = (num1 …

Member Avatar for nambro
0
83
Member Avatar for vaultdweller123

i had problem running my projects on localhost. why does i cant access some of the page? there will be an error that says apache has encountered some serious error and need to be closed. this problem started after i replaced wampserver2.0c to the latest wampserver2.0i. Is there a problem …

Member Avatar for vaultdweller123
0
74
Member Avatar for Aamit

Hi, I want to create script like in facebook. When we log into facebook, go into any friend's profile Their gift button , show gifts with pagination. when click on image and ok button it save into database. Any sample demo script ? How to create script like this? Please …

Member Avatar for Froger93
0
117
Member Avatar for Zack_G

Hi, I am using str_replace to scan through pages and replace, for example; [gallery] with the actual gallery page using an include command. For example; [gallery] Once this is located it's replaced by include('modules/gallery/index.php'); How can you do this (and for multiple ones, [gallery], [enquiry]? Thank's very much. Zack.

Member Avatar for Froger93
0
183

The End.