43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for hackit

Hii guys.... i am a new programmer of java. i want to implement a problem using CALL BY REFERENCE as i have done in C. please help me to do this.

Software Development java
Member Avatar for JamesCherrill
0
190
Member Avatar for shivya jain

Hello Experts, How can i save the optionbutton and checkbox value in sql database? please send the query: dim cmd as new sqlcommand("insert into [tablename] values(........)",c.con) please help me :)

Software Development vb.net
Member Avatar for adam_k
0
108
Member Avatar for kalz

Hi I am using jasper reports to generate pdf reports from product data.I am storing the pdf file into a database column (blob) using FileInputStream.I have got a desktop application which retrieves the tables from the db.What would be the best way to retrieve and view the pdf file in …

Software Development java pdf
Member Avatar for Aviras
0
148
Member Avatar for shandoosheri

Hi i have a directory containg about 300 files with different extensions like : .txt, .php, .html,etc.. and i have tried this code but it displays a files list instead of only thier extentions [CODE]string[] filePaths = Directory.GetFiles(@"c:\tmp]");[/CODE] so what i need to do is to display all the files …

Software Development c#
Member Avatar for shandoosheri
0
246
Member Avatar for cent91

0 down vote favorite share [fb] share [tw] share [in] i am working on a tiny tiny app that just uploads a file to the ftp server, i have reviewed my code but am quite unable to locate the problem, here is the code, [CODE=C]#include "stdafx.h" using namespace System; #include …

Software Development api c++ file-system
Member Avatar for Moschops
0
2K
Member Avatar for Naveed_786

When i pass the parameter and run the report it works fine as i close the form it closes the form is there any way so that i should be able to close the crystal report viewer and pass the parameter again and should be able to view report again. …

Software Development vb.net
Member Avatar for Naveed_786
0
107
Member Avatar for guccimane

Hello, basically I want to read an input .txt file, and check to see if '+' or '*' is at the beginning or end of the file. The file can have a space at the beginning, and that should be ok. This is the code that I think should work, …

Software Development c++
Member Avatar for vijayan121
0
281
Member Avatar for Micko

Hello, I'm learning Python. It is my first interpreted language. I have some experience with C and C++. I must admit that it's very hard for me to accept a concept of interpreted language. For example I write code in C++, compile it, link it and I have .exe file …

Software Development python
Member Avatar for darkside2205
0
327
Member Avatar for NerdyChick27

I'm writing a simple cryptography program that uses ISAAC, and I've run into a wall. I am planning on XORing each of my input bytes with 1 random byte each that gets returned from the ISAAC PRNG. This is basically what I'm trying to do [CODE]while(input character != EOF){ read …

Software Development c
Member Avatar for Narue
0
379
Member Avatar for mrbungle

As the title says- I'm not sure which appdata folder to use- Should I use CommonApplicationData, The directory that serves as a common repository for application-specific data that is used by all users. Or LocalApplicationData, The directory that serves as a common repository for application-specific data that is used by …

Software Development vb.net
Member Avatar for mrbungle
0
123
Member Avatar for Lek Plepi

Hello i have created a form that has a combobox.the combobox displays the products.how can i add a selected product into a listview?????

Software Development listview vb.net
Member Avatar for Lek Plepi
0
175
Member Avatar for chiiqui

