132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for liran

Hye I have a question: Suppose I use JDBC, JDBCTemplate in order to execute a sql query. The query is something like: query = "SELECT ... FROM ... WHERE user = ? AND password = ? AND x='valuex' AND y='valuey' ..." Where user,password - I got from the web user …

Software Development java sql
Member Avatar for liran
0
310
Member Avatar for txwooley

I found an old post (2002) on another website where someone asked how to colorize text in Linux. The reply was: [CODE]printf ("\033[31ma\033[32mb\n");[/CODE] Where the format is "\033[XXm" followed by the text to be colored. I tried this on my Ubunutu machine and it works. It even works with "cout …

Software Development c++
Member Avatar for txwooley
0
120
Member Avatar for alibm

Hello, I have a project and I'm working on the important part now. I want to create this interface in the end and informations in DB. This my goal, this is a prototypical interface created with MockupScreens [url]http://i.imgur.com/7rt5U.png[/url] now I created this interface, I think I'm progressing slowly because I …

Software Development gui java java-swing
Member Avatar for mKorbel
0
376
Member Avatar for RenanLazarotto

Hey people! I was just surfing around the threads here, and found one asking for how to make a Installer-like GUI ([url]http://www.daniweb.com/forums/post1492819.html[/url]). I've replied there, but I think that is nice to have this on our code database. To start, let’s make na empty Project. Add a TabControl to it. …

Software Development app-store gui vb.net visual-studio
Member Avatar for RenanLazarotto
0
644
Member Avatar for AngelicOne

My form1 has a datagridview that is being populated by a dataset. I need to get the row's values selected on the datagridview to another form, which is form2 that is consist of textboxes. I am quite confused whether to pass the dataset to form2 or use a datareader to …

Software Development dataset
Member Avatar for Mitja Bonca
0
207
Member Avatar for moshe12007

hi i have 90 textBoxes at my program and i want to insert them for my DataBase (sql) how can i do that? i know that i can to do array like -> TextBox[] arr = {textBox1,texBox2......textBox(n)}; but i dont wanna this way cause that a lot of work. how …

Software Development
Member Avatar for moshe12007
0
169
Member Avatar for spunkywacko

Hey guys can anyone tell me what am I doing wrong? I basically set up a method which has an array, it will return a specific element in the array according to an ID set within my property. I get the following errors: [CODE]Error (wordIdFunc = 2;): Invalid token '=' …

Software Development
Member Avatar for ddanbe
0
100
Member Avatar for anu07

Hi,can anyone tell me how to check if a file exists,I am using turbo c++ 3.0 Thank you for your time.

Software Development c++
Member Avatar for anu07
0
413
Member Avatar for adir

Hi, I got lost with some prj, hope you can give a hand. I need to create a tiny code, that generating between several variables, with loop that generate all char variations in new row. The order of all variables need to remain as it is, and to take effect …

Software Development c++
Member Avatar for adir
0
134
Member Avatar for bart89

Hi everyone! While writing one of my first programs in C# I have encountered a problem: I create two PictureBoxes(1 and 2) and I want PainEvent to draw a line on second of them(PictureBox2). When i start my program there isn't any line on it and it appears when I …

Software Development
Member Avatar for jonsca
0
89
Member Avatar for Staggasaurarts

Hi, i would like to send data from a C++ application to a php script i am creating that will then put it into a mysql database after manipuating it a bit. If you don't get what i mean then think of it like this. An HTML form can be …

Software Development c++ php
Member Avatar for ziggystarman
0
1K
Member Avatar for Vega_Knight

Hi, i want to get current position of cursor on the form. there are label to show the coordinates of cursor position. anyone can help me. i don't have idea for this. thanks Best regards.

Software Development visual-basic
Member Avatar for Vega_Knight
0
461
Member Avatar for dnk

Hi masters.. how can i shutdown computer using api files in vb6? best regards.. Gbu

Software Development api visual-basic
Member Avatar for dnk
0
289
Member Avatar for 54uydf

1. is it possible to put 2 values with 1 key into a HashMap? I know the regular put(k,v) won't do it..but I'm trying to override many functions to fit my needs and I can't figure out a way to do it.. let's say the key is a name and …

Software Development java
Member Avatar for 54uydf
0
115
Member Avatar for VasquezPL

HI friends, Is there a possibility to refer to item by its number (in Combobox)? For example, I read all combobox items from a file. and I need to do sth like that: [CODE]if (comboBox1->Itemnumber=1) then {Action}[/CODE] I don't want to refer to the text in the combobox to make …

Software Development c++
Member Avatar for VasquezPL
0
156
Member Avatar for HappyCat123

Hey guys, I am very new to Java and I am trying to create a simple GUI and make the background a picture, I've tried to google and look on this site for the answer and also tried to implement the solutions and I simply cannot get anything to work. …

Software Development gui image java java-swing user-interface
Member Avatar for JamesCherrill
0
1K
Member Avatar for Usmaan

If I make a program, how do go about, well, actually publishing it? In the sense that I can make it in to an icon on my desktop and open it etc.... Any ideas?

Software Development publishing
Member Avatar for Mitja Bonca
0
96
Member Avatar for AngelicOne

I used to fill a listview with dataset that is set to details view. Now, I need to fill the listview with images and by that I believed that I'd set the view to large icons. How to do this? this is how I feel the listview [CODE] foreach (DataRow …

Software Development dataset image listview
Member Avatar for Mitja Bonca
0
240
Member Avatar for fazdhli

I can't find whats the error here. Pls help to have a look on this ^^ [CODE]#include <stdio.h> #include <conio.h> #define tax 0.05 struct jitemenu{ char menitem[10]; double harga[10]; }menu[100]; void items(int ,int,double,double); // pengistiharan function void tunjukmenu(); void resit(int, double, double, double); int main() { int Q[10], item,i,c; tunjukmenu(); …

Software Development c
Member Avatar for fazdhli
0
105
Member Avatar for arezz09

how to create Context Menu and Event Handling in Visual Basic .NET

Software Development vb.net visual-basic
Member Avatar for arezz09
0
186
Member Avatar for blee93

[CODE]#include <iostream> #include <cstring> using namespace std; class Cow { char name[20]; char * hobby; double weight; public: Cow() { strcpy(name,"peter"); strcpy(hobby,"nothing"); weight = 1.0; } Cow(const char * nm, const char * ho, double wt) { int len = strlen(ho); strncpy(name,nm,19); name[19] = '\0'; hobby = new char[len + …

Software Development c++
Member Avatar for blee93
0
233
Member Avatar for valter

I have got a hashtable that holds an analysis of individual photo characteristics. There are duplicate values in the hash table. Can someone explain how I can get values that are not unique,ie there is more than one entry the same. My hashtable is in the form of a text …

Software Development
Member Avatar for valter
0
78
Member Avatar for WolfShield

Hello, I have been working on a speech synthesis program using JSAPI and FreeTTS. I now have the code with NO errors (!!!:)) However, when I run the code, it doesn't actually have any audio to it. If I change the text spoken to "This is text that is spoken." …

