132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for deepak.marur

Hi, I'm writing a sample spring web flow app with jsf as view technology. I guess I've got everything right in terms of configuration. However when I click on the "login" commandbutton of the jsf page, the flow does not go the next view (Welcome). Am I missing something ? …

Software Development java xml
0
133
Member Avatar for jacksantho

Hi, I have the LOGIN page, with the username and the password. By logging in, the users can view their information and they can submit their jobs. When the user click LOGOUT link, the page moves to main INDEX PAGE(i.e LOGIN page). The problem is it, when the user click …

Software Development perl
Member Avatar for mitchems
0
247
Member Avatar for AngelicOne

While using an insert query for a certain table, can I used a select statement to know whether there's an already existing value in the stored procedure using a return value where insert occurs? Or do I need to separate a procedure? I don't know much of return values.

Software Development
Member Avatar for AngelicOne
0
216
Member Avatar for zenotriacme

Hi, i have download the project from microsoft using WMEncoder to capture a desktop activities as video. Its working fine. But the problem is it capture a full screen but i need to capture the specific window. I am new to VC++ thats y i dono how to change the …

Software Development audio c++ video window-manager
Member Avatar for zenotriacme
0
331
Member Avatar for Vardonir

I'm sorry if the title is a bit vague. Hehe. I've had this idea to use different namespaces to control the contents of a second form. Unfortunately, this version uses five namespaces: three for the forms, and two for the contents of the other two forms. What I need to …

Software Development
Member Avatar for Vardonir
0
113
Member Avatar for Phil++

Hello, I'm doing my final project and I'm thinking about creating an application that is user based.. A user can login (See their score etc) and also register if they haven't got an account yet.. I'm thinking about doing this using SQL and I haven't really done it before, other …

Software Development c# sql
Member Avatar for Mitja Bonca
0
114
Member Avatar for pkfx

if numInput isnt an integer I want it to prompt "Invalid Try Again" and ask for input again [CODE] std::cout << "Enter a Number (Max 10 digits)(99 to Exit): "; std::cin >> numInput; [/CODE]

Software Development c++
Member Avatar for Narue
0
116
Member Avatar for annnDi

Hello guys. First of all i have to say i've been learning a lot on daniweb and appreciate all your effors. Secondly, i'm currently learning MFC with c++ and atm I am making a program called "fast fingers", where you have to press those chars on keyboard that are dynamically …

Software Development c++
Member Avatar for annnDi
0
399
Member Avatar for sipchen

Hi, I'm trying to create an excel 2003 workbook from my vb.net project I referenced the code from this website [url]http://www.dotnetspider.com/resources/20382-To-create-Excel-file-vb-net.aspx[/url] However i'm getting error on this line "objSheets = objBook.Worksheets" Can any please tell me what's wrong? [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click …

Software Development microsoft-office vb.net
Member Avatar for sipchen
0
593
Member Avatar for wilfredkojo

Hello guys, Please i have a problem and i need help.Please I have two table called 1.Register product table 2.Sell product table Register product table consist of (Product Id (txtProdId.text) and Product Name(txtProdName.text)) NB. All are textboxes Sell product table consist of (Product Name(cboProdName.text) and ProdPrice (txtProdCost.text)). NB. ProductName over …

Software Development vb.net
Member Avatar for Pgmer
0
162
Member Avatar for ram619

could you please tell me whats happening at line number 8 because, the output is 3,2,30. How can the value be incremented twice with just one increment. Thanks ! [code=c]#include<stdio.h> #include<conio.h> int main() { int b[5]={10,1,30,40,50}; int j,i,k=1,m; i=++b[1]; j=b[1]++; m=b[i++]; printf("%d %d %d",i,j,m); getch(); } [/code]

Software Development c
Member Avatar for ram619
0
87
Member Avatar for dss1984

Hi, everyone. This is my first post here. I'm not very good with C++ and I have to write a program using 2 dimensional arrays. My program is a Menu that works with 2 two dimensional arrays. The program has to generate two random matrices and perform arthimetic procedures like …

Software Development c++ first-post
Member Avatar for ameya potnis
0
429
Member Avatar for arjunpk

hi i'm writing a c# script to be used in ssis.... i'm trying to pull an image from a website... i'm new to c# and i'm not sure whether the data types i'm using are right... i'm posting my code here... [CODE] using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; …

Software Development api c# image
Member Avatar for dotancohen
0
234
Member Avatar for Mick91

