132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Caled

Hello all, is there a way to cancel or abort the execution of current actionPerformed? My problem is that, when the control is passed to the listener method, i perform checking if certain value is null, if so, display Error Msg using JOP. when user click OK, then the actionPerformed …

Software Development java
Member Avatar for Caled
0
1K
Member Avatar for apontutul

There is no operator overloading in JAVA, but operator + is used as arithmetic addition and concatination operator. why ? please clarify this

Software Development java
Member Avatar for Ezzaral
0
75
Member Avatar for Draker44

Hello everyone. I suppose I should start off with an introduction. I'm new to the whole C++ environment. I've done some scripting in perl, but just started with C++. I've picked up a few books and looked around on the web now for about 5 months. Finally came across this …

Member Avatar for Narue
0
151
Member Avatar for pulkitmalhotra

Please tell me how to transfer values from one method to another wherein the second method is trying to access the value from the first method and the second method takes in parameter from some other method.

Software Development java
Member Avatar for orko
0
128
Member Avatar for csteverun

This program create structures of the type "pf_space" and allocates memory as they're created. The problem is, it doesn't work like the book. malloc never returns false and therefore you can continue making structures until the program crashes. On my PC, I tracked down the offending line. After creating 1034 …

Software Development c
Member Avatar for csteverun
0
109
Member Avatar for zandiago

Good day guys: The assignment is : Write a program that will generate an unknown (between 93 & 139) count of random numbers whose values fall between 147 and 206. Calculate the average to 2 decimal places and the standard deviation (3 decimal places). On the monitor, display only the …

Software Development c++ printer
Member Avatar for zandiago
0
188
Member Avatar for piers

I am trying to teach myself java and I have a book but it doesnt have how to parse an int into a string. So are there any ways of either doing this or getting round it so I can display my answer? I put in bold the place where …

Software Development java java-swing
Member Avatar for piers
0
115
Member Avatar for unclepauly

hi, im using this code to serialize my class into xml: [code] [COLOR=green]public[/COLOR] [COLOR=green]static[/COLOR] [COLOR=green]void[/COLOR] Save([COLOR=green]Class1[/COLOR] myClass) { System.Xml.[COLOR=green]XmlTextWriter[/COLOR] w = [COLOR=green]new[/COLOR] System.Xml.[COLOR=green]XmlTextWriter[/COLOR]([COLOR=green]@"./myFile.cfg"[/COLOR], [COLOR=green]Encoding[/COLOR].ASCII); System.Xml.Serialization.[COLOR=green]XmlSerializer[/COLOR] x = [COLOR=green]new[/COLOR] System.Xml.Serialization.[COLOR=green]XmlSerializer[/COLOR](myClass.GetType()); x.Serialize(w, myClass); w.Close(); } [/code] my class has only 2 things to serialize. these are private member variables, which i provide …

Software Development xml
Member Avatar for unclepauly
0
155
Member Avatar for scsi_016

Hi! Would you anybody please do check my code given below and say why I am getting Debug Assertion Failed. I have used visual studio 6. But I think I have problems in my code. Please I do need urgent solution. Please help me. [code] #include <iostream.h> int INITIAL = …

Software Development c++ visual-studio
Member Avatar for scsi_016
0
96
Member Avatar for N[e]tt[e]

[SIZE=2][FONT=Microsoft Sans Serif]Hi..anyone here have sms gateway coding (vb.net)for windows application?? i need a free service..meaning i will hope my application can able to send sms to my customer for latest news/promotions. how can i do so? [/FONT][/SIZE] :sad:

Software Development microsoft microsoft-windows vb.net
Member Avatar for joshua__lim
0
516
Member Avatar for johngw

I have a project in C++Builder. It invokes Application->MessageBox in several files. I recently upgraded to C++Builder 2007. The MessageBox calls that were already there seem to work OK, but those I have added since upgrading all give an AccessViolation at Run time. The Call Stack looks like this: :7c812a5b …

Software Development c++
Member Avatar for johngw
0
120
Member Avatar for leovicAustria