Software Development audio java
Member Avatar for WolfShield
0
192
Member Avatar for WolfShield

Hello everyone, I am working on a program right now and part of the idea involves a pop-up menu. What I need is something like: A small box in the program, On MouseOver small box, small pop-up menu opens up next to the small box, On MouseOver menu option 1, …

Software Development java
Member Avatar for WolfShield
0
106
Member Avatar for fazdhli

hi all, nice to meet u again. I need your help on this code, which is the programme i still failed to compile. [CODE]#include<iostream> #include<iomanip> #include<string> using namespace std; // Define Struct struct menuItemType { string menuItem; double menuPrice; }; void printCheck(int compMenuList[], int counter2); void getData(int compMenuList[], int counter1); …

Software Development c
Member Avatar for fazdhli
0
216
Member Avatar for geoffy0404

I don't know why my code is failing after building, actually i know the char statements are wrong can anyone tell me how i can fix the char statements and make them correct, all i need to do is initialize a single letter using char [CODE]#include <stdio.h> int main() { …

Software Development c
Member Avatar for geoffy0404
0
169
Member Avatar for kodera

I am working on an assignment that calls upon a text file to read numbers line by line. If line 1 number is 1, it looks at line 2 number (ex, line 2 = 13), and uses OneNumber class file to do various methods (such as prime or not prime). …

