132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mansour77

I am new to C# from java. In java I am able to use a decorator for a File object where I can have the file instance as a member variable and add the methods with the operations I need to perform on the file. This seems to be a …

Software Development
Member Avatar for mansour77
0
88
Member Avatar for sam511

HI everyone. :) .I hope you can help me my function . I want the user to enter number of level "There are two levels" and then display students records in that level sorted by id .the one I wrote sorts then displays so the output is wrong .I tried …

Software Development c display
Member Avatar for sam511
0
84
Member Avatar for MasterGoGo

Hi Suppose I have my program reading from a file with the following contents: 0.000,-0.073,-0.127,0.034,-0.034,0.146,0.098,0.029,-0.093,0.088,0.107 -0.005,-0.049,-0.112,0.039,-0.039,-0.059,-0.083,-0.020,-0.103,-0.068,-0.073 0.000,0.015,-0.049,0.010,0.308,-0.020,-0.054,0.225,-0.029,0.288,0.132 -0.005,0.020,0.068,0.088,-0.005,0.098,-0.044,0.098,0.073,0.098,-0.151 -0.005,-0.005,0.020,-0.015,-0.239,0.010,-0.024,0.181,-0.015,0.312,0.103 -0.005,-0.049,-0.044,0.044,-0.117,0.010,-0.054,0.244,0.034,-0.024,-0.103 0.000,-0.137,-0.122,-0.107,-0.601,0.093,0.020,-0.068,-0.205,-0.078,-0.039 and then I use StringTokenizer (delimiter ",") and feed the numbers into a vector. [CODE] File myFile = new File(strFileName); //Pass the file content to strFileName BufferedReader br = …

Software Development java
Member Avatar for JamesCherrill
0
491
Member Avatar for johndb

Is there a way to turn off auto indentation on the ide Eclipse, with every new line it is tabbing one space in, I don't see the option in preferences.

Software Development ide java
Member Avatar for johndb
0
87
Member Avatar for choybutchoy

hi, Im just a newbie in java, I really want to learn but sometimes I lost my guts to learn coz Im always stuck on something, for example in JTextField UI, I want the UI to accept just a numeric input and prompt the user when the input is not …

Software Development java
Member Avatar for choybutchoy
0
104
Member Avatar for aveek

i have written a program in which i am drawing using a mouse. however while drawing a new line the previous ones are still being shown. i have called repaint every time the mouse is moved. Can anyone please help.

Software Development java
Member Avatar for BestJewSinceJC
0
87
Member Avatar for joshmo

