132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sirlink99

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
Member Avatar for NormR1
0
319
Member Avatar for Prankmore

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
Member Avatar for Prankmore
0
3K
Member Avatar for iparanjpe

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
Member Avatar for peter_budo
0
109
Member Avatar for AshfaqueIW

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
Member Avatar for peter_budo
0
180
Member Avatar for pocohontus

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
Member Avatar for Netcode
0
106
Member Avatar for ranu jain

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
Member Avatar for NormR1
0
138
Member Avatar for hqt

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++
Member Avatar for sergent
0
175
Member Avatar for winonus

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++
Member Avatar for Narue
0
338
Member Avatar for winonus

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++
Member Avatar for winonus
0
119
Member Avatar for Majestics

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
Member Avatar for NormR1
0
114
Member Avatar for moneypro

#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++
Member Avatar for moneypro
0
179
Member Avatar for Mits14

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
Member Avatar for Mits14
0
248
Member Avatar for eoop.org

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
Member Avatar for Ketsuekiame
0
172
Member Avatar for sim_pack

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
Member Avatar for mKorbel
0
470
Member Avatar for menonnik

How can we find a sub array in a 1-D array? Is there any other method other than brute force method? It is not for maximum sum so we can't use kadane's algorithm.

Software Development algorithm c
Member Avatar for menonnik
0
240
Member Avatar for tuancoltech

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++
Member Avatar for tuancoltech
0
669
Member Avatar for v1nc3nts

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
Member Avatar for Ketsuekiame
0
327
Member Avatar for fcaoile

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 …

Software Development app-store gui java
Member Avatar for Muralidharan.E
0
116
Member Avatar for bbyynn

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
Member Avatar for peter_budo
0
191
Member Avatar for GPXtC02

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
Member Avatar for Ketsuekiame
0
3K
Member Avatar for lianpiau

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
Member Avatar for lianpiau
0
199
Member Avatar for blacknred

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
Member Avatar for k_manimuthu
0
282
Member Avatar for saqi1986
Member Avatar for Ketsuekiame
0
738
Member Avatar for soniagupta98

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
Member Avatar for finfort
0
135
Member Avatar for Geodude0487

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
Member Avatar for lolafuertes
0
106
Member Avatar for break

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
Member Avatar for debasisdas
0
86
Member Avatar for ranu jain

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
Member Avatar for ranu jain
0
380
Member Avatar for Nicko_FaTe_

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
Member Avatar for Nicko_FaTe_
0
163
Member Avatar for tyochola

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++
Member Avatar for WaltP
0
156
Member Avatar for Silent-Regret

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
Member Avatar for Silent-Regret
0
255
Member Avatar for halien

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
Member Avatar for bvdet
0
274
Member Avatar for xenhancd

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 …

Software Development c++ ios
Member Avatar for mike_2000_17
0
235
Member Avatar for lashbandi

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
Member Avatar for sirlink99
0
282
Member Avatar for keevin

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 …

Software Development c ios
Member Avatar for basrikul
0
436
Member Avatar for dubez001

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++
Member Avatar for dubez001
0
370
Member Avatar for justyno

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
Member Avatar for NormR1
0
87
Member Avatar for TheDocterd

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
Member Avatar for d00garuz
0
278
Member Avatar for mridontknow

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++
Member Avatar for mrnutty
0
2K
Member Avatar for theCompiler

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
Member Avatar for theCompiler
0
177
Member Avatar for james6754

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
Member Avatar for Momerath
0
196
Member Avatar for sirlink99

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
Member Avatar for mKorbel
0
197
Member Avatar for CSharpUser

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
Member Avatar for CSharpUser
0
455
Member Avatar for emmas4impact

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
Member Avatar for WaltP
0
132
Member Avatar for SlzzyDzzy

[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
Member Avatar for SlzzyDzzy
0
243
Member Avatar for ARaza110

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
Member Avatar for hfx642
0
201
Member Avatar for bantex07

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
Member Avatar for bantex07
0
117
Member Avatar for reeky_15

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 …

Member Avatar for MarkGia
0
3K
Member Avatar for darangho

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
Member Avatar for darangho
0
373
Member Avatar for singh_soorma94

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
Member Avatar for singh_soorma94
0
305
Member Avatar for smartjugal

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
Member Avatar for smartjugal
0
147

The End.