43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sirin_adam

Hello! I need to read from a txt file ip:port (or in some lines ip:portDdateCinteger). But i can not do it because there is no nextChar method on Scanner class. The txt file is like this: 332.234.32.11.11.222:8080 123.32.45.43.32.11:8976D12.01.2010C5 44.44.111.114.44.43:220 222.333.44.55.66.77:8089 111.11.11.11.22.33:8080D01.01.2009C1 ... There are million line on txt file. I …

Software Development file-system java
Member Avatar for sirin_adam
0
843
Member Avatar for Majestics

How to add serial number like column in jtable at left side of jtable?

Software Development java
Member Avatar for Ezzaral
0
98
Member Avatar for Niles64

Hi OK, so I am reading on OOP in Python, and I am an old C/C++ programmer so I have somewhat high expectations :). My question is regarding private/public variables. Per default, all class data members are public, but if we precede them with a double underscore, they become private. …

Software Development oop python
Member Avatar for TrustyTony
0
208
Member Avatar for coroll

Hi all, i made some modifications to my code which i wrote previoustly. But when i run it, the previous code is executing. i showed a msgbox inside button click.Next day i erased & it wrote a different code. when i click it still the msgbox is being appeared. PLZ …

Software Development
Member Avatar for nmaillet
0
118
Member Avatar for secretply

So I have 2 picture boxes, a textbox, and a button. One of the picture boxes adds another row with the same controls but moved down when clicked and the other picture box (should) remove the same row that it was clicked on. I have PictureBoxAdd1, PictureBoxRemove1, TextBox1, and Button1 …

Software Development vb.net
Member Avatar for codeorder
0
170
Member Avatar for klenne

Hi, I'm trying to check the login. The values of id and pw are send from a textbox and the values of userid and password are from a mysql database. I try to compare them and if they are equal i want to return true and else return false. But …

Software Development java
Member Avatar for klenne
0
274
Member Avatar for king03