I have a data grid view populated by a query, how would I go about getting the mode from a column of values in the data grid view (from the queried data) Thanks in advance.

Software Development vb.net
Member Avatar for Mick91
0
84
Member Avatar for jmensah

please I need a sql command similar to decode in oracle becuase am getting an error when i verified as an sql command. below is my code which, please help by correting the problem [CODE=SQL]SELECT dbo.Trans_Head.Doc_Date, dbo.Trans_Head.Document_No, dbo.Trans_Head.Account_Type, dbo.NewAccount.Surname + '' + dbo.NewAccount.First_Name AS Account_Holder, dbo.Trans_Details.Account_Name,SUM(NVL(DECODE(dbo.Trans_Details.Trans_type, 'DR', dbo.Trans_Details.Amount), 0)) Payemnt, …

Software Development oracle sql vb.net
Member Avatar for jmensah
0
325
Member Avatar for Diamonddrake

I am working on an application where I am presented a string that has some information, its always in the same order, but not always the same length with no special separators, here is an example "May 30 10:08 am ARRIVAL AT UNIT WILMINGTON DE 19850" I need to be …

Software Development
Member Avatar for Diamonddrake
0
120
Member Avatar for zack_falcon

I've constructed an inventory program that relies on a database for information. Previously, I've used Access 2007, because it is easy and n00b friendly. Unfortunately, I'm not so sure Access can handle the requirements (Multiple simultaneous users over a LAN connection). So I switched to SQL Server 2005 Express. And …

Software Development c# sql
Member Avatar for zack_falcon
0
150
Member Avatar for ChrisHunter

