199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nageshkore

In an ancient land, the beautiful princess Eve had many suitors. She decided on the following procedure to determine which suitor she would marry. First, all of the suitors would be lined up one after the other and assigned numbers. The first suitor would be number 1, the second number …

Member Avatar for iamthwee
0
467
Member Avatar for nemoo

hey guys, I wanna use a transparent panel so as to place it on the top of other controls without hidding them and If I draw some lines on this panel those lines will appear on the top of the controls. when I set the backcolor to transparent it desn't …

Member Avatar for finito
0
176
Member Avatar for sachintha81

I am required to create a Desktop shortcut to a specific folder from within my C# program. I have two requirements. 1) On the Desktop of Current User 2) On the All Users Desktop Following is the code I used: [code]WshShellClass WshShell = new WshShellClass(); IWshShortcut MyDesktopShortcut; MyDesktopShortcut = (IWshShortcut)WshShell.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) …

Member Avatar for finito
0
2K
Member Avatar for x_mysterious_x

I have read theory about distributed database. Now i want to implement it practically but cant find any practical tutorial on distributed databases. All tutorials are theoretical. Can someone tell me how can i place two tables on two different servers and can retrieve data from them with a single …

Member Avatar for ayazkhatri003
0
80
Member Avatar for gjames

I have two questions that are Eclipse and Mac OS X specific. Question 1: Referring to eclipse preferences > java > Installed JRE's > Execution Environment: Can someone explain the [ execution environment's ] and compatible [ JRE's ]? I'm interpretting this as the execution environment being the JVM eclipse …

Member Avatar for gjames
0
159
Member Avatar for fiveseven

Hi, I have been making a checkbook program for my final project. When I run my program and try to read a file into my array, it is giving me this error: Exception in thread "main" java.lang.NullPointerException It is pointing to this specific line: balance = myRegister.alterRegister(checkBook[i].getAmount()); I'm not sure …

Member Avatar for jwenting
0
678
Member Avatar for g2gayan

:) Hey , Im creating a small application to convert pendrives from [B]FAT[/B] format to [B]NTFS[/B] :| but i have a small problem.. [CODE] Process p = new Process(); string d = txtPath.Text.ToString(); d = d.Substring(0, 2); p.StartInfo = new ProcessStartInfo("cmd", "/c \"format '+ d' /fs:ntfs" ); p.Start(); p.Close(); [/CODE] …

Member Avatar for g2gayan
0
146
Member Avatar for maria_mj

I want to directly display list of contact name using drop down list when company name is selected from the company list in a drop down list in the same interface. I have no idea how to do this. I am using C#.Net and SQL database. I try to use …

Member Avatar for dnanetwork
0
96
Member Avatar for decmatt

[Code] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","******","******"); //select which database you want to edit mysql_select_db("*******"); //If cmd is not hit if(!isset($cmd)) { //display all the news $result = mysql_query("select * from Cars"); //run the while loop that grabs all the news …

Member Avatar for rajarajan2017
0
104
Member Avatar for gskoli

Dear all, below code snippet insert one row to table & delete one row if its index in more than 11 . Its working Fine in all browser even working in IE but giving Error , I think that is Exception "Index or size is negative or greater than allowed …

Member Avatar for gskoli
0
146
Member Avatar for jonathan96

