132,726 Archived Topics
Remove Filter ![]() | |
Hi all. pls help me.I repair a program for my need.At that time Text are not appear.Original progarm is here. [code] import java.awt.Color; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; public class MarqueeFrame … Software Development java java-swing | |
Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these … Software Development python | |
Just wondering what the difference is. I don't think I need to post my code, but basically for my assignment, I have stubs for a binary search tree. There are nodes created in the constructor, and among them are: Node parent Node predecessor Node sucessor Node right Node left Is … Software Development java | |
Right, you're going to think I'm crazy but is Association like "Has is" For example: I have 2 classes, Teacher and Classroom, to create association would be: Teacher has a Classroom? Thanks Software Development c++ | |
Please help, I don't know why it is not reading the file. I am working in VS C++ 2008, I saved "input_data.txt" in the header files, see below. What is wrong? #include <iostream> #include <fstream> #include <ctime> #include <cstdlib> #include "input_data.txt.h" using namespace std; class Node { public: int x; … Software Development c++ linked-list | |
Hello friends, I am having a problem writing a function to search for a string in an input file. I have successfully output the file with line numbers, which was the first step in the program, but now I am stuck on searching for a given string. After searching for … Software Development c file-system | |
Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these … Software Development java | |
I get an error trying to parse som XML. The error is [icode]System.Xml.XmlException: Root element is missing..[/icode], and I can't understand why. Here is the code I run: [code=C#] MemoryStream xmlStream = new MemoryStream(); StreamWriter xmlStreamWriter = new StreamWriter(xmlStream); String xml = "<html>\n<body>\n\n<h1>My First Heading</h1>\n\n<p>My first paragraph.</p>\n\n</body>\n</html>"; xmlStreamWriter.Write(xml); xmlStreamWriter.Flush(); XmlReader … | |
Hi, I am having problems with a device bulit by a colleague that needs to be working for Tuesday. If you talk to this device in HyperTerminal it errors all the time as it get the data from the UART too quickly it , he has found a thing call … | |
The code is evaluating a expression tree. My issue is on line 57 when I try to dynamically allocate an array to be used as the nodes in the expression tree, the compiler gives the following error: tree.cpp(58): error: no suitable constructor exists to convert from "ExprNode *" to "ExprNode" … Software Development c++ | |
Hello friends, I've tried to install wxwidgets in my mandriva 2009 spring for GUI interaction with python. In the installation instruction it said that i need gtk+ library. So i downloaded GTK+. When i configured GTK+ i got the message checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3 … | |
The program runs but has a logic error how can I fix it? and I need to finish the header block on the function, but I don't know how to, can anyone help [CODE] #include <iostream> using namespace std; // Function prototype bool searchList(long [], int, long); // Constant for … Software Development c++ | |
Hi, I have an assignment to read mails from Outlook and store them in DB in C# plateform. When I read the attachment File and store its contents in BYTE[] when I run the query to store contents in Database it is throwing EXCEPTION [quote]"An object or column name is … Software Development c# microsoft-office | |
I want to knw whether I can access WAMP 's function (of course mysql) such as export & import programatically. (I am using java) or as mysql commands??? Thanks Software Development java | |
The programming assignment is to read a text file, extract the words from it, and save them in a 2D array that contains the word and the number of occurrences of that word. For example, if a text file contains the words "first" "second" "third" "second", the array should contain … Software Development c | |
Hi, this is one of my hw problems for the week and having trouble writing this code.-- QUESTION: 1. Create a program that will generate a 10 question math quiz for single digit addition. Your program should create 2 random numbers in the range of 0 – 9 and then … Software Development c++ | |
Hello, Can anyone help me out i need a code to generate button at runtime having its text displayed from database using array concept. in my store procedure i have id and description and i need to display the description on runtime generated button. Thanks, suhasini Software Development | |
[CODE=vb.net]'Radio Choice Selection Console.WriteLine("Please enter the Radio Choice for your vehicle: ") Console.WriteLine("Enter 1 for AM/FM Radio") Console.WriteLine("Enter 2 for AM/FM/CD/DVD") strRadioChoice = Console.ReadLine() Select Case strRadioChoice Case "1" Console.WriteLine("Price : $100") Case "2" Console.WriteLine("Price : $400") Case Else Console.WriteLine("Invalid selection") End Select SellingPrice = BasePrice + strEngineChoice + strInteriorChoice … Software Development vb.net | |
Hello, I've downloaded the setup of Netbeans-6 IDE JavaSE for Windows from Sun's website. When I run the setup, it says, "Error starting program: A required .DLL file, USERENV.DLL, was not found". Has anyone faced this problem before? Please guide me. | |
Hi All.............. I have made an application in C# .NET , in which there is a textbox. In the textbox I want to insert a dot such that it remains there always but during runtime ,it should be hidden(invisible)and whatever I enter in the textbox during execution that content in … Software Development | |
This is basically my code. It says build succeed, but I get nothing. What am I doing wrong. The user inputs a sentence, for example, Hello. (I've taken out other parts such as return LOWERCASE, return DIGIT, and what would happen in those cases for ease of reading). The program … | |
Hi, i need to block input if first char 2 and second char must not be more 5. And first char input must be 1 or 2. Specifically I need the input of only 1-25 and nothing else. I tried and only allow entry of numbers, but fail to limit … Software Development | |
I've written an app in VB2008 using a Windows Vista laptop. My problem is that when I run the app on my XP desktop, the fonts look a little blurry/blocky. I've attached 2 screenshots (which don't really capture the issue too well unfortunately). The 'Vista' screenshot is the one I … Software Development vb.net windows-vista | |
I have a 2D vector of different values. It could be text or numbers. I need to be able to see what is in the vector and to do something depending on what is in there. How do i access each element of the vector and add to a temp … Software Development c++ | |
I have orders.xml like the following [CODE]<?xml version="1.0" encoding="UTF-8" standalone="no"?> <orders> <order orderDate="1/1/2009" orderNo="1"> <customer id="nnghiem" name="nguyen nghiem"/> <item id="item-1" price="25000" quantity="0"/> <item id="item-2" price="22000" quantity="3"/> </order> <order orderDate="2/2/2009" orderNo="2"> <customer id="lp" name="lampard"/> <item id="item-1" price="25000" quantity="2"/> <item id="item-2" price="22000" quantity="8"/> </order> <order orderDate="3/3/2007" orderNo="3"> <customer id="nnghiem" name="nguyen nghiem"/> <item … Software Development xml | |
Hello, would you please assist me in solving this problem: I have an Excel object (Excel.Sheet.1) in MS Word document. I'm trying to write a Visual Basic macro for MS Word to change the data in cell A1 of this table. How can I access the cell? I can only … Software Development visual-basic | |
Hello all, I'm currently using Windows Vista and Visual Studio 2008 to develop my code. I'm working and a very big project and I'm looking for a good profiler for performance analysis. Any recommendations? It would also be nice to keep the solution as low cost as possible (free is … Software Development c++ visual-studio windows-vista | |
Hello all. I'm feeling pretty confused about how UDP port forwarding is done. My situation is: I have [B]Comp1[/B] with a local IP (192.168.0.2) connected to [B]Comp2[/B] with external IP and internet connection, and some unknown Internet Client ([B]IC[/B]) (three of them actually), who needs to send data to the … Software Development client-server tcp-udp windows-server | |
this is the code in vb.net for searching when a serial number is given from the sqldatabase..................... [CODE] Private Sub s2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles s2.Click Dim a As Integer Dim b As Boolean Dim connection As OleDb.OleDbConnection Dim command As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader … Software Development asp asp.net open-source vb.net | |
v got a final year proj. which reqs us to build a network monitoring kinda tool initially we are just planning to do a basic boot failure detection of the client m/cs....atleast for this semester....then add better functionalities to it. 1) can anyone suggest how do v go about doin … Software Development client-server java socket-programming | |
Hi All, Please tell me a good research idea to do a good project for my final year within 6 months. This is for my BSc Software Engineering degree. Its going to be an individual project and it would be great if its a research idea. :S I'm good in … Software Development engineering java | |
Hi, I'm trying to encrypt a simple .txt file. What I want to do is is described by the function definitions. I want to change all my characters in the .txt file to lower case and then convert any digits found into *. I've done this before in the past, … Software Development c++ | |
I have a function which initiates commands for a command class. Since there are many commands to initiate, writing code for each one would be tedious. The function definition is as follows- [code=C#] private static void InitCommand(KeyGesture input, String text, String name) { InputGestureCollection inputs = new InputGestureCollection(); inputs.Add(input); Type … Software Development | |
Hi, I am working on code to have a drop down menu from which you can pick items and add a button with that course. Unfortunetally, I can't get the button to display. And help is greatly appreciated. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ComboBoxFrame extends JFrame { … Software Development display java java-swing | |
Hey guys need help with this problem that is suppose to read an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average. Enter a negative number to signify the end of the input. Assume that … Software Development vb.net | |
so i'm stuck in creating a do/while menu doing this. menu option 1 - use the for loop menu option 2 - use the while loop menu option 3 - use the do/while loop in each option, print the numbers from 1 to 10 I made my functions like this. … Software Development c++ | |
[code]#include <iostream> using namespace std ; class Singleton { public: // Implement the logic here to instantiate the class for the first time by validating the // member pointer. If member pointer is already pointing to some valid memory it means // that the first object is created and it … Software Development c++ | |
I'm supposed to merge a ordered data of two files into a third file, keeping the data in order. I'm suppose to create a MergeFiles application that merges the integers ordered from low to high in two files into a third file, keeping the order from low to high. Then … Software Development java | |
Hai, I am developing and application based on mail sending where i need a functionality based on saving the content(mail) and deleting mail. Plzzzz Help Software Development | |
Greetings! I am in need of some techincal assistance. My problem is as follows: In my Programming class, we are starting to use the graphics package in Python. We are using a module called graphics.py In order to use this module, we have to save it to the desktop and … Software Development python | |
Hello, I am developing an application and I use a 3rd party library which is basically Native excel. The problem is that this library does not implement an event which is able to notify me when the value of a cell value changes. Can I do it in my program … Software Development vb.net | |
Hi all, Im trying to get my head around object persistance, yet im getting nowhere. All i have found is examples of stuff to do with databases. Can somebody offer an explination for an idiot please. Regards Paul Software Development java | |
m using visual studio 2005 and sql server 2005. i want to create a backup of the sql server which m doin using the following code.. [CODE] if (saveBackupDialog.ShowDialog() == DialogResult.OK) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = @"backup database dbname to disk =@loc with init,stats=10"; cmd.Parameters.Add("@loc", SqlDbType.VarChar); cmd.Parameters["@loc"].Value … Software Development sql visual-studio | |
Hey!! I am trying to make a 2-player game; where one player plays after the next. I have used socket programming in the code; so that, when the client (player 1) clicks on the window, the co-ordinates are sent to the server (player 2) and vice-versa. (For now, both player … Software Development client-server java socket-programming | |
I am writing a game code and I keep getting these erroes 359 E: Game.cpp redefinition of `void PlaceYourBet()' 155 E: Game.cpp `void PlaceYourBet()' previously defined here can anyone help me out with these errors I know it must be simple. Software Development c++ | |
I have a xml file like this [CODE] <?xml version="1.0" encoding="UTF-8" standalone="no"?> <orders> <order orderDate="1/1/2009" orderNo="1"> <customer id="nnghiem" name="nguyen nghiem"/> <item id="item-1" price="25000" quantity="0"/> <item id="item-2" price="22000" quantity="3"/> </order> <order orderDate="2/2/2009" orderNo="2"> <customer id="lp" name="lampard"/> <item id="item-1" price="25000" quantity="2"/> <item id="item-2" price="22000" quantity="8"/> </order> <order orderDate="3/3/2007" orderNo="3"> <customer id="nnghiem" name="nguyen … Software Development xml | |
I need to convert the following XML file [code=xml]<Para> <PgfTag value="Body" type="str"/> <Pgf> <PgfFont> <FFamily value="Times New Roman" type="str"/> <FWeight value="Regular" type="str"/> </PgfFont> </Pgf> <ParaLine> <String>Underlined charcter</String> </ParaLine> </Para> <Para> <PgfTag value="Body" type="str"/> <Pgf> <PgfFont> <FFamily value="Times New Roman" type="str"/> <FWeight value="Regular" type="str"/> <FAngle value="Italic" type="str"/> </PgfFont> </Pgf> <ParaLine> <String>Italic … Software Development xml | |
Hey there, I'm taking a C++ class and got a two staged assignment to hand in soon. I'mhaving troubles with it and was wondering if anybody could lend me a hand? We are to design and implement a web forum in C++. It is supposed to be a stand-alone application, … Software Development c++ client-server user-interface web-browser web-design web-server | |
I was running into run time errors, and stripped down my code to isolate the problem. From that I was able to write this little piece of code to demonstrate my issue: [CODE] #include <windows.h> class test { private: int a; public: test(); void run(); }; test::test() { a = … Software Development c++ visual-studio | |
It has no errors or warnings but nothing is working what could be the problem and the assignment says that I need to a finish commenting the function header blocks. ( i don't know what that is and I don't know if this is the reason that it is not … Software Development c++ |
The End.