132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shivarocks

hello friends i am new to ejb and i tried to create a session bean for obtaining JDBC Connection,and i called it from a servlet the session bean was a remote session bean but connection is not getting established.. EJB CODE : ConnectionBean.java [CODE] package com.ejb; import java.sql.Connection; import java.sql.DriverManager; …

Software Development java session
0
120
Member Avatar for king_saqib

Hi to every one I'm creating a software but I have to expire it After 3days I'm am writing this code but it is not working if date(now) >=date(29/9/2011) then Msgbox "the software has been expired and unload Me End if Is this true

Software Development visual-basic
Member Avatar for debasisdas
0
170
Member Avatar for BaldingEar

Hi guys. I am getting the error: LoanProgram.java:17: variable payment might not have been initialized payment = getPayment (amount, rate, years, months, payment); I am stumped, and the lab is due tomorrow. If anyone could help me out I would greatly appreciate it. :) I'll put an asterisk on the …

Software Development java
Member Avatar for BaldingEar
0
337
Member Avatar for mitchiexlolz

i want to make a menubar similar to that of MS OFfice. I have downloaded some Executable JAR files that tells me they can help me, but as I run the codes, nothing happens. Can you please teach me how make a ribbon menu bar.? or give me a link …

Software Development java
Member Avatar for mitchiexlolz
0
257
Member Avatar for kwamba

How can you combine different c++ programs into one full software. I am using the Code::blocks IDE

Software Development c c# c++ ide
Member Avatar for Ketsuekiame
0
105
Member Avatar for caut_baia

Hello.I've been looking for a free C++ compiler for windows which supports the new standard features but i had little luck so far.Does someone have any knowledge of one? Thank you in advance.

Software Development c c# c++
Member Avatar for caut_baia
0
443
Member Avatar for The Mind

I'll go right to the point. I'm writing this on my friend's behalf. He's a computer science major (senior) and currently an intern at the IT support somewhere. He was asked to come up with a project idea that benefits his department and bring it into reality. It definitely has …

Software Development
Member Avatar for Ketsuekiame
0
118
Member Avatar for kylelendo

Hii friends I am creating a web application Now there are only two users who will login to the system the two users are Admin and staff When Admin logins he is directed to Admin.aspx and when staff login he is directed to Staff.aspx I have created a database Table …

Software Development session
Member Avatar for jbisono
0
156
Member Avatar for lastbencher

I was trying to print the location of array elements using the following code [code=c] #include<stdio.h> main() { int arr[]={10,20,30,40,50,60}; int i; for (i=0; i<6; i++) printf("%d ", &arr[i]); return 0; } [/code] Error: [B]printArrayLocation.c:7:3: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘int *’[/B] While i …

Software Development c
Member Avatar for Narue
0
173
Member Avatar for alinutzu

Hi. I have a bounded datagridview and it's work fine. I want to know if I can to add a combobox column to datagridview. Thanks for all.

Software Development vb.net
Member Avatar for riteshbest
0
175
Member Avatar for iefilec

hi. i'm doing a search option in my system where if your searching for a entry even if you didnt typed the whole word, all of the entry that contains the letters that you have typed will appear, well i really cant explain it but it goes like this if …

Software Development microsoft-access sql vb.net
Member Avatar for Mitja Bonca
0
262
Member Avatar for dospy

i really need a GOOD socket tutorial, i've followed some of them from google but they aren't complete, i know that socket programming is forked into many categories, basically i am interested blocking & non blocking sockets, synchronous & asynchronous sockets(used with select() and FD_ISSET macro etc) PS: i know …

Software Development c++ client-server socket-programming
Member Avatar for dospy
0
168
Member Avatar for Zssffssz

ok this is one of the many things I don't trust google on. What is a good new compiler (C++ and D would be nice) for Linux? Kubuntu PS Is the system() function universal as in it will do the same thinge in Linux Windows and OSX

Software Development c++
Member Avatar for limaulime
0
228
Member Avatar for Zssffssz

Ok so I want to have the user imput a name of a file to decode it. How would I do that? EX: cin>>fill ifstream in (fill)

Software Development c++
Member Avatar for limaulime
0
256
Member Avatar for adarshcu

