43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Zaad

Hi; This is a code that I got from the examples in Oracle in using the javax.print When i try to compile and run a get an error saying javax.print.PrintException: java.lang.IllegalArgumentException: URI is not hierarchical [CODE]package printtry; /* * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. * * This …

Software Development file-stream java oracle printer
Member Avatar for Zaad
0
4K
Member Avatar for VIEBlitz

[CODE]package test; import java.util.Scanner; public class Test { public static void main(String[] args){ Scanner kbReader = new Scanner(System.in); System.out.print("Choose mode (\"words\" or \"symbols\"): "); String mode = kbReader.nextLine(); if ("words".equals(mode)) { String oa = " plus "; String os = " minus "; String om = " times "; String …

Software Development java
Member Avatar for VIEBlitz
0
173
Member Avatar for HEMAMBUJAVALLY

hi friends, i m very newbie to vb.net. i'm using opendialog control to select the database file. this works for me. [COde] Private Sub btnbrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnbrowse.Click opendatabase.ShowDialog() txtfilename.Text = opendatabase.FileName End Sub[/COde] Then i need to connect with the actual code. i'm …

Software Development microsoft-access vb.net
Member Avatar for lysezoudn
0
471
Member Avatar for codeorder

Having a bit of an issue with my file.scanner and that issue is that I cannot figure out how to run multi.threading when searching the files within a folder(8,000+ files). [CODE]Imports System.IO Module x Function xGetFolderFilesCount(ByVal selFolder As String) As Integer If Directory.Exists(selFolder) Then Return Directory.GetFiles(selFolder).Length Else Return 0 End …

Software Development vb.net
Member Avatar for codeorder
0
479
Member Avatar for Aleksej

Hello guys. I'am trying to make my search program, so that i can load a text file and search it. I used this code for browsing and opening [CODE] Dim streamer As IO.StreamReader Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click OpenFileDialog1.ShowDialog() TextBox1.Text = OpenFileDialog1.FileName streamer …

Software Development file-system legal visual-basic
Member Avatar for Jx_Man
0
180
Member Avatar for Rakham

I'm using IO.File.ReadAllLines(FileName) to read all lines from text file to array of strings at once. Problem is, text lines include ANSI characters above ASCII value 127 (Scandinavian letters e.g. "Ä" (Ascii 196), "ö" (Ascii 246) and "é" (Ascii 233). Array is build up nicely, but all chars above ascii …

Software Development vb.net
Member Avatar for thines01
0
741
Member Avatar for kalcio

hello, I prepare an application uses the result of the command prompt (Runtime.getRuntime (). exec (cmd)) for a command already entered, and displays it in a Textarea, but I notice that if I use a modal box the problem persists, my problem is that this application is in frensh,if any …

Software Development java
Member Avatar for kalcio
0
341
Member Avatar for mc3330418

I tried to write the function myself for a switch statement that would take a char and multiply it by a certain amount and then return the total. I'm a little confused on how the object gets passed to the case function. But here's what I got. [CODE] #include <iostream> …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for moroccanplaya

i have variable a with binary values then i have variable b with another set of binary values, i want variable b to into variable a and stored into variable c, i hope that not confusing a = "01101000011001010111100100000000000000000000" b = "011000100111100101100101" c = "01100010011110010110010100000000000000000000"

Software Development python
Member Avatar for moroccanplaya
0
120
Member Avatar for Thropian

I started into a project in Python,Tkinter. I have a button that I have two images for. I know buttons include the "-relief" option so I can get rid of the border. Now I'm trying to get rid of the click animation border, and have the image on the button …

Software Development python tkinter
Member Avatar for floatingshed
0
6K
Member Avatar for honeybee2090

in application am using list box i load items from a text file i want to remove single items from list and want to keep duplicate items in listbox any help?

Software Development vb.net
Member Avatar for honeybee2090
0
112
Member Avatar for profyou

when will the expression (std::cin>>buff) evaluate to false(0)? I have been trying to take input until empty string is entered(simply press enter) ? Is there any other way to achieve this?

Software Development c++
Member Avatar for deceptikon
0
181
Member Avatar for bloodbender

Hello Daniweb, I can't wrap my head around this minor issue. Maybe it's a known bug and I just can't find the right keywords to google it or maybe it's supposed to be like this. Let me know what you guys think. [CODE] public class TestPostfix { public static void …

Software Development daniweb-bug first-post java
Member Avatar for bloodbender
0
131
Member Avatar for ginan

Hi all, any help would be greatly appreciated. This program is supposed to allow the user to read in a txt file with ingredients for recipes. We were asked to use the fstream and to use functions to read in the info and display it. I am new to this …

Software Development c++
Member Avatar for ginan
0
9K
Member Avatar for stevanity

When I compiled this program... [CODE]#include<iostream> using namespace std; class base { public: virtual void show() { cout<<"\n Base class show:"; } void display() { cout<<"\n Base class display:" ; } }; class drive:public base { public: void display() { cout<<"\n Drive class display:"; } void show() { cout<<"\n Drive …

Software Development c++ ubuntu
Member Avatar for gerard4143
0
200
Member Avatar for Gaiety

Hi, I have just started learning PERL. below is the code i have written , i am expecting the same order that of array when i print the contents. but the output was [ICODE] 29 25 Michael 29 Walter 34 Donny 25 Sobzchak 30 [/ICODE] can some body please clarify …

Software Development perl
Member Avatar for Gaiety
0
103
Member Avatar for cs_1000100

Hello, My question is if I have program programmed by matlab and I want program an interesting interface using another program language such as java ,can I do that? Please give me suggestions about programming wonderful interface using matlap or any other language can integrated with matlap because the original …

Software Development java mathematics
Member Avatar for cs_1000100
0
261
Member Avatar for miramiey

Hello, I am creating simple an applet to draw a registration form based on the selected item within the awt choice object. I have include a radio button, choice list and button. My problem is when running the Applet...the choice list is blinking and when I maximized or minimise frame …

Software Development gui java
Member Avatar for JamesCherrill
0
224
Member Avatar for kothaisaravan

Hi, I have an c# application works with oracle database communicates through java web service. In windows XP it works fine with calendar, but with Windows Server 2008 R2 Service Pack 1 it does not work instead it shows some error(the same application is used in both the environment). I …

Software Development asp.net oracle windows-server
Member Avatar for charlybones
0
106
Member Avatar for Jnk

I have a problem with sockets. I am using this code in java as the client: [CODE] class Javaclient { private static DataInputStream input; private static PrintStream output; public static void main(String argv[]) throws Exception { int PortNumber = 4321; String line; BufferedReader in; Socket MyClient = null; try { …

Software Development client-server java socket-programming
Member Avatar for Jnk
0
251
Member Avatar for raheel88

Hello all, VB6 newbie here. I've got a basic form containing a list box, with two command buttons; one to add items to the list, and one to remove items. The two command buttons work fine, but I want to disable the "Add" button once there are 8 items in …

Software Development visual-basic
Member Avatar for raheel88
0
1K
Member Avatar for Connavar3

Hi everyone! I have written a server client that receives information, does a database transaction and then sends the result back to the client. My client has requested that they be able to view what was received and what was sent in real time. I have used a JTextArea. The …

Software Development client-server java motherboards-cpu-ram
Member Avatar for Connavar3
0
415
Member Avatar for Wiki_Tiki

Hi, I'm a real newbie at C++, and I'm having a ton of trouble. You see, What I need to do is convert an std::string into a system::string^ so I can display it in a textbox, and I haven't found any way of doing so :icon_confused: . I always get …

Software Development c++
Member Avatar for RhondaCos
0
2K
Member Avatar for lysezoudn

Are there anyone know how to select a tab in tabcontrol using API? Any help will be highly appreciated.

Software Development api vb.net
Member Avatar for lysezoudn
0
163
Member Avatar for mrbaconbitts

I am building a program to make a pyramid as such. 1 1 2 1 1 2 4 2 1 Etc. For 8 rows. [CODE]public class PrintingNumbers { public static void main (String [] args) { int k = 1; for (int i = 1; i <= 8; i++) { …

Software Development java
Member Avatar for mrbaconbitts
0
130
Member Avatar for clipper_soul

i have the same problem of this post [url]http://www.daniweb.com/software-development/vbnet/threads/409118/1746088#post1746088[/url] i cant find the elements of this site that i need to my system. this is the only missing part to my system/project this is the site : someurl.com this is the portion that i want to grab [IMG]http://i1059.photobucket.com/albums/t432/doomhades666/sss12.png[/IMG] Thanks in …

Software Development vb.net web-browser
Member Avatar for clipper_soul
0
421
Member Avatar for docgrid

hi everyone i need bit of support in my vb coding. i've publish data onto a datagrid(in vb express 2010). i just want to highlight entire row once the search data is found(in lime color) and color should be remain in that particular row when searching next records. so that …

Software Development vb.net
Member Avatar for docgrid
0
535
Member Avatar for rhone0809

hi to all vb6 and vb.net expert! i need help. i want to split the data from a text file and save it to the sql database. attached here is the .txt file and the format.this data is from a chronolog machine im thinking of using string token but it …

Software Development vb.net visual-basic
Member Avatar for rhone0809
0
456
Member Avatar for giancan

Dear all, I built 2 script to manage 2 different frames (which I will then convert to exe with py2exe). Frame 1 (GG1) is like this [CODE]import wx # begin wxGlade: extracode # end wxGlade class MyFrame(wx.Frame): functions here ... if __name__ == "__main__": app = wx.PySimpleApp(0) wx.InitAllImageHandlers() GG1 = …

Software Development python
Member Avatar for woooee
0
314
Member Avatar for marijana

please, does anybody know is there a .NET control in which an excel document can be displayed on a windows form ?? Or is there any other way to display it on a form?? tnx :)

Software Development display vb.net
Member Avatar for jtodd
1
3K
Member Avatar for Sundown G

Hi people I'm programming in C like a month. I just made this code yesterday, but I want the same result with a better code without using recursion for optimization, i think mine is sloppy. Also im using linux distribution... Any ideas to change this code in 1 or 2 …

Software Development c
Member Avatar for Sundown G
0
138
Member Avatar for The_Purple_Mask

I've tried for some time to make the following code run properly. The problem is in the comparison function of sort(comp). It compares 2 doubles but in some cases it causes the program to crash with the message "Debug Assertion failed! Program: retrace.exe File:c:program files (x86)\microsoft visual studio 10.0\vc\include\algorithm Expression:Invalid …

Software Development algorithm c++ visual-studio
Member Avatar for Fortran IV
0
207
Member Avatar for razree

Hi all I have two parts of code; one is searching (InStr) if log file contains certain string and the other one find the last modified log in one folder. Now I would like to merge these two together and modify so the [U]script finds the last modified log file …

Software Development vb.net
Member Avatar for Reverend Jim
0
238
Member Avatar for adil_bashir

Ihave written the below pieces of code, but i am not able to solve the compilation error here as it shows the error as ArrayOutOfBoundsException error. so please tell me hw to remove the error and please bring the necessary changes. [CODE] import java.util.*; public class Cipher { private int …

Software Development java java-swing
Member Avatar for adil_bashir
0
176
Member Avatar for adil_bashir

i am doing the coding of my minor project and for that i need to convert an input text(String) to an int type as i am inputting the data through swing component, panel as text(string). But internally i need to process that as int. so please tell me how can …

Software Development java java-swing
Member Avatar for adil_bashir
0
184
Member Avatar for PF2G

Hi, I'm trying to do a school schedule with a Table Panel Layout, and i'm having some difficults. This is the code i have so far: [CODE]TableLayoutPanel1.ColumnCount = 7 TableLayoutPanel1.RowCount = 2 TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single Dim label_seg As New Label() label_seg.Location = New Point(10, 10) label_seg.Text = "Monday" label_seg.Size = …

Software Development vb.net
Member Avatar for codeorder
0
105
Member Avatar for NickPatton

I'm working on an assignment where I have to write my own raisePower function to take a base and a power and compute the product. The assignment states that the function needs to return a long but all input/output values should be ints. The code compiles and runs but does …

Software Development c++
Member Avatar for Caligulaminus
0
213
Member Avatar for nidheeshkumar.r

hey, i cant set the size of a frame to a particular dimension.My code is :- [CODE]public class ImageShow extends JFrame{ ResultSet r; Image img; public ImageShow() throws SQLException { setTitle("Image retrieved"); JPanel panel = new JPanel(); //setSize(500, 500); setDefaultCloseOperation(HIDE_ON_CLOSE); Container pane = getContentPane(); panel.setLayout(new GridLayout(3,3)); r=ImageRetrieve.rs; while (r.next()) { …

Software Development java
0
82
Member Avatar for adil_bashir

[CODE] public static void main(String[] ar) { ..... int N = Integer.parseInt(args[0]); ..... } [/CODE] Error is : Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

Software Development java
Member Avatar for adil_bashir
0
94
Member Avatar for MrHardRock

Hey everyone, I recently had the assignment to write a recursive program to calculate greatest common denominator. I barely understood recursion when our instructor explained it to us. I understood how it works and calling on itself I am just bad at implementing it. I think I almost got my …

Software Development java
Member Avatar for MrHardRock
0
304
Member Avatar for alastair1008

I'm just starting out in C++ and want to use TextOut to print a character that is generated at runtime based on keyboard input but am having trouble converting TCHAR to LPCWSTR so that it can be used in the TextOut method. my code is [CODE] LRESULT CALLBACK WndProc(HWND hWnd, …

Software Development c c# c++ gui
Member Avatar for Ancient Dragon
0
272
Member Avatar for skannigan

As Part of an assignment one of the requirments is to convert a date into month format. that is the user must enter start month and year of employment and end month and year of employment for example 4 1980 till 7 2009 (mmyyy) these two dates must be coverted …

Software Development c++
Member Avatar for skannigan
0
164
Member Avatar for collin_ola

Hi, I have a textbox called [CODE]txtCustomerRecord.text[/CODE]. It is a multiline textbox, and I want to be able to enter different pieces of information (info1, info2, info3) into each line. I would really appreciate it if somebody could show me how to do this. Collin

Software Development vb.net
Member Avatar for collin_ola
0
2K
Member Avatar for mehnihma

can someone help me how how can catch CTRL C and print it out then stop the program? Thanks [CODE]/** * 218-102 Lab 7 * TestCircle.java * * @author JKang & JLeone * */ import java.util.*; import java.awt.event.*; import javax.swing.*; import java.awt.*; public class TestCircleB { public static void main(String …

Software Development java java-swing
Member Avatar for mehnihma
0
9K
Member Avatar for arathy nair

Hi All, I have PDFs that are to be watermarked. I need to know whether there exists the below options 1 Option is : Whether we can rewrite the same file with the logo instead of taking the existing pdf and writing this pdf into watermarked file option2 : Whether …

Software Development java pdf
Member Avatar for peter_budo
0
400
Member Avatar for zachattack05

If I have a DataRow list and use a foreach statement to create a string containing information in a list format and I want the last item in the list to be preceded by the string " and " how could I accomplish this within the foreach statement or is …

Software Development
Member Avatar for zachattack05
0
119
Member Avatar for vlady

Hello! Here is the code, pls have a look fist: [CODE]class Cstudent(): def __init__(self, name): self.name = name self.subjets = [] self.mark = [] def add_subject(self, subject): self.subjets.append(subject) def add_mark_student(self, subject, mark): subject.add_mark(mark) def __str__(self): return 'I am object of student: %s'% \ (self.name) def print_list_of_subjects(self): lst = [] for …

Software Development python
Member Avatar for vlady
0
120
Member Avatar for Jackwong0099

How do I fix this: Me.dgvData.DataSource = dt, there are three date of birth dropdown list [CODE] Private Sub RefreshData() If Not cnn.State = ConnectionState.Open Then 'open connection cnn.Open() End If Dim da As New OleDb.OleDbDataAdapter("SELECT txtstdid as [ID], " & _ "txtstdname as [Name], cbosex as [Gender], chodob1 as …

Software Development vb.net
Member Avatar for Pgmer
0
186
Member Avatar for bhallarahul

can we use JAVA and php together ??? or struts and drupal together

Software Development java php
Member Avatar for bhallarahul
0
105
Member Avatar for daydie

Hey guys, is have a bot at the moment which basicly uses the browser to get around things and its really slow as the process which i need doing is repetitive. i need a really quick method. Can any1 post a sample script where it Downloads HTTP source to text …

Software Development first-post vb.net
Member Avatar for daydie
0
7K

The End.