199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for makehaste

Per the title, I'm trying to figure out a way to restrict the boundaries of mouseClicked. I have an image that moves across the screen. When I click on it, it alternates with another image. However, I only want it to alternate when I click within 30 pixels of its …

Member Avatar for mKorbel
0
147
Member Avatar for yoni0505

I'm trying to make a program that read the timer value from Minesweeper. (OS is windows 7 64bit) Using cheat engine I found the base address of the variable, but it changes every time I run Minesweeper. What do I need to do to find out the base address automatically? …

Member Avatar for BobS0327
0
5K
Member Avatar for CriticalError

So I have not found a real answer to this yet. If you know asp.net you know what I mean. I need to make nested template for my website so that it remains consistant through out and certain sections change on different pages. How can I do this? Whats the …

Member Avatar for veedeoo
0
411
Member Avatar for ZeroZen

Hello Daniweb! I'm an amateur programmer who's learned quite a bit from online references, and usually searching eventually reveals the problem but I'm stuck! I've overcome many obstacles when creating a custom button on the Ajax Editor control, namespace issues, registring the controls properly etc. I resist the temptation to …

Member Avatar for hericles
0
210
Member Avatar for coderKid

Hi everyone i am new here and i have problem with this code, i need algorithm all code. please help me all master of Assembly :) program has a bug. not change AM to PM in the right time. please help me to change. thank you so much. :) especially …

0
107
Member Avatar for FUTURECompEng

I am trying to create a Collection class to deal with getting the data of (the amount of male and female names used from the past 130 years(all separate files)) loaded. I know that I need to implement a read(String filename) method in Collection that reads the given file, looks …

Member Avatar for FUTURECompEng
0
2K
Member Avatar for SgtMe

I have finally managed to make some progress on PyOpenGL textures. Now I have another problem. Here is my OpenGL init function (its in a script called gl2D.py: [CODE]def init(): glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE) glEnable(GL_TEXTURE_2D) glShadeModel(GL_SMOOTH) glClearColor(0.0, 0.0, 0.0, 0.0) glDisable(GL_DEPTH_TEST) glEnable(GL_ALPHA_TEST) glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST) glAlphaFunc(GL_NOTEQUAL,0.0)[/CODE] And here is …

Member Avatar for SgtMe
0
826
Member Avatar for crazymidget01

I am writing a program that inputs data and creates a graph represented by two adjacency matricies. One matricie contains one weight, and the other a different weight, ie distance and time between nodes. I am recieving the Double cannot be cast to Integer at a point where no Doubles …

Member Avatar for JamesCherrill
0
422
Member Avatar for sonicx2218

hello everyone. I can't figure out how to create a random int that gets placed into a linked list. import java.util.*; import java.io.IOException; import java.util.Scanner; import java.util.Random; public class LinkedListProgram { public static void main(String[] args) throws IOException { int i,number, ran; Scanner sc = new Scanner(System.in); LinkedList<String> list = …

Member Avatar for sonicx2218
0
2K
Member Avatar for Origamiswan

I am hoping this is in the right spot. We have an issue that I have not been able to track down for some time, hoping someone can give me an idea or point me in the right direction. To summarize: Occasionally, a computer in our network will cause our …

Member Avatar for ZeroZen
0
1K
Member Avatar for bilal_fazlani

#What do u think is wrong in this code???# ##no textbox is being affected :(## For Each ctrl As Control In Panel1.Controls If ctrl Is GetType(TextBox) Then CType(ctrl, TextBox).Text = "" End If Next

Member Avatar for ZeroZen
0
144
Member Avatar for vidyade