Hi, I was preparing for SCJP 1.6 and i have the following snippet of code. [CODE]package com.self.trials3; public class Animal { public void Animal(){ System.out.println("Obviously Works"); } Animal(){ //System.out.println("Constructor"); //super();use super or this() as first line in your cons to call other //cons. this("Adarsh"); } Animal(String AnimalName){ //System.out.println("AnimalName >> "+ …

Software Development java
Member Avatar for pavanvusirika
0
153
Member Avatar for amulgarg

[CODE]#include<iostream> using namespace std; void prin();//statement a main() { int x; //statement 1 x=34;//statement 2 return 0; }[/CODE] I wanted to know if the variable x is allocated memory in statement 1 or in statement 2. Its a long time doubt and no one really gives a clear and confident …

Software Development c++
Member Avatar for limaulime
0
102
Member Avatar for dwinn

Hello, I have produced some VBA in Access that creates a spreadsheet. I have also created an SQL query that retrieves records from an Access table. I have 48 tables (each table for a specific institution centre). I have created another bit of VBA code that creates a spreadsheet and …

Software Development vb.net visual-basic
Member Avatar for dwinn
0
141
Member Avatar for hiralarious

Hi!(: Sorry, I'm totally new and have no real idea about what I'm supposed to tell you. I just really need some help on my java homework so anything would be much appreciated. (: I feel like I'm already asking for so much.. so I'm really sorry, but can someone …

Software Development java java-swing
Member Avatar for hiralarious
0
179
Member Avatar for meli123

[CODE]// bintodec.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> using namespace std; int main(){ string inp; int dec = 0; char base; cout << "Input a number: "; cin >> inp; cout << "Input the base your number is in: "; …

Software Development c++
Member Avatar for D33wakar
0
80
Member Avatar for Jonathan C

Menu Items has ONLY: [U]New[/U], [U]Open[/U], [U]Save[/U], [U]Save As[/U] and [U]Exit[/U]...nothing else i dont know how to do: -Create a member boolean variable to track when the contents of the textbox have changed. This boolean variable will be used to prevent the contents of the textbox from being lost, after …

Software Development
Member Avatar for riteshbest
0
123
Member Avatar for rotten69

Hi everyone; I'm working on a c# service that queries the DB and checks if the right info is available for users. It's an Airline tickets reservation system. I am not sure why my code is breaking after it gets the query and it gives an error about sqlclient.. [CODE] …

Software Development c c# c++ dataset
Member Avatar for arunkumars
0
205
Member Avatar for suraj_p

this program calculates all the prime numbers between two input numbers num1 and num2. first an array is created and num1,num1+1,......num2 are stored in that array and then all elenemts of array are scanned and if they are divisible by any odd number except itself or by 2 then 0 …

Software Development algorithm c++
Member Avatar for vijayan121
0
172
Member Avatar for ryl

The input for this program should be like this: How many tests? 4 Grade on Test 1? 95 Grade on Test 2? 88 Grade on Test 3? 80 Grade on Test 4? 96 Your average is: 89.75 <------- this is where I can't get it right, can anybody take a …

Software Development c++
Member Avatar for ryl
0
137
Member Avatar for phileyofish

Hello, I'm very new to programming and I am working on a program to test to see if a random number is prime. This is what I have so far. I'm really stuggling with the logic of it. I understand what I have up to the while loop. I'm pretty …

Software Development c
Member Avatar for Adak
0
112
Member Avatar for daniwaber

Can anybody tell me how to get the bios number or hard disk number or any other number which is unique for every computer in vb6?

Software Development visual-basic
Member Avatar for mb01a
0
115
Member Avatar for lionaneesh

[B][I][I][U]Introduction:-[/U][/I][/I][/B] [COLOR="Red"] Hi guyz today I am going to writing a tutorial on dictionaries in Python....As per as getting comments from my readers I'll try to make this tutorial Short....[/COLOR] [B][I][U] Layout:-[/U][/I][/B] [COLOR="Green"] 1.What are dictionaries? 2.Why dictionaries? 3.How to declare/make dictionaries in Python? 4.What all you can do with …

Software Development python
Member Avatar for colstonewall
0
414
Member Avatar for casey_sunako

Hi guys. I would just like to know if there is a way to integrate a progressbar that shows the progress of the process? I mean when process.Start is activated, that's when the progressbar starts to load until and stops only when process.HasExited. I hope someone can help. Thanks.

Software Development vb.net
Member Avatar for Teme64
0
508
Member Avatar for madhan

Hi - I have an xml document that has the following data. <?xml version="1.0" encoding="utf-8"?> <ValidateClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <addr1Valid>73 McKNIGHT RD</addr1Valid> <addr2Valid /> <cityValid>PITTSBURGH</cityValid> <stateValid>P</stateValid> <stateZip>S15237351</stateZip> </ValidateClass> I am trying to convert the xml data to comma delimited string. for eg: 73 McKNIGHTRD,null,PITTSBURGH,P,S15237351 I' m trying to accompolish this using StringWriter …

Software Development xml
Member Avatar for Teme64
0
849
Member Avatar for jmay1327

I am trying to use functions in the following program. The program is supposed to use a vector of structures to store a students first name, last name, and grades. Also, to get a average for each student and a class average. I do not think I am calling the …

Software Development algorithm c++ mathematics
Member Avatar for jmay1327
0
140
Member Avatar for Undertech

I have nearly finished an assignment that calls for implementing a media library. I have pinpointed my current solution for the addItem method in the library class as a memory leak, but so far I am not certain how to fix it. The addItem method I have so far is …

Software Development c++
Member Avatar for doug65536
0
2K
Member Avatar for Capritarius21

When you are generating report in your application then everytime you run it then it will automatically create temp files. To avoid these junk files you have to kill the TEMP files. Code Syntax: KILL "Directory\Temp filename" Sample (delete all temp files): KILL "D:\OMI FILES\Project\*.TMP" Sample (specific temp file): KILL …

Software Development vb.net visual-basic
Member Avatar for Capritarius21
0
197
Member Avatar for rarment

I'm having a severe brain drain moment and can't figure out how to validate user input? I need to make sure that it is an int and it is greater than 2. And I need it to loop until the user meets those requirements. I tried a try-catch block but …

Software Development java
Member Avatar for rarment
0
205
Member Avatar for xcarbonx

Hello, I am just starting and introductory course in Assembly. We are using 8086, and I am having trouble with the assignment. We are to start with the number 1, and then double that number 18 times, and print out each number in hex. For example, output should look like: …

Software Development assembly
Member Avatar for AceStryker
0
139
Member Avatar for mfletch

Hey guys, I'm working on an entry level java programming assignment and I'm running into some trouble. I've attached 3 java files and will quote the problem below. If anyone can point me into the right direction I would really appreciate it. Thanks! I'm fairly sure the code needs to …

Software Development java
Member Avatar for mfletch
0
232
Member Avatar for blondielox

I am working on part five of the Farmers Market program and am ready to pull my hair out. Not getting much help from the instructor either. here is the code [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. …

Member Avatar for NormR1
0
187
Member Avatar for computerchip

Hello, I am having trouble with a python 3.2.2 problem. Here is the problem, followed by the answer I have right now (I've put the example in green for clarification): Write a program that declares a different series of lists (lists should not have the same number of words), and …

Software Development python
Member Avatar for computerchip
0
443
Member Avatar for MUNAM BIN TARIQ

[CODE]#include<iostream.h> int main() { int num,j,c=0,limit,i,k; int*freq=new int[]; int*munam=new int[]; cout<<"How many times u want to enter the numbers\n"; cin>>k; cout<<"tell ur range in which u will enter\n"; cin>>limit; for( i=0; i<k; i++) { cout<<"Enter number\t"<<i+1; cin>>munam[i]; if(num>limit) { cout<<"invalid num"; return 0; } for( j=0; j<limit; j++) { freq[j]=0; …

Software Development c++
Member Avatar for MUNAM BIN TARIQ
0
93
Member Avatar for zack_falcon

I'm not sure how to describe this in the title, so it may be misleading. Basically, I want to change the image of a LOT of buttons. And when I say a lot, I mean 93 of them. So obviously, this approach: [CODE]btnSinglePlay.BackgroundImage = Image.FromFile(buttonN);[/CODE] would take too long, since …

Software Development
Member Avatar for zack_falcon
0
194
Member Avatar for eblanco1

[CODE]#include <iostream> #include <cstdlib> #include <math.h> #include <iomanip> using namespace std; const string FILLER = " "; int main() { int w1 = 20; int w2 = 20; int w3 = 20; int w4 = 16; //variable declarations string firstname,lastname; int marital_status; float gross_income; const float tax_rate_0 = 0.10; const …

Software Development c++
Member Avatar for eblanco1
0
171
Member Avatar for jmay1327

I am trying to display the sNames vector. I am not sure if I am storing the information correctly. Any help would be greatly appreciated. Also I am trying to get an average for each students exam grades and a class average, and I am not sure how to go …

Software Development algorithm c++ display
Member Avatar for jmay1327
0
214
Member Avatar for niyasc

[CODE] #include<stdio.h> #include<conio.h> #include<malloc.h> int main() { int i=0,j=0,n=0; char *a,**b; a=(char *)malloc(sizeof(char)*50); printf("Enter your text\n"); gets(a); while(a[i]!='\0') { *(b+n)=(char *)malloc(sizeof(char)*20); //error for(j=0;a[i]!=' ';i++,j++) { *(*(b+n)+j)=*(a+i); } i++; n++; } printf("Words in given text are \n"); for(i=0;i<n;i++) { puts(*(b+i)); printf("\n"); } printf("Possibile combinations are \n\n"); for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(j!=i) …

Software Development c file-system
Member Avatar for niyasc
0
253
Member Avatar for ryanfsf

i want to ask something about my assignment. heres the code [CODE]#include <stdio.h> int main() { int nilaiuts[5],nilaiuas[5],nilaitugas[5]; int i; float total=0; printf("Masukkan nilai UTS mahasiswa [5 mahasiswa] :\n"); // proses memasukkan data ke array for (i = 0; i < 5; i++) { printf("Mahasiswa %i : ", i+1); scanf("%i",&nilaiuts[i]); …

Software Development c mathematics programming-construct
Member Avatar for WaltP
0
222
Member Avatar for murnesty

if i declare size 5 array [CODE]char ch[5]={'1','2','3','4','5'};[/CODE] Then the null will store at the address ch+5 ? even i didn't declare the size for the null to place. If so mean it may overlap value on that memory address?

Software Development c++
Member Avatar for NP-complete
0
164
Member Avatar for monica sri

[CODE]#include<stdio.h> int main() { printf("hai;"); return 0; } when i compile this using dev c++ i get a error message as [build error][project.exe]error1 [/CODE]

Software Development c
Member Avatar for neeraj goswami
0
105
Member Avatar for bunik34

Hello everyone this will be my first post. I am happy that there is a forum like this with very supportive people.:) So on topic.. I am a student creating an Inventory System software for my school using VB on VS 2008. I am having trouble saving items from a …

Member Avatar for Alexpap
0
202
Member Avatar for buzz9948

I am attempting to make a number guessing game but I need to use functions I figured a good spot for this would be the greater and less than problems that I need to include to make the user know what they have, I am horrible with functions and dont …

Software Development c c# c++
Member Avatar for palav sandeep
0
128
Member Avatar for rarment

I keep getting a stackOverflow error in my quickSort and I can not figure out why. Any help would be greatly appreciated!! [CODE] private static void quickSortRecPriv(int[] arr, int first, int last, int ps) { int pivot = arr[first]; int left = first; int right = last; if (arr == …

Software Development java programming-construct
Member Avatar for JamesCherrill
0
199
Member Avatar for ali13

Hi how do I get a £ to print in python 2.4.1. if I type print "£" in the terminal it works fine if I try to to that from a script it comes up with a Deprecationwarning no encoding selected and prints (don't know how to get the character …

Software Development python
Member Avatar for snippsat
0
470
Member Avatar for nick6987

Design a cashier change maker that will take as input: a floating point value. Value: "change due" and will convert it to proper currency (from $20 down to pennies) amounts to be handed as change to the customer i am not sure how to use the rounding correctly every time …

Software Development java
Member Avatar for nick6987
0
217
Member Avatar for sirlink99

I am trying out something new and I am wondering if this is valid and is not working because of some other code glitch. Graphics class: [CODE]import java.awt.*; import javax.swing.JPanel; public class Drawing extends JPanel{ KeyCommands kc = new KeyCommands (); public void startGraphics (){ System.out.println ("Adding KeyListener"); addKeyListener (kc); …

Software Development java java-swing
Member Avatar for sirlink99
0
151

The End.