132,726 Archived Topics
Remove Filter ![]() | |
Hi i am new. i hope someone could please help me. i was having trouble with my java so i removed it from my computer and went to the net to try and reinstall it. no luck. all i get is (nsis error) file corrupt, 1335 error, internal error. i … Software Development java | |
Hi, was wondering if anyone could help me. I'm creating my own little simple tree structure, consisting of several JTextFields. Each TextField is added to a JPanel, which is finally added to a JScrollPane, which is then added to a JFrame. Everything is fine, apart from the position of the … Software Development java java-swing | |
How do I reverse the numbers in my program to produce the orginal numbers and the numbers in reverse? int magic_box (int N) { int digit1, digit2, digit3; digit1 = N / 100; digit2 = N % 100 /10; digit3 = N % 10; return digit1 + digit2 * 10 … Software Development c++ | |
What am I suppose to add here to buffer the weird sequence of numbers and letters? [code] /*------------------------------------------------------------------ * Assignment 4: Breaking the Code. Nested loops, command-line arguments.. *Worth: 50 points. 60 points if you write a "general purpose" program which can process ANY of the "document??.cry" files from the … Software Development c++ | |
Ever since I have heard that you can generate classes during runtime (from say, a URL I suppose) and can use java.lang.Reflect to fire methods based on String input, I was wondering how the process is done? Software Development java | |
In a dataGridView1, you can Edit for example 5 Columns but before the First Column there is one column that has a star(*) in fron of the first row. What I wonder here is if it is possible to take this column away. It is possible to 'drag' the column … Software Development c++ | |
I wonder if it is possible to change the color on the headers on a dataGridView1. I have searched in the members and properties but are not sure if I can find anything. By default it seems that the headercolor is "Control". Ex: is it possible to change the color … Software Development c++ | |
i'm having problems reading with scanf... i'm trying to input some coordinates enclosed in brackets but it kinda skips the input that way... is it forbidden to say scanf( "(%d,%d) (%d,%d) (%d,%d) (%d,%d)", x1, yo, x2, y2, x3, y3, x4, y4 );? i'm using yo instead of y1 cause cmath … Software Development c++ | |
I currently have a program that writes Sudoku boards to files; however, I would like the program to be able to read the board already in the file, copy it and then add another board to the file. It follows, then, that if there were two boards in the file, … Software Development c++ | |
dear all and my frnds, i wanna read data from a notepad and view after readin in output should be like in attached .prn.Plz revert as soona s possible. with regards suneel Software Development visual-basic | |
Hi everyone. Hope everybody is having a fantastic day. I have a simple question and need your advice to guide me towards a solution. My question is, rather, I need help with. I'm doing the game hangman and I currently have a string that contains the secret word that is … Software Development java | |
OK guys, I've hit a wall & can't find any info on what I'm wanting to do. Maybe someone can help me out here or point me in the right direction please? I have a shelve object- book. If I do book.keys(), naturally I get a list of the keys- … Software Development python | |
i get time field from a database table. But may i know how to convert it into 24 hour minutes and second. simpledateformat("hhmmss") is not working. Is there any other simple java method doing it? Software Development java | |
Having some trouble adding children to tree view. All of the parent nodes are created correctly, but it wont add more than 1 child to each parent like it should. It just adds 1 to each parent. Thanks in advance. [code] For J = 1 To WorkOrdersDataSet.BatchTable.Rows.Count() rootnode = workqtree.Nodes.Add(CStr(BatchTableTableAdapter.BatchID(J))) … Software Development vb.net | |
hi, i tried to connect to the database using simply applet, but it showed some error message, i m bit confused whether or not is that possible.. Software Development java | |
Please help i have added buttons but they aren't how i want them.....how do i change the letters to squares and how i want them? and at the very bottom i am confused with what to do next thanks for anyhelp import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.JOptionPane; public … Software Development java java-swing | |
Hi there. I'm now to this forum hoping to get an answer that I feel shouldn't be too complicated but, with that said, I haven't been able to find a solution to this after doing some research for a few hours today. What I am looking to do is take … Software Development python | |
Hello, I am programming an image application with a GUI. I open a grayscale image like this: [code] String^ s = openFileDialog1->FileName; s = s->Substring(s->LastIndexOf('\') + 1, (s->Length - s->LastIndexOf('\')) - 1); InputImageFileName = s; bmpInputImage = gcnew System::Drawing::Bitmap(openFileDialog1->FileName); [/code] then I create a new image [code] binaryImage=gcnew System::Drawing::Bitmap(bmpInputImage); [/code] … | |
Hi! I've got an assignment to read an input file and do some calculation and a graph and fancy stuff like that. The problem I am having is reading the file. I get a file that looks like this: [code] 0.00 1.776e-12 3.756e-07 0.000e+00 0.000e+00 0.20 1.769e-12 2.377e-07 0.000e+00 0.000e+00 … Software Development python | |
I have a report with a simple parameter (string parameter) and I'm setting it with this code: ParameterFieldDefinition parameter = _reportDocument.DataDefinition.ParameterFields["Filtro"]; CrystalDecisions.Shared.ParameterValues currentValues = parameter.CurrentValues; currentValues.Clear(); CrystalDecisions.Shared.ParameterDiscreteValue newValue = new CrystalDecisions.Shared.ParameterDiscreteValue(); newValue.Value = "Value to Set"; currentValues.Add(newValue); parameter.ApplyCurrentValues(currentValues); But when I run the report, the program show an automatic window … Software Development c# | |
Dreading memory leaks, I would like to make sure I have an understanding of the following code: [code=CPP] //vector initialized to allocate 10 string objects vector<string> *pvec1 = new vector<string>(10); delete pvec1; //10 vector<string> objects vector<string> *pvec2 = new vector<string>[10]; pvec2[0].push_back("test1"); delete [] pvec2; [/code] 1> Would executing the preceding … Software Development c++ | |
I need to make a handman game I have code but it won't show all the gesses at once and it won't end even if you get it right. PLEASE HELP This is what I have [code] #include <iostream> using namespace std; int main() { char solution[20]; //holds solution char … | |
So I have a multi-dimensional array, and I want to pass a reference of it to another function so that the array is defined in the scope of the function, because the array is not a global variable. If I can remember correctly, the syntax looks a little like this: … Software Development c++ | |
i am getting error in following program. what is "iota". Why it is giving an error in the following program [CODE] #include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { vector<int> V(10); iota(V.begin(), V.end(), 7); copy(V.begin(), V.end(), ostream_iterator<int>(cout, " ")); cout << endl; cin.get(); } [/CODE] | |
Hi, I am using Visual Studio 2008 with .NET, on Windows XP. Does anyone know how to (in C++): *Recieve a trigger signal(1bit) from an external device, ie throught a generic microphone input(jack). * Play/stream a 1D table of raw data(double/long) as an audible sound throught the sound card. Assume … Software Development audio c++ visual-studio | |
[ICODE]package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = … Software Development java java-swing | |
My problem is I have a cache file that I'm pulling in from a seperate source. The cache contains a long string that would look something like this except much longer. myexample=1 status=0 timesHit=2500 Basically I need help figuring out how to break this up into myexample=1 status=0 timesHit=2500 The … Software Development java | |
Hello. I am working on a code where I need to simulate a character string on the serial port com1. (/dev/ttyS0). I have a WinCom aplication which helps me to read the output from an Enigma receiver. This receiver sends out signal strings like this: 5012 444418E13001000<DC4> // signal @ … Software Development c++ | |
Hi, I am jahan, i just started java applets and i was trying to draw a graph. The idea i am using is based on drawLine(xmin,ymin,xmax,ymax). I wanted to get a graph for sinx which is proving to be difficult. i used following syntax to implement my idea: import java.awt.*; … Software Development java | |
I want to access my mobile phone,connected through its USB cable, from a C program to send AT commands to it.Can sumbody pls help me Software Development c | |
Hows it going everyone. Right now I am trying to read data from a text file into a datatable, and display the datatable in a new form. I am trying to use a string array to store the variables before adding them to the table. Everything compiles etc correctly, but … Software Development vb.net | |
Hi there! I'm building a small application using Java and MySQL (college assignment). Everything is ok when all I'm doing are queries using SELECT. Now, when I try to INSERT anything in the table, I get this error message: java.sql.SQLException: Can not issue data manipulation statements with executeQuery(). 0 S1009 … Software Development java java-netbeans sql | |
Hi all, using C language we can read text files. we can read each and every character. ch =fgetc(filepointer); but i want to know how to read folders. for ex: fopen("c:\one foldername", "r"); in out put i want print subfolders and files. if any body know please help me... thanks … Software Development c | |
hello, I am writing a script to send email to all the users. Can anyone provide the syntax or internet source in reading line from a dir or text document? if users are under /home like: student1 student2 student3 student4 student5 student6 my try is: #!/bin/sh line =`read` while : … Software Development shell-scripting | |
I want to run the following code. Its giving error as "Fatal Error" not able to open 'print.hpp' . No such file or directory.. I didn't understand what is #include "print.hpp". what type of file it is. shall we have to write this header file before executing the program. [code] … Software Development algorithm c++ open-source | |
I am trying to add user input using the raw_input function to string url_orig. I am attempting to replace the spaces with +'s to make a 'google search'. the replace function works fine in IDE but not when I excecute the program. Any help will be appreciated [code]url_orig = 'http://www.google.com/search?hl=en&q=' … | |
This is a very beta peice of code in a function I am working on that will write records to a file (casted as character data). I'm using an overloaded operator to set values in a class called Account. My teacher insists that I use the account as a way … Software Development c++ | |
Hi, all. I am very new to C++ and am close to losing my mind with the homework. We are asked to generate a multiplication table using a 'for statement'. User is to input a number between 1-12; the program will generate a multiplication table and should loop for no … | |
msspitul Member since: 5/21/2008 From: Northborough, MA, United States Posted - 5/21/2008 12:43:01 PM Hi, I have a program that was originally in VB that I am trying to convert to C#. I have converted all of it succesfully accept for a part that uses the "like" statement. The program … Software Development c# | |
Hi Guys, I created a single instance C# application tool that I use in my work every day. I assigned a windows shortcut key so that I can launch it using keyboard and I created it so that it will only appear in my system tray when minimized and not … Software Development | |
I need to write a small program which collects (20-36 string) data from several com (serial ports) and sends them out on one. For example com2,3,4 to com1. It should be on Windows Xp workstation. (It is possible that I will do it later on linux, it seems to me … Software Development c c# c++ open-source | |
Hello, I am currently designing a system using C# winform. However, there is a problem in opening and closing multiple winform. For example, when i run the application, a login form will appear on top of the main form. The main form will only be enabled after user enter the … Software Development | |
This code i've written keeps showing an error "constant expression expected in function main". I'm not sure if the code i've written is on track. [code] #include<stdio.h> #include<math.h> #define MULTIPLY 1 int i,n; int operation; int Answer = 1; int main() { printf("You are welcome\n"); printf(" how many numbers do … Software Development c | |
I have written a few games in C++ with OpenGL, and I am working on another one now, its my biggest project. Everything works really great on my computer, but whenever I move my executable to another computer, the depth testing completely stops working. I have no idea what causes … | |
I was trying to see if my code for copying an array worked when I got this scary looking error message: Debug Assertion failed! Program: ...dio 2008\Projects\Test_Prep\Test_prep.exe File: f:\dd\vctools\crt_bld\self_x86\srt\dbgdel.cpp Line: 52 Expression _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) Here's my testing code and the function I wrote: [CODE]int main() { const int MAX_SIZE = 5; … Software Development c++ | |
Hi, I've been trying to analyze the source code to some applications but so far I've been unable to figure out how to receive user input while the program is of doing something else. My program consists of a small list of items which are being constantly sorted. The problem … Software Development c | |
why is this giving a syntax error? [code] int function ( int x) { x ? return 1 : return 0; } error C2059: syntax error : 'return' [/code] Software Development c | |
guys...could I ask for your help, I was given a programming assignment but I cant seem to understand the problem heres the problem: [B]write a program that creates an array of 100 random integers in the range from 1 to 200 and, then use a sequential search to search the … Software Development c++ | |
Hi , i am writing a program concerning college administration .I have to creat a delete botton but i dont know how to start my coding .I know there is two type of delete methods such as kill and mycomputerfilesystem.deletefile(m-fielpath).Can anyone help meout how to write the complet delete code … Software Development vb.net | |
I wanna share with my friends but they dun have QBasic on thier comp. Ill put my programs on a floppy disc an give it to em but i cant figure out how to make them able to run without the actual QBasic program. It gets so frustrating! :evil: Software Development qbasic |
The End.