Please give advice on itt . also want if date invalid it should same page plus .use whatever break do not excute more code inside button click event if date is not valid protected void btn_ok_Click(object sender, EventArgs e) { //DateTime dt = new DateTime(); //dt = Convert.ToDateTime(tb_age.Text);//"2011-12-30" //TimeSpan ts …

Member Avatar for ZeroZen
0
164
Member Avatar for stereoworld

Ello, Firstly let me preface this with the fact that I'm absolutely hopeless at ASP.net. I know the basics, but that's it. Right, I'm trying to fix a property site coded in ASP.net. On the property landing page, there is a small gallery of thumbnail images below a larger one …

Member Avatar for ZeroZen
0
258
Member Avatar for ZeroZen

Hello Daniweb! I'm an amateur programmer who's learned quite a bit from online references, and usually searching eventually reveals the problem but I'm stuck! I've overcome many obstacles when creating a custom button on the Ajax Editor control, namespace issues, registring the controls properly etc. I resist the temptation to …

0
136
Member Avatar for Pipinit

I have had some difficulty figuring out this one a bit. I think I have the last bit figured out (printing out to the screen). However, everything else has been causing problems for me. I am not sure, so any input from anyone would be greatly appreciated! This is what …

Member Avatar for Pipinit
0
233
Member Avatar for ZaaZ

First off i'd like to say that this account was created because my real account "SillyNoob" has completely locked up. Make new thread "Sorry, you can't do that", new PM "Sorry you can't do that", post on my own thread and there's no reply button. There's no PM in my …

Member Avatar for ZaaZ
0
597
Member Avatar for timzter

I am currently building a search engine using Javaand I'm trying to do TF/IDF. I have got the TF working but am no stuck on the IDF. This is what I have done so far but I can't compile it as I get errors on the imports. Anyone know a …

Member Avatar for NormR1
0
159
Member Avatar for LFCDay123

I have a project of 2 forms and on the 2nd form I want to create a button which when clicked returns you to the 1st form. Please help!

Member Avatar for razamughal67
0
199
Member Avatar for bigzos

I have a database of asset information with asset age as one of the columns..now i wish to display all the assets which crossed 4 years in the current year ..any suggestions will be appreciated!

Member Avatar for bigzos
0
99
Member Avatar for rogerg

I want to allow registered members to upload files to the file system I have two mysql tables members for registered users and a table files to have a trace which member uploaded which file. now, I only would like to allow the upload of PDF's to the file system. …

Member Avatar for rogerg
0
230
Member Avatar for moone009

I need help with the format for single qoutes. I am using dynamic sql in an SSRS for error trapping records inserted with single qoutes during bulk imports but I cannot seem to format the actual select statement properly. SQL Sever 2005 Dev edition. Any help is great. Declare @DB …

Member Avatar for BitBlt
0
139
Member Avatar for grako84

Hi folks! I got a little problem with my assignment. The idea is to create online bookstore. As far didn't have much troubles with the project, until now. Problem occures when I'm trying to update/delete an entry to mySql. if you take a look at line 93 - there is …

Member Avatar for fobos
0
241
Member Avatar for DelphiGuy

How do I check if any window is maximized? I've got a program which sends keystrokes to that window but the problem is it will send keystrokes to any application that is running on my PC at the moment, so I wanted to prevent this by making it only send …

Member Avatar for nullptr
0
140
Member Avatar for shamsu50

hello, i get a error in my design form: at EnvDTE.CodeFunction.GetStartPoint(vsCMPart Part) at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e) at System.CodeDom.CodeMemberMethod.get_Statements() at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) error list say this: Warning 1 Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) 0 if i ignore …

Member Avatar for johnwhi
0
372
Member Avatar for Iamateur

There is combobox and few textboxes. With the help of insert sqlcommand I can store textboxes values in the database. But with the same insert sqlcommand I need to store one more combobox selected item too.. How to do this?

Member Avatar for Iamateur
0
104
Member Avatar for tjcrandall

