43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jmurph333

I need to disable the 2nd item in a comboBox when something happens. How would I go about doing this? Any help is appreciated.

Software Development
Member Avatar for jmurph333
0
94
Member Avatar for saadismail85

Print stars in console like this using java ? ......* .....*.* ... *...* .. *.....* . *.......* ...*.....* ... *...* .....*.* ......* dot = spaces [B]look to my code just i need to print border not filled shape[/B] [CODE]import java.util.Scanner; public class Stars { public static void main( String args[] …

Software Development java
Member Avatar for stultuske
0
816
Member Avatar for newcoder310

Hi, Can any1 tell me wht is the problem if i can't find an import in a main class [CODE] import org.springframework.context.ApplicationContext; [/CODE] It says that the import cant be resolved. thanks

Software Development java
Member Avatar for newcoder310
0
78
Member Avatar for yousafc#

What is Wrong in this code [CODE]Select * from Studentinfo Inner Join Admission On Studentinfo.Studentid= admission.studentid where Studentid= '1'[/CODE] Please Help as soon as Possible

Software Development sql
Member Avatar for yousafc#
0
127
Member Avatar for bhawna_5nov

I dont know whts wrong with the code... its in java..the error msg is shown while compilation i.e. class, interface , or enum exception.. plzz can anyone help me with this.. [CODE]import java.io.*; import java.security.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public final class DiffieHellman extends java.applet.Applet implements ActionListener { …

Software Development java
Member Avatar for javinpaul
0
282
Member Avatar for stow19

hey all, I know this might seem like a basic question but we haven't really been taught it at university and I was getting curious. Once you've created your program and have all your relevant java classes/package and it has been compiled where do you find the .exe and how …

Software Development java oop
Member Avatar for stow19
0
201
Member Avatar for masterjiraya

I have 2 forms right now Form1 and Form2 the default setting start up is Form2. Inside Form 2 there was a button that will release the Form1 button using Form1.Show(). I have now the problem. What I want to do now is to close the Form2 without closing the …

Software Development vb.net visual-basic
Member Avatar for Mitja Bonca
0
201
Member Avatar for z_zendegi

hi to all I have a dos command that can backup system state in winserver2008,it write it in cmd when i run it and say y to its question but I want to have this command in bat file for a scheduled task that runs daily,I create this task and …

Software Development
Member Avatar for z_zendegi
0
116
Member Avatar for jamd200

[code=java] /*This is a small GUI application that I made for personal use. It allows you to enter the colors of the bands on a 4-band fixed resistor to calculate the resistance (and tolerance) of that particular resistor. Eventually, I will create a version that deals with 5-band and 6-band …

Software Development gui java java-swing
Member Avatar for jamd200
0
7K
Member Avatar for bigzos

Hey,i am working on a module in vb 10..i have to retrive data from the database between two dates...i have used the following code but not able to get ny output,,nt even an error [code] Imports System.Data.OleDb Public Class Form4 Dim con As OleDbConnection Dim cmd As OleDbCommand Dim dr …

Software Development dataset open-source vb.net
Member Avatar for pixma
0
202
Member Avatar for clisen

I'm having issues with a rather simple program that prints a string. I have two .cpp files, main and login, with login.h header file. The problem at hand is that when I want to print the string in main.cpp that was entered from login.cpp - nothing is shown in which …

Software Development c++
Member Avatar for clisen
0
331
Member Avatar for Majestics

Can any one give a useful link to learn oracle report server and also how to connect it with java application.... Thank you. Require second question answer....

Software Development java oracle
Member Avatar for Majestics
0
137
Member Avatar for TheLittleEngine

So i haven't figured out what the point of constructors are i am just learning C++ and am seriously having trouble with it, i do not get why...well i kind of get default constructors because it initializes the variables but what about a constructor with arguments and the member function

Software Development c++ oop
Member Avatar for Stefano Mtangoo
0
214
Member Avatar for theguitarist

I have to accept three numbers from the user using cin into 3 variables. If the user enters non integers,I must reject it and ask for a new one instead of that. So,here is my attempt: [CODE]int a,b,c; do{ cin.clear(); while(cin.get()!='\n');//remove failure bits,clear stream if wrong input cin>>a; } while(!cin);//while …

Software Development c++
Member Avatar for m4ster_r0shi
0
189
Member Avatar for NathanOliver

Hey all, I'm looking to upgrade my compiler and I was wondering if there is a compiler that is fully c++0x supported yet. If not is there one that is mostly supported? I am currently using MSVC++ 2005 express. I would like to stay in the MSVC++ family since I …

Software Development c++
Member Avatar for NathanOliver
0
367
Member Avatar for mrbungle

Like the title says, I have about 10-15 rows in a local dataset. I need to take any one row, and make it the "default" (on a button click), meaning to take that row and stick it right at the top so it comes up first. I've been up and …

Software Development dataset vb.net
Member Avatar for mrbungle
0
2K
Member Avatar for Majestics

[code]"insert into invoice(sno,entrydate,invoicedate,companyname,party,station,purchase,avail,sale) " + values("+Integer.getInteger(head.getSerial().getText())+",to_date('"+head.getEntryDate().getText()+ "','dd/mm/yyyy')"+",to_date('"+head.getInvoicedate().getText()+ "','dd/mm/yyyy')"+",'"+head.getCompany().getSelectedItem()+"'"+"'"+head.getParty().getSelectedItem()+"','"+head.getStation().getSelectedItem()+"',"+Integer.getInteger(head.getPurchase().getText())+",1,"+Integer.getInteger(head.getSale().getText())+")"); [/code] SNO NOT NULL NUMBER(38) ENTRYDATE DATE INVOICEDATE DATE COMPANYNAME VARCHAR2(50) PARTY VARCHAR2(50) STATION VARCHAR2(50) PURCHASE NUMBER(10,2) AVAIL NUMBER(1) SALE NUMBER(10,2) Whats wrong in this query.... I am getting sqlException ....

Software Development java sql
Member Avatar for peter_budo
0
92
Member Avatar for Dingbats

Hello everbody Simply put; [I]rand() is driving me nuts[/I]. I've been trying to get my teeth into Dev c++ (v. 4.9.9.2) for the first time and couldn't find anything anywhere which helped me anymore. Nearly all this code is IDE generated or copied from examples - I'm just trying to …

Software Development c++ ide queue
Member Avatar for Dingbats
0
1K
Member Avatar for gujinni

[code]#include <iostream> #include <cassert>//what is the use of this??? #include <algorithm>//how to convert in turbo c++ and what is the use this??? #include <vector>//is this array in turbo c++??? using namespace std; int main() { bool result;// what is the use of this?? string s("abcde"); string s2("aeiou"); vector<char> vector1(s.begin(), s.end());// …

Software Development algorithm c++
Member Avatar for gujinni
0
376
Member Avatar for cesione

i want to write a program that will prompt the user for the type of conversion he wants: “binary to decimal” or “decimal to binary” -If he chooses “binary to decimal”, the program should prompt the user for 8 bits (values only 0 or 1) and then display the number …

Software Development c
Member Avatar for N1GHTS
0
2K
Member Avatar for mic_mic

hello every one , i am working on this code for a week , but i have a problem that every time i try to debug it i receive many errors i can't understand them here is my code [CODE]/* Simple program to compute the two possible roots of a …

Software Development c c# c++ file-stream storage visual-studio
Member Avatar for mic_mic
0
358
Member Avatar for scrivomcdivo

Hey folks. I currently have the below code:- [CODE] int double weeksInYear = 52; int double num; while (num <= weeksInYear) Console.WriteLine("Week " + num); num += 2; [/CODE] Now when my code runs, it produces approximately 26 lines of text as below:- Week 1 Week 3 Week 5 etc..... …

Software Development c#
Member Avatar for ddanbe
0
276
Member Avatar for Tomashqooo

[CODE]tomashqooo@Tomashqooo:~$ python Python/tcrack.py File "Python/tcrack.py", line 86 ostring2 = ostring2' -c 'station' mon0' ^ SyntaxError: invalid syntax[/CODE] That`s my error message when ostring2 and station are string variabiles and ' -c ' and ' mon0' is text. Please help me what`s the problem here???

Software Development python
Member Avatar for Tomashqooo
0
75
Member Avatar for subith86

Hi all, I'm trying to get an octal number from console and store it in an int variable using scanf. Here is my code. [CODE] int n; scanf("%i", &n); printf("\nEntered number in dec = %d", n); printf("\nEntered number in hex = %x", n); printf("\nEntered number in oct = %o", n); …

Software Development c
Member Avatar for subith86
0
117
Member Avatar for vedro-compota

Guys hi there)) pleace tell me - Is this default attribute correct (it doesn't work in my costom control) - [CODE][Bindable(true), Category("BrushOptions"), Description("end color"), DefaultValue(typeof(Color), "White")] public Color EndColor { get { return endColor; } set { endColor = value; OnChangeProperties(); } }[/CODE] thanks in advance))

Software Development
Member Avatar for shiva07
0
154
Member Avatar for bhagawatshinde

Hi I am developing an application that has two parts 1) client machine 2) server i.e. (internet web data). i want to access the table on the server (internet) how i can use the connection string. how i can connect to client to server can anybody help me.

Software Development client-server sql
Member Avatar for shiva07
0
279
Member Avatar for slawson01

This is code generated for my Algorithm Implementation's class. I was to create my own RSA public and private keys using modPow and modInverse and use that to implement a digital signature. That works great, not the problem here. For extra credit I am implementing a digital envelope that will …

Software Development algorithm java
Member Avatar for slawson01
0
239
Member Avatar for masterofpuppets

Hi all, I searched this topic and found a couple of posts but I couldn't find what I am looking for. Here's the problem - I am trying to send an image to a client (browser in this case) over a socket. After the image is received I am trying …

Software Development image java socket-programming web-browser
Member Avatar for masterofpuppets
0
9K
Member Avatar for pissman

Hello, I was working on my Server - Client comunicating programm for moonth or more, when a tricky issue had met me. I works so: Server does certain commands if client types certain commnads, and I need need the Client to do certain commands if Server types certain commands. I …

Software Development c++ client-server socket-programming
Member Avatar for pissman
0
308
Member Avatar for sirlink99

I have this key listener in my application, and it wont work. This is my first key listener in an application, however I have done a mouse listener in one before. Anyway here is my code: [CODE] import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.*; public class DropGame extends JPanel …

Software Development java java-swing
Member Avatar for sirlink99
0
521
Member Avatar for AndreRet

I have followed every step in the My Sql forum posted - [URL="http://dev.mysql.com/tech-resources/articles/vb-blob-handling.html."]http://dev.mysql.com/tech-resources/articles/vb-blob-handling.html.[/URL] I have no problem in saving the picture file to MySql. The problem arises in retrieving the picture. I am using code as follow: - [CODE]Private Sub DataLoadPicture() On Error GoTo ErrFailed Dim cnPhoto As New ADODB.Connection …

Software Development file-stream visual-basic
Member Avatar for GTA_doum
0
322
Member Avatar for digital_ice7

i want to return a string array so i can use it in my main function. how do i do this? [CODE]#include <iostream> #include <string> using namespace std; string test() { string a[5] = {"Hello","World","How","Are","You"}; return a; } int main() { string b[5]; b=test(); for(int i=0;i<5;i++) cout << b[i] << …

Software Development c++
Member Avatar for digital_ice7
0
601
Member Avatar for simply_viks

hello, i am having an array having 16 values char index[16]={1,2,3,4,5,6,7,8,9,10,12,13,14,15,16}. my question is i want to store the first,4th,8th and 12th value in arrar A (ie A[0]=1,A[2]=5,A[3]=9,A[4]=13). the 2nd,6th,10th and 14th in array B. the 3rd,7th,11th,15 in array C. the 4th 8th, 12th 16th in array D please help. …

Software Development c
Member Avatar for simply_viks
0
96
Member Avatar for gaurav_13191

Hi all, I have a minor confusion regarding the variable accessed Consider: [CODE] int a=5; //global variable void increment(int a) { ++a; } [/CODE] If I call increment() in main(), which a will be incremented (a passed as a parameter to the function or the global a ?) Also specify …

Software Development c
Member Avatar for gaurav_13191
0
79
Member Avatar for Ssnowlin

I am not sure I am under the write forum but here is my problem: I have a pretty simple program written that works just have a lot of repeated code and am not sure how to condense it in this situation. The program reads in table names from the …

Software Development c# sql
Member Avatar for Ssnowlin
0
173
Member Avatar for newcuser

Hello. I am working on a little Java project and have gotten a little stuck. May I have a little help please? First the original class and then the test class code here. Thanks!! [CODE]public class PhoneBookEntry { private String name; private String number; PhoneBookEntry(String string, String string2 ){ } …

Software Development java
Member Avatar for stultuske
0
440
Member Avatar for sid78669

Hi All, This is the first time I'm using Java to connect to my online MySQL database that is hosted by a separate web host. Following is the code in use: (I've removed the server url, username and pass for obvious reasons. They all work when I use them in …

Software Development java mysql sql
Member Avatar for sid78669
0
641
Member Avatar for sirlink99

Hello. I am trying to make a program that has a menu. When you click play , it should (for now) output the text "In Game". It does that. However, it prints the text on a new JFrame. I would like it to print it on the same frame. How …

Software Development java java-swing
Member Avatar for sirlink99
0
132
Member Avatar for David_Omid

Hey everyone, I have a problem in a project of mine and was wondering if anyone could offer any suggestions. I'll try to explain as best I can what the problem is and if anyone feels they can offer some assistance, I'll send them the source code over a private …

Software Development c++
Member Avatar for David_Omid
0
168
Member Avatar for skiabox

I have seen in many servlets that doPost and doGet are declared public or protected. What is the purpose of declaring a doPost or doGet as protected? Thank you.

Software Development java
Member Avatar for stultuske
0
77
Member Avatar for nocloud

I have a the following snippet of code [CODE]string const& symbol::at(int index) const { assert(index<symbol_data.vector::size()); return symbol_data.vector::at(index); }[/CODE] This does not compile successfully, instead, I get complaints about [CODE]error: ‘template<class _Tp, class _Alloc> class std::vector’ used without template parameters[/CODE] Now, I think this has something to do with the fact …

Software Development c++
Member Avatar for mrnutty
0
327
Member Avatar for baby_c

hello friends, I got a problem with an object array.I'll write a sample code for understand the problem.I declared an array of objects named item. [CODE]item[] itemAr = new item[100];[/CODE] And then I initialized some of them [CODE]itemAr[0]=****; itemAr[1]=****; itemAr[2]=****;[/CODE] I want to know that is there a way to …

Software Development java
Member Avatar for baby_c
0
187
Member Avatar for Checkerboz

Okay so as a complete newbie... Currently I am at chapter 6 of a book called How to Think like a Computer Scientist ([URL="http://openbookproject.net/thinkcs/python/english2e/ch06.html"]http://openbookproject.net/thinkcs/python/english2e/ch06.html[/URL]) and I for some reason can't figure out this exercise: Make this doctest pass: [CODE]def print_digits(n): """ >>> print_digits(13789) 9 8 7 3 1 >>> print_digits(39874613) …

Software Development python
Member Avatar for Checkerboz
0
121
Member Avatar for VernonDozier

I have a simple program. [code] // test.c #include <stdio.h> int main() { #ifdef HELLO printf("Hello "); #endif printf("World\n"); return 0; }[/code] I'd like to set up a makefile and either define HELLO or not in that Makefile and then either the program displays "World" or "Hello World" based on …

Software Development c
Member Avatar for VernonDozier
0
176
Member Avatar for Reverend Jim

I would appreciate a snippet of code for adding groups at run-time to a listview. I am currently listing books (and stats) without groups via the following code which is executed in a loop (one pass per book title). [code] item = New ListViewItem item.Text = seq.ToString item.SubItems.Add(Mid(titlenode.Nodes(N_CSTAT).Text, 3)) item.SubItems.Add(Mid(titlenode.Nodes(N_JSTAT).Text, …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for ana_1234

Hey I am trying to look into a text file and compare the single input by their hexadecimal digits. I am comparing two .txt documents, everything is the same but my computer keeps reading them as different. I checked the hex version of these documents and I realized that that …

Software Development c++ file-stream
Member Avatar for ana_1234
0
254
Member Avatar for geekme

I work on ubutnu 10.10 and have java installed on my machine ( jdk 1.6.0) cause when I type java -version on terminal ,it gives me the details.But when i try to open eclipse , it says no jre or jdk found etc, .Please help.

Software Development java ubuntu
0
77
Member Avatar for Thropian

I have a command lets say [CODE]f(x): print x[/CODE] I want to create several buttons to print various numbers so I made a list of the objects to print when I tried to do [CODE]for x in thislist: bind_all(x,lambda:f(x))[/CODE] which bound the buttons properly but all the buttons print the …

Software Development python tkinter
Member Avatar for Thropian
0
76
Member Avatar for clyt

I want to obtain the data from .dat file which contains millions records (most of them are string) with 52 fields. I am trying to store the data into 52 lists. However, it is very slow Here is the code: import sys try: file= open("test.dat", "r") except IOError: print >> …

Software Development python
Member Avatar for clyt
0
138
Member Avatar for MagnetoM

I am fairly new to C# and come across functions that I don't know what they do. Is there a database for all the functions in each namespace for C#?

Software Development
Member Avatar for MagnetoM
0
71

The End.