132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for coutnoob

Hi again and thanks in advance ! Last question ! I have to create a class called polygon (not normal) that has in private the number of sides and the length of each side and in public that has 2 constructors (the one has as variables the number and each …

Software Development c++
Member Avatar for Kanoisa
1
4K
Member Avatar for Iamateur

Follow this link: http://www.daniweb.com/software-development/vbnet/threads/423122/crystal-report-from-date-todate/2#post1808761 As I am not getting any reply there and if any one else can solve this problem then please do reply or tell me any other alternative. Ok The problem is : 1]Its not showing any report if I click on Button. The button is where …

Software Development perl vb.net
Member Avatar for Ezzaral
1
161
Member Avatar for KushMishra

Hello everyone, I am developing a WPF application in which there is a **header (user control)** with some buttons as "Home", "Upload", "Log Off" etc. What I want is to add this header user control in a page and when I **click the "Upload" button** of this header user control, …

Software Development asp.net
Member Avatar for KushMishra
1
2K
Member Avatar for iismitch55

I have been messing around with making a windows application in Dev-C++ I wanted to make it in a single source file, rather than a project to see if it worked. It did, other than the fact that I got the windows app, AND a DOS prompt behind it. Is …

Software Development c c++ microsoft windows-api
Member Avatar for adityatandon
1
11K
Member Avatar for nitinmbhanu

#include<dos.h> #include<iostream.h> #include<stdlib.h> #include<conio.h> #include<stdio.h> #include<string.h> #include<graphics.h> int y; int i; struct element{ char name[20]; int at_no; double at_wt,at_r,en,ion,density,mp,bp; char ato_wt[20],ato_r[20],eno[20]; char iono[20],densityo[20],mpo[20],bpo[20]; char crs[20]; char sym[4]; char earr[100]; }E[118]; void numberfind(int); void numrfind(int,int); void massfind(double); void namfind(char*); void namlfind(char); void massrfind(double,double); void ionifind(double); void ionirfind(double,double); void enegfind(double); void enegrfind(double,double); …

Software Development c++ os-x
Member Avatar for DeanMSands3
1
252
Member Avatar for nitinmbhanu

[Moderator edit: 3500 lines of code removed as it was totally irrelevant to the question and severely affecting load time of the page]

Software Development c++
Member Avatar for nitinmbhanu
1
265
Member Avatar for problematic:)

hi. I am working on a project that requires a search button. it goes like this. the I will enter data on a text box. then the record that goes with it will display on the 3 textboxes. My problem is I don't know how to code a search buttons. …

Software Development visual-basic
Member Avatar for sai.pawar.p
1
2K
Member Avatar for Gribouillis

This code snippet provides methods to convert between various ieee754 floating point numbers format. For example double precision to single precision. The format is given by a pair (w, p) giving the size in bits of the exponent part and the significand part in the ieee754 representation of a number …

Software Development python
Member Avatar for TrustyTony
1
5K
Member Avatar for KushMishra

Hi all, I have recently designed a WPF application with some user controls and I want to code behind a user control to redirect to another window or invoke another user control however I am unable to do the same. The problems I am facing presently are as follows:- 1.When …

Software Development asp.net
Member Avatar for Sahil89
1
186
Member Avatar for abhishekagrawal

Dear All, I have written a program that finds the integer whose square is closest to but greater than the integer number input as data. But it is giving me an erroneous answer. My algorithm is: 1. Select a number which is half the input number. 2. Square it and …

Software Development
Member Avatar for nullptr
1
249
Member Avatar for mrnutty

This question is from code chef, named Odd. I believe this is a good problem to play with for all levels. If I can solve it surely anyone else can, cough * only if pi is fake* cough*. Here is the question : [ICODE]The captain of the ship TITANIC is …

Software Development c++
Member Avatar for nezachem
1
675
Member Avatar for KushMishra

Hello everyone !!! I recently designed a web application using VB.Net and tried to copy a folder (containing multiple files) from one disk drive to another but unfortunately I didn't succeed. I tried using a file upload but that is only for single/multiple file selection however I want to select …

