132,726 Archived Topics
Remove Filter ![]() | |
I am trying to save an image with this line [CODE]ImageIO.write(image, "JPG", new File(fileDestination.getText()));[/CODE] but it is giving me an error. [CODE] java.io.FileNotFoundException: C:\Users\Adam (Access is denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(Unknown Source) at javax.imageio.stream.FileImageOutputStream.<init>(Unknown Source) at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(Unknown Source) at javax.imageio.ImageIO.createImageOutputStream(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at screenCapture.CaptureScreen.actionPerformed(CaptureScreen.java:111) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) … Software Development file-stream java java-swing open-source | |
I am trying to take a user input phone number and perform calculations on it as an integer of type long long. I've tried this but it only reads the first 3 numbers then when it reaches the hyphen it stops. [CODE=C] printf("Enter Number: \n"); //get input from user count … Software Development c | |
Tell me what u think I want to create an application that takes a stream of stock price data from many stocks. It then checks for resistance levels. If the stock has hit a level consistently and then bounced back down twice, it is saved to a jtable file or … Software Development file-stream java | |
Hello all, I want to develop Android java applications for Android Smartphones(>Android 2.1) and Android Tablets(>Android 3.0). I had already downloaded the Latest Android SDK and Eclipse plugin for that. The entire environment for developing the android application is ready with me. I have professional experience of programming in C++ … Software Development android-development c++ java | |
well this is not a help post its something i want to tell everyone i just had my project viva and my project was awesome my sir liked it very much it was success.....i was asked to submit my resume so that my professor could recommend me for job interviews … Software Development vb.net | |
hello, i have a question--- i have to implement arraylist by using array. and i m using following approach- [CODE]package DS; import java.lang.reflect.Array; public class ArrayList<T> { T ob[]; public ArrayList(Class<T []> c, int s) { // Use Array native method to create arra of a type only known at … Software Development java | |
I recently change Code:Block. But I don't know, when I compile, at line 1: [CODE]#define <stdio.h> or #define<cstdio>[/CODE] I see an error:macro names must be identifier. When I compiled on DevC++, I saw no error. the second question I want to ask is, who have link or documents.etc.. that teach … Software Development c++ | |
I am trying to write some tool for MSDOS environment but it doesn't work as expected. I want to get the tool to read from some commandline pipe, like C:\> type a.txt|testpipe where testpipe.exe is the compiled program. The problem: After going through the piped contents, it does not stop … Software Development c++ | |
I am using OpenWatcom to code C++ for interest, and I am in search for better compilers. OpenWatcom doesn't have string input and output operators overloaded, I always have to use workarounds. Can anyone name some [COLOR="#ff0000"]standard[/COLOR] compilers which compile and link [COLOR="#ff0000"]pure DOS exectables[/COLOR] for me? Software Development c++ | |
As java programmer know that program made under java are converted to jar file for usage... And an updation in any class require that jar to be updated. So is there any way that we can update the class file at runtime rather then whole jar file. I want to … Software Development java | |
#include<iostream> using namespace std; class area { double dim1, dim2; public: void setarea(double d1, double d2) { dim1= d1; dim2 = d2; } void getdim(double &d1, double &d2) { d1 = dim1; d2 = dim2; } virtual double getarea() { cout<<"You must override this functionn"; return 0.0; } }; class … Software Development c++ | |
Hi everyone.. i don't know how to display NO RECORD FOUND in msgbox.. here is my codes [CODE]Private Sub btngo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btngo.Click open_con() sqlsearch = "Select *from tblborrower where ID_no=" & txtidno.Text & "" cmd = New OleDbCommand(sqlsearch, con) dr = cmd.ExecuteReader While … Software Development vb.net | |
Hi, i want to start a process called: notepad.exe wich is a software that windows give you. How do i start that process in a mdi container ? process.start("notepad.exe"); in mdi container :S Software Development | |
hi, i have a JButton object and i added an actionListener to it. it works well with a mouse click, but if use the keyboard enter key while the focus is on the JButton, nothing happens. do i need to add a keypress listener on top of the actionListener to … Software Development java | |
Hi all, I'm developing an application which helps to manage car park by recognizing the car's plate number. I use VC++, OpenCV, Windows SDK and DirectX in this app. But I'm now having a little trouble with it. Let me introduce a bit about how my system works so that … Software Development c++ | |
I got this error when tried to compile.. 1>------ Build started: Project: experiment, Configuration: Debug Win32 ------ 1>Compiling... 1>commands.cpp 1>..\..\..\..\commands.cpp(19) : warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> C:\Program Files\Microsoft Visual Studio … Software Development c++ visual-studio | |
I have a java gui app which will be used by various secondary schools. I'm actually in the process of adding some "activation/serial code" before someome can use the program(they need to pay for it). I'm thinking of using an online mysql from a remote server to store and check … | |
Hi all, I just make a program and I get in trouble about set method.so anyone can help me? [CODE] import java.util.LinkedList; public class Polynomial { private LinkedList<Integer> coeff = new LinkedList<Integer>(); private int deg = 0; /* Constructs a new polynomial of degree zero */ public Polynomial() { } … Software Development java linked-list mathematics | |
I made two simple client and server socket chat programs. Client connects to and interacts with the server application perfectly on localhost, but I can't get the client to connect over directly connected LAN. The client/server are connecting to/listening on port 2869 - the only port I found that would … Software Development c# client-server | |
I want select rows from datagridview and insert into another Table(give the table : Label) Now my problem is this datagridview contain columns quantity and ItemPerPackage. Quantity column is Total quantity for this item and ItemPerPackage is 1 package can contain how many quantity. therefore, I want this 1 record … Software Development | |
I got a file: [CODE]I wake up in the morning What time? Always wakeup at 6am.[/CODE] what would be an easy way to determine the number of white spaces between each word? Thanks in advance David Software Development perl | |
Any IDea how to Parse a String without using Split method Software Development | |
hey can any one help me in writing the code : Write a Java program that sorts given integers using threads I am not able to proceed ..What should i have in main function() Software Development java | |
Hey everybody, it's been a while since I've been on Daniweb lol but I'm back and I need some advice from anybody willing to help. I'm writing my dad a program to help him catalog his 10's of thousands, no exaggeration, of football cards. The information he wants stored in … Software Development | |
How can i start to create a Auto alert when somebodys post on your wall. just like facebook.. tHANK YOU SO MUCH. Software Development vb.net | |
A university wants to aumomate the parking area present inside the premise. Students and faculty members are required to buy passes in order to park their vehicals in the parking lot. The different types of passes available are : Cars : Weekly pass : 70 rs Monthly pass : 280 … Software Development java | |
Hi i have a task to stores marks for students, a struct is used to store this. the thing giving me trouble at the moment is how to read and store a floating point number within a struct, the data specifically for the mark is on 1 line of a … Software Development c c# c++ file-stream ios | |
I am writing a code that is supposed to give the payroll info for a specified number of employees. The user is first asked to enter the employee’s name, hourly wages, and number of hours worked for the week. Then when that is done the employee’s data, which consist of … Software Development c++ | |
As the thread states, I'm curious as to how I could come across this. I can open the file with an OpenFileDialog, or edit it while it's in process, but not open it, edit a memory address, then resave it. Mainly because I have no idea what it'd be called … Software Development | |
Hi all, I am trying to write a list of complex numbers to a csv file. The list looks like: [QUOTE] cpl1 = [(-6.4703169037894082e-12-2.7429131015110908e-12j), (-9.0688415110840026e-11+1.7513018812920222e-11j), (-1.8522787470498514e-10+1.3074128585310874e-11j), (-5.8563154325952382e-10-6.4430377699764563e-10j), (2.1451734832922398e-10-9.987741744765799e-10j), (2.9095870157647141e-10-6.3227384439201728e-10j), (1.9448214150230569e-09+5.1612969453884716e-10j)] [/QUOTE] The complex numbers are to be written to file to look like: [QUOTE] real, imaginary, real, imaginary, real, imaginary, … Software Development python | |
I have created a program allows you to input the amount of items purchased, and then input the price of each item and the sales tax. It then creates a receipt which totals all the prices and sales tax. Now I want to be able to list the items and … | |
Hi everyone... My boyfriend's birthday is on Saturday, August 13...and i wanted to do something really different this time...since we are 1,000 miles apart...i was thinking if i could write a program which would generate random messages which I would already have written in the code... i was thinking of … Software Development gui ide java java-netbeans | |
Write a global function called format, which formats numbers with a given number of decimal places. The function accepts a compulsory first argument of type double (the number to be formatted) and a second optional argument of type integer (the number of decimal places) and returns a string object containing … | |
Hey guys, my first post on here, I need help with setting up basic collision with a program I just did up. I downloaded sfml about an hour ago, and I have a cube I can move around, and want it to stop moving, when colliding with a stationary cube. … Software Development c++ | |
am developing a typingTutor quite similar to mavis beacon. i have designed the keyboard which highlights the press key on the syatem keyboard whenever a key is pressed. the program has a screen that displays moving text which the use has to type to match correctly.my problem is how to … Software Development java | |
Hi All I am looking for a way to pass certain columns from a datagridview to a previous form. The columns i want passed is clientname, contactdetails, email, cellphonenumber, telephonenumber and faxnumber. How it works is as follow: In my form I have some read-only textboxes. Above them I have … Software Development | |
i got difficulty here, i dont know how to create a random vector consist of 4 strings. using vector. [CODE]int main () { string red,yellow,blue,green; }[/CODE] i want to create random vector for those four colors. please help me.. -im a beginner for c++ Software Development c++ | |
i dont know how to random select a word in c . a big help is highly appreciated .. tnx :) for example the words are Ana,Lorie and Denise . how to random select from those words ? Software Development c | |
I have this code.... [CODE] char ch; for (int i = 0; i < 10; i++) { ch = (char)('a' + i);//here Console.WriteLine(ch); ch = (char)((int)ch & 65503);//and here Console.WriteLine(ch + ""); Console.ReadLine(); } [/CODE] Now what I would like to ask is where ('a' + i) is, how is … Software Development | |
I have made this screenshot program in hopes of eventually making a screen recorder, but I am having trouble displaying the image for the user to see. I currently have it so that it displays and saves. When it displays it is blank, but when it saves there is a … Software Development image java java-swing | |
First, I want to admit I am totally new at Linq queries. Your help and patience are GREATLY appreciated! I am trying to perform a query on a loaded XML document with the code below, but no matter what I try, I continually get an unhandled NullReferenceException error: [CODE] XDocument … Software Development xml | |
I have a customer record which i wish to modify so i wrote the following to modify it but each time i typed the name i want to modify it will not modify and prints not found! [CODE]void modify(){ char another='y',choice,name[25],flag='n'; long id; do { //clrscr(); //rewind(fc); printf("SEARCH BY NAME … Software Development c | |
[code] #include "stdafx.h" #include <iostream> using namespace std; int main() { cout << "Hello World!"; cin.get(); return 0; }[/code] Compiles and runs in dev cpp and notepad ++ but not in visual, Im trying to teach myself witht he internet but have no idea why this wont work. [CODE]1>------ Build … Software Development c++ visual-studio | |
I am using MouseRotate class of Java3d to rotate two cylinders. But when i rotate one cylinder the other cylinder rotates with it. Is there a way around this problem. Thanks. Software Development java ![]() | |
Someone can gave me a code for search as u type searching from may MS ACCESS DATABASE Thx GOD SPEed :P Software Development visual-basic | |
I'm a newbie in vb. My first project is a grading system for a certain school. In my login form, there's a [B]Forgot Password button[/B]. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is … Software Development asp.net microsoft-access vb.net visual-basic | |
Hi, I am trying to create a make file for a java project. It has a directory structure look like this: src folder [INDENT]-package1[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package2[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package3[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package4[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] I am new to makefile, but tried to create one according to some tutorials on … Software Development java | |
I was making a windows form project. in the project the user inputs the number of dice rolls he wants(2 dice will be rolled) and then i am suppose to give the number of times each number happened and the percent of times each number happened. The only problem is … Software Development | |
try { string path = Application.StartupPath + @"\IMAGE\"; if (!System.IO.Directory.Exists(path)) System.IO.Directory.CreateDirectory(Application.StartupPath + @"\IMAGE\"); string filename = path + @"\" + openFileDialog1.SafeFileName; pictureBox1.Image.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg); System.IO.File.Move(path + @"\" + openFileDialog1.SafeFileName, path + @"\" + textBox1.Text + ".jpg"); } catch (Exception ex) { MessageBox.Show("Failed To Save" + ex.Message); i made a registration form.there … Software Development |
The End.