199,114 Archived Topics
Remove Filter ![]() | |
[QUOTE] Hello friends i have tried my code to get the values from the database n display it in JTables but i am getting two errors.please help me. [/QUOTE] [CODE] import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JButton; import javax.swing.table.AbstractTableModel; import java.awt.Dimension; import java.awt.Component; import javax.swing.BoxLayout; import java.text.MessageFormat; … | |
[CODE]// Project !!!.cpp : Defines the entry point for the console application. // #include<windows.h> #include <iostream> #include <conio.h> using namespace std; class Predator {private: int x; int y; char z; char board[20][20]; int count1; int count2; public: Predator(){ for (int j=0; j<20; j++) { board[0][j] = '@'; board[19][j] = '@'; … | |
Hello, I would like to display result in form window. The result is changes every 5 seconds. The form is only close when i stop program. I am using console application in visual c++ 2008. Anybody could help me, how can i display data in form view when i use … | |
So my coding is a temperature converter. I have gotten everything down the way that it is wanted by the assignment except for one part. When I run the program, put in a value and select the radio button for conversion, no output ever shows up. Was hoping that someone … | |
![]() | I need a php code that will open and show a random text file(something.txt) in the webpage.I found so many scripts that open a random line in one textfile but i need a code in php that will open a random .txt format file in a specific folder to see … ![]() |
Im an extreme newbie at VB and newbie to OO programming, and would like to make a basic text based RPG to start off (I made an RPG on my TI-84 calculator and would like to recreate it on VB) I don't know how to do these things: How do … | |
where can i get good tutorials for Asp.net Using c#................ pls reply.......... thanks in advance......... | |
Hello please help with these, i want to pass a value in input box to another jsp page without submit button. can i doit cheers | |
Hi. I am new to PHP and would like to have the support from the members of this forum to learn PHP in depth. Here is my 1st question/post to this forum and expecting the solution from this forum. I want to read a MS Word doc file and even … | |
Hello, can anyone explain how Craigs List creates the anounomous email addresses like [email]gigs-844r7-1770905448@craigslist.org[/email] and how the server then knows who to forward that email to and how it gets forwarded too the persons real email address. thanks for any help | |
Hello, I have a code which has public void run() and I have no problems compile the code. When I try to execute the class file I get an error Exception in thread "main" java.lang.NoSuchMethodError: main. Does the command line execution needs main() ? Is there a way to execute … | |
How to set local hosting in Dream weaver? and what software went for testing local hosting in Dream Weaver for php testing? | |
Hello guyz, in my website, i have links like: [url]http://localhost/index.php?Module=Search[/url] i want to hide the php extension and make it something like [url]http://localhost/ukh/Module/Search[/url] i that pssoble via .htaccess or any server commands Note: I'm using Apahce server thanx | |
I want to create a basic Football manager game in Java, can someone suggest the best place to look for reference and guide help or has someone created one of these games or something similar that could share their experience. | |
Hallo, I have to develop a SPIM/MIPS programm, which read an integer from the user and change this integer into binary system (like for example 00011000) My idea was this one, but it doesn't work: I think the problem is the space segment. maybe somebody see the problem and can … | |
hello everyone i'm creating one Small D.j.software.in this i got three problem 1} how to mearge one .mp3 file with onther .mp3 file 2}how to drop .mp file directly to form's list box 3} how to save that merger .mp3 file. please help | |
I'm toying around with a script to allow users to search for other users based on certain criteria contained in their profiles. Anyhow, some of the attributes on the user profiles are things like what they are seeking like dating, someone to talk to, etc. I decided to serialize the … | |
Hello :) I am working on a CRUD app to directly change a MySQL database on a remote server. I have a section where I can edit or delete entries. I choose an entry from a JList (populated by a ResultSet in a loop), and a JTextArea populates with the … | |
Hi all, I am having a projectassign page,in that page i am having a dropdown box in which names of the projects are present.I am getting that project names from database. Below that list of users with checkbox are present. So i can select a project from dropdown and check … | |
Hello all. I'm currently studying computer science, and I need some insight concerning data structures. i'm asked to create the necessary data structure to hold the population and saving factor of all cities. CITY: Population: Saving factor: Nicosia 200 0.4 Limassol 120 0.6 Larnaka 65 0.7 Paphos 30 0.75 Paralimni … | |
hi.......... I am a pre final year student .I am interested in database administration.i don't know how to define my area of interest. can you help me in choosing the field. | |
[CODE]#include <fstream> #include <string> using namespace std; typedef struct blook { char* name; int hour; char* day; char* month; char* year; char* alive; char* sick; char* pregnant; char* adult; char* elderly; char* child; char* water; char* meat; char* wood; char* seeds; char* vegtables; }info; info load(string name1) { info black; … | |
How to read a text file into PHP with set format? My text file: [QUOTE]user@example.com user1@example.com user2@example.com user3@example.com user4@example.com user5@example.com ...[/QUOTE] How do I add the text file to my PHP file like this: [B]'user@example.com', 'user1@example.com'[/B] [CODE]<?php function nl2br2($text){ return preg_replace("/\r\n|\n|\r/", "<br>", $text); } $str= file_get_contents("sheet5.txt"); echo nl2br2($str); ?>[/CODE] This … | |
hi... i know how to upload video...even i can upload video to specific folder...but my question is user are upload video of any formate.. and i want to convert that video into .flv after uploading... can any one tell me how to do this..?? i will be very thankful to … | |
[CODE]#---------------------------- # Table structure for litorder #---------------------------- CREATE TABLE `litorder` ( `id` int(10) NOT NULL auto_increment, `name` varchar(50) NOT NULL default '', `address` varchar(50) NOT NULL default '', `xdate` date NOT NULL default '0000-00-00', `ref` varchar(20) NOT NULL default '', `code1` varchar(50) NOT NULL default '', `code2` varchar(50) NOT NULL … | |
I am trying to implement maintaining checkbox state across multiple pages in pagination.pagination is working fine.i havenot written that code here. I have written below sample code maintaining checkbox state across multiple pages.;when user clicks checkboxes it calls handleCheckbox funtion and the checkbox id and value will be stored in … | |
hi: want to replace all elements with the number of its depth in the difference list in prolog. such as: ?- deepList([a, [b]], L). L = [0, [1]]. ?- deepList([a, [b, c, [d, e]], f], L). L = [0, [1, 1, [2, 2]], 0]. Thank! | |
This is a section of a program I made that keeps track of some money I'm saving. :cool: When I enter how much I want to add it saves what I enter to a file and updates the current amount I have saved, also in the file. When I enter … | |
Hi i am using c# as my language & sql server as my database .. My question is there is no key ward called [CODE]limit[/CODE] in sqlserver....how i solve this type of question... the example is ---> the sql server data table has 25 rows & i want to retrieve … | |
Hello guys ... can anyone help me or guide me if i am thinking wrong, can we copy character array into character array. like char names[250]; cin>>names; names=names+names; like we do with int a; cin>>a; a=a+a; can we do this with character array i want to store 7 names into … | |
So i am working on a game, and i have a string value, and 3 integer vales, that i would like to save, so when you close the program, and then re open it, if you type in the string value, you will have you integer values. How do i … | |
I need to get this program to display the most expensive value and the most taxed value in text form from the names stored in the array. The following code works out everything apart from displaying the most expensive and most taxed items on the screen. This needs to be … | |
there is Inheritance mean subtype polymorphism or there not have same job ?? | |
Hi Dear to All, I want create & write into excel file. My problem: when we get table as a query result on GUI. If user want to write that table into excel file,it should be done after button click. If we create it on server side then we may … | |
i need to lock a label positions so that it wont move during a event. when there is a event happens that label is moving from that particular position. is there any solution for this | |
Hi all, I have been doing some reading into security with PHP session data and I have changed a few things around in my script - For example - I am now using $securecode=sha1(uniqid(rand())); as before I was using $securecode=md5(uniqid(rand())); As reading through daniweb has taught me that sha1 is … ![]() | |
Hello Community i am using Linux (fedora) gcc compiler. Normally i use Java but for the Interprocess communication part we got C. My problem specifically is that when I read from a file with the fread() function and save it in a char buff[somesize] I cant use printf() to display … | |
I am trying to find a way to create a transparent overlay that I can put anywhere on the screen, but that does not stop keystrokes and mouse events from passing through. If you have ever seen the program Camtasia, they do it... when you define a portion of the … | |
I think my jar to work needs mail.jar plus the others class files what to do? subject:javax.mail.Message I used jar cmf SMTPClient.mf SMTPClient.jar SMTPClient.class SMTPClient$SendAction.class SMTPClient$UpdateListener.class [B]mail.jar [/B]SMTPClient.java but gives (how include another jar in my jar and keep package structure?) [CODE] C:\Users\User\Documents\TextBooksDataFiles\Java Network Programming, 3rd Edition\jnp3examples\examples\19>jar cmf SMTPClient.mf SMTPClient.jar … | |
I am trying to create my own menu (and practice a little c#) and I am almost done. I have the menu and the context menu that will be shown created. I also have the context menu showing at the correct time. My problem comes when the menu disappears when … | |
hi friends I am developing a osCommerce website and I am strucking with displaying items. Ok Ill explain what my issue in my site ok I am using a sql query to display all the product in database. ok this is my query [CODE]$products_new_query_raw = "select * from " . … | |
MalikAamir! Plz help me i how can remove this error!!!!!!!!!!!!!! Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\libtest\index.php on line 110 | |
When you access a url that has several anchor tags on it. You know what I mean, links at the top that navigate to a specific point in that page by adding a "#name" at the end of the url. In every other browser, if you click on a few … | |
I have been thinking about order operations and generalized * in Python recently. I want to share some of my thinking here, even the topic is quite theoretical, considering the beauty and orthogonality of the language. [B]Point one[/B] You can do comparison with tuples of numbers in Python [CODE]>>> (0,0)<(1,1)<(2,2) … | |
I have a program code deal with a drug data in pharmacy ...the program is running without syntax error but I have a problem in search code ..it apply search on the first record only but didn't apply on other records..I have tomorrow an exam ..please help me..I'm sorry for … | |
[CODE]string name; char gender; string address; cout << "Enter the name : "; getline(cin,name); cout << "Enter the gender (M/F) : "; cin >> gender; cout << "Enter the address : "; getline(cin,address);[/CODE] I don't understand why this skips the input action for the address. | |
I am trying to sort a file by a quick sort comparison. The problem lies in parsing the string and comparing fields. I use the following to break up a line: records = [line.split(spl) for line in file(filename)] and the following to sort: records.sort( lambda a,b: cmp(a[fieldNo],b[fieldNo]) ) This works … | |
I'm testing to get my python script to still run if the smtp server it uses went down. I have a local mail server im testing this with. The issue is when testing it, i get a large spew of text. It checks all its libraries and such, untill its … | |
Hi guys I need help getting an event from a button in one class, so that i can act upon it in my other class. Because the class that invokes the class that has the buttons in it is the outer class, it has no access to the buttons on … | |
Okay so I'm making a basic spellchecker. I'm using a relatively small dictionary with about 1000 of the most common english words, all on separate lines in a text file. I'm on windows so I can't use the Linux dictionary. Anyways, It's not working. And I'm not quite sure why. … |
The End.