64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for NathanOliver

Hey all, I was taking a look at my stringstream conversion function and I couldn't decide how I want to handle a bad conversions. I used an exception and then in main I would a use a try, catch block to get any exception. [code=c++] #include <sstream> #include <exception> class …

Member Avatar for mike_2000_17
0
163
Member Avatar for khushhappy

I want to show distinct Year in my currenttime database field which is actually timestamp by structure. I want to show years like :- 2013, 2012, 2011 and so on . but the problem , the result of my query gives me 10-09-2013 12:11:17 10-09-2012 12:11:14 10-09-2011 12:11:17 which i …

Member Avatar for diafol
0
130
Member Avatar for SoulReaper1680

Hey, when I run the following code: [CODE]for(double i = 3; i >= 0; i -= 0.2) { cout << i << " "; }[/CODE] I get the output "3 2.8 2.6 2.4 2.2 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2". For some reason, it doesn't output …

0
88
Member Avatar for Epicurus

I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src). header file [CODE=c++]#ifndef BULLETLIST2_H #define BULLETLIST2_H class BulletList2 { [...] } #endif // BULLETLIST2_H [/CODE] In …

Member Avatar for Epicurus
0
3K
Member Avatar for lolsn0r

Hi everyone I have a question to everyone. dim a as string ="preview=" dim b as string = "&amp" textbox1.text = a + "Random Code" + b result must be: preview=93a92&amp Random Code: I Need something that does not skip the text/number. Random Code can be everything. Example: 93a92,b3at2, 1256abcde …

Member Avatar for marsky
1
144
Member Avatar for de Source

Hi Guys, i am making an application which can take longitude and latitude as input from user and will locate the respective point on google map using default web browser i am able to open a browser through this [ICODE] private void button1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("http://www.gorissen.info/Pierre/maps/googleMapLocation.php"); }[/ICODE] this …

Member Avatar for Teme64
0
171
Member Avatar for arjen

help pls i need someone that can help me when i enter the date of birth using the [COLOR="Red"]datetimepicker[/COLOR] box it automatically compute the age and output in a textbox.text

Member Avatar for anaszaheerp
0
7K
Member Avatar for harsimran05

i want to add isEnabled() method to JTextField, i write a code [CODE]tRate=new JTextField(); if (tRate.isEnabled()){ JOptionPane.showMessageDialog(c,"press any key to get rate"); }[/CODE] but it is giving message just after compilation of program instead when tRate is enabled

Member Avatar for harsimran05
0
155
Member Avatar for hackit

I am given a assignment in college to make a project in java. i want to make program in java but my teachers advice to make a system program not application program. But i don't know anything about system programming in java so please guys suggest me topics and also …

Member Avatar for hackit
0
115
Member Avatar for bornwith

I am trying to catch the System.InvalidCastException error. If I put a number into the calculator the program runs ok. If the calculate button is pressed with nothing in the text boxes I get the casting error Conversion from string "" to type 'Decimal' is not valid. I understand why …

Member Avatar for bornwith
0
169
Member Avatar for hackit

