64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PratikM

Hi Guys, I'm kinda new at this..but I need help cause I keep on getting this error and I don't know what's wrong with it. So Please Help Me. Thanks. Here's My Code: [CODE]#include <iostream> using namespace std; int addition (int,int,int,int,int, int); int addition (int a, int b, int j, …

Member Avatar for PratikM
0
430
Member Avatar for ecclesiastes3:1

I'm newbie in java, can you help me to this code. the image needs to move diagonally [CODE]public void actionPerformed(ActionEvent e) { x += 3; if (x > 600) { y = random.nextInt(600); x = random.nextInt(-45); star.setX(x); star.setY(y); }[/CODE]

Member Avatar for NormR1
0
120
Member Avatar for Prankmore

[CODE=c]# include<stdio.h> # include<string.h> # include<stdlib.h> int main(int argc, char **argv){ // Declare Variables char barcode[50]; int count; long long intBarcode; long countryCode; int dig0, dig1, dig2, dig3, dig4, dig5; int dig6, dig7, dig8, dig9, dig10, dig11; long long num; long rem, sum; int checksum; long long manufac, product, language, …

Member Avatar for gusano79
0
238
Member Avatar for stephen lowry

hi guys havent been here for a while , im a fairly competent vb.net programer but have a problem think im just missing something ,im working on a fairly big project but im gonna keep this question small and simple . if i have 2 forms amd one module the …

Member Avatar for stephen lowry
0
229
Member Avatar for Kadence

Is it possible to use #ifdef with Boolean AND and OR? For instance something like [CODE]#ifdef WIN32 || WIN64 cout << "This is Windows." << endl; #endif[/CODE] The above doesn't give a compiler error for me, although it doesn't evaluate the or condition.

Member Avatar for Susel1
0
3K
Member Avatar for dahi_man

Hi All, I am seeing that there is no way to retrieve more than 1 image from a mysql table? I have googled it, looked into 10's of websites.. no solution. How can i simply retrieve many pictures from a table,with the other columns if possible, please? and i also …

Member Avatar for dahi_man
0
109
Member Avatar for mijorog

I have a Database that stores a residentID, apartment, MoveInDate, and MoveOutDate. I am trying to run a query from this database to find the resident row where the MoveOutDate is NULL so I can enter the date they moved out. My Coldfusion is not the best and here is …

Member Avatar for arrgh
0
166
Member Avatar for Nahiyan

I have coded some ajax recently but whenever I click the 'register' button, nothing actually happens. I worked about about an hour to check what's wrong with the code but I failed to find any error. My php file just displays out an echo and runs some code if required …

Member Avatar for Nahiyan
0
116
Member Avatar for l0ns008

I am having an issue with the WHILE LOOP variable being past via POST to the next page. The first page provides the query results for all the categories in which a user has provided a referral. When the user selects one of the listed categories, it is supposed to …

Member Avatar for klemme
0
994
Member Avatar for Lebowski

Edit: The title could have been more descriptive, I am sorry for that! Hello! First time poster, frequent reader. I am very green to both programming and python, trying my best and this board has been helpful just by reading. Now, I have a problem of my own that I …

Member Avatar for TrustyTony
0
411
Member Avatar for baby_c

Hello Friends.. need a help with Merge Sort I tried to implement Merge Sort using Java language..I followed Introduction to Algorithm book for the algorithm.. but the code generates errors.. please can anyone explain this to me.. why these errors pop-up ?? [CODE] package test; import java.util.Random; public class mergeSort …

Member Avatar for JamesCherrill
0
382
Member Avatar for TIP.Synergy

Hello, how to insert a pdf file in database(ms access) using vb.net anybody can help me please? thanks ^_^

Member Avatar for TIP.Synergy
0
1K
Member Avatar for triumphost

I've been programming in C++ for quite some time now and I know all functions must return a value.. but can someone tell me WHY we return 0? I mean it compiles even when I don't put return 0.. and the program executes fine.. I can see in some functions …

Member Avatar for SnowFall
0
273
Member Avatar for gonidelux

