132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dig

Hello everyone, I quite new at JAVA and one assignment is on my nose and I am going crazy.. My task is: "[I]Create a solution for the following scenario: A local community mobile college unit holds 2 different classes in literacy and numeracy for mature students. A student can join …

Software Development java
Member Avatar for Dig
0
143
Member Avatar for ceyesuma

I can not figure out how to get data from the model to the GUI in the view. If the user logs in successfully all the users personal data is stored into the bean including the userUid. of the user. also, if login is successful the app will build many …

Software Development gui java
Member Avatar for ceyesuma
0
82
Member Avatar for abcdabid

I have written FTP server in C# which is working quite fine with client on one machine, but when i try to send file to server from other PC, Exception occurs, [B]Input string was not in correct format[/B] [CODE]double FileSize = double.Parse(System.Text.Encoding.ASCII.GetString(downBuffer, 0, bytesSize));[/CODE]

Software Development client-server
Member Avatar for abcdabid
0
174
Member Avatar for sdinu96

{ int i = 25789; char *p; .............. .............. printf("%d",*p); /* (*p) should give in printf*/ } dont assign p=i ............apart from this how we can typecast this program so that we can get interger value tp pointer p.............please help me this

Software Development c
Member Avatar for Ancient Dragon
0
89
Member Avatar for f_atencia

Hi all, I have 2 xsl variables (currentBillDate and lastBillDate), both having access to dates in format of yyyy-mm-dd. How can I calculate the number of days in between both days? Example: 2006-08-28 - 2006-11-06 I tried it this way but it kept giving me NaN <xsl:value-of select="$currentBilldate - $lastBillDate" …

Software Development xml
Member Avatar for fpmurphy
0
287
Member Avatar for Nerathas

Hello, In a method i am calculating the longest row of elements. The 1-dim array is filled up with random values (0 or 1). The method looks up the longest row (being 0 or 1, whatever is the longest). Meaning in for example: 1110100 --> the longest row would be …

Software Development
Member Avatar for Sodabread
0
136
Member Avatar for arty.net

OS : Ubuntu 9.04 Python : 2.6.2 I want to print a "while" loop into a secondary wx.Frame named "Results" here's the code : [CODE] #!/usr/bin/env python # -*- coding: utf8 -*- import random import wx import os # Operating System dependent call import sys import cPickle as p import …

Software Development operating-system python ubuntu
Member Avatar for arty.net
0
1K
Member Avatar for sophie.c

Hi everyone, I'm running a c++ program using VS 2010. But during a debugging, the output DoS window disappears when a problem happens. How to stop the output window? I know the problem could be solved by using run-cmd-*.exe. But is there a direct method? I mean, by configuring VS …

Software Development c++
Member Avatar for sophie.c
0
207
Member Avatar for Lukezzz

Hello I have been set a task to myself build a "Local SMTP Server" as the product found on this URL: [url]http://www.softaward.com/1036.html[/url] I have googled around but cant find any code of how to do this. The thing is that I use the SmtpClient Class and now in this code …

Software Development
Member Avatar for Lukezzz
0
152
Member Avatar for xander85

Hello all, I am trying to finish an assignment in my programming class and I can't seem to get this compilation to work... For some strange reason the program will not sum the elements in the array... It is only returning the first input that I enter... Any hints??? I …

Software Development c c# c++
Member Avatar for LoganJames
0
1K
Member Avatar for John Linux

Past paper question from 2007: Source University of Cape Town - CSC2001F - 2007 Which of the two statements shown below will provide an lexicographical (alphabetic) string comparsion? why? [code=C++] char *mesg1 = "Hello", *mesg2 = "world"; string s1 = "Hello", s2 = "world"; if (s1 != s2) {...} // …

Software Development c++
Member Avatar for thelamb
0
140
Member Avatar for Ellitivity

So i'm new to VB and am making a program that is a count down timer and when it reaches '0' it clicks the left mouse button where ever the mouse is on the screen (in the form or not. The code so far: [CODE] Public Class Form1 Private Sub …

Software Development vb.net
Member Avatar for Luc001
0
217
Member Avatar for wb4whd

