199,114 Archived Topics
Remove Filter ![]() | |
I have a code that play's an animation on a JFrame.. On top of that, I have added a Jpanel with few buttons. my problem is, mybuttons are not visible on the animation screen until i hover a mouse on them?? what am i doing wrong.. | |
Hi guys! I have started learning geometry and wrote a code to calculate the distance between a line(or a segment) and a point. Here is my code: [code] #include<stdio.h> #include<math.h> #include<stdlib.h> int dot_pdt(int a[],int b[],int c[]) { int ab[2],bc[2]; ab[0]=b[0]-a[0]; ab[1]=b[1]-a[1]; bc[0]=c[0]-b[0]; bc[1]=c[1]-b[1]; // printf("%d\n",(ab[0]*bc[0]+ab[1]*bc[1])); return (ab[0]*bc[0]+ab[1]*bc[1]); } int cross_pdt(int … | |
This is cited from Stroustrup third edition [CODE] void f () throw (x2 , x3 ) { // stuff } is equivalent to: void f () try { // stuff } catch (x2) {throw; } / / rethrow catch (x3) {throw; } / / rethrow catch (...) { std: :unexpected() … | |
hey, Just starting to learn how to use classes in c++ and when i try to split my class out of the main code and put it in a headder or a headder and a second source file dev C++ is giving me loads of errors and i dont know … | |
Hi i need a special help in making a online bookstore using ASP.NET and C#.can any one help me, that how to start and how to make it,because i know very little about ASP.NET.Thanks in advance. | |
how to display the value of a variable using graphics in c or c++? | |
On of my database stooped working. [QUOTE] mysql> check table invoice; +-------------------------------+-------+----------+----------------------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +-------------------------------+-------+----------+----------------------------------------------------------------------+ | billing_db.invoice | check | Error | Incorrect information in file: './billing_db/invoice.frm' | | billing_db.invoice | check | error | Corrupt | +-------------------------------+-------+----------+----------------------------------------------------------------------+ 2 rows in set (0.00 … | |
Hi, I am using the following code to send mail from a open window in maya application. This gives me following error. I think it says that A2 is not created. What is a possible way to have this code send a mail. BRgds, kNish # Error: name 'A2' is … | |
I am deleting a pointer using "delete" in C++. That pointer is holding the address which is used by OS like 0x00000210. What will happens? | |
i am trying to print an array list in a jsp page like this: [CODE]<body> <FORM METHOD="POST" ACTION="index.jsp"> <input type="text" name="text" value="" /> <input type="submit" value="add" /> </FORM> <jsp:useBean id="tomer" class="java.util.ArrayList" scope="session"/> <jsp:useBean id="r1" class="java.util.Iterator" scope="session"/> <% if (request.getParameter("text") !=null) {%> <% tomer.add(request.getParameter("text"));%> <%}%> <%r1 = tomer.iterator();%> <%while(r1.hasNext())%> <%{%> <%r1.next();%> … | |
I have time to complete this, I have to add 2 void functions, 2 value returning functions, 1 structure and on array. I just need some ideas on where to start, what should I convert to functions, how should I instill stuctures and arrays to this particular program. I'm going … | |
I made this code to make an object move by time here is the code for form1.cs: [code=csharp] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Project1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } // C# Code … | |
Hello everyone, I have a web browser which is used to display html files that are stored locally. However when I try to use the webBrowser.GoBack() method to navigate back to previous files nothing happens and the webbrowser window continues to display the current file. Does anyone know of a … | |
Hi! Im creating a search engine for products. it can search by category, model_no and so on.. when i searched for multimedia, it would return lists of products under multimedia. every result should be clickable and would display info for each product. problem is, how can i pass the value … | |
hi i am dipali i am trying to store multiple objects in file but it will store only one object with the help of read & write function plz tell me solution. | |
Does anyone know how to change the look of the java files that are listed when you expand the java folder in the tree structure of the database? i have these numbers infront of the class file, but have no clue what they are, they are not there in toad(i … | |
[code=cplusplus]#include <iostream> #include <string> using namespace std; char *goodmsg = " I feel fine today \n"; string badmsg = "I am not feeling well today \n" ; int main(){ //prototype definition void printMessage( bool ); //objects declaration bool isFine; bool &isGood = isFine; char *answer = 'y'; //while loop will … | |
Hello Guys, This is Rakesh Nagekar, when i open a visual studio.net and click on File -->New website --> Then the windows application,console application,class library, all those in project are comming those require for creating website is not comming. how to get back those please Rakesh Nagekar | |
Hi I'm was a c++ programmer for 7 years past with VC++ then go to Java and now return to c++ , I've search for VC++ and its seems big change now (VC++ Express Edition ) . I looking for free VC++6.0 or any other easy/free editor for c++ programming … | |
I am new to JSP. Please guide me which e-book or book should I read so that I can learn from basics to advance skills and develop a web site by own. Please help..! | |
how can i access data that i have entered to the database in msflexgrid. like for example i have putting three categories the noofitem,scores, and totals. that was displayed on the top of msflexgrid horizontally..? is there anyone can help me... please... | |
Hi guys, I am doing multithreading in my C++ program. Now i seriously STUCK in my program.:confused: Ok, My program have 2 different base class, and each of the base class have a sub class, Example, subclass1 inherited from baseclass1, subclass2 inherited from baseclass2, HOW to make subclass1 and subclass2 … | |
Hi, here is the code for page navigation, its working fine but , if there are 4 pages , each page is displaying 3 records per page, if we go to 3rd page, and click on the subject it will display the contents but it will automatically come to the … | |
Hi all, I have a registration form on my website which once filled in, it sends an email to the user with a link to "verify their email address". This link holds all of the information entered by the user in the form and looks something like this: [url]http://www.example.com/confirm.php?firstname=john&lastname=smith[/url] When … | |
i have just had to go into the backend of an old site to fix the mysql db as some had deleted the wrong db. i have got most of it working again now but did not know what this line of code is doing. [CODE]$sql = "SELECT id,thumb,image,designer,title,(total/freq) AS … | |
Hi Friends, Can any one answer to my problem here please ? I need to split a string into substrings like following example. Romans 3:1,5;Romans 4:1-10(Semicolon between two strings) Romans 3:1,5,Romans 4:1-10(Comma between two strings) These two cases are similar,In these two cases also i want to do like following... … | |
Hi, I'm just starting out with programming in C++, and would like some clarification on something.. What is the meaning of the '&' in this line: [code=c++]void Stack::push(const StackElement & value);[/code] I would assume that it takes a reference as a parameter, however, why is it that it works when … | |
Hai all, I want to get to know about the file summary like last saved by, last printed on, authour etc... How can get it using file info function. Thanks in advance. | |
i using acsess 2003 or xp. but when i click in record source property to show the table a massage was shown. but when i use office 97 then there was no problem | |
how to check character in between 0 to 9 in asp | |
I trying to take an image file which is present in some folder of local machine and trying to load it inside a server. If i give the path its trying to access the server path,not the local machine's path where the actual file is present, this works fine when … | |
Hi to everyone, Please i would be grateful if you help me with this. This is a tutorial i am practising .When i create a session variable on a page , I find it difficult to show it on another page. Please check also to see whether the scripts are … | |
Well my site is a music lyrics site, and included an option to embed youtube videos with each lyric added. It came with one lyrics, which you can see here. On the left of this page, the youtube video fits in a box. [url]http://music-and-lyrics.info/index.php?lyric_id=1[/url] Now I added a new lyric … | |
I want to store a function in a MySQL Database. Like this: [code=php] <?php $query = "SELECT * FROM items WHERE item_id='$_GET['item_id']'"; $item = mysql_fetch_assoc(mysql_query($query)); $action = $item['action']; $action; ?> [/code] So in the database, $item['action'] is header('Location:blah.html'); But it could be ANY function, see. I just want to know … | |
[code=php] <?php $result = mysql_query("INSERT INTO ".UPREFIX."items` VALUES ( '', '".$item_name."', '".$item_descr."', '".$item_action."', '".$item_rarity."', '".$item_value."', '".$item_folder."', '".$item_image."', '".$item_cat_id."', '".$item_visibility."')"); ?> [/code] I didn't know if this would be php or MySQL. I'm getting returned the following error: You have an error in your SQL syntax; check the manual that corresponds … | |
Hello, I'm a noob with PHP and unversed in Javascript, but I need to implement some Ajax in a page I'm building. I'm using the Scriptaculous libraries. Here's the problem I'm having: I have four different links in the menubar. When I click on the first link, it makes a … | |
i using getopts but when i type in the argument it not working. Is there anything wrong wif my script? bcos when i enter bash filename -P -S , i should see "hello" msg but i don. [CODE]#!/bin/bash while getopts "PS" opt; do if [ $# -eq 2 ]; then … | |
Need your help in javascript I am using following script for image over (to display another image) <html> <img src="mobilesmallimage.jpg" name="ShowRoom" width="129" height="96" onMouseOver=" ShowPic(name,'mobilebigimage.jpg') " onmouseout="ShowPic(name,'mobilesmallimage.jpg')" border="0"> </a> I am sending 2 parameters 1. Name of image - variable name 2. Name of image to be displayed Using following … | |
Hello ya'll, I stumbled over here looking for some help with Bash shell scripts.. See, the problem was I needed to copy a data DVD into (onto?) the system file space. Since this is a virtual machine, copying a DVD takes a very long time, the drive gets hot, starts … | |
I've run the install for PHP 5.2.6 and been able to have PHP pages run successfully. My research has told me that PHP no longer includes the dll needed to connect to mySQL. I've run into a couple of problems on my system. [LIST=1] [*]Using phpinfo(), I can identify the … | |
i have to make a search engine for my client, but i am confusing about indexing websites to search engine database, please can any one tell me how can i achieve this goal? can any one tell me how can i make spider / crawler to do this ? please, … | |
I just moved hosting providers for my website and there is one page that is not working properly. The old provider had MySQL Server 5.0.51a and PHP 5 so I setup the new server with MySQL Server 5.0.51a-Community and PHP 5. After the site move, I get the following error: … | |
hey guys, anyone to provide a short lecture! is automata theory important in computer science? what are example of real applications of automata and formal languages? do they have anything to do with software development and verifications? kind regards | |
As far as I know, I have successfully completed all config files so the site should load, but for some reason, the site doesn't. Here is the error message I get instead. [CODE]array(3) { [0]=> array(4) { ["file"]=> string(74) "/home/imedia/public_html/music-and-lyrics.info/functions/main.function.php" ["line"]=> int(10) ["function"]=> string(10) "mysqlQuery" ["args"]=> array(1) { [0]=> &string(20) … | |
Hi, I've got a small problem here in replacing html for bb. I can go bb to html really easily (see the code below), but when I go the other way, I get the same text returned as when I put it in [code] if ($tobb == 0) { $search … | |
Can anyone tell me if I'm dong this correctly. S(10) = 1; S(n) = n + S(n + 1) for 0 < n < 10 I'm looking for the value of S(7) S(10) = 1 S(9) = 9 + S(9 + 1) = 10 S(8) = 8 + S(8 + … | |
Hello All. I am quite new to programming, I have a question in regards to creating a script that reads data from a file and then prints how many time each value ( number in my case occurs). I was wondering if you could help me write a similar script, … | |
is there any simple way to do this? im making a chat client and i want it to display text like all chat clients do, which is buttom to top. Thanks! | |
Script to Remove duplicate lines from a text file. |
The End.