Blank Screen on Step 2 of the Checkout Process in my PLAINTCART project ! checkout.php [CODE]<?php require_once 'library/config.php'; require_once 'library/cart-functions.php'; require_once 'library/checkout-functions.php'; if (isCartEmpty()) { // the shopping cart is still empty // so checkout is not allowed header('Location: cart.php'); } else if (isset($_GET['step']) && (int)$_GET['step'] > 0 && (int)$_GET['step'] …

Member Avatar for gonidelux
0
229
Member Avatar for SuperJunkeh
Member Avatar for WaltP
0
133
Member Avatar for decade

I have a problem in display or echo in php. what method should i follow if i the problem is with like this: example code: $email = trim($_REQUEST["email"]); if(strlen($email) < 1){ echo "0__notice__Email is empty."; } but the output should display only this part "Email is empty." only and not …

Member Avatar for decade
0
140
Member Avatar for l0ns008

I'm a NEWBIE and I have been stuck on this for days. I have one table that has the following rows: rid = Referral ID category = Category subcategory = Subcategory rbusiness = Referred Business Name rcontact = Referred Contact Name etc.. I have created the form (referral_input.php) that allows …

Member Avatar for l0ns008
0
2K
Member Avatar for seamus400

I put a few solid days into finding a working method of capturing the screen and they either didn't compile or weren't quite what I was looking for. I am wondering if anybody has any example code to capture the screen every 10 seconds and save it to bmp. I …

Member Avatar for seamus400
0
593
Member Avatar for uselessninja

what is the difference between foreign key and joins? when to use foreign key? How foreign key works? and Is it better to use join rather than foreign key?.. can someone explain me this?...

Member Avatar for uselessninja
0
106
Member Avatar for Nahiyan

The title says it all. I want to include a file outside the current working directory. Suppose my file is in the address "localhost/directory1/directory2" and I want to include 'core.inc.php' located in "localhost/directory1". In this case is requiring that file possible? If so then how can I achieve this?

Member Avatar for ddymacek
0
91
Member Avatar for divin757

When I try to navigate to the service it shows me the methods like normal but when I try to see the wsdl I get a file not found error. I have created both the wsdl.aspx and the disco.aspx. They have been deployed into _vti_bin folder. I was able to …

Member Avatar for divin757
0
254
Member Avatar for megachip04

I'm hoping there is a simple solution to this. I am using a form to submit some information. One of the boxes is a textarea. When i submit the form it runs this line of code: [CODE] if (!isset($_POST['textarea']) [/CODE] it seems to register that there is type there regardless …

Member Avatar for ddymacek
0
3K
Member Avatar for codeorder

Hello everyone. I'm new to this forum and PHP in general. I finally got the nerve to tackle a mySql Database on my website's server, added columns and a few values, although I cannot seem to find any online help to retrieve the values from the database table. Here is …

Member Avatar for codeorder
0
181
Member Avatar for Stefano Mtangoo

Hi, I'm making an MVC pattern based app and I though I would learn the principles first. I have reached a stage I need to connect the three elements. When Controller receives user action It calls right model. Now I need to register callback function so that when Model is …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for chris_j_haines

Hello Before I show you my code I would just like to put forward to whoever is willing to help me, and I have spent the last 2 days looking at hundreds of different login scripts and my head is hurting as the more I look at them the more …

Member Avatar for chris_j_haines
0
176
Member Avatar for chris_j_haines

Hello I have been reasearching many sites regarding encryption, I am a bit lost. I can cryp() the password with $salt but when I go to login and compare the passwords it keeps taking me back to the login. I have taken out all the encryption code but below is …

Member Avatar for chris_j_haines
0
129
Member Avatar for churva_churva

[CODE] Private Sub cmdCancel_Click() txtcode.Text = "" txtdescr.Text = "" txtumsr.Text = "" txtqtyh.Text = "" txtuprice.Text = "" End Sub Private Sub cmdSave_Click() Dim itemcode As String * 10 Dim descr As String * 10 Dim umsr As String * 10 Dim qtyh As Integer Dim uprice As Currency …

Member Avatar for BitBlt
0
192
Member Avatar for samsons17

I am confused right now, and there will be test about ajax tommorrow.. And i bumped into this getXMLHTTP() function in one of the code that my professor gave me and i not sure what it does exactly.I mean because i also see in the other code, that people are …

Member Avatar for tgreer
0
1K
Member Avatar for galhajaj

Hi :) i placed a picturebox and paint on it inside the program with FillRectangle/DrawEllipse/FillEllipse etc. now all i want is to check if the pixel color under the cursor is == Color.Black but i encounter problems... i made this: [CODE]Bitmap myBitmap = new Bitmap(this.pictureBox1.Image); Color pixelColor = myBitmap.GetPixel(Cursor.Position.X, Cursor.Position.Y); …