is there anyway to generate numbers from 0.0 to 999 999 without repetition? I am thinking of making an array that you can put 27 integer datas in it like this [CODE]double amounts[] = { 0, 0.01, 1000000, 25, 250000, 75, 50, 1000, 200, 100, 400000, 750, 5000, 750000, 500, …

Software Development java
Member Avatar for JamesCherrill
0
924
Member Avatar for NexG

Hello, I'm just starting to learn Java, and for a summation program that we started in class, I've been stuck on the question as to why this brings up an error message when I try to build it. Please advise me. [CODE]import java.util.Scanner; public class summation{ public static void main(String[] …

Software Development java
Member Avatar for Rameshwar Soni
0
216
Member Avatar for Sudo Bash

Hi, I was wanting to write a (ba)sh script to allow me to wait for the detection of a new USB device, and when that device is detected, execute some commands. The scripts are intending to be working on the principle that whenever I plug in a usb device a …

Software Development shell-scripting
Member Avatar for Sudo Bash
0
259
Member Avatar for mrjillberth

[CODE]import java.io.*; public class Prime{ public static void main(String[] args) throws IOException { BufferedReader jill = new BufferedReader (new InputStreamReader (System.in)); boolean isPrime = true; System.out.print("Enter number: "); int input = Integer.parseInt(jill.readLine()); if(input < 2){ isPrime = false; } if (input == 2) { isPrime = true; } if (isPrime) …

Software Development java
Member Avatar for mrjillberth
0
168
Member Avatar for Mouche

Hello. I'm using ncurses with a side project I'm working on, and I'm using colored characters. To use colors, you have to wrap each mvprintw() function with some code to set the color. I thought I'd write a function that wraps mvprintw() so I could just specify the color whenever …

Software Development c
Member Avatar for Mouche
0
184
Member Avatar for oscargrower11

I'm working my way through Accelerated C++ and I've come across this exercise. The read_hw function works fine if it's void as long as I comment out the "return in" line. The author didn't bother to explain why he's returning a reference to the cin that was passed in the …

Software Development c++
Member Avatar for oscargrower11
0
210
Member Avatar for littlegrynder

I have the following code. My program loads 20 pictures in one panel and each pictures has for the moment like 500 Kb, but in the future they shall have like 2~6 Mb. When I use this part of code, my program that uses only 6 Mb of memory, but …

Software Development vb.net
Member Avatar for littlegrynder
0
1K
Member Avatar for Digitalwolf

I attempted to make a shell script to launch a java program packaged into a .jar file. It should have been pretty simple. [CODE] #!/bin/sh java -jar Test.jar [/CODE] but for some reason this script never runs. i've manually executed the command and it works perfectly, i've checked the path …

Software Development shell-scripting
Member Avatar for Digitalwolf
0
210
Member Avatar for Ehtesham Siddiq

Hi, My application is in VS2008 coded in Vb.net. I have a datagridView which is getting populated from the Database.I has RegNo,RollNo,Name etc fields.The data in the Name column of database is coming from 3 columns of a certain table from database. This is how im concatinating it and displaying …

Software Development vb.net
Member Avatar for Zeth643
0
889
Member Avatar for DaveTran

Is it better to use structs over classes for serializing class settings? Class settings can have initial default values. [code] [Serializable] public class LevelSettings { // Default level values public int Depth = 3; public int Height = 3; public TileSettings[] TileSettings = new TileSettings[27]; public int[] TriangleIndices = new …

Software Development
Member Avatar for nick.crane
0
902
Member Avatar for vishalbhavsar

Hi, I am trying to write a program having file handling. In it, I write an object in a .dat file. Is there any mechanism to read a specific object from a file? Is there any method like 'fseek()' as provided in C?

Software Development java
Member Avatar for JamesCherrill
0
178
Member Avatar for cigoL..:)

Greetings, i'm currently developing a web browser for my school project (i'm kinda new to advance visual basic)... it's 75% complete and the only problem i encountered is that when i enter items for the combo box it accepts duplicate .. for example i entered [url]www.daniweb.com[/url] and re-entered it again, …

Software Development vb.net visual-basic web-browser
Member Avatar for cigoL..:)
0
475
Member Avatar for chiiqui

Can anyone help me with this? or alter the code of mine when it comes to the user Input here's the block of code of mine [CODE]public int Remove(int i, Briefcase c[], String[] m) { int nChoice = 0; System.out.print("\tPlease remove " + i + " cases: "); nChoice = …

Software Development java
Member Avatar for chiiqui
0
3K
Member Avatar for acechauhan

Hi, I am just starting to code in C. While using the [code=c]#define sec 3600[/code] the compiler returned an error - expected identifier or ‘(’ before numeric constant. [code=c]#define sec 3600 #include<stdio.h> #include <stdlib.h> int main(){ /*Rest of the code*/[/code] If I change sec to seconds, the compiler does not …

Software Development c
Member Avatar for asitmahato
0
169
Member Avatar for Whilliam

Hello guys, I am very new to Java. I've been trying to select two different tables but fails. The error is "Invalid operation at current cursor position.". Here is my code. [code] private void display() throws SQLException{ TableModel model = schedTable.getModel(); PreparedStatement stmt = con.prepareStatement("select * from APP.SCHEDULE"); ResultSet sched …

Software Development java
Member Avatar for Zaad
0
116
Member Avatar for Cap'nKirk

Hi, I am working on a small application that uses a WebClient to download an XML file via an API call. Just downloading the file is fine, that all works but I really wanted some way to show the download progress to the end user. Searching on the net I …

Member Avatar for Cap'nKirk
0
135
Member Avatar for M09

hello i am a beginner python developer and i am search about python projects for beginners for i learn and know how can i make program in python and thanks

Software Development python
Member Avatar for M09
0
231
Member Avatar for poker158149

I'm trying to using Try, Except to check an input() to make sure it's not blank. I'm using it at a different part of my program to check a float(input()) and it catches it if someone leaves it blank or enters a string, but I assume that's because it's checking …

Software Development python
Member Avatar for poker158149
0
15K
Member Avatar for garu525

Hi, I'm writing a program that checks parens/brackets/braces if they are paired. Tha catch is I have to write my own stack functions, this is my code so far, it used to work when I was working with just the parentheses, now that I added more options it's not working …

Software Development c++
Member Avatar for garu525
0
168
Member Avatar for kartik14

Hi, I would like to know the significance of lua methods beginning with an underscore.. for example __init().. Thanks !!

Software Development c++
Member Avatar for kartik14
0
348
Member Avatar for Rogue45

I wrote c program that outputs all permutations of a word to a txt file. ate aet tae tea eat eta I also have a txt file of all the words in the dictionary. I would like to take the first entry in permutations.txt and search dictionary.txt to see if …

Software Development perl
Member Avatar for d5e5
0
350
Member Avatar for robdb

I have to write an application which uses the Vigenere cipher with the Italian alphabet (only 21 characters, excluded J,K,W,X,Y). After a day of trying this is the code that I wrote [CODE] #include "vigenere.h" #include <string> using namespace std; Vigenere::Vigenere(string str){ key = str; key = StringToUpper(key); for(int cnt …

Software Development c c# c++
Member Avatar for raptr_dflo
0
429
Member Avatar for twalton42

Using Visual Studio 2008, I have a form with a datagridview. I want to use a button called BTNDelete and I need help on deleting the selected row from the datagrid then update the datatable.

Software Development vb.net visual-studio
Member Avatar for twalton42
0
102
Member Avatar for djjavo

Hi I am wondering how to point to a relative file that would be the same on all computers. How would I go about this. Many Thanks

Software Development vb.net
Member Avatar for djjavo
0
312
Member Avatar for NetJunkie

Before I get started with this question I would like to point out that this is a small app I am creating to not only learn more C++ coding but also to choose who drives the fifth day in my carpool group for college. I am creating an application in …

Software Development c++ visual-basic
Member Avatar for mrnutty
0
200
Member Avatar for bklynman01

This one has me stumped. I feel like it is something really simple, but I can't figure it out. I have a combobox that is triggering the population of some checkboxes depending on the user mode. For some reason, when I put a MsgBox() at the beginning of the function, …

Software Development vb.net
Member Avatar for bklynman01
0
363
Member Avatar for Alexkid

Hi There, I have a datagrid table with 5 columns and as many rows as the user enters. Is there a simple way to export the contents of the table to a CSV file? The columns are named; a,b,c,d and e Im using VB 2005. Mant Thanks Alex

Software Development vb.net visual-basic
Member Avatar for Surendrasinh
0
998
Member Avatar for shandoosheri

hi ihave many files like File.txt anotherfile.txt Log.txt . Etc... And i want to rename these files into something like this File1.txt File2.txt File3.txt . Etc So how can i do this in c# Thank you for your help

Software Development c#
Member Avatar for shandoosheri
0
308
Member Avatar for emilio

how can i conver ascii code to string. for example i want to conver 65 to "A".

Software Development
Member Avatar for Dr_H
0
690
Member Avatar for mykar_88

hi pls help me to read data from a website. can it be done with VB? if yes pls guide me. thank u

Software Development visual-basic
Member Avatar for Ramesh Genwa
0
169
Member Avatar for bhagawatshinde

Can anybody help me for creating subscript and superscript in Richtextbox in c#. I am done in vb.net but could not convert it into c#. here is my vb.net code... [CODE] Public Sub SetSubScript(ByRef rtb As System.Windows.Forms.RichTextBox) Dim iPos As Integer Dim strRTF As String With rtb If VB6.PixelsToTwipsX(.SelectionCharOffset) >= …

Software Development
Member Avatar for Ramesh Genwa
0
2K
Member Avatar for GeekByChoiCe

Heya guys, I have a very small snippet that drives me crazy right now. [CODE=csharp] int arg1; int expr1 = arg1 = 16; [/CODE] That silly online translators giving me the following output [CODE=vb] Dim arg1 As Integer Dim expr1 As Integer = InlineAssignHelper(arg1, 16) [/CODE] Great but what should …

Software Development c# vb.net
Member Avatar for GeekByChoiCe
0
269
Member Avatar for HelpStudents

Issue with how to properly use push_front and pop_front. I have a class named Account I am suppose to be able to be able to add new accounts and new balances but I can't find the proper documentation on how to do this. I am trying to figure out what …

Software Development c++
Member Avatar for tajendra
0
388
Member Avatar for kaskoraja

Hello friends, I have a list similar to ['9.48E+02', '9.42E+02', '9.79E+02', '9.58E+02', '9.28E+02', '9.47E+02'].List has around 9000 elements. I need to convert this list in to file with a format similar to 9.48E+02 9.42E+02 9.79E+02 9.58E+02 9.28E+02 9.47E+02 so that i can access it in another mechanical software i.e without …

Software Development python
Member Avatar for kaskoraja
0
164
Member Avatar for rjcenteno

okay i came up with some code that reads in a file, and on the file are names of shapes and their widths/lengths. after the file is read in, it tokenizes whats in the file, it then calculates what shape it is and then takes the information and calculates the …

Software Development c++ file-system
Member Avatar for rjcenteno
0
182
Member Avatar for nndung179

Hello Everybody !!! I have the problem about my Digital Clock, You could see this on my attachment. It works perfectly, but one problem that when the second == 10, the label name second lblSed appear "010", when it's up to 11, it appear normally. I dont know what wrong …

Software Development
Member Avatar for Momerath
0
178
Member Avatar for Ehtesham Siddiq

Hi, My application is in VS2008 coded in VB.Net I have a DatagridView.I have a Save Button on my Form.Now my requirement is i want to the Data that is populated in Datagridview when i click on Save button. I want to do it using Update Query. below is my …

Software Development vb.net
Member Avatar for Ehtesham Siddiq
0
186
Member Avatar for isebas

Yes, I am a total newbie. I am doing this code for homework. It is giving me an error on the method line is saying that it is missing.Please help. [CODE]import java.io.*; public class discount {public static input in = new input(); public static void main(String[] args) throws IOException; {double …

Software Development java
Member Avatar for dimasalang
0
198
Member Avatar for parth27987

I'm obviously a noob @ c++. Have a question. is there any way i can restrict user to input only numeric value and make a loop if user enters non-numeric value. for example for conversion from kilo to pound if user enters some garbage like "afshdgafg" in cin. is there …

Software Development c++
Member Avatar for parth27987
0
237

The End.