I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton [code=java] if(//some condition){ //some code myMethod(//some variables); //some code/*not executed*/ }[/code] the calling is done well but the code stays in that method i.e code following …

Software Development file-stream java
Member Avatar for joshmo
0
137
Member Avatar for nahmartin

I don't know how to solve this problem in my code voro.cpp(200): (col. 5) remark: LOOP WAS VECTORIZED voro.cpp(395): same problem voro.cpp(423): voro.cpp(427): I am using intel compiler 10.1 to compile my code the code works fine on dev C++ 4.9.9.2 and V C++ 2008 200 [CODE] for(j=0; j<3; j++) …

Software Development c++
Member Avatar for wildgoose
0
216
Member Avatar for amadaeliseo

hola, I really need your help on this. I tried to do k-way merge sort in c# and finally I ended with this: [CODE] public ArrayList MergeSort ( ArrayList arrIntegers ) { if (arrIntegers.Count == 1) { return arrIntegers; } ArrayList arrSortedInt = new ArrayList(); int middle = (int)arrIntegers.Count/2; ArrayList …

Software Development c#
Member Avatar for amadaeliseo
0
120
Member Avatar for tomtetlaw
Member Avatar for sneekula
0
129
Member Avatar for bahr_alhalak

hello every body i have a problem with a c program . the question that ( [COLOR="Green"]write a c program that reads a real numbers untill error then calculate the sum and the average of all numbers [/COLOR]) i have solve it with a while looping . and i need …

Software Development c
Member Avatar for bahr_alhalak
0
225
Member Avatar for Acegikmo

I don't get where to insert the code and such; I could really use some help with this. :) Here's my java file: (I removed irrelevant stuff) [code=java] package projectprojectile; import java.applet.*; import java.awt.*; import java.io.File; import java.util.Calendar; import java.util.LinkedList; import java.util.List; import javax.swing.JOptionPane; public class Main extends Applet implements …

Software Development java java-swing
Member Avatar for Acegikmo
0
471
Member Avatar for sreeram01

hi, The page we have opened (e.g [url]www.daniweb.com[/url]) and after we are login in to it then after typing the address in the address bar their is a change in the url. Here we copy the address and we are giving that now then the html source what we have …

Software Development html-css vb.net
Member Avatar for kvprajapati
0
862
Member Avatar for shaikh_farahnaz

hi everyone i'm novice in vb.net and got stuck with this problem want to add a record in table and used the following code Adodc1.Recordset.AddNew() Adodc1.Recordset.Fields("UrduWord1") = rtfHindi.Text Adodc1.Recordset.Fields("UrduWord2") = rtfUrdu.Text Adodc1.Recordset.Update() the problem is with the line: Adodc1.Recordset.Fields("UrduWord1") = rtfHindi.Text and showing following error msg Error Property 'Item' is …

Software Development vb.net
Member Avatar for kvprajapati
0
109
Member Avatar for major_lost

I successfully created my own help file using the VB 4 help complier. Now I need the code to call my help from my program. Does anyone know how to do this?

Software Development visual-basic
Member Avatar for major_lost
0
75
Member Avatar for u8sand

I made a game, and my friend told me: It doesn't work on linux. I thought it was because when you use VK_SOMETHING that is a value that windows returns when that key is clicked. So... Is their a substitute that I could use, a different function or something that …

Software Development c++ operating-system
Member Avatar for tux4life
0
161
Member Avatar for av1963

Here's the problem: I've got a datagrid that uses a datagridviewcombobox column that I want to populate with enumerated values from a MYSQL database - specifically, when the program starts, the DataGridView is populated with the names of students (Get1Click) - I then want to add a string variable from …

Software Development dataset vb.net windows-server
Member Avatar for kvprajapati
0
124
Member Avatar for gretty

Why do I get this error/incorrect syntax? Do you know how I can fix this? [QUOTE] comparison between signed and unsigned integer expressions [/QUOTE] [CODE=cplusplus] for ( int j = 0; j < item.length(); j++) // error ocurs here if ( item[j] == '_' ) item[j] = ' '; [/CODE]

Software Development c++
Member Avatar for u8sand
0
306
Member Avatar for WinTA

Hi there, im new to VB and am trying to work out how i can check that my database connection info is correct before i connect. error example with incorrect info: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or …

Software Development sql vb.net
Member Avatar for kvprajapati
0
122
Member Avatar for cutedipti

A university has few seats vacant for the new academic yea in the various departments. Students from all over the country send in their applications to the admissions department. The applications will be processed & students who have cleared the test criteria will be admitted to the department. It has …

Software Development java
Member Avatar for JamesCherrill
0
113
Member Avatar for yun

I m surprised and wanna know that how the compiler understand the sequence of how data was entered. as i didnt use any space any tab not a new line, how it can point to the original value from a single line..????????? find.txt contain the following line with out spaces …

Software Development c++ file-system ios
Member Avatar for Ancient Dragon
0
178
Member Avatar for sharao

presently iam running my application using the following url [url]http://127.0.0.1:8080/project[/url] without giving the above ip address & port number, can any one suggest alternate way like [url]http://daniweb/project[/url] thnx rajesh

Software Development java
Member Avatar for sharao
0
2K
Member Avatar for sreeram01

hi, i have an exception nullreference was unhandled.herewith i have enclosed the code and what message i haved while executing. Imports System.IO Imports System.Net Imports System.Text Public Class Form1 Public Sub submitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submitButton.Click Dim Str As System.IO.Stream Dim srRead As System.IO.StreamReader Dim …

Software Development assembly vb.net visual-studio
Member Avatar for sreeram01
0
770
Member Avatar for MxDev

hi, I've a bug in the following code, i don't know where it is?? is it in the design itself, or the code needs threading especially in the "Swing". The following code is a part of simple word game that display a word with it's correct meaning among wrong ones, …

Software Development java java-swing
Member Avatar for MxDev
0
123
Member Avatar for lmr8889

I am extremely new to python (programming in general too). I am the rooms director for a large hotel. The reason I am attempting to learn python is to create simple programs to help streamline some of the easy, but lengthy processes done by both my front office and housekeeping …

Software Development python
Member Avatar for michellelondon8
0
126
Member Avatar for me8042

Hi everybody, I want to compare 2 tables contents. My tables are: Table1 ------------------ ID || Value ------------------ 1 || forum_list1 2 || Message_list1 3 || Search1 4 || Search5 5 || Search11 6 || Log_out 7 || LOG Table2 -------------------------------------------- ID || Value1 || Value2 --------------------------------------------- 1 || rd_forum_list1_no …

Software Development perl
Member Avatar for msvinaykumar
0
156
Member Avatar for palavi

Hi all, I have a core java application, I am getting the below exception when ever i run this application. I have a java file named Oracpt.java which takes all variables like username password and url from setttings file which from config file. becoase of this below exception im not …

Software Development java oracle
Member Avatar for kvprajapati
0
363
Member Avatar for cutedipti

Which JDBC driner is used to connect a java client application to a database over aTCP/IP connection?

Software Development java
Member Avatar for peter_budo
0
83
Member Avatar for leoman

have written a shell script in which I use fastmail to send emails from the shell script. It sends email to my company account with no problem. But I wan to send the same email to a pager number so that the pager goes off when the particular condition occurs. …

Software Development email shell-scripting
Member Avatar for KlementHonza
0
2K
Member Avatar for techza

Hello, I have XML , I am trying to create a xslt on these xml. <Qxml> <Qxml> <Net> <Property Name="DOCTOR" SName="DOC" LongDesc="YYY DOC" Code="666" STC="1"/> <Property Name="ENGINEER" SName="ENG" LongDesc="XXX ENG" Code="777" STC="2"/> <Property Name="TEACHER" SName="TEA" LongDesc="ZZZ TEA" Code="888" STC="3"/> <Property Name="CLERK" SName="CLE" LongDesc="TTT CLE" Code="999" STC="4"/> </Net> </Qxml> </Qxml> I …

Software Development xml
Member Avatar for xml_looser
0
110
Member Avatar for dotNetDummi

Hi experts, I've been researching about convert an aspx to pdf but nothing seems to help me. I found crystal reports but my layout is not just gridview only. In my aspx, it includes textboxes, labels, tables, gridview. I need to print them to a pdf format automatically. Due to …

Software Development pdf
Member Avatar for DuoDimension
0
107
Member Avatar for nlvraghavendra

Hi fellas I'm having problem in querying ArrayList with Linq. I'm using VS2005. I installed Linq Preview (May 2006) setup to enable Linq in VS-2005. I created a Linq ASP.NET WebSite Template and wrote the following code. [CODE]using System; using System.Data; using System.Data.DLinq; using System.Configuration; using System.Collections; using System.Collections.Generic; using …

Software Development asp.net
Member Avatar for nlvraghavendra
0
111
Member Avatar for malugirl4

I have to create a maze in which a robot has to follow the set of directions given and I'm so stuck on how to make the robot go through the maze. I have most all of it done but I'm still getting errors. The maze includes 1.safe place 2.chasm …

Software Development java
Member Avatar for VernonDozier
0
101
Member Avatar for pmankow

Hello, I am looking to make a program that will generate prime numbers. The program has to start at a specific number, ex: 3698741 and then end at another specific number, ex: 9874123. The numbers may never have duplicate digits, ex: 9874122. There will be a set of rules as …

Software Development c++
Member Avatar for WaltP
0
106
Member Avatar for kspriya01

Hi, I want datagridview in windows application(C#.net), type in "this is the first line allows the 50 char", if you press "letter" and type "this is the second line", the current cell and go to the cell right below it. What I want is, when I press "letter" and type …

Software Development c c# c++
Member Avatar for kvprajapati
0
145
Member Avatar for niketan

Hello, How can I define fixed size of structure in c#.. e.g. [code] struct xyz{ char localc[12]; short localshort; }; I had made a c# structure like this [StructLayout(LayoutKind.Sequential, Pack = 2,CharSet=CharSet.Ansi, Size = 14)] struct xyz{ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public char[] localc; short localshort; } xyz abc = …

Software Development c#
Member Avatar for kvprajapati
0
305
Member Avatar for learneveryday

Hi, I am trying to read data from csv and process the data using c# code and send the data to database. I read csv file using Oledb jet engine connection. It works in my local machine. But does not work in the server, same code, same settings and the …

Software Development
Member Avatar for kvprajapati
0
132
Member Avatar for dombit

ok, i am just learnig c++ and i was wondering if it is possible for a feature in a program to be actavated by a certain sound. for example i run this program below on one computer and another program exacutes a function when the sound at 1000hz is herd …

Software Development c++
Member Avatar for MosaicFuneral
0
144
Member Avatar for PinoyDev

Good day.! How to get the last day of the current month and store it in a variable.? Thank you for giving time.?

Software Development visual-basic
Member Avatar for PinoyDev
0
300
Member Avatar for sravan953

Hey guys, I want some of your help.... How do I make a keylogging application in Python [I]without [/I]using pyHook? Any other module for that? I heard that learning about [I]threading [/I]will help...is it true? Thanks guys...

Software Development python
Member Avatar for scru
0
493
Member Avatar for ckaiser813

i'm suppose to write a program with two classes, the first class takes two numbers and adds them together. the second class has no methods but has an object called add2. this is what i got class Adder1 (object): number1 = int(input("Give me a number:")) number2 = int(input("Give me another …

Software Development python
Member Avatar for jlm699
0
126
Member Avatar for Jintu

[code=python] total = 0 max_score = -1 min_score = 100000000 total_numbers = 0 x = 0 y = 0 print("Enter a list of numbers, (Enter -1 to stop) ") print ("Press the enter key after entering each number") print ("End the list by entering -1") print () number = int(input("")) …

Software Development python
Member Avatar for vegaseat
0
141
Member Avatar for MK12

Hi. Before I start I'll just let you know that this isn't for school, I'm just doing python as a hobby which I have pretty much taught my self. I'm working on a project, it is the "cheat!" card game written in python, currently CLI but when it is bug-free …

Software Development gui ide python
Member Avatar for scru
0
2K
Member Avatar for dude93

Hey, I'm not new to python but I wouldn't say I'm use to python either, I am very limited to what I can do, but I was wondering if anyone could give me some ideas for some simple programs that will teach me usefull things to learn. Thank you very …

Software Development python
Member Avatar for vegaseat
0
114
Member Avatar for tomtetlaw

Is there a different version if IDLE for Python 3.0(Python 300, Py3k)?? If there is, how do I download it?

Software Development python
Member Avatar for vegaseat
0
159
Member Avatar for sravan953

Can anybody gimme a link to a good msvcrt tutorial, because I want to learn getch() badly!

Software Development python
Member Avatar for vegaseat
0
131
Member Avatar for winmic

Hey all, I just recently got into wxpython for my job and I ran into a snag. When print previewing (using the demo code) there seems to be an insane amount of pages, yet only a few of them are viewable. So my questions are: 1) Why is there an …

Software Development printer python
Member Avatar for vegaseat
0
105
Member Avatar for sravan953

I wanted to make a Python prog just for fun, to get a pattern like: [CODE] * ** *** **** ***** ****** ******* ******** ********* **********[/CODE] So, basically, I started off by making a script to simply print [CODE] *****[/CODE] using a loop. Here's the code I used: [CODE]import time …

Software Development python
Member Avatar for vegaseat
0
96
Member Avatar for tomtetlaw

How do you specify a certain path for the import thing to import? such as [icode]import "E:\Tom's Personal Project\engine\shared.py"[/icode] Any help would be appreciated :)

Software Development python
Member Avatar for vegaseat
0
158
Member Avatar for poeticinsanity

I'm running a portion of code in a loop. It accesses a global variable only to print it, and that variable is never changed after it is set in the __init__. However, the first print statement occasionally will fail, but the second one does not. Any ideas as to why …

Software Development python
Member Avatar for vegaseat
0
106

The End.