132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Matth963

Hi, I'm doing a study planner in java. I'm doing a simple login system. For every user who registers a text file is created holding all of the information inputted during registration. This is the code of a method which the program uses to login the user: public void loginUser(){ …

Software Development java
Member Avatar for Matth963
0
298
Member Avatar for rahul.ch

Why does first two eg give true when a check done on them using if(x==y) but 3rd and 4th case give false? eg1: `String x = "Hello", y="Hello" ` eg2: `String x = "Hello";` `String y= "Hello";` eg3: `String x="Hello";` `String y = new String("Hello");` eg4: `String x = new …

Software Development java
Member Avatar for rahul.ch
0
246
Member Avatar for FaisalSarfraz

Hi every one!! I need help to match user data from database inorder to log in to admin panel. Here is what I am trying. it works ok but it is giving dialog box containing text "Sorry! You have no access to Database" here is the code. Please help String …

Software Development java mysql
Member Avatar for FaisalSarfraz
0
293
Member Avatar for perly

Hi, I have a file containing multiple-headed data (input file 1), and also a second file containing elements for searching the first file. input file 1: UROPA sseD 1.2.3.3.3 crimson ddsU 2.1.4.1.2 green SAMEL aadH 7.4.1.1.1 blue uuoG 10.1.2.3.4 white MOONA gmaL 3.4.1.6.7 red oolJ 9.1.1.4.1 yellow input file 2: …

Software Development file-system perl seo
Member Avatar for 2teez
0
266
Member Avatar for Unhnd_Exception

Why can't we post anymore comments on the "Read This Before Posting" sticky won't go away thread created by Reverend Jim?

Software Development vb.net
Member Avatar for Reverend Jim
0
147
Member Avatar for plasticfood

i have a private Node class with a getValue() method that returns the Node's value which is of generic type. In another class i've tried doing this: T tempItem = null; ----also generic tempItem = currentNode.getValue(); I get a complier error unless I cast it like this: tempItem = (T) …

Software Development java
Member Avatar for plasticfood
0
234
Member Avatar for linc186

I've been trying to get this to build for hours, I have no idea what's wrong. Any help is appreciated, thank you. Here's the code: main.cpp #include "SDL/SDL.h" #include "Core.h" #include "GameStates.h" #include "globals.h" int main(int argc, char** args) { if(core.Initilization(640, 480, 32, SDL_SWSURFACE) == -1) { SDL_Quit(); } while(core.desiredstate …

Software Development c c# c++
Member Avatar for gusano79
0
283
Member Avatar for indrajeet6

Hi guys I'm Indrajeet Roy, and I have a problem with a piece of code I am trying write in VB.net. I am using Visual Studio 2010 as my IDE. The basic idea behind the form and the coding I am trying to do is to create a username, password …

Member Avatar for BitBlt
0
1K
Member Avatar for Frensi

I'm trying to open a txt file in python, but I'm having trouble. It seems to be working, but I cannot get the text anywhere. Here is the code, does anyone know how I can get the text from the hello.txt file? f = open("c:/users/verzo/desktop/hello.txt") print(f)

Software Development python
Member Avatar for vegaseat
0
127
Member Avatar for necrovore

Hi, I am trying to generate a sales report for a given date in the crystal report. In my table i have a billdate and other information. Now what i am trying to do is to get all the sales into my report when i specify a date. I have …

Software Development vb.net
Member Avatar for necrovore
0
100
Member Avatar for silverkid

why do i get this syntax error at the line shown below [CODE]package org.temp2.cod1; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; import java.io.*; public class Code1 { byte[] plaintext = new byte[32]; // <<<<<<<<<<<<<<<<<<<<<<<<<< syntax error for (int i = 0; i < 32; i++) { plaintext[i] = (byte) (i % …

Software Development ide java
Member Avatar for LaughingOtter
0
22K
Member Avatar for Dili1234

Private Sub Product_Details1(ByVal pid1 As String) Dim n As Integer n = 0 DataGridView1.Rows.Clear() myConnection = New SqlConnection(connectionstring) myConnection.Open() Try sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" & ComboBox1.SelectedText & "' ", myConnection) Dim dr As SqlDataReader = sqlcmd.ExecuteReader If dr.HasRows Then While dr.Read() DataGridView1.Rows.Add() DataGridView1.Rows(n).Cells(0).Value = dr("P_Id").ToString …

Software Development display vb.net
Member Avatar for Dili1234
0
440
Member Avatar for limzhengtong

**this is my displacement.h** #ifndef DISPLACEMENT_H #define DISPLACEMENT_H class displacement { public: displacement(double, double, double); double getvalue(); private: double s,t,a,v ; } #endif **this is my displacement.cpp** #include "displacement.h" ;using namespace std; displacement::displacement(double t1,double a1,double v1) { t=t1; a=a1; v=v1; s = v * t -(0.5) * a * t …

Software Development c++
Member Avatar for zvjezdan.veselinovic
0
409
Member Avatar for slasham

im very new to c++ and was just wondering if its possible to make a simple program where you type the name of the file and when you press enter it downloads that file from the internet to a certain place on your computer. where would the files be stored? …

Software Development c++ file-system
Member Avatar for np complete
0
867
Member Avatar for muhammads

Hi All, I am new to C++ on linux enviroment and am trying to use the png++ library for a project. The problem i am facing is that that a simple program i write using png++ incudes does not work and shows me the following errors > AProg.o: In function …

Software Development c++
Member Avatar for np complete
0
279
Member Avatar for opman234

Please help me. I want to make my software a trial version for 30 days. Help me with code to use , and the steps. •̸ŤђαϞĸs

Software Development vb.net
Member Avatar for G_Waddell
0
221
Member Avatar for pritesh2010

how to convert this code to C#. Protected Class Calendar Public Sub New(ByRef Picker As NullableDateTimePicker) End Sub End Class

Software Development c# vb.net
Member Avatar for Michael27
0
119
Member Avatar for Mindazz

Hello. I can search for items in first listview column using FindItemWithText. I wonder is it possible to search in other listview columns and highlight found text, not all item line ? :?: Searched on google all day long but no luck... :sad: My Listview contains multiple items and each …

Software Development listview seo vb.net
Member Avatar for G_Waddell
0
4K
Member Avatar for Gus_19

I've been experimenting with having a standard API for a balloon tip on my Winform. No problems with standard textboxes, but I was wondering if it is at all possible to create one for a rich textbox? I would like a balloon tip to display when the Capslock is on.

Software Development api vb.net
Member Avatar for G_Waddell
0
287
Member Avatar for tman55588

I am trying to load Visual Basic 2010 express onto my computer and keep running into a problem with the install. it hang up on the .net framework 4 download and then quits. i've tried running "as admin" and it still didn't work. i am using vista on one laptop …

Software Development vb.net visual-basic
Member Avatar for G_Waddell
0
166
Member Avatar for bhagawatshinde

Hi guys, How to unzip folder in c# programatically. Thanks in advance.

Software Development c#
Member Avatar for nesa24casa
0
167
Member Avatar for robin99

Whenever I click on form's red cross close button I want to close form, but I need to click it twice to close the form.I need to click it only one to close it. I don.t know what the cause,please help thank you robin

Software Development
Member Avatar for nesa24casa
0
73
Member Avatar for shanki himanshu

int i=512; char *c=(char *)&i; c[0]=2; printf("%d",i); o/p is 514

Software Development c
Member Avatar for I_m_rude
0
241
Member Avatar for ronnel09

#include<conio.h> #include<stdio.h> void main() { int iRows; clrscr(); printf("Enter a number :"); scanf("%d",&iRows); if(iRows>0) { for(int iResult=0,iCount=0,iRows; iResult<=iRows; iResult++) for(iResult=1,iCount=0,iRows; iCount<=iResult; iCount++) printf("*"); printf("\n"); }//for getch(); }//main please help me to correct my source code: i should make a program like this: * ** *** **** ***** . . . …

Software Development c
Member Avatar for deceptikon
0
132
Member Avatar for rexmorgan

I could reallly use some help. I am a complete newbie in python. What I would like to do is import a csv file (originally an excel file). Have the user pick a beginning month and an ending month and add the columns of the months between. For example I …

Software Development microsoft-office python
Member Avatar for rexmorgan
0
1K
Member Avatar for krovi

what is wrapper calss .where can we use wrapper class in java.give me one example?

Software Development java
Member Avatar for JamesCherrill
0
114
Member Avatar for rexmorgan

This is working code. You will of course have to replace the directories used in this code with your own that will be unique to your particular situation. You also must have ArcGIS, and the newest version is 10 which will only work with python 2.6. There is plenty of …

Software Development python
0
347
Member Avatar for cristine.y07

guys . please help me how to connect a database in c#. thanks .

Software Development sql
Member Avatar for M.Waqas Aslam
0
88
Member Avatar for rahul.ch

The o/p is 10. But shouldn't it be 9? Is it got anything to do with Postfix or variable scoping has a role to play?

Software Development java
Member Avatar for rahul.ch
0
173
Member Avatar for nesa24casa

Hello, i have issue that i cant solve for some time since i dont fully understand regex. How can i get selected data from table to array? Example class="fb s10" title="Get This Info"> class="fb s10" title="Get That Info"> How can i extract Get This Info Get That Info from selected …

Software Development c c# c++ regex
Member Avatar for nesa24casa
0
189
Member Avatar for opman234

I need help, please how can I export my database from access to mysql. I do not want to start creating the tables one after the other ĩ̷̊ñ mysql. Thanks

Software Development mysql vb.net
Member Avatar for agbenaza
0
123
Member Avatar for HibaPro

how i can refresh the content of data grid view after add and delete row ??

Software Development vb.net
Member Avatar for Pgmer
0
91
Member Avatar for reach_ay

Hi all, Am new to C# and i have a form which registers users,But i want to create methods that which check if the TextBox conatins Letters (ie for coloumns that shouldnt take letters) and check for special characters and number for coloumns that should only have text. I have …

Software Development open-source
Member Avatar for reach_ay
0
120
Member Avatar for samohtvii

I am looking to create a binary tree and then print it out. I am getting some strange errors I cant fix. #include <stdio.h> #include <string.h> struct animalTree { char data[100]; struct animalTree *left; struct animalTree *right; }; typedef struct animalTree aTree; void fillTree(FILE*, struct animalTree*); int readNext(char*, FILE*, int*); …

Software Development c data-structure ubuntu
Member Avatar for deceptikon
0
275
Member Avatar for borchu

Hello everyone, I am new at Java(android)-before I have little information about Java lang- and in particular socket programming -before I do not know nothing about socket client server programming-, previously I wanted to write simple chat program by using Threads and now I pass this step, two android emulators …

Member Avatar for borchu
0
984
Member Avatar for c#_fem

Hi, I'm new to WCF technology and I have to make 2 service providers, that can exchange messages between each othen. So I made two seperate WCF services, and a client application for each service. But my how to implement implement communication between the two wcf services, so that when …

Software Development
Member Avatar for Randlathor05
0
178
Member Avatar for George2

Hello everyone, When using the following source codes to play a local .wav file, I always find .wav files can not played. Does anyone know what is the trouble? [Code] import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.FloatControl; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; public class …

Member Avatar for stultuske
0
984
Member Avatar for rahul.ch

Compiles fine. But at runtime it gives ClassCastException. My doubt is that why is it so even though st which is of type Sample1 gets casted to Sample2 and generates exception even though Sample2 IS-A Sample1.

Software Development java
Member Avatar for rahul.ch
0
246
Member Avatar for Jake.20

Greetings fellow developers i just wanna ask if this situation is possible.. i have a program that consists this forms - Registration Form - Log in Form - Admin Form The registration form is as usual a windows app, and also the admin form except log in form. When the …

Software Development asp.net microsoft vb.net
Member Avatar for Jake.20
0
307
Member Avatar for keyoh

I'm working on a cleanup script for tv shows that I download. Right now I'm just looking for a file greater than 50mb, but there should be a better way. [CODE] import os import shutil dir = "C:\Users\Bobe\Downloads\TV\\" for folder in os.listdir(dir): if os.path.isdir(os.path.join(dir,folder)): for file in os.listdir(dir + folder): …

Software Development python
Member Avatar for The Geek Scope
0
5K
Member Avatar for myk45

Hello All! To check for return values from a function and setting error flags, i am currently using the following approach: bool fine = true; fine &= func1(); fine &= func2(); .. and so on. if (!fine) { // error } Could anyone please let me know if there is …

Software Development c++
Member Avatar for myk45
0
206
Member Avatar for jane.frasier

I used the upsize wizard in Access 2010 to split my database with the table being on the SQL server. I entered this in the autoexec (was macro, I converted it) Function autoexec() oConn.Open "Driver={SQL Server};Server=JCPLMSQL01;Database=TestingConnection;Trusted_Connection=yes;" DoCmd.OpenForm "Form1", acNormal, "", "", , acNormal autoexec_Exit: Exit Function End Function I don't …

Software Development sql visual-basic
Member Avatar for AndreRet
0
134
Member Avatar for montjoile

Hi! I want to execute a method without pressing the enter key, what I want to do is get the press key an save it in an array while the user is typing, but I dont know how to execute an event without pressing the enter key here is my …

Software Development c++
Member Avatar for montjoile
0
464
Member Avatar for wootburgers

numbers = [] line = int(raw_input('Enter number: ')) while line != '': numbers.append(line) line = raw_input('Enter number: ') print "Size:" + " " + str(len(numbers)) Hey guys, once again I need some help with a challege. http://pokit.org/get/img/c00a1897d52de5b36329564861fadb1b.jpg For your homework, you are given a set of integer data readings, and …

Software Development dataset python
Member Avatar for TrustyTony
0
264
Member Avatar for wootburgers

I want to make a program that cross checks strings. Here is an example : **Enter line: AAGGAA This sequence can make a hairpin** **Enter line: UGAG This sequence cannot make a hairpin** **Enter line: GUGCCACGGCACCGUG This sequence can make a hairpin** **Enter line: GUACCACGGCACCGUG This sequence cannot make a …

Software Development python
Member Avatar for wootburgers
0
259
Member Avatar for TrustyTony

Here is slow brute force way to find the largest palindromic product of three digit integers. You could do loop and break out of it if you go under the smaller number (the second one) of best solution found so far to be more efficient etc.

Software Development mathematics python
Member Avatar for hughesadam_87
0
558
Member Avatar for chuckc

I have an odd problem with a Java-based Internet program that I would like to use on a regular basis on my Windows XP computer. I have not done Java programming, so I would be interested to know if anyone has ideas about what might be happening. The program runs …

Software Development hard-drive java windows-virus
Member Avatar for chuckc
0
243
Member Avatar for python1956

Hi guys, With Python, I am using genfromtxt (from numpy) to read in a text file into an array: `y = np.genfromtxt("1400list.txt", dtype=[('mystring','S20'),('myfloat','float')])` Which works okay, except it doesn't seem to read my 2 columns into a 2D array. I am getting: [('string001', 123.0),('string002', 456.0),('string002', 789.0)] But I think would …

Software Development python
Member Avatar for vegaseat
0
545
Member Avatar for sajis997

Hello forum, I believe that i have the design problem that i need to discuss about. Intersectable is the super-class; Triangle and Sphere are the sub-classes of the Intersectable i believe that you already realized class inheritance structure. I have the following pure virtual functions declared inside the INTERSECTABLE virtual …

Software Development c++
Member Avatar for sajis997
0
113
Member Avatar for shmay

I'm trying to read from a text file. Pretty simple, right? I guess not. It gives me this error message: Debug Assertion Failed! Program: F:\Debug\lab1431.exe File: fscanf.c Expression: stream != NULL For information on how your program can cause assertion failure, see the Visual C++ documentation on asserts. [code] #include …

Software Development c++ file-stream
Member Avatar for randomjokar
0
703

The End.