199,114 Archived Topics
Remove Filter ![]() | |
I was connecting my sql 2005 database from windows applications using a specific username and password. when i have created the user manually i can connect easily to my application. but when i created the user with code ie using sql scripts i was not able to connect to the … | |
hi! can some one give me a code for exporting listview data to excel? thanks | |
im Trying to make a label move when i push The WASD Keys But as i push it pauses i dont know how to fix it so it goes as soon as i push it Heres Code So Far[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; … | |
Hello, I am trying to use the allegro game library (5.05) and I came across an error. It involved not being able to find -lgcc_eh so I switched it to static-lgcc_eh and it worked fine, that is until I got an error for not finding allegro-5.0.5-mt.dll . I looked in … | |
Hi Guys, Im completely new to this website and quite new to programming, Currently im doing Programming at college, Due to some unforeseen circumstances i had to miss a few weeks at college, Could someone please help me with a problem? I have been trying to figure it out on … | |
When I open my form that contains a DataViewGrid the first row is always automatically highlighted in blue showing that it is selected. If I use Me.DataGridView.ClearSelection() the highlighting disappears and the row "appears" to be unselected but when I check with Me.DataGridView.CurrentRow.Index the value returned indicates that the row … | |
hi, how can i pervent from crontab concurrent run ??? thats mean when my crontab Take too long , with this crontab another crontab not runs... please help me ... | |
Please can you help me to solve an exercise in Java ? Here is the exercise : Create e program in Java that shows an image in a panel. The program let the user to make 2 clicks repeated ( make first click and immediately make the second click. ) … | |
Hello Daniweb, I am writing a program to execute the command prompt command "getmac /v >> MACLIST.txt" using a Visual Basic form, including: 2 buttons(getmac and filter the text file) , 2 textboxes (alternate text file name and user name), and two radiobuttons (default text file name or custom name). … | |
I have 2 arrays. One is an array of images other an array of numbers. The images are card faces, (Card(i)), the integers are the corresponding values of the cards (Value(i)). I want to associate the card face with a corresponding value. However, everytime I do what I think is … | |
I'm new to programming and C++. I've managed to succesfully insert multiple nodes from front. Problem is that when printing it starts with the latest node and goes "backwards". I would like it to start with the first node and print forward. Therefore I would like to insert new nodes … | |
Hi. I have a web site that contains jquery tabs and one tab consists of a sortable jquery. Although the sortable works induviduallay it doesnt work when it is put into the tabs. Is there a solution of that? My tab code is as follows. <script type="text/javascript" src="javascripts/jquery.js"></script> <script type="text/javascript" … | |
Sir I need some urgent help. M currently doing a project on hotel management system in C# using visual studio 2005 and SQl server 2005. The main problem m facing ri8 now is m unable to ADD and DELETE data to the server in the windows form. M alredy connect … | |
i actually learned java only a day ago and we have to submit assignment after two days. i wanted to figure out what i did here with class and function definition is correct. if correct can you help me out with the compilation error. in fact all are similar. it … | |
i dont know whats wrong with this program...the compiler compiles the program but when i run it it shows: j[B]ohnrambo@ubuntu:~/Desktop$ java lora Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:443) at lunda.l2read(lora.java:24) at lora.main(lora.java:124)[/B] [CODE] class lunda{ String[] la=new String[2048]; String[] lb=new String[2048]; int[] lvalid_a=new int[2048]; int[] lvalid_b=new int[2048]; int[] … | |
Hey guys. So I'm doing this project for my end-of-year exam and it's running. But I can't seem to go further beyond a point. This program asks the user as series of questions and then analyses the symptoms to give the result ie, if the user is diabetic or not. … | |
can anybody help me what is wrong in syntax of following [CODE]ihex=Integer.parseInt(s5,16); String bin=Integer.toBinaryString(ihex); System.out.println(bin); if(bin.length()-10 > 0) String orgpc=bin.substring(bin.length()-10); else String orgpc=new String(bin);[/CODE] this is what compiler shows [B]nchy@ubuntu:~/Desktop$ javac bpbc.java bpbc.java:61: error: Syntax error on token "orgpc", delete this token String orgpc=bin.substring(bin.length()-10); ^^^^^ bpbc.java:63: error: Syntax error, insert … | |
Hello there, Currently doing some work for my coursework. I've noticed the "\n" is obviously the new line function or whatever you guys call it, but would you understand what I mean when I say it creates too much of a new line? For example, I want the newline to … | |
[CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class ClientProgram implements ActionListener{ //static FilmCollection collection = new FilmCollection(); static boolean condition = true; static int memberPassword = 123; static JButton button1, button2, button3; public static void main(String[] args){ int mPassword; JFrame myFrame = new JFrame("Member Login"); //window's title myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//perform exit when … | |
I am writing a Java program, a MP3 Manager, but I have problems to work with buttons, TextFields, and TextArea. Here are the problem descriptions. Create a class MP3 with instance variables for: artist, song, album, track length (in seconds). Provide a constructor, get/set methods, and a toString. method. The … | |
I have this assignment where I have to make an xml that has movies names and info. Then i have to make a StAX program that locates the xml file and reads it. The program should also be able to count the number of movies in the decade. Thats the … | |
NEED HELP~! I want to create a openfiledialog and allow user to choose which exel file to be imported into the server but this error keep coming "ODBC--connection to '{SQL Server}'TGT102 failed". Thank you so much~~ PS. I am just a beginner of vb.net. So would u pls tell me … | |
[CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main() { oneclass.hello(); return 0; } class one { private: int num; public: void hello(); }oneclass; void one::hello() { num++; cout << num; } [/CODE] Could anybody please please tell me what is wrong with this code. I think … | |
I dint know how to title this but... I`ll start from begining, i have a .txt file loking like this: 2011-11-14 15:39:51,Polnoc 2011-10-13 15:41:54,Polnocny-Wschod 2011-10-14 15:43:04,Wschod Then there is a code that shows data from last mont,week,day looking like this: [CODE]$lines = file('Kier.txt'); $monthlist = ""; $weeklist = ""; $daylist … ![]() | |
I'm seeing a problem where some $_SESSION variables are passed from one page to another, and others are not. The session is setup on login, with user identity held in $_SESSION["id"]. At a later date, I want to shift the identity to another, subordinate account. The change is handled by … ![]() | |
hello guys im tryingg to write a program which will generate an aeiou grid...if the program finds two consecutive vovels in a sentence then it will thake the first vowel as the row and second one as the column reference ...and do a +1 in that location i seem to … | |
Hi, How would i have a text box where each new line is a bullet list. [CODE]<ul> <li>method line 1</li> <li>method line 2</li> </ul>[/CODE] Can i extract the HTML code tags with the text and insert it into a database with the code and text? So it can be accessed … | |
int a=320; char *p; p=(char *)&a; printf("%d",*p); gives 64\\\not sureif p or *p in pf wat in the world does (char *)&a does ?? sum1 help plzzzz | |
I am trying to create a a splash screen... I have attached the image file..please have a look.. the splash screen performs a diagnostic procedure and displayed the results in a multi-line label.. I have used another thread to write msgs as results in label.. and its working as it … | |
I’m writing a Windows Form Ap that manages a series of website. I created a website class then pre-loaded std::list<WebSite> from an INI file. Now I need to use that list in other places in the code so I tried to move it into the private member area and got … | |
I wrote a program that does rudimentary tile mapping based on reading in information from a "map file" and drawing the map on screen. I need it to be drawn in a scrollable window so it doesnt matter how big the grid is defined in the map file. I have … ![]() | |
Hey all. I am completely stuck here. I want to implement a round robin based service capable of load balancing http requests. ATM I have a thread with an infinite loop which listens for TCP connections. When it finds a connection, it runs another thread which will process the request. … | |
hello all! i am working on a program that reads in a text file that the user inputs, creates a text file that the user inputs, names the text file that the user wants, and then sorts the text file sorting words above the user entered in threshold and displays … | |
I know this is an OLD thread, but i"m having the same problem. a Runtime error when trying to "OPEN" a file. [CODE]public void actionPerformed( ActionEvent evt) { //filterMap.put(evt.getActionCommand(), ((JCheckBox)evt.getSource()).isSelected()); if(evt.getActionCommand().equals("export")){ String file2Read; file2Read = fileIN.getText(); //file2Read = "NotConverted2.xls"; new BPSepcExporter().BPSReader(file2Read); } //If to check if Open button was hit … | |
Basically I've got a working drop-down menu php/mysql script running using the internet as my guide. But one thing I don't really understand is the significance of the period in [CODE]$options.[/CODE] [CODE]$sql = "SELECT DISTINCT artist FROM hits ORDER BY artist"; $result = mysql_query($sql); while ($row=mysql_fetch_array($result)) { $artist=$row["artist"]; $options.="<option>$artist</option>"; } … | |
Hello everyone, I did have a look around with search option to see if I could get an answer their, but I couldn't quite find my issue(at least I don't think I did). This is for a final project for school where I have to create a class for a … | |
what I mean by undefined error is because I don't know what the error is about. :P, actually it's because the error not from the code itself, but it's about a compiler that can't defined some sort of file... btw, as title said, the error is from the code in … | |
Well really simple: I want to compile for my Pentum 4 and not a WIN32 Console App. What tag/thing would I use for this? | |
Hi, Does anyone know a method or some code to find out whether two numbers have at least one common factor? I currently have a gcd method that finds the greatest common divisor between two numbers however an arithmetic exception is thrown if the two numbers have no common divisor. … | |
How to upload images, audio files, video files using single form and store their names in appropriate tables? database [CODE] CREATE TABLE IF NOT EXISTS `photos` ( `id` bigint(12) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, PRIMARY KEY (`id`) ) CREATE TABLE IF NOT EXISTS `audios` ( `id` bigint(12) NOT … ![]() | |
As you may have noticed, you can't use this property for any element you created yourself. Here's a workaround: [CODE]string sId = "Id of the element you want to change the property of"; string sInnerHtml = "The new InnerHtml string you want to set"; string sScript = @" var oElem … | |
[CODE]#include<conio.h> #include<stdio.h> #include<iostream.h> #include<process.h> #include<dos.h> #include<time.h> #include<fstream.h> #include<string.h> class getInfo { int dep; int with; int bal; int year; int mon; int day; char des[100]; public: getInfo() { dep =0; with =0; bal =0; year =0; mon =0; day =0; strcpy(des,""); } int year1() { return year; } int month1() … | |
i have a project ,and i don't know how to run it in netbean ide - i am a begineer in java2e - i got a project in which some notepad like screen is there when running -jar exe file - and a option is there for compile and running … | |
Hi, I have got 2 arrays; one hold ingredient and the other hold measurement. how would i go through and list the ingredient with its corresponding measurement in the other array until i have listed all the ingredients for the recipe. here is the code i currently have. I have … | |
How do i match "00:04" and "4+21:08" which is ("days+hrs:mins" and "hrs:mins") in a file. I would like to combine regex patterns so I can calculate running time. This is what i got for regex but does not match "00:04" --> (\d\d)(\:)(\d\d) [CODE]if($string = ~ m/(\d)(\+)(\d\d)(\:)(\d\d)/) { #code goes here … | |
Can anyone see what's wrong with this piece of code? When I try to compile I get an error on the first line (line 3) "cannot find symbol, symbol : method split(char)" I have the delimiter btw as a public static final char in the same class. [CODE]private static boolean … | |
I am making an iPhone App which requires user to go to a website and then download a file from which then ill extract the data and display/use it as i please.... I can go to the website using safari from within the app, but can i download a file? … | |
Hey all, I'm trying to write a Polynomial Class but I'm having some trouble. I'm having the coefficients and exponents stored in a dictionary, like so... [CODE] class Polynomial: def __init__(self, *termpairs): self.termdict = dict(termpairs) print (self.termdict) if __name__ == '__main__': d1 = Polynomial((2,3), (4,5), (8,9)) print (d1) [/CODE] This … | |
Here is my code. It is perfectly working on Local but not server. Need any library to work on server. [CODE] <?php //include "../dbconnect/cnn_mysql.php"; //mysql_query("insert into admin (loginid, pass) values ('superuser', '".md5('mypassword123')."')"); if($_POST) { include "../dbconnect/cnn_mysql.php"; //$userid=mysql_real_escape_string($_POST["userid"]); //$pass=mysql_real_escape_string($_POST["pass"]); $userid=secure_form_data($_POST["userid"]); $pass=md5(secure_form_data($_POST["pass"])); $result=mysql_query("select * from admin where loginid='$userid'"); if($result && mysql_num_rows($result)>0) { … ![]() | |
This is my jsp code for saving back the data to .properties file after editing. i used 2 Linked properties as one LinkedProperties pro is to get the data from the path and the other one to get attribute (eg: id, name, age, gender etc.) from default .properties file so … |
The End.