Member Avatar for ddanbe
0
157
Member Avatar for anand01

hi all , I did a application in jsp servlet and ejb with mysql db .. how should i host in wweb server pls any one help me Thanks in advance Anand

Member Avatar for peter_budo
0
101
Member Avatar for markaroni

I'm creating a simple Slot Machine. one button for the start, and 3 stop buttons on each tiles of Picturebox. my problem is, Every time i clicked each of the stop buttons, the Picturebox won't stop. I need help in which, if i clicked the stop button on a corresponding …

Member Avatar for markaroni
0
460
Member Avatar for pjh1985

Hi, I am developing a CMS based website which also has a flash gallery, the gallery accepts only xml data as input so i am using info from a database to output the required xml using php. I am setting the page that is currently being viewed using a session, …

Member Avatar for decade
0
267
Member Avatar for Majestics
Member Avatar for Majestics
0
215
Member Avatar for duke_swh

Hi, I'm trying to send an email using a lotus notes account and c# which is working fine. It is a two part mail which consistes of an HTML formatted message and attachment/s. The problem i'm encountering is when I have multiple attachments in different file formats. For example when …

0
297
Member Avatar for sid78669

I have a javascript code that modifies the data for a hidden field on the page. The page is then submitted to php. The problem is although I can see the altered data in firefox when I select the section and do show source for selection, the modified data in …

Member Avatar for sid78669
0
202
Member Avatar for Hani1991

Hey.. I wonder what's the difference between the use of [COLOR="Green"]||[/COLOR] and [COLOR="Green"]OR[/COLOR] I have an example: [CODE] $Assumed_Variable = 1; $Assumed_Query = mysql_query("select something from someTable",$connection); if($Assumed_Variable == 1 || mysql_num_rows($Assumed_Query) > 0){ echo 'Success!'; } else{ echo 'Failure!'; } [/CODE] So, if I understand this issue, this means …

Member Avatar for Pro2000
0
164
Member Avatar for betny