Hi guys, can you please help me. Is it possible to get data from NOTEPAD,Store each data into a new table of MS-Access, Thanks..God bless

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
104
Member Avatar for BalagurunathanS

Hi friends.. I need to get all the .exe's running in a machine and display them in my application .How to do it..? In specific i need to get the .Net exe's alone.. Somebody help in this regard as early as possible.. Regards, Balaguru

Software Development asp.net display vb.net
Member Avatar for BalagurunathanS
0
100
Member Avatar for Caled

Hello people, How can i display the JLabel text using external file.. When user click a button, a file is read and retrieve and will be displayed at the label.. what I did was: 1) Declare all the necessary file IO 2) use the useDelimiter() method to read the file …

Software Development java
Member Avatar for Caled
0
1K
Member Avatar for fatihpiristine

Hello guys, I want to improve up my skills programming in C and Phyton on Linux. I have no idea which version of Linux is good to do this. So far I have tried Fedora 7, Slackware and StartCom Enterprise. I couldnt find what I really want. Few years ago …

Software Development c c# c++ slackware
Member Avatar for Salem
0
101
Member Avatar for Duki

Hey guys. I need to add a constructor that takes an int argument, sz, and an array of char of size sz. I then need the constructor to set the first sz members of the private dara array (myArray) to the sz members of the argument array of char. Here's …

Software Development c++
Member Avatar for Dave Sinkula
0
91
Member Avatar for eranga262154

Hi all, I want to use a function to write some values to a text file. That function is called from the main function. Every time when I can that function from main, the perviously written value is overwrite. That's true, it wont work. So what I have done is …

Software Development c++ file-stream file-system
Member Avatar for eranga262154
0
154
Member Avatar for sarah24

hi please i need some help..i know how to write a code for postfix expression evaluation by taking input from user,, but what if all the data is in text file,, pls help me modify my code , i have to read all the variables and values and also the …

Software Development c++
Member Avatar for Lerner
0
233
Member Avatar for HoldenCfld

I have a project for class and I have an error coming up that I don't understand. I've written code the same way I always do, and haven't found that I've done something oddly, but I still get an uninitialized local variable warning. Here is my code: [code] include <iostream> …

Software Development c++
Member Avatar for HoldenCfld
0
184
Member Avatar for gr8fubar420