OK I can upload a single specified file but need to create a loop to read and upload all files in a certain folder. Here is code for single file. [CODE]'upload a file ftp.Upload("c:\test\ftp\upload.exe", "/pub/upload.exe")[/CODE]

Software Development vb.net
Member Avatar for wb4whd
0
167
Member Avatar for little_grim

Hallo all. Iv spent a lot of time browsing through the old threads and I cannot find a solution to my problem. Please help... I have to files H:\me.txt and H:\you.exe and I want to write a code in Turbo C++ to open these in a separate window, meaning I …

Software Development c++
Member Avatar for little_grim
0
1K
Member Avatar for !n@k!

:-/ Hello everyone!!! Could you help me by giving some examples?... I have to write a code which would apply an InterpolationSearch to an array of 1000 strings using a reccurtion... The problem is that I can't find any examples... [COLOR="Red"] HELP!!:?: [/COLOR]

Software Development algorithm java
Member Avatar for !n@k!
0
70
Member Avatar for bbman

I tried hashing, but that did not work. How would I do this? Thanks.

Software Development
Member Avatar for bbman
0
146
Member Avatar for etisermars

Hello, I have a simple question. Look at the following code: [CODE]class ClsA { int * var1; ClsA(); ~ClsA(); } ClsA::ClsA(){ var1 = new int [10]; } ClsA::~ClsA{ delete [] var1; cout<<"Apel destructor"; } void funct(){ ClsA ** p = new ClsA * [10]; ..... delete [] p; }[/CODE] When …

Software Development c++
Member Avatar for mbulow
0
139
Member Avatar for blackmagic01021

I am sorry to bother people with silly questions, But I have no choice. I have a statement unsigned short a=4000, current_word; current_word=a << 3; Then I have another statement unsigned long a=4000, current_word; current_word=a << 19; According to my knowledge they will contain the same value. Am I right?

Software Development c++
Member Avatar for mbulow
0
139
Member Avatar for Ole Raptor

I have searched and I have searched but I can't find a way to display all instances of SQL Server in a combobox. Any help is greatly appreciated.

Software Development display sql vb.net
Member Avatar for johnhtod
0
871
Member Avatar for umandajayo

hi all... I am a student and but working as a php developer...my desire is be a good skillful Software Engineer. I am currently following php and java too. but my mind say try to learn C++ also.. ok good 01. How I start my C++ career. 02. What is …

Software Development c++ career
Member Avatar for mohsho
0
105
Member Avatar for ttboy04

Hello, the following code is not exactly working properly. Bascally when I enter + in the dialog box it escape but still increments in the calculation. So for instance if I first enter a word "hello" then I click OK button then I enter word "there" then I click OK …

Software Development java perl
Member Avatar for ttboy04
0
147
Member Avatar for Kesarion

I'm trying to get the key being pressed in order to start an algorithm and afterwards move the mouse on the screen and perform some clicks. How can I achieve this when the console is in the taskbar ? I tried _getch() but it doesn't work while the console is …

Software Development algorithm c++
Member Avatar for nbaztec
0
181
Member Avatar for anuragcoder

Hey Guys, Recently ive been developing a text editor when i came to stop. [ICODE]system("cls"); cout <<"\t\t-------------------------------------" <<endl; cout <<"\t\t| NEW FILE |" <<endl; cout <<"\t\t-------------------------------------" <<endl; cout <<"\t\t|Enter New File Name| "; getline(cin,createfile); cout <<"\t\t----------" <<endl; getline(cin,text);[/ICODE] here getline accepts code only until one press enter key How to …

Software Development c++
Member Avatar for anuragcoder
0
2K
Member Avatar for jodhy

Can someone give me code for hangman in watcom pascal please, thank you

Software Development pascal
Member Avatar for FlamingClaw
0
159
Member Avatar for jemz

hello can you help me how to secure database password...hoping for your positive responds...thank you in advance..

Software Development visual-basic
Member Avatar for jemz
0
155
Member Avatar for demifuror

Hi guys, At the minute, I'm writing a simple Java application under Lucid Lynx, the latest and greatest Ubuntu release :) Can anyone tell me how to make the windows in my application, match the look and feel of the other windows in the system? I've tried setting the default …

Software Development java ubuntu ui-ux
Member Avatar for jwenting
0
248
Member Avatar for Tuyet Anh Pham

