132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for NewOrder

what i am trying to do here. is to let the user type a hexadecimal number [code]http://en.wikipedia.org/wiki/Hexadecimal [/code] and then display it. [code] import java.io.*; class Ex23 { public static void main(String[] args) { Console console=System.console(); System.out.println("please type a hexadecimal number"); String input; input=console.readLine(); int number; int number=Integer.parseInt(input); int count=0; …

Software Development java
Member Avatar for stephen84s
0
294
Member Avatar for J.P.

Hi, i'm one of those annoying students here to ask questions :) this is what is asked for my assignment >(Invoice Class) Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four pieces …

Software Development c++
Member Avatar for mik334
0
497
Member Avatar for fafi_ali

hi everyone i made crystal report then i saved it as a word document but i passed parameters to that report then an error occured after that the error is:- missing parameter values ok i tried to save it with 2 different codes but th same error shows up the …

Software Development
Member Avatar for xianhatesyou
0
3K
Member Avatar for jitupatil_2007

hi experts i have a csv file which look like this country,date,[COLOR="red"]code[/COLOR],time mexico,3/13/2008,[COLOR="red"]92,[/COLOR]00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 i am reading the file like this [code] StreamReader sr = new StreamReader(@"C:\Documents and Settings\jitendra\Desktop\RIC_SELL_080318.csv"); string strline=""; string[]value=null; while(!sr.EndOfStream) { strline=sr.ReadLine(); value=strline.Split(','); if(values.Lenght >3 ) { Console.WriteLine(values[2].ToString()); } } [/code] so on doing this i …

Software Development file-system
Member Avatar for boss.deepak
0
2K
Member Avatar for jt86442

[B] Hi, I'm unable to change the font colors by using java. Can u please help me that how can i change the font colors in java. If you possible please share that respective Font Code. [COLOR="Green"] Thansk & Regards, Jayavardhan Tummidi. [/COLOR] [/B]

Software Development java
Member Avatar for NormR1
0
630
Member Avatar for NewOrder

what i am trying to do here, is to make it possible for the user to type 2 lines, and then say(or display) whether the string of the first sentence correspond to the string of the second sentence. so for example: first sentence: i will go shopping second sentence: Tomorrow, …

Software Development java
Member Avatar for NormR1
0
213
Member Avatar for agrarian

I have a form (Delphi 2010) that includes several data controls, including a DBImage. All these are hooked to a underlying MSSQL 2005 database and table. I'm using ADOConnection and ADO Table for ease of use. I need to include image data in this table, so I have set up …

Software Development delphi image mssql pascal
Member Avatar for yousef.h85
0
217
Member Avatar for daudiam

I tried to do this [CODE]ArrayList<String> a=new ArrayList<String>(2); a.add("dss"); a.add("dsfs"); a.add("fsfs"); [/CODE] Though i have specified a limit of 2 on the collection, i am able to add more. If this is general about Collections, is there any Collection which sets a limit and strictly follows it ?

Software Development java
Member Avatar for daudiam
0
81
Member Avatar for ranapro

hello sir , i am the student of IT. which course should i taken form the following java ,.net, php. please tell me about that.

Software Development vb.net
Member Avatar for Oxiegen
0
75
Member Avatar for Niranjan001