Hi, Could anyone tell me the best way to implement a propertygrid? currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader: [CODE] [DefaultPropertyAttribute("ObjectTypeID")] public class ObjectType { private int _objTypeID; private int _stateType; private …

Software Development c#
Member Avatar for lolafuertes
0
564
Member Avatar for MrHardRock

Hey, this is the first program I've tried writing using any GUI and I have gotten everything so far, except every time I click my button to try and run my program it just freezes and does not do anything. import javax.swing.*; import BreezySwing.*; public class piGUI extends GBFrame{ private …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
225
Member Avatar for alreem

Can any one help me with this exercise . . ! I did not understnd it . ? [B] A number is called a proper divisor of N if M < N and M divides N. A positive integer is called perfect if it is the sum of its positive …

Software Development java
Member Avatar for milkhey
0
682
Member Avatar for rregalad

I am working on an ASP.net 2.0 application written in C#, pulling data from an Oracle 10g database on a remote server (i.e. the application and database are on different servers). The data is pulled via a SqlDataSource control. When I run small, quick queries, everything works fine, but when …

Software Development asp asp.net oracle
Member Avatar for Momerath
0
722
Member Avatar for alemojarro

I can't get my winning to not be zero. And I don't see why. [CODE]import java.util.*; public class Foothill { public static void main(String[] args) { int loop = 1; int winnings =0 ; while ( loop != 0) { String s1 = PullOne(); String s2 = PullOne(); String s3 …

Software Development java
Member Avatar for JamesCherrill
0
179
Member Avatar for rami2005

in vb6 we can declaration arecord like this [COLOR="Green"]Type x a As Integer b As String End Type[/COLOR] and deal to this record by dim s as x s.a=1 s.b="hi" but i cant do that in vb.net any one can help me please

Software Development vb.net
Member Avatar for lolafuertes
0
124
Member Avatar for ajinkya112

Hey Guys, Currently, I am doing a project. I don't know how to pass a value from one windows form to another windows form using c#.net. Suppose, I have two forms parent form and child form. Parent form consists of a combo box & button and I want to pass …

Software Development
Member Avatar for crazyvonzipper
0
2K
Member Avatar for skalra63

i am currently using the following code so that when the cursor is over an object, it displays a description. [CODE]Private Sub txtSearchbox_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) frmeObjectDescription.Visible = True lblSearchCriteria.Visible = True End Sub[/CODE] however, i dont know how to make it …

Software Development visual-basic
Member Avatar for AndreRet
0
138
Member Avatar for ram619

I m trying to print the prime numbers using Sieve of Eratosthenes But, my output is 0 for all. please tell me where i m wrong. Thanks for help [code=c]#include<stdio.h> #include<conio.h> int main() { int arr[100],i,j=1,val=0,mod,num=0,k,l; for(i=0;i<100;i++) { arr[i]=j; j++; // printf("\n %d",arr[i]); } for(k=1;k<100;k++) // checking number and replacing …

Software Development c
Member Avatar for ram619
0
127
Member Avatar for ajmaly

I have below xslt file and want to implement code for altenet color row. I'm implementing below code, but it will color out coloumns and not the rows. I think I'm applying style on <TableCells>...where need to put code..please help..thnx [CODE]<xsl:if test="position() mod 2 = 1"> <BackgroundColor>#e0e0e0</BackgroundColor> </xsl:if> <xsl:if test="position() …

Software Development dataset xml
Member Avatar for xml_looser
0
126
Member Avatar for jeffrey4u

My chat application have icon at the taskbar which displays messages as balloon text for the user when the application is minimized. My problem is when the message contain smiley or emotion like this ':D:D:)' the smiley does not display in the balloon text. Any help on how to add …

Software Development display image visual-basic
Member Avatar for AndreRet
0
181
Member Avatar for sireesha g

Hi All, I have an xml file like [CODE]<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="InProcess1.xsl"?> <Rowsets DateCreated="2011-02-14T12:24:00" EndDate="2011-02-14T12:24:00" StartDate="2011-02-14T11:24:00" Version="12.0.2 Build(88)"> <Rowset> <Columns> <Column Description="BatchNumber" MaxRange="1" MinRange="0" Name="BatchNumber" SQLDataType="12" SourceColumn="BatchNumber" /> <Column Description="VersionCode" MaxRange="1" MinRange="0" Name="VersionCode" SQLDataType="3" SourceColumn="VersionCode" /> <Column Description="MaterialType" MaxRange="1" MinRange="0" Name="MaterialType" SQLDataType="12" SourceColumn="MaterialType" /> <Column Description="LotNumber" MaxRange="1" …

Software Development apache html-css xml
Member Avatar for sireesha g
0
1K
Member Avatar for westony

[CODE]#include <stdio.h> #include <string.h> void proba(char *test) { int i; char det = *test; printf("%s", det); } int main(void) { char datar[] = "asds"; printf("%d \n", datar); proba(datar); return 0; }[/CODE] printf("%s", det); is the problem. When its turn to execute its trowing me out from the app. With "wrong …

Software Development c
Member Avatar for westony
0
110
Member Avatar for elsiekins

Hi - i have been trying to create a linked list in C using structs and there are a couple of things i am stuck with how to declare the node front and back and do i keep repeating myself? Also in the function push back how can i use …

Software Development c linked-list
Member Avatar for elsiekins
0
304
Member Avatar for kingofdrew

My homework is Write an applet that draw the house shown on the left in Figure 14-32. When the user clicks on the door or windows, they should close. The figure on the right shows the house with its door and windows closed. I basic want a java applet that …

Software Development java java-swing
Member Avatar for kingofdrew
0
185
Member Avatar for get connected

Hi all Does anyone know if it is possible to open a firefox webbrowser in a form. Or does it take you default web browser as the webbrowser to open in form. Eg - My Default Browser is Firefox - so does that mean the webbrowser control would be a …

Software Development vb.net web-browser
Member Avatar for get connected
0
220
Member Avatar for Micko

Hello, I'm using PythonWin and I have a problem. i don't know how to run script from Python shell Pythonwin Interactive Window). For example I wrote this code (from tutorial): [code] import sys print 'Begining... now...' for x in sys.argv: print x [/code] and I save it as Script.py in …

Software Development python
Member Avatar for danholding
0
2K
Member Avatar for Chair

Hi, I'd like to get the value of a column from a datagrid and insert that to a table. I get an error "Object reference not set to an instance of an object." Here's my code: [CODE] Imports System.Data.SqlClient Imports System.Data Public Class Class1 Public Shared Sub insertrecord(ByVal query As …

Software Development vb.net
Member Avatar for AndreRet
0
172
Member Avatar for raidernation

#include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; const int num=1000; int main(int argc, char *argv[]){ if (argc == 2){ ifstream file; file.open(argv[1]); } else cout << "You typed only one file" << endl; ifstream file; file.open(argv[1]); string space; char word; int i=0; int w=0; int s=0; …

Software Development c++ file-system
Member Avatar for raidernation
0
187
Member Avatar for hajjo

[CODE]Imports System Imports System.Drawing Imports System.Windows.Forms Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End Sub End Class[/CODE] Hello, I have a textbox and I have a button. Okey, when the button is clicked I want my mouse to go and click a …

Software Development vb.net visual-basic
Member Avatar for josephbeluan
0
954
Member Avatar for nosehat

What is the procedure in Python for opening a very large binary file in read/write mode, and overwriting individual bytes or sequences of bytes? I'm working with huge files that are many GB, and I would like to seek(arbitrary_long_integer), and overwrite what's there (instead of appending or inserting). I need …

Software Development python
Member Avatar for richieking
0
4K
Member Avatar for Luckychap

Here is simple C program for analog clock. Comipler: TurboC

Software Development c
Member Avatar for Adak
0
2K
Member Avatar for azencot

Hello, I am not sure if this is the place to ask. I develop an algorithm in C++ under Windows XP with Visual studio 2008, the algorithm is proved to be linear ( O(n) ), there is a usage of memory during the algorithm ( all of it is being …

Software Development algorithm c++ visual-studio
Member Avatar for azencot
0
181
Member Avatar for darkalfx

Hello, I just started learning c++ and I'm dabbling with file input/output. But now I have encountered an issue with this code: [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { ifstream inFile("values.txt", ios_base::binary); string Value1; int Value2; int Value3; int Value4; if(inFile) { inFile.read((char*)&Value1, sizeof(string)); inFile.read((char*)&Value2, …

Software Development c++
Member Avatar for darkalfx
0
1K
Member Avatar for 1g0r

Hi All, I have the following program to convert Lower case character to uppercase letters org $4000 Alph equ 26 26 Alphabets begin lea LC,A0 store lowercase to A0 lea UC,A1 store uppercase to A1 move.b #Alph,d1 sub.b #1,d1 loop move.b (A0)+,d0 convert LC to UC sub.b #32,d0 move.b d0,(A1)+ …

Software Development assembly
Member Avatar for nezachem
0
396
Member Avatar for jeuxdeau2009

Im writing a blackjack program to train one to count cards using the Hi-Lo System. I found the engine online ( it was open sourced.) Instead of the code here using only numbers and Letters, i want to add only pictures of the cards instead of the numbers and card …

Software Development gaming image python
0
115
Member Avatar for bestex

Hi Guyz, i just wanna know how to fix my problem, or rather fix my code and simply my code base on my MODULE. heres the error " You have an error in your SQL syntax; check the manual that corresponds to your mysql server version for the right syntax …

Software Development mysql vb.net
Member Avatar for bestex
0
145
Member Avatar for skinwah

Hi all. I am having trouble with these inside a loop I have. The loop is used to fill a struct and I want to check each input before it is accepted. It works fine if the input is what is expected but doesnt if it is incorrect input. Here …

Software Development c++
Member Avatar for pseudorandom21
0
270
Member Avatar for surferxo3

[CODE] #include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; int main () { int arr[9][9], n; srand(time(0)); for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { n = rand() % 9; if (arr[i][j] == n) { n = rand() % 9; arr[i][j] = n; …

Software Development c++
Member Avatar for surferxo3
0
145
Member Avatar for MaDo4

Hi im trying to calculate the average of an inputfile using a 2d array. I tried to calculate the average per row and add them all together but my code gives me an average of zero. I was wondering if anyone can see what im doing wrong or a better …

Software Development c++
Member Avatar for MaDo4
0
143
Member Avatar for zachattack05

Quick (really) question about windows services. According to the documentation, services require a minimum of 2 methods OnStart() and OnStop() to be useful. OnStart() cannot contain the main execution code, it shouldn't loop, block or otherwise prevent the OnStart() method from returning quickly. The Question: If the above is true...it …

Software Development
Member Avatar for Momerath
0
198
Member Avatar for blacklocist

Hi, I am importing data from excel (don't know yet I am going to do that) and export it back into excel. I don't want to have users to import data using excel (due to lack of intelligence) and also it would be faster and more streamline. I already had …

Software Development c# first-post
Member Avatar for ivy3
0
218
Member Avatar for puneetkay

Greetings, Hmm, Im not sure Is this the right place to ask this question, Well If im wrong please correct me. Im working in a company as Java programmer that also provide professional training for Java and two of my trainees have created "Stick Snake" and "Snake and ladders" game …

Software Development java
Member Avatar for Dawenlomo
0
1K

The End.