Please help me solve this problem, I've spent 2 days to search for what error is but I can't!!! The operator + return error object though this object was still right before it is returned. Maybe it's because of the copy constructor but I find no doubt in its syntax... …

Software Development c++ linked-list
Member Avatar for Tuyet Anh Pham
0
311
Member Avatar for faceandname

So I have two forms. I want the information i input to text boxes in form one, to show up in text boxes on form two. The txtONE - TWELVE belong to form1 and the Form2.Adj/Adv/Noun etcetera belong to Form2 [code] Public Class Form1 Public Sub Form1_Load(ByVal sender As System.Object, …

Software Development vb.net visual-basic
Member Avatar for Luc001
0
133
Member Avatar for landb

I am in school and just learning and I am completely stumped on this lesson. [B]I have determined that I will be using an array[/B] dim playingBoard(2,2) as string - 9 possible places to put an x or an o dim x as integer dim o as integer [B]I have …

Software Development vb.net
Member Avatar for Luc001
0
99
Member Avatar for pickleleon

I've created a game and want to record highscores through textboxes. I've thought using an Access database may be one idea but seems quite complicated at my level of programming. I'm looking for some ideas or an alternative to using access. If not then some way i could go about …

Software Development gaming microsoft-access
Member Avatar for JOSheaIV
0
121
Member Avatar for jakkee

When i enter the following code I get an error saying "method must have a return type" could somebody please explain what needs to be done to correct this error. Thanks, public EditDialog(DataRow row) { editRow = row; InitializeComponent(); PopulateForm(); }

Software Development
Member Avatar for JOSheaIV
0
343
Member Avatar for jakkee

hi, I have created an application which allows users to view pictures, basically i want to know if it is possible for the file path to be displayed in a text box and for a user to be able to launch the picture using this file name in the text …

Software Development
Member Avatar for JOSheaIV
0
140
Member Avatar for .11

I am working on an phone book class, and I have to have the Phone numbers, which have a name and address in an order list(linked). But I have to sort by phone nnumber, not by name...I have been trying to think of ways to sort the phone numbers. So …

Software Development java linked-list
Member Avatar for bigdognec
0
763
Member Avatar for socal

Okay I'm a beginner programmer and I just can't seem to get the most basic class and constructor to work. Heres what I have [CODE]import java.io.*; public class bankAccount { //instance variables String name; int number; double balance; } public bankAccount(String name, int number, double balance) { name = "John …

Software Development java
Member Avatar for masijade
0
69
Member Avatar for ChPravin

Hello All, I am getting the following error message when I try to execute my program as an executable jar on a remote system.The same program works perfectly fine on my local system: Exception in thread "main" java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) …

Software Development java sql
Member Avatar for masijade
0
943
Member Avatar for Melechesh

hello I've been designing a bookStore, tought it's not an easy task. It has been sweating me for no reason,errors pop up in correct statement. An error pops up saying compliation error: member or method not found in line adodc.RecordSet.Edit here is the full code: [CODE] Private Sub Command3_Click() Dim …

Software Development visual-basic
Member Avatar for jhai_salvador
0
82
Member Avatar for Thaddeus_03

Pls send let me see the codes on how to connect a My SQL database to vB6.. ^_^ i am new to My SQL! tnhx much!

Software Development sql visual-basic
Member Avatar for jhai_salvador
0
73
Member Avatar for dbphydb

Hello, I am getting the below error when using mechanize to submit a webform. >>> Exception in Tkinter callback Traceback (most recent call last): File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__ return self.func(*args) File "C:\Python26\lib\idlelib\MultiCall.py", line 159, in handler doafterhandler.pop()() File "C:\Python26\lib\idlelib\MultiCall.py", line 206, in <lambda> doit = lambda: self.bindedfuncs[triplet[2]][triplet[0]].remove(func) ValueError: …

Software Development python tkinter
Member Avatar for dbphydb
0
77
Member Avatar for sonia sardana

Can somebody tell me how to call Windows Hard Disk Defragmenter in VB.Net on Button Click. Any help is greatly appreciated.

Software Development vb.net
Member Avatar for pritesh2010
0
198
Member Avatar for pineapple23

Hi, I've been learning basic C++ for the past few days, and at the moment, I'm trying to make a basic 2-number, plus/minus/multiply/divide calculator. Here's what I have (it's complete). Basically I was wondering if anyone could recommend a quicker or shorter way of typing all of this out. Thanks …