i want to make a program that contains two main classes and they call each other. [CODE]class Main1 { public static void main(String arg[]) { for(int i=0;i<5;i++) System.out.println(i); Main2 m1=new Main2(); } } class Main2 { public static void main(String arg[]) { static int j=0; for(int i=0;i<5;i++) System.out.println(i); if(j==3) break; …

Member Avatar for hackit
0
183
Member Avatar for hackit

Hii guys.... i am a new programmer of java. i want to implement a problem using CALL BY REFERENCE as i have done in C. please help me to do this.

Member Avatar for JamesCherrill
0
190
Member Avatar for shivya jain

Hello Experts, How can i save the optionbutton and checkbox value in sql database? please send the query: dim cmd as new sqlcommand("insert into [tablename] values(........)",c.con) please help me :)

Member Avatar for adam_k
0
108
Member Avatar for fenixZ

Hi guys, I am experienced in PHP or at least until today I was thinking so. I am not sure what is it all about exactly. In my opinion the following code should not echo anything BUT IT DOES. [CODE] $cache = 'all'; if($cache == 0) { echo 'Execute something'; …

Member Avatar for fenixZ
0
130
Member Avatar for kalz

Hi I am using jasper reports to generate pdf reports from product data.I am storing the pdf file into a database column (blob) using FileInputStream.I have got a desktop application which retrieves the tables from the db.What would be the best way to retrieve and view the pdf file in …

Member Avatar for Aviras
0
148
Member Avatar for shandoosheri

Hi i have a directory containg about 300 files with different extensions like : .txt, .php, .html,etc.. and i have tried this code but it displays a files list instead of only thier extentions [CODE]string[] filePaths = Directory.GetFiles(@"c:\tmp]");[/CODE] so what i need to do is to display all the files …

Member Avatar for shandoosheri
0
246
Member Avatar for cent91

0 down vote favorite share [fb] share [tw] share [in] i am working on a tiny tiny app that just uploads a file to the ftp server, i have reviewed my code but am quite unable to locate the problem, here is the code, [CODE=C]#include "stdafx.h" using namespace System; #include …

Member Avatar for Moschops
0
2K
Member Avatar for WhYuLoOkIn

Having trouble with a simple database command I keep getting the error invalid column name and I cant seem to figure it out. Please help me figure out some possible problems Thanks. [CODE=VB] Dim ConnString As String ConnString = "Data Source=.\SQLEXPRESS;AttachDbFilename= C:\inetpub\wwwroot\KiKoGraphics\App_Data\aspnetdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" Dim sqlConn As New SqlConnection(ConnString) …

Member Avatar for jasminvictoria
0
342
Member Avatar for Naveed_786

When i pass the parameter and run the report it works fine as i close the form it closes the form is there any way so that i should be able to close the crystal report viewer and pass the parameter again and should be able to view report again. …

Member Avatar for Naveed_786
0
107
Member Avatar for GrinShady

Hi Guys. I'm still a php newbie. In our class, we have just discussed creating PHP functions. As expected, we were given some exercises. Unfortunately I was not able to make my self-made function. There were actually two files, namely; functions.php and max_of_3.php the 'functions.php' is where the function is …

Member Avatar for GrinShady
0
127
Member Avatar for guccimane

Hello, basically I want to read an input .txt file, and check to see if '+' or '*' is at the beginning or end of the file. The file can have a space at the beginning, and that should be ok. This is the code that I think should work, …

Member Avatar for vijayan121
0
281
Member Avatar for Micko

Hello, I'm learning Python. It is my first interpreted language. I have some experience with C and C++. I must admit that it's very hard for me to accept a concept of interpreted language. For example I write code in C++, compile it, link it and I have .exe file …

Member Avatar for darkside2205
0
327
Member Avatar for NerdyChick27

I'm writing a simple cryptography program that uses ISAAC, and I've run into a wall. I am planning on XORing each of my input bytes with 1 random byte each that gets returned from the ISAAC PRNG. This is basically what I'm trying to do [CODE]while(input character != EOF){ read …

Member Avatar for Narue
0
379
Member Avatar for mrbungle

As the title says- I'm not sure which appdata folder to use- Should I use CommonApplicationData, The directory that serves as a common repository for application-specific data that is used by all users. Or LocalApplicationData, The directory that serves as a common repository for application-specific data that is used by …

Member Avatar for mrbungle
0
123
Member Avatar for mshdpotato

I'm completely new to PHP and I'm using dreamweaver. I'll be displaying a list of names but I want its background to stretch as long as the list of names. Something like the middle portion of this site - [url]http://library-online.org.uk[/url] I can't really describe it well and I don't know …

Member Avatar for diafol
0
128
Member Avatar for Lek Plepi

Hello i have created a form that has a combobox.the combobox displays the products.how can i add a selected product into a listview?????

Member Avatar for Lek Plepi
0
175
Member Avatar for anand01

Hi all I need to send form data to email .. Can any one share some sample code .. Thanks in advance

Member Avatar for anand01
0
80
Member Avatar for wenbnet

I m getting this three warning when i m opening my website. [B]Can any one explain me what is this errors and how it comes[/B] any help will be very much appreciated. Warning: require(Non-permanent posts) [function.require]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\kcd.co.in\httpdocs\index.php on line 17 …

Member Avatar for wenbnet
0
146
Member Avatar for chiiqui

is there anyway to generate numbers from 0.0 to 999 999 without repetition? I am thinking of making an array that you can put 27 integer datas in it like this [CODE]double amounts[] = { 0, 0.01, 1000000, 25, 250000, 75, 50, 1000, 200, 100, 400000, 750, 5000, 750000, 500, …

Member Avatar for JamesCherrill
0
924
Member Avatar for eduard77

I have this function and when I load the page in the browser I keep on receiving an error that the last'}' shouldn't be there and I don't know why because everything seems right to me. Anyone could tell me where could be the problem? [CODE] function PageCompTopRated($w,$h) { global …

Member Avatar for karthik_ppts
0
75
Member Avatar for NexG

Hello, I'm just starting to learn Java, and for a summation program that we started in class, I've been stuck on the question as to why this brings up an error message when I try to build it. Please advise me. [CODE]import java.util.Scanner; public class summation{ public static void main(String[] …

Member Avatar for Rameshwar Soni
0
216
Member Avatar for Sudo Bash

Hi, I was wanting to write a (ba)sh script to allow me to wait for the detection of a new USB device, and when that device is detected, execute some commands. The scripts are intending to be working on the principle that whenever I plug in a usb device a …

Member Avatar for Sudo Bash
0
259
Member Avatar for mrjillberth

[CODE]import java.io.*; public class Prime{ public static void main(String[] args) throws IOException { BufferedReader jill = new BufferedReader (new InputStreamReader (System.in)); boolean isPrime = true; System.out.print("Enter number: "); int input = Integer.parseInt(jill.readLine()); if(input < 2){ isPrime = false; } if (input == 2) { isPrime = true; } if (isPrime) …

Member Avatar for mrjillberth
0
168
Member Avatar for Mouche

Hello. I'm using ncurses with a side project I'm working on, and I'm using colored characters. To use colors, you have to wrap each mvprintw() function with some code to set the color. I thought I'd write a function that wraps mvprintw() so I could just specify the color whenever …

Member Avatar for Mouche
0
184
Member Avatar for oscargrower11

I'm working my way through Accelerated C++ and I've come across this exercise. The read_hw function works fine if it's void as long as I comment out the "return in" line. The author didn't bother to explain why he's returning a reference to the cin that was passed in the …

Member Avatar for oscargrower11
0
210
Member Avatar for littlegrynder

I have the following code. My program loads 20 pictures in one panel and each pictures has for the moment like 500 Kb, but in the future they shall have like 2~6 Mb. When I use this part of code, my program that uses only 6 Mb of memory, but …

Member Avatar for littlegrynder
0
1K
Member Avatar for Digitalwolf

I attempted to make a shell script to launch a java program packaged into a .jar file. It should have been pretty simple. [CODE] #!/bin/sh java -jar Test.jar [/CODE] but for some reason this script never runs. i've manually executed the command and it works perfectly, i've checked the path …

Member Avatar for Digitalwolf
0
210
Member Avatar for kartik14

Hi, Is there any way to "clear" work space in Lua similar to the [ICODE]clear [/ICODE]command in Matlab ? Thanks !!

Member Avatar for kartik14
0
181
Member Avatar for Ehtesham Siddiq

Hi, My application is in VS2008 coded in Vb.net. I have a datagridView which is getting populated from the Database.I has RegNo,RollNo,Name etc fields.The data in the Name column of database is coming from 3 columns of a certain table from database. This is how im concatinating it and displaying …

Member Avatar for Zeth643
0
889
Member Avatar for DaveTran

Is it better to use structs over classes for serializing class settings? Class settings can have initial default values. [code] [Serializable] public class LevelSettings { // Default level values public int Depth = 3; public int Height = 3; public TileSettings[] TileSettings = new TileSettings[27]; public int[] TriangleIndices = new …

Member Avatar for nick.crane
0
902
Member Avatar for vishalbhavsar

Hi, I am trying to write a program having file handling. In it, I write an object in a .dat file. Is there any mechanism to read a specific object from a file? Is there any method like 'fseek()' as provided in C?

Member Avatar for JamesCherrill
0
178
Member Avatar for cigoL..:)

Greetings, i'm currently developing a web browser for my school project (i'm kinda new to advance visual basic)... it's 75% complete and the only problem i encountered is that when i enter items for the combo box it accepts duplicate .. for example i entered [url]www.daniweb.com[/url] and re-entered it again, …

Member Avatar for cigoL..:)
0
475
Member Avatar for chiiqui

Can anyone help me with this? or alter the code of mine when it comes to the user Input here's the block of code of mine [CODE]public int Remove(int i, Briefcase c[], String[] m) { int nChoice = 0; System.out.print("\tPlease remove " + i + " cases: "); nChoice = …

Member Avatar for chiiqui
0
3K
Member Avatar for acechauhan

Hi, I am just starting to code in C. While using the [code=c]#define sec 3600[/code] the compiler returned an error - expected identifier or ‘(’ before numeric constant. [code=c]#define sec 3600 #include<stdio.h> #include <stdlib.h> int main(){ /*Rest of the code*/[/code] If I change sec to seconds, the compiler does not …

Member Avatar for asitmahato
0
169
Member Avatar for Whilliam

Hello guys, I am very new to Java. I've been trying to select two different tables but fails. The error is "Invalid operation at current cursor position.". Here is my code. [code] private void display() throws SQLException{ TableModel model = schedTable.getModel(); PreparedStatement stmt = con.prepareStatement("select * from APP.SCHEDULE"); ResultSet sched …

Member Avatar for Zaad
0
116
Member Avatar for tapuwa2002

Hi guys Is there a way, where i can get two values from a option tag. I have form that needs to have values for it to display e.g My form looks like the following. [CODE] <form method="post" name="frmone" action="Result.cfm" enctype="multipart/form-data"> <select name="selvalues" id="selvalues" class="input_style-1" id="selvalues" style="height:19px"> <option value="1">Select Result</option> …

Member Avatar for tapuwa2002
0
155
Member Avatar for Cap'nKirk

Hi, I am working on a small application that uses a WebClient to download an XML file via an API call. Just downloading the file is fine, that all works but I really wanted some way to show the download progress to the end user. Searching on the net I …

Member Avatar for Cap'nKirk
0
135
Member Avatar for M09

hello i am a beginner python developer and i am search about python projects for beginners for i learn and know how can i make program in python and thanks

Member Avatar for M09
0
231
Member Avatar for GeoffC

Example 1 The button is a blob of colour (.jpg) with text over the top. I want two things to happen: first, when the cursor is rolled over the .jpg and then the text, I want the text to change colour. This works ok. Second, I want to link to …

Member Avatar for AffineMesh
0
190
Member Avatar for vampshay
Member Avatar for vampshay
0
91

The End.