[CODE]public void readArguments(String[]args ) { String [] readArray = new String[ 10 ]; Scanner readscanner=new Scanner(System.in); // read values from keyboard into array System.out.println("Enter your arguments or type Exit to exit the loop"); for ( int i = 0 ; i < readArray.length ; i ++) { if(readArray[i] =="Exit" ) …

Member Avatar for hfx642
1
230
Member Avatar for shers

Hi, I have a string like "a_b_c_d". How do I get only c out of this string? Thanks

Member Avatar for shers
0
64
Member Avatar for lcfjoertoft

I'm creating a search function for my program, and need some help with SQL. Until now I have been using simple SQL query like [CODE] "SELECT post1 FROW table1 WHERE a=b" [/CODE] and put it into arrays. Then using that info to do another query, put it into arrays, and …

Member Avatar for hericles
0
152
Member Avatar for manchurianCEO

I posted this once but no one is stopping by so maybe the title didn't sound much interesting. I got the code for a google search bar and pasted it on the corresponding <div id and made a separate file for the search results and worked perfectly. But when I …

Member Avatar for almostbob
0
266
Member Avatar for Kleiner

Hi. I am having a problem in creating of one simple program in Python. Here is code. [CODE]import wx class bucky(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Testing erea", size=(280,400)) panel = wx.Panel(self) food = wx.Button(panel,label='Food',pos=(10,10),size=(80,40)) pets = wx.Button(panel, label='Pets', pos=(100,10), size=(80,40)) self.Bind(wx.EVT_BUTTON, self.food, food ) def food(self, event): …

Member Avatar for Kleiner
0
284
Member Avatar for wonder_laptop

Dear All, i have been tugging my hair out for 3 days and i cant find the problem !!! im writing a code in Aglets, i have to classes, Master and SayItAglet [B][U][COLOR="Green"]Master.Java[/COLOR][/U][/B] [CODE]package simple; import com.ibm.aglet.*; import java.net.*; public class Master extends Aglet { private AgletContext thisContext = null; …

Member Avatar for ahmed0725
0
225
Member Avatar for TrueVb.NetNoob

Hi Everyone! I am here by to ask help on enhancing messageboxs. How is the way to Display a picture(like a JPG file) inside a messagebox along with text when a button is clicked? Any Suggestions would be appreciated. Thank You!

Member Avatar for codeorder
0
678
Member Avatar for Jake.20

Can somebody tell me what line i get this error " Argument 'Prompt' cannot be converted to type 'string' " [CODE]Try If movieTxt.Text <> Nothing And ratingCmb.SelectedIndex <> 0 Then For a = 0 To i newItem.SubItems.Add(movieArray(a)) ListView1.Items.Add(ratingArray(a)) '// add Item to ListView. movieTxt.Clear() ratingCmb.SelectedIndex = 0 warnNoMovie.Text = "" …

Member Avatar for codeorder
0
1K
Member Avatar for lsvife

could anybody help me.I got error java.lang.IndexOutOfBoundsException when i press edit button.. this is my code: [CODE] String stredit=""; System.out.println(foodselected.size()); for(int m=0;m<foodselected.size();m++) { if(foodselected.isSelected(m)) { foodselected.delete(m); stredit=foodselected.getString(m); break; } } int qtyint=Integer.parseInt(stredit.substring(0,3)); String namestr=stredit.substring(5,stredit.length()-12); System.out.println(qtyint); System.out.println(namestr); namecust.setString(custname.getString()); tableno.setString(txtno.getString()); fooddrinkname.setString(namestr); txtqty.setString(Integer.toString(qtyint)); frmedit.append(namecust); frmedit.append(tableno); frmedit.append(fooddrinkname); frmedit.append(quantity); frmedit.append(type); frmedit.addCommand(ok3); display.setCurrent(frmedit); display.setCurrentItem(custname); [/CODE]

Member Avatar for lsvife
-1
129
Member Avatar for jigarsangoi

i had created login form in vb.net there are two fields username & password.i want to check username & password enter in the login form,from the first.mdf(database file). if it is correct then message is displayed i had written code for this but i got error in the code.what modification …

Member Avatar for hericles
0
269
Member Avatar for Waynef

Hi, Can anyone tell me how I would remove characters from a string if they are present? For example lets say I wanted to remove c:/fakepath/ from the string c:/fakepath/DSF102.jpg and just leave the DSF102.jpg how would I got about this? I got close but I need help. Thanks in …

Member Avatar for Waynef
0
150
Member Avatar for MDanz

This is a function for a slideshow,onmouseover i want it to stop. Instead of stopping the slideshow onmouseover, it speeds up?? How can i correct this to stop onmouseover? [CODE]<body onload="nextslide();">[/CODE] [CODE]function nextslide() { // Hide current slide var object = document.getElementById('slide' + current); //e.g. slide1 object.style.display = 'none'; // …

Member Avatar for Airshow
0
141
Member Avatar for TrueCoding

Hi Im new here-I wanted to create a Login System. I am using Visual Basic 2008 Express Edition, Microsoft Access 2007/2010 Beta. Ok this is my current code-the main problem I have is that I dont how to compare what the user puts into the textboxes and then check that …

Member Avatar for karthi5390
0
11K
Member Avatar for abelingaw

I was just wandering if someone could help me how to redo a case statement. After executing the program, there would be a line asking : Try Again? YES / NO If yes, then the program re-executes without hitting F5 again. (using JCreator pro 5). All i have is this: …

Member Avatar for Vaspar
0
151

The End.