Hi guys I encounter an error everytime I run my recursion program which contains a messagebox. Here is the error: The name 'MessageBox' does not exist in the current context and here is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication10 { class Program { static …

Software Development apple
Member Avatar for Momerath
0
158
Member Avatar for jenny666

Hello, im writing a C program that needs to get a value from my database and put it into a temporary table. so far i can get the value from the database and insert it into my temp table. if i fill in the right value in the where clause …

Software Development c sql
Member Avatar for jenny666
0
107
Member Avatar for thecoolman5

hi, I am trying to make a calculator and I need the stringstream function to convert a a certain part of a string.[CODE]string n1 = "243+79"; int n2 = 0; stringstream(n1[0-2]) >> n2; // this converts the 243 from n1 to an int[/CODE] Any solutions?

Software Development c c# c++
Member Avatar for thecoolman5
0
345
Member Avatar for Midar01

Pease please help.. with visual basic 2008. I am trying to get ListView to work but it does not for me. I already set up ListView with 3 colums, but the coding is not working first column called ITEMS, second Quantity and 3rd is PRICE. All items are on Buttons …

Software Development listview vb.net visual-basic
Member Avatar for Midar01
0
153
Member Avatar for Caraka

I am having trouble structuring an sqlite update statement that has multiple parameters. The following code does not raise an exception, but nor does it update my table. After extensive googling and searching Daniweb, I think I'm looking right at the blindingly obvious and missing it. I have a list …

Software Development python sqlite
Member Avatar for Caraka
0
4K
Member Avatar for Niles64

Hi Everything in Python is treated as an object, so [CODE] i=5 i.imag [/CODE] makes sense, i.e. the variable [I]i[/I] has some associated methods. But why doesn't the following example work? [CODE] 5.imag #error [/CODE] One would think that it should work, since the integer "5" is an object just …

Software Development python
Member Avatar for Niles64
1
117
Member Avatar for Mike Bishop

Can someone please tell me what i am doing wrong with this code. I have created a dataset and want to push that data into crystal reports. [CODE] Dim rpt As New CrystalReport1() 'The report you created. Dim myConnection As SqlConnection Dim MyCommand As New SqlCommand() Dim myDA As New …

Software Development dataset sql vb.net
Member Avatar for IrshadIkhlas
0
551
Member Avatar for marvolo1300

Hi, I'm just trying out something with returning values to a variable and I've encountered a problem. Basically the program is supposed to return the value of [CODE]string x[/CODE] as either true or false from the [CODE]isEven[/CODE] function, then the [CODE]void output[/CODE] function should output the value of [CODE]string x[/CODE] …

Software Development c++ ide
Member Avatar for marvolo1300
0
96
Member Avatar for vishal1949

I'm writing a program but I don't understand the question that well could someone help explain what I have to do. Also, I am having difficulty making the methods could someone help, because I am getting an error every time. This is the Question. Write a cash register class. It …

Software Development java
Member Avatar for thines01
0
2K
Member Avatar for caut_baia

Hi.I have a piece of code that compiles without even a warning on the borland 5.5 compiler yet complains bitterly when compiling with g++.I've heard that g++ emits more portable code but shouldn't they both be standard compliant?From what i've read in the '98 standard book this should be legal …

Software Development c++ legal
Member Avatar for mike_2000_17
0
633
Member Avatar for sergent

Whats the difference between [CODE]using namespace NameSpaceName;[/CODE] and [CODE]namespace NameSpaceName;[/CODE] ?

Software Development c++
Member Avatar for mike_2000_17
0
135
Member Avatar for hennelh

A recent assignment involved using very large integer values. A formula and very large x values were given and we had to compute the value of f(x). The tutor suggested using long long values as the 0 < x < 10^18. The function F(x) = F(x/2) - x if x …

Software Development c++ ubuntu
Member Avatar for hennelh
0
4K
Member Avatar for teha_toshio

[CODE]1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 A * * * * * * * * * * * * * * * * * * * * B * * * * * * * * …

Software Development c++
Member Avatar for teha_toshio
0
174
Member Avatar for Hendo

Hello all! Okay, I have made a very small stand alone application used basically as a program launcher for a very specific purpose. The application will be run off of a thumb drive, and used several times a day, and on several different machines, for about a month. No internet …

Software Development
Member Avatar for Hendo
0
117
Member Avatar for Aviras

Hello everyone. I've been programming on a co-op RPG for quite some time now, but my networking side has seen some troubles. I'm using the lower level serverSocket-Socket way. Everything runs flawless within my own network, however connection over the internet is where the trouble is. I understand this is …

Member Avatar for Aviras
0
287
Member Avatar for anand01

Hai all, AM trying to connect java with database .I created class called data manager with several methods like setdburl(), getdnurl() ,etc.. i called the set functions inside another class and assign values. in set method i assigned LOCAL VARIABLE. when i call get url method it shows null value.. …

Software Development java
Member Avatar for anand01
0
145
Member Avatar for Majestics

How to keep look and feel of java program as classic windows style , even the style of the windows change to windows xp look, or aero look? I mean permenantly keeping classic look? Has any one has any idea? Thank you............... for any advice , help... :)

Software Development java
Member Avatar for Majestics
0
168
Member Avatar for coolzero

need help on this; I want to have the textbox4 to have the sum of columns based on their employee Id. I have this code but kept getting error. strsql = "SELECT emp_id, COUNT(acdcalls) FROM CMS WHERE emp_id= '" & TextBox1.Text & "'" oledbcon.Open() Dim cmd As New OleDbCommand(strsql, oledbcon) …

Software Development cms vb.net
Member Avatar for Naveen2961
0
2K
Member Avatar for mith_cool

Instance variable does mean you will get new value with every new object created of particular class rite? I tried it myself eg: [CODE]class simpleinstcheck { static int i; void incr() { System.out.println(i++); } public static void main(String args[]) { simpleinstcheck sc= new simpleinstcheck(); sc.incr(); simpleinstcheck sc1= new simpleinstcheck(); sc1.incr(); …

Software Development java
Member Avatar for JamesCherrill
0
177
Member Avatar for bhagawatshinde

Hi, How to restrict user to copy and paste datagridview data to word or anywhere. How i can do this. Thanks in Advance........................

Software Development
Member Avatar for bhagawatshinde
0
75
Member Avatar for Jake.20

Guys need help.. I have button that adds element in array and displays the item that is added in array in the listview, And also i have button that deletes it but it's not working. Here's the code: [CODE]Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click …

Software Development listview vb.net
Member Avatar for vikramrandhawa
0
243
Member Avatar for tarakant_sethy

Hi, i am compiling the code in HP itenium server and i am getting an error. "Filename.cpp", line 129: error #2308: more than one instance of overloaded function "std::basic_string<_CharT, _Traits, _Allocator>::assign [with _CharT=char, _Traits=std::char_traits<char>, _Allocator=std::allocator<char>]" matches the argument list: function "std::basic_string<_CharT, _Traits, _Allocator>::assign(const std::basic_string<_CharT, _Traits, _Allocator> &) [with _CharT=char, _Traits=std::char_traits<char>, …

Software Development c++
Member Avatar for tarakant_sethy
0
100
Member Avatar for PratikM

Hi Guys, I'm kinda new at this..but I need help cause I keep on getting this error and I don't know what's wrong with it. So Please Help Me. Thanks. Here's My Code: [CODE]#include <iostream> using namespace std; int addition (int,int,int,int,int, int); int addition (int a, int b, int j, …

Software Development c c# c++
Member Avatar for PratikM
0
430
Member Avatar for ecclesiastes3:1

I'm newbie in java, can you help me to this code. the image needs to move diagonally [CODE]public void actionPerformed(ActionEvent e) { x += 3; if (x > 600) { y = random.nextInt(600); x = random.nextInt(-45); star.setX(x); star.setY(y); }[/CODE]

Software Development java
Member Avatar for NormR1
0
120
Member Avatar for Prankmore

[CODE=c]# include<stdio.h> # include<string.h> # include<stdlib.h> int main(int argc, char **argv){ // Declare Variables char barcode[50]; int count; long long intBarcode; long countryCode; int dig0, dig1, dig2, dig3, dig4, dig5; int dig6, dig7, dig8, dig9, dig10, dig11; long long num; long rem, sum; int checksum; long long manufac, product, language, …

Software Development c
Member Avatar for gusano79
0
238
Member Avatar for stephen lowry

hi guys havent been here for a while , im a fairly competent vb.net programer but have a problem think im just missing something ,im working on a fairly big project but im gonna keep this question small and simple . if i have 2 forms amd one module the …

Software Development vb.net
Member Avatar for stephen lowry
0
229
Member Avatar for Kadence

Is it possible to use #ifdef with Boolean AND and OR? For instance something like [CODE]#ifdef WIN32 || WIN64 cout << "This is Windows." << endl; #endif[/CODE] The above doesn't give a compiler error for me, although it doesn't evaluate the or condition.

Software Development c++
Member Avatar for Susel1
0
3K
Member Avatar for Lebowski

Edit: The title could have been more descriptive, I am sorry for that! Hello! First time poster, frequent reader. I am very green to both programming and python, trying my best and this board has been helpful just by reading. Now, I have a problem of my own that I …

Software Development file-system python
Member Avatar for TrustyTony
0
411
Member Avatar for baby_c

Hello Friends.. need a help with Merge Sort I tried to implement Merge Sort using Java language..I followed Introduction to Algorithm book for the algorithm.. but the code generates errors.. please can anyone explain this to me.. why these errors pop-up ?? [CODE] package test; import java.util.Random; public class mergeSort …

Software Development algorithm java
Member Avatar for JamesCherrill
0
382
Member Avatar for TIP.Synergy

Hello, how to insert a pdf file in database(ms access) using vb.net anybody can help me please? thanks ^_^

Software Development pdf vb.net
Member Avatar for TIP.Synergy
0
1K
Member Avatar for triumphost

I've been programming in C++ for quite some time now and I know all functions must return a value.. but can someone tell me WHY we return 0? I mean it compiles even when I don't put return 0.. and the program executes fine.. I can see in some functions …

Software Development c++ operating-system
Member Avatar for SnowFall
0
273
Member Avatar for SuperJunkeh

Can any one tell me how to make a program to Generate Palindromic numbers?

Software Development visual-basic
Member Avatar for WaltP
0
133
Member Avatar for seamus400

I put a few solid days into finding a working method of capturing the screen and they either didn't compile or weren't quite what I was looking for. I am wondering if anybody has any example code to capture the screen every 10 seconds and save it to bmp. I …

Software Development c++ display windows-vista-7-8
Member Avatar for seamus400
0
593
Member Avatar for Stefano Mtangoo

Hi, I'm making an MVC pattern based app and I though I would learn the principles first. I have reached a stage I need to connect the three elements. When Controller receives user action It calls right model. Now I need to register callback function so that when Model is …

Software Development c++ software-architecture
Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for churva_churva

[CODE] Private Sub cmdCancel_Click() txtcode.Text = "" txtdescr.Text = "" txtumsr.Text = "" txtqtyh.Text = "" txtuprice.Text = "" End Sub Private Sub cmdSave_Click() Dim itemcode As String * 10 Dim descr As String * 10 Dim umsr As String * 10 Dim qtyh As Integer Dim uprice As Currency …

Software Development display visual-basic
Member Avatar for BitBlt
0
192
Member Avatar for galhajaj

Hi :) i placed a picturebox and paint on it inside the program with FillRectangle/DrawEllipse/FillEllipse etc. now all i want is to check if the pixel color under the cursor is == Color.Black but i encounter problems... i made this: [CODE]Bitmap myBitmap = new Bitmap(this.pictureBox1.Image); Color pixelColor = myBitmap.GetPixel(Cursor.Position.X, Cursor.Position.Y); …

Software Development
Member Avatar for ddanbe
0
157
Member Avatar for markaroni

I'm creating a simple Slot Machine. one button for the start, and 3 stop buttons on each tiles of Picturebox. my problem is, Every time i clicked each of the stop buttons, the Picturebox won't stop. I need help in which, if i clicked the stop button on a corresponding …

Software Development image
Member Avatar for markaroni
0
460
Member Avatar for Majestics

is there any open source project for custom menu for java desktop app?

Software Development java open-source
Member Avatar for Majestics
0
215
Member Avatar for duke_swh

Hi, I'm trying to send an email using a lotus notes account and c# which is working fine. It is a two part mail which consistes of an HTML formatted message and attachment/s. The problem i'm encountering is when I have multiple attachments in different file formats. For example when …

Software Development c# file-stream session
0
297
Member Avatar for betny

[CODE]public void readArguments(String[]args ) { String [] readArray = new String[ 10 ]; Scanner readscanner=new Scanner(System.in); // read values from keyboard into array System.out.println("Enter your arguments or type Exit to exit the loop"); for ( int i = 0 ; i < readArray.length ; i ++) { if(readArray[i] =="Exit" ) …

Software Development java
Member Avatar for hfx642
1
230
Member Avatar for shers

Hi, I have a string like "a_b_c_d". How do I get only c out of this string? Thanks

Software Development vb.net
Member Avatar for shers
0
64
Member Avatar for lcfjoertoft

I'm creating a search function for my program, and need some help with SQL. Until now I have been using simple SQL query like [CODE] "SELECT post1 FROW table1 WHERE a=b" [/CODE] and put it into arrays. Then using that info to do another query, put it into arrays, and …

Software Development sql vb.net
Member Avatar for hericles
0
152
Member Avatar for Kleiner

Hi. I am having a problem in creating of one simple program in Python. Here is code. [CODE]import wx class bucky(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Testing erea", size=(280,400)) panel = wx.Panel(self) food = wx.Button(panel,label='Food',pos=(10,10),size=(80,40)) pets = wx.Button(panel, label='Pets', pos=(100,10), size=(80,40)) self.Bind(wx.EVT_BUTTON, self.food, food ) def food(self, event): …

Software Development gui python
Member Avatar for Kleiner
0
284
Member Avatar for wonder_laptop

Dear All, i have been tugging my hair out for 3 days and i cant find the problem !!! im writing a code in Aglets, i have to classes, Master and SayItAglet [B][U][COLOR="Green"]Master.Java[/COLOR][/U][/B] [CODE]package simple; import com.ibm.aglet.*; import java.net.*; public class Master extends Aglet { private AgletContext thisContext = null; …

Software Development java
Member Avatar for ahmed0725
0
225

The End.