Software Development vb.net
Member Avatar for KushMishra
1
155
Member Avatar for TrustyTony

Here is my take on [balanced ternary](http://en.wikipedia.org/wiki/Balanced_ternary) conversion (the base considered by [Donald Knuth](http://en.wikipedia.org/wiki/Donald_Knuth) "Maybe the prettiest")

Software Development python
1
949
Member Avatar for koduruabhinav

i have image on my web application. When i click that i will be redirected to track jsp.What that jsp does is track the image that is clicked and redirect to that image url .At present i asing response.sendredirect(URL) which will redirect in same window.Is there any possiblity to open …

Software Development http-protocol java java-jsp
Member Avatar for CrazyDieter
1
119
Member Avatar for piyush3dxyz

I just develop a simple C++ program which gets data from user and make in database form and save it to file... compile it and share your review... /*simple Database application Programmed by Piyush gautam email-piyush3dxyz@gmail.com */ #include <iostream> #include <conio.h> #include <fstream> #include <stdio.h> using namespace std; struct work …

Software Development c++
Member Avatar for sfuo
1
12K
Member Avatar for bishisht

Hello there below is the easy way to get the email addresses extracted from any file. import os import re import sys def grab_email(file): """Try and grab all emails addresses found within a given file.""" email_pattern = re.compile(r'\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b',re.IGNORECASE) found = set() if os.path.isfile(file): for line in open(file, 'r'): found.update(email_pattern.findall(line)) for …

Software Development email python regex
Member Avatar for TrustyTony
1
306
Member Avatar for TrustyTony

New Daniweb way to copy the code from posts with indentation is to double click (not too quickly) to select the code region and use normal copy paste as you like (second mouse button or ctrl-c). Easier than before but little not obvious!

Software Development python
Member Avatar for TrustyTony
1
299
Member Avatar for happygeek

Although you may not realise it, dear coder, you apparently have the best job in America. At least that's what the newly published [2012 Jobs Rated Report](http://www.careercast.com/jobs-rated) reckons. The CareerCast research shows that for the second year running the best job in the US is a software engineer. Not surprisingly …

Software Development advertising career
Member Avatar for happygeek
1
424
Member Avatar for jon92

Write a program that accepts a filename as a command-line parameter. The program will search the given file for each letter in the alphabet and print statistics on the number of occurrences. I was wondering if i could have some help with this as i dont understand how to do …

Software Development python
Member Avatar for woooee
1
116
Member Avatar for Stevo812

Hi all. I'm currently writing a pool game in java and I'm having trouble making the cue ball move by using the mousePressed(), mouseDragged and mouseReleased() methods of mouseEvents(). When the mouse is dragged a line should appear out of the ball in opposite directions one for the power and …

Software Development java
Member Avatar for NormR1
1
1K
Member Avatar for syed30

Hey guys I need to hand in this assingment and actually made an account for this as I know this is one of the best forums so far that I have came across about programing, so it would be awesome if someone could help me out with this. So first …

Software Development java java-swing
Member Avatar for Ezzaral
1
509
Member Avatar for foxy_123

Hi everyone, I'm trying to make a simple application displaying some amount of buttons which has added simmilar but different action. The amount of buttons is not known before compiling because it depends on external data. All the buttons are shown in some container. How did I get it: -creating …

Software Development java java-netbeans
Member Avatar for foxy_123
1
192
Member Avatar for jshort89

I am a student and am pretty new with java. I'm trying to write a basic pacman applet for a class my problem is i have the code written to draw the maze and the pacman but when i run the applet all I am getting is the black background …

Software Development java java-swing
Member Avatar for NormR1
1
331
Member Avatar for guidely

Hi I dont really sure what I did wrong but it no working. I am making Snakes and Ladders game with out using list import random separator = '-' * 20 spaces = [None] * 90 c_l_spaces = {r'slid down a chute ': [[14, 3], [20, 15], [39, 33],[66, 53],[69, …

Software Development python
Member Avatar for TrustyTony
1
1K
Member Avatar for geekdevil

#include<iostream.h> #include<conio.h> void main() { int z[33]; clrscr(); cout<<"Enter any Password (32 character max): "; for(int i=0;i<33;i++) { z[i]=getch(); if(z[i]==13) { break; } cout<<"*"; } cout<<"\nYou entered : "; for(int j=0;j<=32;j++) { if(z[j]==13) { break; } cout<<(char)z[j]; } getch(); }

Software Development c c# c++
1
127
Member Avatar for DavidKroukamp

Hey all, I have been busy building my own chess game and as of now im a bit stomped. Well you see i have an object Board, this object will be initiated and it will create a new frame with various panels one of them being the panel which holds …

Software Development gui java java-swing
Member Avatar for JamesCherrill
1
247
Member Avatar for mb01a

Have you ever needed to open a file with your VB program? Here's a way to easily do it. (code copied from an original program written by Mike B) If the program that uses the file is installed on your workstation, the file will be opened in that application. I …

Software Development file-system visual-basic
Member Avatar for deades
1
1K
Member Avatar for london-G

Hello, I havr created a program in which there are two classes. One ship, and shooter. However it is not working. Any idea? [CODE] package shooter; import java.awt.Color; import java.awt.Graphics; import java.awt.Rectangle; import java.awt.event.KeyEvent; public class Ship implements Runnable { int x, y, xDirection; boolean shoot = false; boolean ready …

Software Development java java-swing
Member Avatar for london-G
1
136
Member Avatar for jouj

using the java swing how can i put a background image to my application in a way that the image will cover the frame . [B]ps [/B]: I'm new to the java so maybe my question is a silly one but i will appreciate any help .

Software Development display image java java-swing
Member Avatar for NormR1
1
170
Member Avatar for Andy90

Hi, I have created a form with one button. I m using mouse hover event on button to execute code! But the problem is, I want to execute the code only if my mouse hover on button for more than 2 or 3 seconds!

Software Development pc-peripheral
Member Avatar for ddanbe
1
117
Member Avatar for vegaseat

This snippet explores the change of a hexadecimal (base 16) string to a denary (base 10) integer and the reverse. Interestingly Python allows the representation of the hexadecimal string in two different forms. For instance 255 can be changed to 'FF' (also 'ff') or '0xff'. Any of these hexadecimal strings …

Software Development python
Member Avatar for warunn
1
8K
Member Avatar for shean1488

Hi everybody! Help me plz to figure out obe little thing. so imagine little window with 4 buttons and a JLable. I want to ask how to add JLable to the panel and not give it a Grid Layout. I mean that I want my JLable be under 4 buttons. …

Software Development gui java
Member Avatar for shean1488
1
125
Member Avatar for revenge2

hello there. i've installed mingw compiler and im wondering how i would go about setting up notepad++ to compile my c/c++ code?. How do i do this? -regards.

Software Development c++
Member Avatar for jussij
1
854
Member Avatar for Jammie

Hi there, I tried binary addition. It seems to work fine. Could someone tell me if there's a better way of doin this or any bugs that could be uncovered in the code below? I appreciate your time. Thanks, Tina [code=c] #include <stdio.h> void binaryAdd(char *, char *); int main() …

Software Development c
Member Avatar for arunsolo1984
1
983
Member Avatar for gbertoli3

Get the Driver's Name, Path, Description, Status, and Start Mode

Software Development
Member Avatar for habermanm
1
3K
Member Avatar for TrustyTony

Sometimes, before optimizing your code, you may end up to have very slow running code in list comprehension statement. Because you have not yet tested the code fully, it easy to loose patience and just interrupt the code. If you are making function, you can insert print statements for verification. …

Software Development python
Member Avatar for Gribouillis
1
1K
Member Avatar for khizer03

i have a doubt i have created a application in which i have used a VLC (Video LAN player) and i have given in the property in the option MRL i gave the video address which should be played, when i executed then the video was playing and when i …

Software Development video
Member Avatar for codeorder
1
123
Member Avatar for hey.howdy

[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int …

Software Development c++ matrix-multiplication
Member Avatar for histrungalot
1
135
Member Avatar for javitis

Hello to everyone! I am working on a simple application like a search engine.It searches in an index(a txt file with filenames). If a match is found, it displays the complete path where the keyword is contained and opens the path. It's a movie catalog and searches for the movie …

Software Development java
Member Avatar for stultuske
1
304
Member Avatar for whateverme

Hey, I'm trying to work to display a number of jtextfield according to one of the given values in a combobox. So, I will have a drop down menu with let's say 1 to 4. If the user selects 3, 3 textfields will be displayed. I've created the jcombobox with …

Software Development java
Member Avatar for whateverme
1
143
Member Avatar for Rakham

In old vb6.0 it was easy to highlight the target item, where to drop those dragged rows. [CODE]Private Sub listView_OLEDragOver(Data As MSComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single, State As Integer) Set listView.DropHighlight = listView.HitTest(x, y)[/CODE] I have been Googling all …

Software Development listview vb.net
Member Avatar for Rakham
1
1K
Member Avatar for Jx_Man

This Code is easy way to load / show data in Datagrid. This Code write in vb.net 2003 and use sqlserver 2000 as database. I use module to connected VB.Net with SqlServer 2000. so the function to connected can be use in every form in this project.

Software Development vb.net
Member Avatar for neronero
1
2K
Member Avatar for verruckt24

I have seen several posters asking for help on programs converting an Infix expression to a Postfix one. I have written a program to convert a simple Infix expression to a Postfix one so that people here can be directed towards some sample code from which they get the idea …

Software Development java
Member Avatar for verruckt24
1
1K
Member Avatar for linezero

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> //typedef struct to define what's in the phonebook typedef struct PhoneBookContacts { char Name[20]; char Surname[20]; char PhoneNumber[20]; } phone; //Function prototypes void AddEntry (phone[]); void DeleteEntry (phone[]); void PrintEntry (phone[]); void Sort (phone[]); int counter = 0; //Global counter variable used to keep …

Software Development c
Member Avatar for savoie
1
23K
Member Avatar for jd2369

Visual Basic 2008/2010 - Save Page As, create a Folder, upload the folder to a specific ftp site I am working on this vb app that will goto a specific site, click on a button(i am still working on the button process) do a save page as, create a folder, …

Software Development file-stream vb.net visual-basic
Member Avatar for jd2369
1
246
Member Avatar for skp03

Hello !! how to copy the text of textbox from application1 to application2

Software Development vb.net
Member Avatar for kingsonprisonic
1
128
Member Avatar for marijana

please, does anybody know is there a .NET control in which an excel document can be displayed on a windows form ?? Or is there any other way to display it on a form?? tnx :)

Software Development display vb.net
Member Avatar for jtodd
1
3K
Member Avatar for vegaseat

The code shows a fast prime number generator using a sieve algorithm. It looks at only odd numbers. Technically 1 and 2 are prime numbers too, since they are only divisible by unity and themselves, exceptions are made for 1 and 2. Zero and negative numbers return an empty list. …

Software Development algorithm python
Member Avatar for Mavericks
1
3K
Member Avatar for INI

Good Evening All, I have a big problem; over the summer I worked on a project and completed it. A month later I am receiving errors. For some reason when I try compiling the program, it gives me an error saying "Can't find project or library," Date is highlighted. When …

Software Development visual-basic
Member Avatar for sendoshin
1
1K
Member Avatar for fsemilla

good day to all... does anyone here have a basic tutorial on how to program using C for zigbee...? its just that i have a very important project task in my work which should be accomplished for three months:'( ...i do have basic...i mean enough knowledge programming in C but …

Software Development c c# c++
Member Avatar for agieli
1
2K

The End.