Software Development c++
Member Avatar for amrith92
0
372
Member Avatar for neosonic

Hi, do you know any function or component that I need to use to make a smooth image rotation? (as smooth as windows image acquisition). I am currently have a sub that enables me to rotate the image, it is okay with small image, but I am dealing with very …

Software Development image visual-basic
Member Avatar for neosonic
0
3K
Member Avatar for new2programming

Hi, I have a game that at the moment is a little like mario- a jump and run. I want to add a timer to my main funtion so that after 60 seconds or so the game ends and goes to a highscore table where you can enter your name …

Software Development c++
Member Avatar for mrnutty
0
111
Member Avatar for Leontyne

Ok, I'm probly going to sound like a bit of an idiot, but I'm new to the programming world. Whenever I attempt to run this program, I get a long list of error messages. //DATATYPE.CPP //Examples of variable declaration and //initialization. #include <iostream> main () { //declare a constant for …

Software Development c++
Member Avatar for olejarskiw
0
155
Member Avatar for thejinx0r

Hi, I'm a bit new to python and gui programming. I was wondering if there was a way to display a widget on desktop such that when you minimize everything, my widget still displays? I'm currently checking out PyGTK because I'm using gnome on linux, but if there's a cross-platform …

Software Development gui python
Member Avatar for thejinx0r
0
134
Member Avatar for gcardonav

Hi guys: I am trying to run my makefile on my system. I am getting the following error [CODE]% make cc -c -O -I/Users/gcardonav/jpeg-6a -I/Users/gcardonav/cfitsio FITS2jpeg.c In file included from FITS2jpeg.c:26: jpegsubs.h:28:20: error: malloc.h: No such file or directory make: *** [FITS2jpeg.o] Error 1 %[/CODE] I do a search for …

Software Development c++ file-system
Member Avatar for abhimanipal
0
535
Member Avatar for white feather

[CODE] public void setTableModel(List<Users> users) { eraseTableRows(); for (int i = 0; i < users.size(); i++) { Users u = users.get(i); tm.insertRow(i, new Object[] { stuff }); } } private void eraseTableRows() { for (int i = 0; i > tm.getRowCount(); i++) { tm.removeRow(i); } [/CODE] i've tried this and …

Software Development java
Member Avatar for white feather
0
146
Member Avatar for glubbish

I have been able to extract a single column with help here but now I want to get two, but the same process does not seem to work. [code=pascal] Procedure Tform1.showroom; begin adoquery1.close; adoquery1.SQL.Clear; ADOQuery1.SQL.Add('Select roomname,description from Rooms'); adoquery1.Open; end; procedure TForm1.FormCreate(Sender: TObject); begin ADOConnection1.KeepConnection := false; datasource1.DataSet := adoquery1; …

Software Development dataset ide pascal
Member Avatar for glubbish
0
265
Member Avatar for ferenczi

Hello everybody, I would link to represent a graph with incidence lists. This picture is what I've thought about: [URL="http://img697.imageshack.us/img697/2640/incidence.jpg"]http://img697.imageshack.us/img697/2640/incidence.jpg[/URL] This is what I created: [CODE] #include <cstdlib> #include <iostream> using namespace std; class Edge; class Pointer; class Node { public: Node* nNext; Pointer* incList; char First; Node(char a) : …

Software Development c++
Member Avatar for ferenczi
0
115
Member Avatar for jimJohnson

Can someone check my work to make sure I did the following correct... The array-based implementations of stacks in this section impose and upper limit on the max size that a stack may have. Write a member function full() for the stack class that returns true or false according to …

Software Development c++
Member Avatar for griswolf
0
150
Member Avatar for jimJohnson

Can someone please double check to make sure I have these right. Here are the instructions... Assume that q is a queue implemented as described using circular array with queueElement = char and capacity 5, and then ch is of type char. Show the values of myFront and myBack and …

Software Development c++ queue
Member Avatar for jimJohnson
0
81

The End.