132,726 Archived Topics
Remove Filter ![]() | |
Hi Im having this issue with my code. Cannot implicitly convert type 'string' to 'Event' (Class) - Thats the error message. Im trying to save an object of my class to an array but its coming up with this message and I dont see why it cant do it because … Software Development | |
I am trying to write a program that will tell me how many calories are in a certain number of eggs, cups of flour, cups of sugar, etc. I have a set number of calories for each of the items (i.e. each egg has 72 calories), but I ask the … Software Development vb.net | |
I'm trying to create a SimpleBirthDay calculator.The requirement is "program must use a Scanner class and JOptionPane class to capture input from user".But i'm having a problem on getting the messagedialogbox to show the result.I found out that using the Scanner class we gonna need to insert the data into … Software Development java java-swing | |
printBoard: A call to this function with printBoard(5,4,[1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]) would print the following output to standard output: |-----------| | 1 0 0 1 0 | | 0 0 0 0 0 | | 0 0 0 0 0 | | 0 0 0 0 0 | |-----------| def board(l,h,list): %a length, … Software Development python | |
Hi, I wrote this code as is from the JNDI tutorial from sun website. But I am getting this exception while running it: [CODE]import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import java.util.*; /** * Write a description of class FirstJndi here. * * @author (your name) * @version (a version number … Software Development java | |
Hello. I have started writing a program that adds students and courses into a university. The problem I have is I keep getting "Student.java:62: cannot find symbol" errors, I looked at an example and I have it setup the same way so I don't know where I am going wrong. … Software Development java | |
So I have a number of CSV files with 6 columns of numbers in each file. I would like to perform a few operations (multiplication, division etc.) on each column in each of the CSV files using Python and instead of opening each file manually, I want to add the … Software Development python | |
I have 1 listbox, 1 textbox, and 2 buttons (for start, and stop) if I press the the buton for start the textbox will display (one by one) the items in listbox.. and if i press stop the textbox will stop displaying items.. is it possible? do i have to … | |
I need to modify this movies program so that way the DVDs will be sorted by title at all times (A first thru Z). I need to use Binary Search so I put a method in DVDCollection but I'm probably missing something or calling it incorrectly. The program needs to … | |
Hi guys, i have been having some problems parsing a list of strings. lets say i have a list that has the following strings [code] List<String> list = new ArrayList<String>(); list.add("Process A Started"); list.add("Process B Started"); list.add("Process B Finished"); list.add("Process A Started"); list.add("Process C Started"); list.add("Process D Started"); list.add("Process C … Software Development java | |
Howdy all . Im doing a code for study but cant get it to compile any help would be greatly appreciated.. public class Flight { //instance variables private String flightNumber; private String day; private String destination; private int seatsBooked; private int numberOfSeats; // constructors public Flight() { this.flightNumber = " … Software Development java | |
Hello, The following applet displays two .jpg files (ImageIcon objects - x and y) on a JPanel. I would like to display the second ImageIcon object (y) as transparent. Is that possible? Thank you! [CODE] import javax.swing.*; import java.awt.*; public class PicPanel extends JApplet { ImageIcon x, y; JPanel panel; … Software Development java java-swing | |
Hi guys I have part of the code that looks something like this: [CODE] if(c1=='a') myStack.push(c1); else if(c1=='b') myStack.push(c1); else if(c1=='c') myStack.push(c1);[/CODE] I just want to ask is there any way to rewrite this code, to make it more compact something like [CODE]if(c1==('(a'||'b'||'c') // I know this doesn't work [/CODE] … Software Development java | |
1 using System; // help me to write this code in object oriented 3 namespace ConsAppl_OOP_Keo_c39 4 { 5 class Procedure_Orieted_Programming 6 { 7 static void Registration(string studentID, string courseNumber) 8 { 9 Console.WriteLine("Данныерегист-циистуд-та: №студента - " + studentID + ", №курса - " + courseNumber); 10 } 11 static … Software Development | |
does any one know why my for loop work fine but printf("%c",num[0]); get me 0? [CODE] void test(char[]); void test2(char[]); int main(void) { char num[10]; test(num); test2(num); } void test() { num[0] = '1'; num[1] = '2' } void test2(int num[]) { for(a = 0; a < 10; a++) { … Software Development c | |
I have a what should be a simple form program that has a comboBox, textBox, two buttons, and a label. once the user picks an item it shows the cost for that item. they can then enter a number into the textBox, once order is clicked the total amount for … Software Development | |
Hi All, I'm going crazy with this. I have a file called unique.txt with allot of values in. When I run my script it will add 1 value (1319613308.476855) to my value file but when I grep the value it displays nothing and I know the value is present in … Software Development shell-scripting | |
Well I have a small problem. I'm currently working on a project and I want to check if the user has pressed the space. Let's say I have [CODE]string Txt = "Hello, daniweb"; [/CODE] and I have a textbox which the user is writing on it. I have made a … Software Development | |
If we write some text in edit box which already contained in tree control in mfc when we click the button its remove from tree control .Plz tell me in visual c++ mfc plz fast replt . THANKS IN ADVANCE Software Development c++ | |
Hey guys, I've been having a bit of a problem using the while function. Here is my code (Simplified): [CODE]Dim RandomNumber3 As Random Dim RandomOutput3 As Integer RandomNumber3 = New Random() RandomOutput3 = RandomNumber3.Next(1, 9) Dim RandomClass As Random RandomClass = New Random() While (RandomOutput3 = RandomOutput Or RandomOutput2) RandomOutput3 … Software Development vb.net | |
Good Afternoon, I'm new to C# programming and I'm taking Networking this semester. The professor asks to write a program in C# Write a program to discover the IP address of your machine. Also an interesting modification to this program is to give the host name and let the program … Software Development dns | |
in form it have 2 listbox and in listbox1 and listbox2 items have "s1" , "s2" "s3" [CODE] Select Case ListBox1.Text And listBox2.Text Case "s1" p1.visible=tre Case "s2" p2.visible=tre Case "s3" p3.visible=tre End Select[/CODE] i want that the code check it item in listbox1 or 2 then do the same … Software Development vb.net | |
hey, im getting the exception [CODE]Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com.sun.media.jai.codec.SeekableStream at javax.media.jai.operator.BMPDescriptor.class$(BMPDescriptor.java:65) at javax.media.jai.operator.BMPDescriptor.<clinit>(BMPDescriptor.java:87) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at javax.media.jai.RegistryFileParser.getInstance(RegistryFileParser.java:224) at javax.media.jai.RegistryFileParser.registerDescriptor(RegistryFileParser.java:360) at javax.media.jai.RegistryFileParser.parseFile(RegistryFileParser.java:295) at javax.media.jai.RegistryFileParser.loadOperationRegistry(RegistryFileParser.java:55) at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:369) at javax.media.jai.JAI.<clinit>(JAI.java:382) at cbir.window1.ColorHistogram.<init>(ColorHistogram.java:61) at cbir.window1.SearchWindow.jButton1ActionPerformed(SearchWindow.java:92) at cbir.window1.SearchWindow.access$000(SearchWindow.java:22) at cbir.window1.SearchWindow$1.actionPerformed(SearchWindow.java:47) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) … Software Development file-stream java java-swing | |
I have an integer called: int pID = 0; Inside my while loop I'm using pID++; to increment it. Sometimes the pID doesn't get incremented and sometimes it will. My sample output would be. 0 1 2 2 2 3 4 5 5 6 7 Does anyone have an idea … | |
Hello masters, I want to know how to check an empty textbox in the form. I can check it by assign Text1.Text = "". But i have many textbox in form. Thank you in advance Software Development visual-basic | |
![]() | Im working on a Search index that searches through files that you manually add to the index, I'm having trouble with my GUI right now. Never used any java IDE before and its giving some unfamiliar suggestions. Netbeans wanted to make my main class abstract (but for no reason stopped) … Software Development gui ide java java-netbeans java-swing ![]() |
Hi all, How i can split a sentences into words and add splitted words into listbox. Thank you. Best regards Eko Software Development visual-basic | |
I want to change chars in string like this: if i input DaniWeb it will change it to EbojZfc I've come so far: But this changes to z at the end :S Please any help... [CODE]#include <iostream> #include <string> #include <algorithm> using namespace std; int numChars(string besedilo); int numWords(string besedilo); … | |
![]() | Hey, I'm kinda crappy with arrays. [CODE] int [] myArray = new int[5]; myArray[0] = num1; // initialize # of cols myArray[1] = num2; // in each row myArray[2] = num3; myArray[3] = num4; myArray[4] = num5;[/CODE] I want to use a for statement, to add these 5 things together, … Software Development java ![]() |
hi every 1. i am trying to make a search form with 1 label(surname) and textbox. i have 1 gridview on the form aswell. can you plz provide me any code so that when i type in textbox i should c the result in the gridview. wat i have done … | |
Hi everyone, I develop application using Java-RMI, and I want to run as XHTML web page, help me please, thank you? | |
Hi there I am new to .net and I have put at least 4 hours in to figuring out why i cannot view my results when I run a datagrid in my 2010 visual studio WPF application. Also, it looks like it is only filling one record in the datagrid. … Software Development dataset open-source vb.net visual-studio | |
how would you go about highlighting text in the tkinter text widget ? | |
[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * MainMenu.java * * Created on Feb 22, 2012, 7:28:37 PM */ package f1carracing; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JOptionPane; /** * * @author … Software Development image java multithreading | |
[CODE] Private Sub save_Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer w = New IO.StreamWriter("e:\test.txt") For i = 0 To ListBox1.Items.Count - 1 w.WriteLine(ListBox1.Items.Item(i)) Next w.Close() End Sub[/CODE] this code will save all items in listbox but i want when u click an item(selecteditem) … Software Development vb.net | |
Could I find some translator which could translate partial C++ codes to equivalent C codes? like [code] int max(int A, int B); double max(double B, double B); [/code] would be translate to something like [code] int maxInt(int A, int B); double maxDouble(double B, double B); [/code] [code] template<typename T = … Software Development c++ | |
The following errors popped up upon compiling is there a way to fix this in dev c++ ??? Please resond here or to <snip> Thank you. \Dev-Cpp\lib\gcc\mingw32\3.4.2\include\syslimits.h [Warning] #include_next is a GCC extension <- I have mingw installed from the included updater in dev c++ C:\Dev-Cpp\include\sys\types.h ISO C++ does not … Software Development c++ | |
What is meaning of "nature of entity"? e.g. kind of function, global variable? Is there any code to check it? Also, how to detect the memory section in memory map? e.g. environment, command line arguments, code/, global initialized data, global uninitialized data, stack, heap etc. Is there any code to … Software Development c motherboards-cpu-ram | |
Hi All, I can't figure this out, I have a listview and I want to export it and finally found how to do it but I'm stuck here.. Here's the code. [CODE] Dim Row0 As WorksheetRow = sheet.Table.Rows.Add Row0.AutoFitHeight = False Row0.Cells.Add("PROJECT_NAME", DataType.[String], "s67") Row0.Cells.Add("USER_NUMBER", DataType.[String], "s68") Row0.Cells.Add("JOBNAME", DataType.[String], "s68") … | |
The startup that I set in my project is not the same when I open the exe file of my project. Someone can help me? tnx Software Development vb.net | |
i want 128 bit key in my academic project. Can any one please tell me how to generate 128 bit key in c++. Software Development c++ | |
Hello people, I hope everyone is well. I have just started learning silverlight and retrieving data through Linq to SQL. I have a problem with retrieving certain coulums from the table. I can retrieve through an object that retrieves all the columns but I don't want this. i managed to … Software Development sql | |
I have a project where we are calculating the cost of shipping a product from manufacturer to warehouse using North-west corner and also using another method to find the minimum cost to meet the demand. I am stuck on coding the minimum cost algorithm, I understand the minimum cost algorithm, … | |
You are to write a program that will allow Apollo College to maintain the marks and grades of its students in a programming class. Assume there are ten students in the class. Your program will need to store the following information for each of the students: 1. Student’s name, to … Software Development c++ | |
serial port problem is occuring,,, pls guide on the same as i new to this,,, [CODE]#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <termios.h> int main() { int fd; int wd=0; unsigned char buff[] = { 0x02, 0xFA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x23, 0x01, … Software Development c | |
is it possible to access an access database without ms office or just using references or .dll Software Development microsoft microsoft-access microsoft-office vb.net | |
Hi Ive got an error message saying "Object reference not set to an instance of an object." It doesnt make sense to me and the troublshooting tips says to make a new keyword, but since Im new to C# I dont fully understand it. Heres the bit of code thats … Software Development | |
Hello, Can any one provide me with the Crsytal report runtime installer for Visual Studio 2010.. I have the installer of Visual Studio 2008 but its of no use... I need the installer that is the .msi file.... Can anyone provide it to me...coz I have searched a lot.... Software Development vb.net visual-studio | |
Any commands for creating database using oracle command? as well as creating tables? I have this in creating table but did not work. Having invalid table name error. [CODE] Imports Oracle.DataAccess.Client Imports Oracle.DataAccess.Types Public Class dump Dim conn As New OracleConnection Private cmd As OracleCommand Private da As OracleDataAdapter Private … Software Development dataset open-source oracle vb.net | |
please help!!! i have a datagridview on my form with customers info which is linked to my database. i want to execute a line of code based on the information in one of the columns in the datagridview??? for example i have a datetime column which stores dates(and maybe time) … Software Development vb.net |
The End.