I am almost done with this Hangman game, but I am having problems with the letter buttons and am lost as to what to do to fix the problem... package hangman; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; public class Hangman extends JFrame implements ActionListener { private …

Member Avatar for NormR1
0
1K
Member Avatar for Thermalnuke

Hey guys Im having trouble with my interface java program I have it all set up but im getting an error on my lowercase button and uppercase. is there a certaint type of formate this needs to be in for interface? here is my code: import javax.swing.*; import java.awt.*; import …

Member Avatar for NormR1
0
5K
Member Avatar for greatman05

Hello. I need to create a program to manipulate polynomials. It contains basic evaluation, addition, subtraction and multiplication of polynomials. Right now, I'm working on overloading the '+' operator to add two polynomials. While the function adds the two polynomials together correctly, when it goes to output through the overloaded …

Member Avatar for greatman05
0
2K
Member Avatar for jamshi213

Dim cmd As OleDbCommand = Nothing Dim smd_search As String = "select * from Old_info where UG_PG='BSc'" Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\Bavu's\project\vb files\dms\SPA_Database.accdb") Dim myDa As OleDbDataAdapter Dim mydataset As DataSet cmd = New OleDbCommand(smd_search, con) myDa = New OleDbDataAdapter(cmd) mydataset = New DataSet() Try If con.State …

Member Avatar for Begginnerdev
0
127
Member Avatar for CaptainRon

How can I copy a datagridview to a gridview.. I only ask b/c I need to use the rendercontrol and its not available using datagridview. And Gridview is not an option for me to use in a windows application.. BUT the class is.. very odd but anyway. All the colors …

Member Avatar for CaptainRon
0
115
Member Avatar for rezal

package maxmin; import javax.swing.JOptionPane; public class MaxMin { public static void main(String[] args) { final int Tnum = 5; int num[] = new int[Tnum]; for(int i=0; i<num.length; i++) { String numstring = JOptionPane.showInputDialog(null,"Please enter number: ","User Input", JOptionPane.QUESTION_MESSAGE); num[i] = Integer.parseInt(numstring); } int max = num[0]; for(int i=0; i<num.length; i++) …

Member Avatar for NormR1
0
208
Member Avatar for selfuser

**[Hai Users, Can anyone explain me the function of training error log as in the picture below. Kindly need your helps. Thank You.**

Member Avatar for thines01
0
340
Member Avatar for Hydrokr0n1k

ok Ihave developed some code that i am having trouble with how I would I call teh text in the last functions to come into it the part labled 10 and then finally how would I incorperate the 3 parts to work on the first part of the function. the …

Member Avatar for thines01
0
164
Member Avatar for bhallarahul

Hello Every one I m new Struts 2 and i m trying to upload a image on server with the help of struts 2 but i was unable to do that i m pasting my code here .. please tell where i m wrong here is my action class package …

Member Avatar for singh1720
0
290
Member Avatar for LateNightCoder

Basically i have made a binary class that inherits from a matrix class. and aparantly when i make the binary image the deconstructor doesn't work properly. the program runs, reads in the files and makes the binary matrix. However when the binary deconstructor and matrix deconstructors are called, the program …

Member Avatar for LateNightCoder
0
232
Member Avatar for Nineways

I'm trying to make a deck of playing cards in Java, but when I run my code an error comes up saying java.lang.NullPointerException. This is my code: public class Deck { Card[] card= new Card[52]; Deck(){ for(int i = 0; i<13; i++){ card[i].value = i+1; card[i].suit= "Heart"; if(card[i].value==1){ card[i].value= 11; …

Member Avatar for NormR1
0
294
Member Avatar for CodeNinjaMike

So, basically im using the codea bove to generate coordinates for a grid, but I only want to generate coordinates for the "outer ring" of a square. SO imagine a grid of 7x7, I won't generate coordinates for the inner 5x5 square, only for the outer ring. Basically I drew …

0
611
Member Avatar for sugir1987

here is my code import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.*; /** * * @author Sugirthan */ class Node<E> { int ser; public double[] data; public Node(int ser,double[]data) { this.ser=ser; this.data = data; } } public class Tree<E> { Node a; double [][] data = …

Member Avatar for JamesCherrill
0
290
Member Avatar for riahc3

Hey I have the following code private void buttonInicio_Click(object sender, EventArgs e) { MySql.Data.MySqlClient.MySqlConnection conn; String constring = "server=localhost;database=bd;uid=user;password=pass;"; try { conn = new MySql.Data.MySqlClient.MySqlConnection(constring); string query = "COUNT (*) FROM table WHERE usuario=" + Globales.usuario + " AND pass=" + Globales.contra; MySqlCommand cmd = new MySqlCommand(query,conn); cmd.CommandType = CommandType.Text; …

Member Avatar for riahc3
0
5K
Member Avatar for toomutch

Hi All, Don't know if this is the right forum for this query, but couldn't find anything more suitable. I have written a new app in VB.net as a front end to a mySQL database held on a PC on the LAN running Windows XP. This worked fine for a …

Member Avatar for toomutch
0
447
Member Avatar for sdr001

Hello, I am developing an Andorid application and I am having troubles with a line of code. I am getting x and y coordinates that have been stored as strings then I try to convert them to integers with x = (int) Long.parseLong(loc1); (x is an int). I have tried …

Member Avatar for JamesCherrill
0
537
Member Avatar for Hydrokr0n1k

OK I have made everything but the last loops needed to complete the project below how would I design the last triangle? // INCLUDE FILES #include <iostream> using namespace std; int main() { int no_lines, // height of triangle. width; // width of rectangle. short choice; // ADDITIONAL VARIABLES // …

Member Avatar for ObjectOriented
0
2K
Member Avatar for zhouy

Dear All, I have two arrays (array1 and array2)with double type data. I want to sort array1 to ascending order, and array2 with corresponding to the array1 indexes. Is this possible? Example below, Array1(0) = 2.30 Array1(1) = 4.20 Array1(2) = 1.90 Array1(3) = 0.20 Array1(4) = 0.88 Array2(0) = …

Member Avatar for zhouy
0
248
Member Avatar for waqar3

I want to ask something. I don't understand how to get same data from table at only one time. Here are the example Like table name product_data and there are atleast six field. in data field the date look like this product Date 23-04-2012 23-04-2012 23-04-2012 23-04-2012 23-04-2012 23-04-2012 18-04-2012 …

Member Avatar for diafol
0
115
Member Avatar for utpal407

<?php include("include/dbc.php"); include("include/connect.php"); session_start(); $error="style='display:none;'"; $submitcheck=$_POST['submit']; if($submitcheck==1) { if($_POST){ $user_name=addslashes($_POST['user_name']); $password=addslashes($_POST['password']); $query1=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='1'"); $query2=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='2'"); $query3=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='3'"); $query4=mysql_query("SELECT * FROM …

Member Avatar for diafol
0
251
Member Avatar for speakon

Hello. I have this question: "Amend the subclass of Holiday called Premier with an overridden equals method. Test this method in an orchestrating class with objects of Premier that contain the same data values and with objects that contain different data values." I have searched high and low for a …

Member Avatar for JamesCherrill
0
291
Member Avatar for Pravinrasal

Hello everyone I created one canvas and draw one line on it I want to move this line using mouse on the canvas How to move line on canvas because using draggable function it cant move so pls help me.

Member Avatar for Pravinrasal
0
780
Member Avatar for veledrom

Hi, I have an array and I want to check if the student id exists in it or not **without** looping the array. I tried `in_array` and `array_key_exists` but they didn't work. If **001122334** exist in array below then **echo exist**. Thanks in advnace Array ( [0] => Array ( …

Member Avatar for veledrom
0
159
Member Avatar for Gsterminator

Hey everyone, I am making a nqueen program that’ll read me an array of the position of the queen. I developed to different methods to do this. One is the recursion way and the other is the iteration method . My problem lies in the recursion. I am trying to …

Member Avatar for Gsterminator
0
238
Member Avatar for vizz
Member Avatar for vizz
0
147

The End.