[code] cmd = new OleDbCommand("update FINAL set STATE_CODE=@STATE_CODE,DAC_CODE=@DAC_CODE,SCHOOL_CODE=@SCHOOL_CODE,STUD_TYPE=@STUD_TYPE,SLNO=@SLNO,NAME=@NAME,CLASS=@CLASS,SECTION=@SECTION,REGNO=@REGNO,OP=@OP,PRI_FLG=@PRI_FLG,SERIAL_GEN_FLG=@SERIAL_GEN_FLG where FILE_NO=" + textBox1.Text.ToString() + "", con); cmd.Parameters.AddWithValue("@FILE_NO", textBox1.Text); cmd.Parameters.AddWithValue("@STATE_CODE", textBox2.Text); cmd.Parameters.AddWithValue("@DAC_CODE", textBox3.Text); cmd.Parameters.AddWithValue("@SCHOOL_CODE", textBox4.Text); cmd.Parameters.AddWithValue("@STUD_TYPE", textBox5.Text); cmd.Parameters.AddWithValue("@SLNO", textBox6.Text); cmd.Parameters.AddWithValue("@NAME", textBox7.Text); cmd.Parameters.AddWithValue("@CLASS", textBox8.Text); cmd.Parameters.AddWithValue("@SECTION", textBox9.Text); cmd.Parameters.AddWithValue("@REGNO", textBox10.Text); cmd.Parameters.AddWithValue("@OP", textBox11.Text); cmd.Parameters.AddWithValue("@PRI_FLG", textBox12.Text); cmd.Parameters.AddWithValue("@SERIAL_GEN_FLG", textBox13.Text); int n = cmd.ExecuteNonQuery(); if (n > 0) { …

Software Development
Member Avatar for hirenpatel53
0
291
Member Avatar for bruno386

Hi again Daniweb! Im just fishing for ideas here, Im not a great coder - I'm currently working with c#.net in visual studio. a new jpeg is being posted to the ftp server every 3 seconds...I want a client side app that can dowload this new jpg every 3 seconds...the …

Member Avatar for Ketsuekiame
0
112
Member Avatar for babis87

Hello, I'm writing a lexixal analyzer on FLEX, and i want to open an #include file. Calling fopen(yytext,"r"); as shown in flex manual http://flex.sourceforge.net/manual/Multiple-Input-Buffers.html#Multiple-Input-Buffers does not open the file, although that the string in yytext has the value "<filename>". Instead, when i use fopen("<filename>","r") the file opens normaly and the …

Software Development c
0
72
Member Avatar for completehoax

Okay, so I'm basically trying to create a C++ program that determines the case of the letter. The program will basically ask for a letter input, uppercase or lowercase and then the program will say whether that letter the user inputted is an uppercase or a lowercase letter. Help is …

Software Development c++
Member Avatar for Kanoisa
0
104
Member Avatar for anraevlus18

Hi I am new to perl...I have a file in which sections are seperated by "//************************************************" How can i search for the asterisk character using regular expressions? =-------------- open(IN, "<$inFile") while (<IN>) { if (/^\/\/**/) #here is the error..search for multiple '*' character { print "Seperater found" } } pls …

Software Development perl
Member Avatar for anraevlus18
0
1K
Member Avatar for phalaris_trip

how do I launch a python script within the IDLE python shell from the command line? basically I want to use Notepad++ as my editor, but when I press F5 I want my script to run in the IDLE python shell (NOT in a cmd window). If I do C:\Python26\Lib\idlelib\idle.pyw …

Software Development python
Member Avatar for phalaris_trip
0
203
Member Avatar for Roulaa

helleo all i want to delete from 5 tables with inner join like that: Category=CategoryId,CategoryName,.. Item=ItemId,ItemName,pictureId,VideoId,AudioId,CategoryId Picture=pictureId,pictureName Video=VideoId,VideoName Audio=AudioId,AudioName the user will Enter category name in text box iwant to delete Category+Item+picture+audio+video help me please :)

Software Development audio
Member Avatar for Roulaa
0
215
Member Avatar for lucammino

Hi everybody. I have an UserControl (Windows Application - .NET Framework 3.5) which is composed of a TextBox and ListBox: it should pretty much emulate a "suggestion box" just like the ones in Google and other various search engines. Now, the initial status of this control (TextBox blank) imply the …

Software Development
Member Avatar for lucammino
0
156
Member Avatar for stephen lowry

hi guys this is probley simple and i have an external board controlling various things on the board is a button which i would like when pressed activates code within a button on my vb form i have tried button1.select but that only well selects the button on my form …

Software Development vb.net
Member Avatar for Luc001
0
139
Member Avatar for isayas

#include <iostream.h> void main () { int i,j,temp,smallest; int list [10]; for (i=0;i<10;i++) { cout<<"enter a number\n"; cin>>list[i]; } for (i=0;i<10;i++) { smallest=i; for (j=i+1;j<10;j++) { if(list[j]<list[smallest]) smallest=j; } temp=list[smallest]; list[smallest]=list[i] list[i]=temp; { for(i=0;i<10;i++) cout<<list[i]<<endl; getch(); }

Software Development c++
Member Avatar for avarionist
0
130
Member Avatar for altXerror

hey guys! i decided to make my own programing language. it is called tempestX. the beta is not ready yet but when it is, i will provide a link for any one who wants to try it. here is a brief explanation: i was used to programing in windows batch, …

Software Development c++ visual-basic
Member Avatar for avarionist
0
183
Member Avatar for avarionist

Lods byte ptr ds:[esi] ;i know that it loads a byte that is a pointer my question is " is the pointer ds with esi as an offset or is it the other way around or am i just plain wrong" ?

Software Development assembly
Member Avatar for avarionist
0
349
Member Avatar for avarionist

i realize the topic isnt much descriptive but i thought that my code was a bit strange so i hope dw can give me a bit of info this is the most random thing ive ever made. on windows it produces quite a bit of ruckus in the console but …

Software Development c++
Member Avatar for avarionist
0
243
Member Avatar for nortech

Hello All, I am currently in the process of adapting an application that previously worked only with Microsoft Access to work with SQL server or Access. Previously, all database interaction was designed based upon using the XSD file to create queries (etc). I wasn't sure how to handle the new …

Software Development microsoft-access web-server
Member Avatar for nortech
0
180
Member Avatar for RMelnikas

Im trying to make a little program that gets the computers IP address i have got it to do all of that and have got it to use the default email program to add the email address, subject and body but i cannot get it to add an attachment. [CODE]Imports …

Software Development email vb.net visual-basic
Member Avatar for Oxiegen
0
147
Member Avatar for carylle

Can someone please help me. I want to call an MS Word Document in my system using VB.net what should be the syntax? Thanks!

Software Development vb.net
Member Avatar for augamal
0
285
Member Avatar for TommyRay

Hi, I've made a browser project and beyond making it a default browser, I am having a problem with the Favorites feature TreeView control saving, loading and repopulating it with the users data. It's tough finding the correct code as there are so many variations of this control in various …

Software Development data-structure vb.net
Member Avatar for Oxiegen
0
578
Member Avatar for Flux123

Hi There, I'm trying to learn a bit of assembler and have got the grasp of the majority of the basics. However I'm struggling to allow a user to enter a string, terminated by a null character when the user hits carriage return. I'd also like to be able to …

Software Development assembly
Member Avatar for NotNull
0
591
Member Avatar for adams161

i found this code to update a property on an active directory entry: [code] If user.Properties.Contains("title") Then user.Properties("title")(0) = employeeTitle.SelectedItem.Text Else user.Properties("title").Add(employeeTitle.SelectedItem.Text) End If [/code] I understand it except for the ("title)(0). why is this a double index array. what does the (0) do? Mike

Software Development vb.net
Member Avatar for adams161
0
101
Member Avatar for irum siddique

salam i am student of computer science....... i need help of all of you....... kindly tell me that how can we acces parallel port in visual basic 6.0??? not in v.b.net...... kindly guide me....... and send me steps and guidness if anyone knows.......... my email address is [email]irumsiddiqueawaan@yahoo.com[/email]

Software Development visual-basic
Member Avatar for vb5prgrmr
0
382
Member Avatar for ramagiri

HI, I would like to know, what are all the scenarios under which perl is used for software testing... this will be useful to me :!:

Software Development perl
Member Avatar for testuser_forum
0
99
Member Avatar for gingerfish

Please help me =( I'm not native english speaker, therefore some things might be not clear here I have 2 separate files: [B]Main.java[/B] and [B]Open.java[/B] inside [B]main.java[/B] there is a GUI and it has a [B]JTextArea[/B]) where i want to show text (variable) called from [B]open.java[/B] in [B]Main.java [/B] i …

Software Development gui java java-swing
Member Avatar for adams161
0
3K
Member Avatar for WargRider

Well, I am actually making a custom 2d turn based gaming engine in Java. So far I have actually gotten a solid based down, the ability to load a seamless game world (no instances) as well as a layered world, with a terrain layer, buildings layer, unit layer then an …

Software Development client-server gaming java java-swing
Member Avatar for moutanna
0
156
Member Avatar for Jeramy

Be aware this is going to be ugly because I have never written anything in python and am attempting to quickly pick up just enough to solve my problem. I need a way to automate doing about 2 weeks of daily archives of a backup file. I think I have …

Software Development python storage
Member Avatar for Jeramy
0
110
Member Avatar for DelilahDemented

I'm doing this simple program that checks for number validation and I have an infinite loop in it. I can't figure out how to stop it. It's supposed to check for numeric digits only, but when it finds something other than the above, it hangs up in the loop. Could …

Software Development c c# c++
Member Avatar for DelilahDemented
0
237
Member Avatar for i2avi

Hi, I'm working on an assignment and, after a significant amount of googling and reading through my textbook, I can't seem to find a tutorial for anything similar to what I need to do. My aim is to produce a tool which draws a line on the screen based on …

Software Development java
Member Avatar for NormR1
0
108
Member Avatar for Want2Code

[B]Hi, im new to this forum, and as far as I know. this hasn't been posted. What I am trying to create is a log in system, and in one of my forms I want to limit the date entered into a form. For example a user cannot enter a …

Software Development vb.net
Member Avatar for Smith5646
0
140
Member Avatar for Jesi523

Hi, I have a question please I am using a DetailView to Insert into a SQL Server database. I then want to get the last identity id and use it at the end of url to redirect it to another page. I've done a lot of research and I think …

Software Development asp.net
0
81
Member Avatar for YasaminKh

Hi, I need help in converting a number which is written in scientific notation into the int. For example I have this number: 6.538e-5 and its format is string. Any suggestion how can I convert it to the integer?

Software Development c++
Member Avatar for NathanOliver
0
139
Member Avatar for dansnyderECE

I have several strings in a text file and I want to search each string for a word starting with "<" and ending with ">". I then want to replace everything from < to > with a new string. So here's a couple lines I want to convert: [CODE] 400110: …

Software Development c++
Member Avatar for NathanOliver
0
125
Member Avatar for karan khokhar

i wrote a software which would work perfectly fine on vb.net with connection string: SQLConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename='" & a & "';Initial Catalog='" & f & "';Integrated Security=True;User Instance=True" but if i try and run it on a pc with sql server 2005 installed it fails to run what changes …

Software Development sql vb.net
Member Avatar for finito
0
147
Member Avatar for Diamonddrake

I have a ps3 and I have been using it to stream my huge media collection to my TV. my ps3 failed, I keep reflowing it but it keeps overheating but that's not what this is about. I have all my media set up the way I like it on …

Software Development windows-server
Member Avatar for Diamonddrake
0
155
Member Avatar for YasaminKh

Hi, I'm writing a code that takes a file name from user and opens it if it exist and if it doesn't asks for another file name. What i wrote is this: [CODE] #include <iostream> #include <string.h> #include <string> #include <stdlib.h> using namespace std; int mani() { string input; cout<<"please …

Software Development c++ file-system
Member Avatar for YasaminKh
0
111
Member Avatar for mithunp

I am doing malloc(0) and then doing strcpy and then reversing, and its working, why?? and if i dont do malloc(0) and then try to strcpy program carashed as expected, but how does malloc(0) making a difference.[code]#include <stdio.h> char* reverse(char *data); void my_Strcpy(char* dest,char* source); main() { char* p_Name = …

Software Development c
Member Avatar for Dervish1
0
216
Member Avatar for jmangu

I'm trying to find the curses.h library over the internet and so far I haven't any luck. Please help me sending the code for Windows OS. Many thankx in advance. jmangu

Software Development c
Member Avatar for jonsca
0
124
Member Avatar for EmilyKirby

I have an assignment for a class that wants me to read lines from a file and output a count of the vowels and whitespaces per line, and also count a total of characters in the entire document so I can calculate a % of vowels used overall. I did …

Software Development c++
Member Avatar for jonsca
0
79
Member Avatar for Mitja Bonca

I would like to know why sql query for month and year is working, and i[B]s not working for day[/B]: [CODE] string myQuery = "SELECT StudentName FROM Students WHERE " + "YEAR(Birth) BETWEEN @yearFrom AND @yearTo AND " + "MONTH(Birth) BETWEEN @monthFrom AND @monthTo AND " + "DAY(Birth) BETWEEN @dayFrom …

Software Development sql
Member Avatar for finito
0
120
Member Avatar for echellwig

Hi, I'm looking to break up a file with space delimiters. Its really just a list of numbers with spaces in between them, and I need to put each of the numbers in a list as separate entries. However, they are all on one line like so: 5 7 6 …

Software Development python
Member Avatar for echellwig
0
180
Member Avatar for kiranbvsn

Hi, I am working on a project in which i've to identify a textbox value, The end user may enter a date (dd\mm\yyyy) or may enter a ticket number (alphanumeric:ex:'VD103'), can anyone tell me how to distinguish the date or string values entered in the textbox so that depending upon …

Software Development
Member Avatar for finito
0
123
Member Avatar for bbman

Hey, I apologise for the noobishness of this question, but I am unable to move the form. [CODE] if (Screen::PrimaryScreen->Bounds.Top != Screen::PrimaryScreen->WorkingArea.Top) { this->Left = Screen::PrimaryScreen->Bounds.Right - this->Width; this->Top = Screen::PrimaryScreen->WorkingArea.Top; } else if (Screen::PrimaryScreen->Bounds.Left != Screen::PrimaryScreen->WorkingArea.Left) { this->Left = Screen::PrimaryScreen->WorkingArea.Left; this->Top = Screen::PrimaryScreen->WorkingArea.Bottom - this->Height; } else { this->Left …

Software Development c c# c++
Member Avatar for jonsca
0
130
Member Avatar for fraenckel

I need to write some software to catalog files in a directory hierarchy. The directories of this hierarchy nominally follow this structure: Country City Technology_Type Date Files are then placed under the Date directory. The problem is that until now, files are copied into the hierarchy manually. Occaisionally files have …

Software Development data-structure java
Member Avatar for fraenckel
0
111

The End.