Software Development file-system java
Member Avatar for kodera
0
298
Member Avatar for atticusr5

hello all, so i am taking a 1 hour vb class, and i am having trouble printing formated output to a list box. Basically I have two string variables that i use to format the output, but it is not working. Any clues? thanks [CODE]Public Class Form1 Private Sub compute_Click(ByVal …

Software Development vb.net
Member Avatar for Jx_Man
0
101
Member Avatar for Shizuo

How do I change a component that is called in a different class? for example i have added a button on a jframe then called the frame, then in another class how can i change the setVisibilty of the button that was called in the other class?

Software Development java
Member Avatar for Shizuo
0
96
Member Avatar for toritza

Hello. I am have a problem while trying to write to a file some sorted lines . my initial file is somthing like this name2,number2;name3,number3;name1,number1 when i run this code ord = open("Be.csv", 'r') order = ord.read().split(";") order = sorted(order) for sort in order: print sort ord.close() f=open("Odd.csv","w") f.write(sort) f.close() …

Software Development python
Member Avatar for toritza
0
184
Member Avatar for rlamarche

Need a standard fifo algorithm. for a cpu shceduler so one command comes in at a time. Please help Thank yOu

Software Development algorithm c++ motherboards-cpu-ram
Member Avatar for template<>
0
125
Member Avatar for chess2009

I would like to write a program with getchar and putchar that read my input and prints one word per line and ignores all semicolon, comma , dot , newline, tab and space. Here is my input: "The Parsnip The parnip, children, I repeat, Is simply an anemic beet. Some …

Software Development c
Member Avatar for WaltP
0
432
Member Avatar for trume

How can I make this code with just one parameter (int[] a) ? [CODE]private void QuickSort( int[] a, int left, int right ) { int i = left; int j = right; int pivot = a[( left + right ) / 2]; while( i <= j ) { while( a[i] …

Software Development
Member Avatar for trume
0
3K
Member Avatar for tehmarto

Hi all, I'm developing a program and I want a way to print out French characters. When I post the French characters in the menu, like this [code] AppendMenu(hSubMenu, MF_STRING, NEW_LIST, L"ç"); [/code] The ""ç" shows with no problem. But I wanna make it to show either in an editable …

Software Development c++ gui
Member Avatar for tehmarto
0
421
Member Avatar for bleedsgreen33

Hello everyone. I'm coming to you again because you all seem to be much more on the spot answering my questions than my professor. The long story short, we are being introduced to structs in my c++ class, and for the first assignment we are to do a simple Student …

Software Development c++
Member Avatar for bleedsgreen33
0
144
Member Avatar for BirdaoGwra

Hi, Here is my code. [CODE]# class DefaultTamplate import wx import Image BUFFERED = 1 class FourByTwo(wx.Window): def __init__(self, parent, id=-1, image="JPEGImage", size=wx.DefaultSize): wx.Window.__init__(self, parent, id, image, size=size) self.SetBackgroundColour("white") self.W = 384 self.H = 272 self.photo = image # wx.Image("Test.jpg", wx.BITMAP_TYPE_JPEG) self.FrameSize = 96 self.SetVirtualSize((self.W, self.H)) if BUFFERED: self._Buffer = …

Software Development image python
Member Avatar for BirdaoGwra
0
296
Member Avatar for Muhammad Sumair

Please figure out the error in the code and how to correct it ? Actually i want to use a 2d dynamic array. # include <iostream> using namespace std; int main() { int number_of_rows = 0; int number_of_cols = 0; int a=0; cout<<"Please enter the no. of rows : "; …

Software Development c++
Member Avatar for template<>
0
150
Member Avatar for lsvife

Hi, I am beginner in java programming. I want to create a program that will enable the user to input data? I want to check if the input is numeric or not. How to do it? thanks!!!

Software Development java
Member Avatar for mKorbel
0
122
Member Avatar for markdean.expres

Can anyone help me how to display records in my crystal report control? I followed the steps I found in the Internet but when I run my application the crystal report does not display anything. What might have been causing this? Anyone, please? Our defense is getting closer...

Software Development vb.net
Member Avatar for felixcomp
0
188
Member Avatar for Ghostenshell

Keep getting Attribute Errors with my code any suggestions? There are two files attatched [code] from string12 import * from root import * def main(): tree1 = raw_input("enter numbers: ") print buildParseTree(tree1) def buildParseTree(fpexp): fplist = fpexp.split() pStack = Stack() eTree = BinaryTree('') pStack.push(eTree) currentTree = eTree for i in …

Software Development python
Member Avatar for Gribouillis
0
120
Member Avatar for ady_1

Tried running ant on some example source and keep getting this error.. Does anyone know as I'm assuming i'm maybe missing the ejb libs but am pointing to the glassfish/jdk which should have them? I also thought JSE compiles JEE code? thanks. [CODE]Z:\My Desktop\ejb3-samples\chapter1>ant Buildfile: Z:\My Desktop\ejb3-samples\chapter1\build.xml common: [echo] BuildName: …

Software Development java xml
Member Avatar for ady_1
0
125
Member Avatar for vegaseat

I am afraid, I am starting to like C#, despite the somewhat bloated .Net Framework requirements. Mister Bill's Microsoft is very supportive though. The language has a nice flow compared to GUI programming in C++. Here we are looking at a standard ListBox, add some items, sort them and select …

Software Development c# gui
Member Avatar for anucom
0
714
Member Avatar for devin2203

Hi all Am trying to Truncate the end of a linear list in java. so that: [CODE] // reduce the size of the list to s by removing all elements // with indices greater or equal to s; return the number of removed // elements; // for example, if the …

Software Development java
Member Avatar for devin2203
0
461
Member Avatar for lolztear

how to use the listview into the other listview using the button

Software Development listview vb.net
Member Avatar for anucom
0
97
Member Avatar for shinsengumi

Hi, What command/technique is needed in a C program to receive image bytes through socket programming from an HTTP response? I want to develop a program that requests for an image from a server, then upon receiving the bytes comprising the image, it should write these bytes into a newly …

Software Development c http-protocol socket-programming
Member Avatar for shinsengumi
0
271
Member Avatar for theUserMan

Hello, So i'm new to C#, but I know c++ well. I'm having problems inputting data into a two dimensional array Here is how I initialized the array [CODE] int[,] temps = new int [12, 2];[/CODE] And I attempted to write the input function and i have this so far.... …

Software Development
Member Avatar for theUserMan
0
772
Member Avatar for iwannalearn

i am begineer in java and i want to know what are the fields in java and for what they are used??? plz explain in detail

Software Development java
Member Avatar for JamesCherrill
0
88
Member Avatar for paulablanca

Hello! Can someone help me? I have to add item "Final Grade" to my cboQuarter. The thing is, my cboQuarter already has a datasource and I can't add the item "Final Grade" during drop-down. The error says, "cannot modify or insert (can't remember word by word) when it already has …

Software Development vb.net
Member Avatar for Jx_Man
0
113
Member Avatar for hanifa

Hi, I am writing a code to get pixels value of the entire image and store it into a array. But i am facing the problems, as outlined below. I would be grateful if someone could help me in sorting this out.. Cheers :) [code=syntax] File inputFile = new File("one.jpg"); …

Software Development image java
Member Avatar for rinky khan
0
1K
Member Avatar for efficacious

Hello all, I'm trying to write a binary to decimal conversion program. I'm stuck at the very beginning here because I can't figure out how to allow the user to input the entire binary string while allowing me to break it apart and process it.. I've tried [CODE] int BinInput[*]; …

Software Development c++
Member Avatar for pseudorandom21
0
168

The End.