im trying to convert the int input into a string so that i can find the length of it and use the substring method. how may i go about this? [CODE]import java.util.Scanner; public class OddEvenZero { public static void main(String[] args) { int input = 0; int len = 0; …

Software Development java
Member Avatar for Ramy Mahrous
0
352
Member Avatar for KimJack

Hello All, I would like to create a Student class as follows: class Student { String name; int age; int studentNum; String instructor; } My question is how would I read information from a text file into an array of class Students? The file is as follows: Sue Jones, 19, …

Software Development java
Member Avatar for Ezzaral
0
92
Member Avatar for Khishin

I'm not sure if my title adequately explains what I want to do, so I'll provide a scenario. I have two classes in a folder, one named UserInterface.class and another named HelloWorld.class, and the contents are as follows: [code=java] import java.util.Scanner; public class UserInterface { public static void main(String[] args) …

Software Development java
Member Avatar for Khishin
0
150
Member Avatar for ceyesuma

Can someone show me a simple program that will display how to extend and use super?

Software Development java
Member Avatar for no1zson
0
116
Member Avatar for nwad

I want to implement Dijkstra algorithm for shortest paths in Java, can anyone please help me with the code.

Software Development algorithm java
Member Avatar for jwenting
0
83
Member Avatar for icecube

Hi I am completely new to the programming and I got 0/10 on my last algorithm in pseudo code. I need to write an algorithm using pseudo code to score a tennis match. The algorithm takes two scores and the player who won the point as input and retuen the …

Software Development algorithm c++
Member Avatar for icecube
0
95
Member Avatar for eXceed69

Hi, I'm having trouble to get the value of a certain tag which seems have a complicated data structure. Object: To pull data from a data and print it out to a report file. Problem: Getting the data from array of hash and pass it to a hash of hash …

Software Development api data-structure perl
Member Avatar for eXceed69
0
169
Member Avatar for Sunny28525

Hi friends, This is Sunny. i am trying to create a paint brush. almost i have done it but there is a problem in filling color. Actually i have done it in vb6 but when i use vb.net it does not work. here i write vb6 code : Private Declare …

Software Development vb.net
Member Avatar for binoj_daniel
0
133
Member Avatar for r0b0t1

I'm sorry for asking such a simple question, but I can't an haven't found a reference to my problem. Its fairly simple, and I don't think it will require much change over-all (I hope anyway). By the way: Its a plugin designed for an human interaction program designed for games …

Software Development delphi pascal
Member Avatar for ExplainThat
0
103
Member Avatar for BigFormat

Hi guys, I've to read a txt file and produce a statistic of each alphabetic char occurrence. I'm approaching this task reading char by char until EOF and using an int array to hold the number of occurrences of each character read so far! So that's my solution: [code] int …

Software Development c
Member Avatar for Salem
0
435
Member Avatar for asilter

i'm trying to read and understand a .cc (c++)file, i want to know what does ok_flag(false),time_range(false),prefix() do after ":" ? I did know that ":" was being used for class inheritance but what is ":" for in the bleow code? [code] ClassA::ClassA(const char *db) : ok_flag(false),time_range(false),prefix() { //.. Constructor statements …

Software Development c++
Member Avatar for asilter
0
145
Member Avatar for jjt

I am totally new to java, but i understand java is the appropriate for my project. i am not sure where to start? and how to use the java packages. I know programming but JAVA is my first time approach. Can any one guide me on the visualization java tools? …

Software Development java
Member Avatar for jjt
0
194
Member Avatar for zandiago

The following is my "inFile": [code]UEAALEUE RIXETOHI BACOZOEI DIUEAOAU ZIKOFIMO RESUZEAE IIJEHUMO EEQINOXO TAOEKIBI RUQICIGU ZIWAREWE HIDIFIFO MOIACALA MEJIEACO UAPEUUQU YISOZAZO KENIDONA EEVIYOHU SEJEXEYA OESEQUFU NUJECAUE RAKAWUME NISIMAKE MEPIBADO TAUELAZI IIEACINU IITOGIIE GIEIFEVU NIOUQELU IIVOFEHI TOKUCORU GUQOEOJE HOBUUIXA HOVEDAGO JEROMAFA TOLIOELU QIGOIIAA TEDEIUOA COZOLELA YOHUZUZA QUNACAKO POSAEIGA JECAMOPE VAKEKAPA LEJEVINE …

Software Development c++ printer
Member Avatar for zandiago
0
275
Member Avatar for ebabes

Hello out there! I've tried lots of editing in this code yet I still receive the following errors. 1. Every time I press the Update button to update a record, I usually receive this error message[COLOR="red"] [B]“Syntax error in UPDATE statement”.[/B][/COLOR] 2. When I press the Save New button to …

Software Development microsoft-access open-source
Member Avatar for hollystyles
0
103
Member Avatar for ebabes

Hello out there! I've tried lots of editing in this code yet I still receive the following errors. 1. Every time I press the Update button to update a record, I usually receive this error message [B]“Syntax error in UPDATE statement”.[/B] 2. When I press the Save New button to …

Software Development microsoft-access open-source
Member Avatar for hollystyles
0
147
Member Avatar for ReeciePoo

[code] [COLOR=#000000]] Dim GETWORD[/COLOR] [COLOR=#000000] Dim GETLINE[/COLOR] [COLOR=#000000] Dim ARRAYNUMBER As Integer[/COLOR] [COLOR=#000000] Dim itmx As ListItem[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] nFileNum = FreeFile[/COLOR] [COLOR=#000000] Open "C:\Documents and Settings\Reece\My Documents\I.T\Visual Basic\Reece\client.db" For Input As nFileNum[/COLOR] [COLOR=#000000] If Input(LOF(nFileNum), nFileNum) > "0" Then[/COLOR] [COLOR=#000000] GETLINE = Input(LOF(nFileNum), nFileNum)[/COLOR] [COLOR=#000000] GETLINE …

Software Development visual-basic
Member Avatar for reeturaj
0
340
Member Avatar for zmariow

Hi all, How can I make, for example, all my Buttons have the same look (Maybe the same red background)... Of course I don't want to go to every button and set it's background to red... I want to set the value in one place for all buttons. Any ideas? …

Software Development c#
Member Avatar for zmariow
0
347
Member Avatar for trudge

I'm hoping this is the appropriate forum for my situation. I'm trying to populate a form on a .NET server with data from a form on a different server. Using SOAP::Lite we've managed to get this code working: [code] use strict; use warnings; use SOAP::Lite +trace => 'debug'; my $name='Trudge'; …

Software Development asp.net perl
Member Avatar for trudge
0
133
Member Avatar for tinamary

can anyone give me an explanation about static class in java Thank u

Software Development java
Member Avatar for tinamary
0
127
Member Avatar for basimo

hi im new in c++ and i need some help , im doing a program that trace many shapes and i have a problem with this one %%%%%% % % %%%%%% this is just an example i hav to read the length and with and the character from the user …

Software Development c++
Member Avatar for Salem
0
71
Member Avatar for JaceDBN

Hi, I have created a database using Access 03 and VB, and I will be letting some people use it shortly. I would like to create a way in which the program cannot simply be copied onto another computer. I was thinking of using VB and referring to some system …

Software Development visual-basic
Member Avatar for kb.net
0
98
Member Avatar for SpaceDog

Hi there First off I don't want you guys to tell me the answer that way I learn nothing., but if you could give me a pointer to what I am doing wrong it would help alot cheers :D What I am trying to do is get a dice to …

Software Development java
Member Avatar for SpaceDog
0
196
Member Avatar for didierdrogba

Hello, I am trying to migrate my application from an older unix box to the new Hp unix box with Itanium architecture.The problem I am facing is with the different versions of the aC++ compilers installed in the 2 boxes: older unix machine has : aC++ Version A.03.33 new machine …

Software Development c++ unix
Member Avatar for Salem
0
720
Member Avatar for srikanth329

Hi I have an binary of 10 bits . How do i change it to decimal suppose binary is 1000000001 . I need to get the decimal of it . Can some body gimme the psedocode??

Software Development c
Member Avatar for alsoumhi
0
284
Member Avatar for jaepi

Do you have any idea what functions to use in standard library to replace these Win32 functions (GetPrivateProfileInt and GetPrivateProfileString)? Thanks! :)

Software Development c++
Member Avatar for jaepi
0
179
Member Avatar for snoeflake

Hello, I need to make a x^2 curve in C++. It has to be horizontal to make it easier, not vertical. I have no idea where to start, can someone put me in the right direction? Thank you.

Software Development c++
Member Avatar for snoeflake
0
128
Member Avatar for Jon Pierce

I found this very nice tutorial on what Python generators are and how they can be used: [url]http://www.neotitans.com/resources/python-generators-tutorial.html[/url] I had a difficult time with the other tutorials out there because, funnily enough, they seem to assume that you already know what generators are before they try to teach you about …

Software Development python
Member Avatar for vegaseat
0
150
Member Avatar for scrypt3r

how do you get the directory witch the program is instaled in ? and put it in code e.g. textbox1.text = (******get directory code*******)

Software Development vb.net
Member Avatar for mazel
0
72
Member Avatar for alsoumhi

Hi,guys how are you I just want to ask in c programming that how to return a string to a main function thanks.

Software Development c
Member Avatar for Rashakil Fol
0
106
Member Avatar for jpp

I have an array in class array and I'd like to access it's members in class table. I'm lost on how to do this. Any help would be greatly appreciated, thanks. [code] using System; public class Restaurant { //Writes a welcome message. public void Welcome() {//start Welcome method Console.WriteLine("Welcome to …

Software Development
Member Avatar for jpp
0
80
Member Avatar for cowboys111

Hi, I am trying to write a program that tells the user the ammount of digits that are in a number for multiple numbers. I have it to the point where it will tell me the digits of the first number but it wil just write it an infinite number …

Software Development c++
Member Avatar for cowboys111
0
95

The End.