Im trying to output a dropdown select menu from an array, and it all works fine, but the default option isnt working. Heres what ive got: [CODE] <?php $usertz = $user->$main["timezone"]; foreach($timezonearray as $tz => $off) { echo "<option value='$tz'"; if($tz == $usertz) { echo 'selected="selected"'; } echo ">$tz"; if(array_key_exists($tz, …

Member Avatar for jonathan96
0
104
Member Avatar for cchris

I'm in the beginning stages of writing (and learning as I go) a Python database app using SQLite. I have the db structure planned on paper, and I have the queries I'll need in mind, but before I start coding I want to fully test the db design to make …

Member Avatar for griswolf
0
300
Member Avatar for khan17

hello all, im using the code below now to extract table of contents from a html page. it extracts the data which is available after the <table> tag. but what i need is to get the result which appear as though it appear on that html page. [i need the …

Member Avatar for khan17
0
108
Member Avatar for ceyesuma

Hello Can someone get me started in the effert to fix this SQL statement to be excepted to create a table in a derby embeded db? [code] public boolean createTables(Connection conn) throws FileNotFoundException, IOException { System.out.println("in createTables:"); boolean createdTables = false; Statement stmt=null; try { String thisTable=ModelUtils.getXMLResource("createAdminTable"); System.out.println("thisTable sql String: …

Member Avatar for ceyesuma
0
338
Member Avatar for eggberto

When I start to debug the following code in Visual C++ and it runs in debug mode, it gives me this error: "Unhandled exception at 0x1027d51c(msvcr100d.dll) in st.exe:0xC0000005: Access violation reading location 0x00000009." The weird part is that the program starts to run, but shows me the error a little …

Member Avatar for Salem
0
270
Member Avatar for chathuD

guys i need a help on virtual function on c++. what is a virtual function and how to use it, and what are the benifits of a virtual function

Member Avatar for Salem
0
152
Member Avatar for bobyx

Joined: 14 Mar 2010 11:05 Posts: 2 Hi.Still I have problem in my program codes.I write a program in mikroC PROV2.50 for my microcontroller(PIC 18F452) but I faced to a problem that related only to C language and compiler give me the following error messages; extern int adcvalmax[8]= {0,0,0,0,0,0,0,0};// 16 …

Member Avatar for 0x69
0
2K
Member Avatar for JhonRR

Hello everyone, I'm trying to write a script, i would like to say the child process will kill the parent process how would i do that? Thanx,

Member Avatar for griswolf
0
67
Member Avatar for sofakingjewish

I have to create a simple calculator and I dont know what I am doing wrong! The code I have so far, there are 23 errors I got it down from 42! Now I am stuck and dont know which way is up or down! [CODE]#include <cstdlib> #include <iostream> #include …

Member Avatar for jonsca
0
172
Member Avatar for fellixombc

How would I exactly do this? Heres what I'm talking about: src/test.h src/etc/work.cpp how can i get src/etc/work.cpp to include src/test.h?

Member Avatar for fellixombc
0
66
Member Avatar for prodstar

Hi, i'm trying to creating a program on c++ which relates to weight this is my problem so far [CODE] cout << "Enter weight between 1 to 60KG" << endl; cin >> weight; if (weight >= 1 && weight <= 60) cout << "Your weight is accepted" << endl; if …

Member Avatar for prodstar
0
172
Member Avatar for Graffixnerd

I want to calculate somebody date using his/her Date of Birth which is located on the database column name(DOB)..which sql function do i use and how do i use it on the Sqlquery..please help

Member Avatar for griswolf
0
88
Member Avatar for corby

hey guys/gals im havin a problem in my test.cpp file in line 65 where i have cout << date.print(); the compiler says: test.cpp: In member function âvoid Test::print() constâ: test.cpp:67: error: no match for âoperator<<â in âstd::cout << ((const Test*)this)->Test::date.Date::print()â where am i making a mistake because i have <iostream> …

Member Avatar for corby
0
2K
Member Avatar for surfgrommett

OK I have made a little progress and now face something else. I will paste my code here. OK here goes. I am loading a php page from another page by clicking on a table row. This table is filled with data from mysql. When i click on a row …

Member Avatar for surfgrommett
0
151
Member Avatar for BobbieJean

I've got this applet to build with no errors but then I try to run it and when I click the button in the applet, nothing happens...at least, not in the applet. Instead, jGRASP gives me all this stuff and I don't understand a bit of it: ----jGRASP exec: appletviewer …

Member Avatar for ragedsparrow
0
226
Member Avatar for shaun2106

How can we [B]shift the Origin [/B]from the Top-Left corner to the Center of screen in [TEX]Turbo C Graphics Programming[/TEX]?

Member Avatar for jonsca
0
351
Member Avatar for ghostrida45

My program complies fine but whenever I run it the applet loads but its blank and at the bottom it gives me Applet Not Initialized. I have no idea whats causing this if someone could help me out would be greatly appreciated. The Errors im getting are: [QUOTE] at javax.swing.ImageIcon.(init)(ImageIcon.java:167) …

Member Avatar for BobbieJean
0
296
Member Avatar for caut_baia

Hi guys.Can you write a program that reads data through a com1 serial port that communicates with a plc using c++ and inline asm instead of the ladder logic interface? I work at a cinema as a projectionist and the whole booth is automated with a bunch of these monsters …

Member Avatar for Ancient Dragon
0
123
Member Avatar for 4789787

This is the error I keep getting, This script works fine with the local SQL server running on my windows test box but when I try it with the SQL server running on my shared web hosting account with go daddy it gives this error, I think obviously their databases …

Member Avatar for 4789787
0
328
Member Avatar for webdev2111

I was testing out the Ajax auto suggest script and i kept giving the [B]object expected error [/B]and it is the eaxct code from w3cschool.com. Not sure what could be wrong? Here is the code [B]FORM part[/B] [ICODE] <script language="text/javscript" src="clienthint.js"> </script> </HEAD> <BODY> <form> First Name: <input type="text" id="txt1" …

Member Avatar for baseballfury
0
166
Member Avatar for P3druh77

Hi... i have a little problem on my code... HI open a txt that have this: LEI;7671;Maria Albertina da silva;xxxx@gmail.com; 9;8;12;9;12;11;6;15;7;11; LTCGM;6567;Artur Pereira Ribeiro;fdsdfsd@gmail.com; 6;13;14;12;11;16;14; LEI;7701;Ana Maria Carvalho;asasssas@gmail.com; 8;13;11;7;14;12;11;16;14; -------------------------------------------------------------------------------- LEI, LTCGM are the college; 7671, 6567, 7701 is student number; Maria, Artur e Ana are the students name; [email]xxxx@gmail.com[/email], …

Member Avatar for Aia
0
245
Member Avatar for songweaver

Hey guys, I have a homework assignment to which this form connects to a database via a gridview and the windows form at the bottom has a place at the bottom to enter a last name to which it should do a LINQ to SQL query based on the last …

Member Avatar for songweaver
0
221
Member Avatar for mozly

I followed a tutorial and built my own little program but get this message: Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at Gui.<init>(Gui.java:27) at appls.main(appls.java:6) What to do? Here is my code btw [CODE]import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JOptionPane; …

Member Avatar for mozly
0
86
Member Avatar for eric_arambula

Hi Guys, I'm a beginner programming with Python. This is my first program. The purpose of this program is to add two numbers and then give me the result. However, after that I want for it to ask me if I want to continue (y) or (n). I came with …

Member Avatar for eric_arambula
0
105
Member Avatar for Samoht VII

Ok i am trying to have the user give a directory via the command line (./a.out /usr/bin) and then output all the files in that directory. I don't really know how to approach this but here is what i have tried. [CODE]#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include …

Member Avatar for caut_baia
0
499
Member Avatar for qazplm114477

Which is better? I know that autoincrement fields allows you to get the last inserted id which is helpful when dealing with multiple tables, but other than that I'm not sure which I should use to make the database more secure/robust.

Member Avatar for griswolf
0
267
Member Avatar for debargha

i am facing problem while taking input via...JOptionPane.showInputDialog()....plz tell me what package i have to import for it.....:rolleyes:

Member Avatar for masijade
0
95
Member Avatar for Atlanticspace

Ok so im having some trouble trying to figure out how to read a line from a txt file which ive incorporated my C knowledge about reading a txt file into this main file. apparently im getting it wrong and Im almost confused. any help would be nice. posting my …

Member Avatar for VernonDozier
0
155
Member Avatar for Lubster

Hey all, I'm as new as it gets. My goal is to extract and store NTFS permissions (files/directories), for the purpose of restoring them on-demand (using Windows XP SP3). I read all around the subject, (specially over MSDN), and I managed to make a working code via the SDDL format. …

0
139
Member Avatar for alkeshtech

Hi guys, I am creating a university database, where student can take sections and courses have prerequisites. I have to make sure that when user takes a section, he has met all the prerequisites for that course he is signing up for. And, when a course is deleted from the …

Member Avatar for alkeshtech
0
94
Member Avatar for coding101

we started classes, i need some pointers on my code if you can help please. Define a class called Month. Your class will have one attribute of type int to represent a month (1 for January, 2 for February, and so forth). Include all the following methods in this class: …

Member Avatar for VernonDozier
0
106
Member Avatar for JPGleason

Hi Folks -- I'm an old Borland C++ 4.52 guy who used to rock at OWL and BDE in the 90's, but I'm not a programmer anymore. I still keep my fingers in it -- I've been maintaining a hobby app using my old BC++ 4.52 compiler from '95, and …

Member Avatar for Ancient Dragon
0
209
Member Avatar for skiracer

Hello, I am making a program that calculates factorial and summation. I ask the user what they would like to do, then ask them to enter a whole number. The program I wrote has loops, so if the user wants to do this again, they can. When I do the …

Member Avatar for mozly
0
74
Member Avatar for Pyro197

ok, so i have a problem to do in java that i just can't seem to figure out. here is the problem: Write a Java program that prompts the user for how many individuals they will be entering. Then program will then prompts for each individuals name and account balance. …

Member Avatar for mozly
0
130
Member Avatar for ihatestarch

I wasn't sure where to post this, so excuse me if I picked the wrong forum. My major is computer science and I'm approaching my last year in college. I haven't taken my lab science sequence yet and I was advised to take physics. Does it matter whether I take …

Member Avatar for Rashakil Fol
0
85
Member Avatar for mohammed2raja

I hv design a progress bar, the method start_progrss() starts the progress bas and the method end_progrss() stops the progress bar. I develop two file 1. loginfile.php and 2. downloadfile.php My loginfile.php contain two text fields user name and password. /*********loginfile.php ************/ [code=JavaScript]function mysubmit(){ //code start_progress(); // here i start …

Member Avatar for Zebulons
0
219
Member Avatar for beckveg

Hello everyone I want to run a .jar file, but the only way to run in my computer is with the "java -jar file.jar ", but the problem is that the application conects to a mysqldatabase, when I want to add something in the program appear a message that say …

0
121
Member Avatar for smith32

[CODE]File tempFile = new File(fw.getAbsolutePath() + ".tmp"); BufferedReader br = new BufferedReader(new FileReader(fw)); PrintWriter p = new PrintWriter(new FileWriter(tempFile)); String serData=(String)loadService().elementAt(i); StringTokenizer st = new StringTokenizer(serData, ":"); String code=st.nextToken(); String name=st.nextToken(); if (!name.trim().equals(deleteString)) { p.println(st); p.flush(); } p.close(); br.close(); if (!fw.delete()) { System.out.println("Could not delete file"); return; } //Rename the …

Member Avatar for smith32
0
428
Member Avatar for grady-lad

Hi I am doing a lab where I have to print out all of the locales when the JButton is pressed but when I run the program all it does is show the Vietnamese locale anyone any suggestions how to show them ALL ? [CODE] import java.awt.*; import javax.swing.*; import …

Member Avatar for moutanna
0
69
Member Avatar for ArtemisFowl

I need help creating a python function that makes concentric circles. I already have a function that makes a circle(from the Python Programming book), so I thought I'd use a for loop; however, I'm not sure how. Here's what I have so far: (where 'number' is the number of circles, …

Member Avatar for ArtemisFowl
0
4K

The End.