132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for carlitosway17

Hi Am working on s shape inheritance hierarchy project where we are supposed to define 2d or 3d shapes then use a few examples e.g circles or spheres to calculate areas and volumes of the 2d and 3d shapes respectively. Everything is working fine it compiles and builds successfully but …

Software Development java
Member Avatar for quuba
0
240
Member Avatar for zangetsuu

when i run the program it skips the Int Tax(); function an i tried changing it to void an taking out return 0; but its still not working [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> char vehicle[5]; int car; int truck; int hrsn; //Hour the vehicle entered …

Software Development c
Member Avatar for zangetsuu
0
181
Member Avatar for zacblazic

Hey guys, My lecturer told me that when I have solved a problem, I should always look for ways to improve it. I was wondering if it is okay to post my code here and ask the community to comment and tell me if it can be improved, but I …

Software Development c++
Member Avatar for anilashanbhag
0
121
Member Avatar for Taimoor Rana

Hello Guys, Im Using GridbagLayout as LayoutManager, but I am not able to place my button at top-right of my frame. I'm also attaching my current output and what i actually want to do. here's my code: [CODE]package projectilemotion; /** * * @author Taimoor */ import javax.swing.*; import java.awt.*; public …

Software Development java java-swing
Member Avatar for mKorbel
0
129
Member Avatar for dav555

I try to transmit an OpenCV IplImage from a Server (Ubuntu x64) to a Client (Win7 x64) The following code works fine if both (Client and Server) are on the same operating system. But when the server is on Ubuntu and the client on Win7 it doesn't work. The image …

Software Development c++ socket-programming ubuntu
Member Avatar for dav555
0
427
Member Avatar for stefh

Hi there, my name is Stéphane, i'm french and a beginner with Python... I've registered on a french forum about Python to ask a question regarding an issue i have with a code, but it seems the members of this forum are not active. I paste the message i posted …

Software Development python sql sqlite
Member Avatar for stefh
0
666
Member Avatar for micmo

Hi Guys, I have two forms (Main and Sub). There will only ever be one instance of Main, but can be many open windows of the Sub form. What I want to do is know which Sub form was the last form to have focus when switching to the Main …

Software Development c c# c++
Member Avatar for zachattack05
0
10K
Member Avatar for AutoPython

I'm creating a program and I need the class 'Child' in the following code to inherit the value of 'age' from the class 'Mother'. [CODE] #include <iostream> using namespace std; class Mother { public: int TellAge(void); protected: int age; } MObj; class Child:protected Mother { public: void ChildTellAge(void); } CObj; …

Software Development c++
Member Avatar for AutoPython
0
136
Member Avatar for andy.apple

Hi, I want to sum up all values within a vector of doubles, let say [4.5 8 5 90 24 32 58 1.8 17 25]. The sum is 265.3 which isnt to difficult. But when using the accumulate function I get 264!? [CODE] #include <iostream> #include <math.h> #include <vector> #include …

Software Development c++
Member Avatar for andy.apple
0
141
Member Avatar for Behseini

Hi Guys, I am trying to create a re-sizable windows that when ever a user click a button a groupBox appear at windows ,eventually the Height of the form will increase and when the user want to hide the groupbox the windows will back t its regular size. I have …

Software Development
Member Avatar for Behseini
0
119
Member Avatar for Vertana

I've been racking my brain over this for a few days now. I'm attempting to write a program in Python 3.1 / PyQt 4.7.5 that will open a Powerpoint, go through every shape on every slide, determine if it is a picture and then save that picture to the specified …

Software Development microsoft office-suite python
Member Avatar for Vertana
0
1K
Member Avatar for kiko11

[code=text]jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Users/Kix/Desktop/IMPORTANT DOCS/oop/BANKSYSTEM/Accounts.mdb;DriverID=22;READONLY=false} Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at banksystem.BankDBDriver.retrieveData(BankDBDriver.java:200) at banksystem.BankSystem.actionPerformed(BankSystem.java:109) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) …

Software Development java java-swing microsoft-access oop
Member Avatar for mKorbel
0
307
Member Avatar for CanaznFTW

This is my first post and I'm sort of new to programming and figured joining this forum to try and get some help. So please excuse me if I happen to miss something. Task: - Create a cylinder specified by my program with the radius and height - Which will …

Software Development c++
Member Avatar for CanaznFTW
0
4K
Member Avatar for Urban48

hello! I'm developing a software to monitor communication to different locations. the principle is simple: send ping every second and display the results in real time (ms delay, packet loss etc) It's also important to mention that I'm running the software from Linux, so in order to ping from my …

Software Development python
0
115
Member Avatar for Gribouillis

This snippet defines a function [icode]a2bits[/icode] which converts a characters string to a string of 0's and 1's showing its bitwise representation.

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for andylbh

Hi guys, I'm trying to do a client server socket program, where the client writes a list of numbers for the server to compute, and then finally server returns a result. I've managed to get my functions working the way I want (not in client/server) But I've problem implementing it …

Software Development c client-server unix
Member Avatar for gerard4143
0
2K
Member Avatar for Phaelax

I thought "JTree. setRootVisible(false)" would hide the root yet display its children, but it doesn't. I've even tried to expand its children but nothing shows when I hide the root. Here's the code if you need to see it. [code=java] DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Root"); JTree projectTree = new JTree(rootNode); …

Software Development display java
Member Avatar for villadsen
0
5K
Member Avatar for DJ_4375

Hi there guys really hoping for some help after searching Google for a stupidly long amount time and coming up blank. I am using Crystal Reports 10, Asp.net 1.1, SQL Server and Visual Studio 2003 with VB. I have an Image field in the database that I need to retrieve …

Software Development dataset image sql vb.net visual-studio
0
206
Member Avatar for AngelicOne

I read that there are two ways of doing this: using WIA SDK and avicap32.dll. This is the first time I worked on an API that utilize a webcam. It seems that there are no official ways of using a webcam in .NET. Could someone give a link for a …

Software Development api webcam
Member Avatar for AngelicOne
0
101
Member Avatar for manugm_1987

Hello I have created an dll for my windows application ...the app contains two buttons which on click displays message box with some message. Now i create another windows application which contains one button, when i click this button my dll has to be executed . i.e the form with …

Software Development
Member Avatar for arsheena.alam
0
84
Member Avatar for kas04

Ok so I have the easy part of this problem figured out but the other part is confusing me. Here's the problem: Write a program that reads in a line of text and outputs the line with all the digits in all integer numbers replaced with 'x'. Example Input: My …

Software Development c++
Member Avatar for jonsca
0
2K
Member Avatar for Thropian

I have a string such as [CODE]"this is a really long string that is completely pointless. But hey who cares![/CODE] and I was wondering if there was a way to cut the first X characters off and return the res of the string

Software Development python
Member Avatar for TrustyTony
0
118
Member Avatar for Kath_Fish

Hey...i am doing Split now. But, my split method cannot function well. I want split my text file content from horizontal to vertical. But, my output always got problem. for example my text file content is like this.. eg. 1 2 3 4 5 2 3 4 5 my output …

Software Development
Member Avatar for Momerath
0
211
Member Avatar for yoge911

hello guys:D, i am new to vb.net and need some help from you. i have created an application in microsoft visual basic express 2010. it works fine when i debug . also works fine when i publish a setup file and launch it. it works awesome on my computer. But …

Software Development vb.net visual-basic
Member Avatar for yoge911
0
206
Member Avatar for georgewb

Hi everyone, I need your help please What do i need to make my program read the next character using console.nextChar(); I've added the following: import java.util.*; static Scanner console = new Scanner(System.in); and then in the main: char ch; ch = console.nextChar(); and when i compile i get this …

Software Development java
Member Avatar for ztini
0
3K
Member Avatar for shookees

Hello, I've been trying recently to find out how to print out text into the screen like from keyboard, that is printing into active window, just like from keyboard port. Is there a premade package/method for that or how do I use the keyboard port?

Software Development java
Member Avatar for ztini
0
81
Member Avatar for Phil++

Hello, I'm creating a windows like calculator using Java, I seem to be having some problems.. It will let me calculate two numbers together e.g. 2 + 2 (It will display 4) however, if I want to do multiple calculations... e.g. 2 + 2 + * 3 It will only …

Software Development java
Member Avatar for ztini
0
146
Member Avatar for ziggystarman

Just started looking into visual c++ express 2010 today, no exp at all with this IDE anybody know how to remove these types of errors from project. [CODE]1>AXIMP : AxImp error : Could not load file or assembly 'Interop.MSHelpServices.1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot …

Software Development assembly c++ ide microsoft
Member Avatar for ziggystarman
0
167
Member Avatar for Krstevski

Hello friends, I have a small problem with creating XML documents. After creating the XML when I try to get a XML document as string using .toxml() or .toprettyxml() functions i got escaped string. [CODE=python] >>> from xml.dom.minidom import Document >>> html = '<a href="http://www.google.com/">Google</a>' >>> doc = Document() >>> …

Software Development html-css python xml
Member Avatar for Gribouillis
0
446
Member Avatar for rookanga

im trying to add two radio buttons together to get a full price, they are split up by two group boxes. Meals and dormitories, I have the prices on how much they are, but I dont know how to put the right radio buttons in the right places and then …

Software Development vb.net
Member Avatar for prvnkmr194
0
1K
Member Avatar for SolidSora

I'm trying to add a number to a listbox that a user enters into a textbox. The program crashes when I press the button. [CODE]Public Class Form1 Dim numbers() As Integer Dim numNumbers As Integer = 0 Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress e.Handled …

Software Development vb.net
Member Avatar for e_ayt
0
177
Member Avatar for gyuunyuu

I need to read words from a text file, build a structure to store the word and its occurrence. From what I was told from my TA, I need to read words, determine its size (how many chars) and allocate memory for its size. Then I need to build an …

Software Development c
Member Avatar for gyuunyuu
0
172
Member Avatar for lochnessmonster

any suggestions on this custom array class?(it compiles and works properly) [CODE]// Sequential_Sort.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <fstream> #include <Windows.h> #include <WinBase.h> /** * Class: Array * * Custom Array class used to read input from a file * …

Software Development app-store c++ file-stream ios
Member Avatar for griswolf
0
439
Member Avatar for Chellam2

A practice exercise requires the creation of a text file with 4 lines of info for cars, VIN, model, manufacturer, and year repeated over and over for different vehicles. This I do with StreamWriter and have a simple multiline text file as follows: 111111 Echo Toyota 2005 222222 Accord Honda …

Software Development c# file-system
Member Avatar for jonsca
0
221
Member Avatar for nutrion

Is it possible to read the registry from VS C# 2010 Express? I don't seem to have all of the necessities in the autocomplete selections: [CODE] RegistryKey key = Registry.LocalMachine; [/CODE] I have "using Microsoft.Win32;" imported and what happens is it doesn't seem like the object is created. I've seen …

Software Development c#
Member Avatar for nutrion
0
239
Member Avatar for smandape

Hello experts, I am working on the following XML code [CODE]<GBSeq_source-db>UniProtKB: locus NR1I3_HUMAN, accession Q14994; class: standard. extra accessions:Q5VTW5,Q5VTW6 created: Jul 15, 1999. sequence updated: Jun 21, 2004. annotation updated: Feb 8, 2011. xrefs: Z30425.1, CAA83016.1, AL590714.27, CAH72153.1, CAH72154.1, CH471121.2, EAW52608.1, EAW52609.1, BC069626.1, AAH69626.1, A56197, NP_001070948.1, NP_005113.1, 1XV9_B, 1XV9_D, 1XVP_B, …

Software Development xml
Member Avatar for smandape
0
145
Member Avatar for triumphost

Hello everyone, I have one question.. should be relatively simple but I just cant seem to find any info anywhere.. maybe Im just looking in the wrong place and need guidance.. Here is my problem.. I have the following code: [CODE] EnableMenuItem(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE , MF_GRAYED); DrawMenuBar(GetConsoleWindow()); GetSystemMenu(GetConsoleWindow(), FALSE); //Disables …

Software Development c++ window-manager
Member Avatar for triumphost
0
964
Member Avatar for katokato

im new to this c++ thing and windows api thing, and i got most of this code from a tutorial but i modified it alot. how do i retrieve a handle to a dialog box so i can put my menu inside it? (when i put the code for the …

Software Development api c++ windows-api
Member Avatar for katokato
0
1K
Member Avatar for prog_newb

[CODE]do{ chatLike("Enter student's full name: "); getline(cin, name, '\n'); //I have my try-catch here }while(error==true);[/CODE] chatLike is a function that i made that produces the cout character per character. program immediately crashes when input is: a)input is space only or a single space b)input ends with one or multiple spaces …

Software Development c++
Member Avatar for jonsca
0
180
Member Avatar for anthonyjpv

I made a program which converts binary with ft pt but cant get it work, what could be wrong here? [CODE]import java.io.*; import java.util.Scanner; public class NumberConverter { public static void main(String args[])throws Exception { Scanner sc = new Scanner(System.in); System.out.print("Enter a number: "); String string_input = sc.nextLine(); double double_input …

Software Development java
Member Avatar for anthonyjpv
0
140
Member Avatar for borkarparesh

hi.., i am working on c# project, i make database of block sites.when i type that site on combo address and click on GO button then that site would be blocked but when THE SITE NAME TYPE IN SEARCH ENGINE THAT SITE WOULD BE OPEN,so suggest me C# code for …

Software Development
Member Avatar for royng
0
144
Member Avatar for ilikepaste

So I'm trying to define a counter in a while loop, and print it from the class: [CODE]public class odd { public static void main(String[] args) { System.out.println("Input your number"); int x = IO.readInt(); int odd = 0; int even = 0; while (x != 0) { if (x % …

Software Development java programming-construct
Member Avatar for ilikepaste
0
240
Member Avatar for ilikepaste

So I'm trying to write a program: Print a number in scientific notation with 3 significant digits (e.g., 0.000838423 = 8.34*10^4). You must define and use a module that rounds a number to a specified number of decimal places. Here is what I've got so far: [CODE]public class Sn { …

Software Development java
Member Avatar for ilikepaste
0
129
Member Avatar for jineesh

Hi, Please help, I have a problem while loading and retrieving an image from database. I have loaded an image in the database as of type Image. I have retrieved the data from database and passed to stream. How can I load this to a picture box or to a …

Software Development image
Member Avatar for Momerath
0
598
Member Avatar for Legend32A

I am using the following code to take a screenshot , compress it to jpg and save it. I am trying to compress the image more, e.g. from 200kb --> 100kb. Let's say about 60% of original quality. Could you guys, please help me find out how to do this? …

Software Development c++ image
Member Avatar for WolfPack
0
134
Member Avatar for Legend32A

I am trying to find out if the screenshot I take is 100% black before I save it. If yes then show an error. My code is: [code]#include "stdafx.h" #include <windows.h> #include <GdiPlus.h> #include <string> using namespace std; #pragma comment( lib, "gdiplus" ) int GetEncoderClsid(const WCHAR* format, CLSID* pClsid); void …

Software Development c++ image
Member Avatar for WolfPack
0
506
Member Avatar for Greyhelm

I am trying to understand using an SQLite database in Python and can grasp running queries, but would like to understand how to populate Python variables from SQLite fields. Here is my sample Python code: [CODE]import sqlite3 id = 0 name = "" occupation = "" location = "" connection …

Software Development python sqlite
Member Avatar for richieking
0
5K
Member Avatar for mjv89

Hi, I was wondering how I can add a button to my program to allow me to send a message. For example, if the user clicks a button called "Hello", it will send "Hello" to the receive part of my program. To send an ordinary message, I am using the …

Software Development c++
Member Avatar for WolfPack
0
77
Member Avatar for mr3army

Hi, I have tried lots but i would like the listbox1.selected index to go through each single one i tried +1 it works but it wont go the next one Please help cheers

Software Development vb.net
Member Avatar for codeorder
0
168
Member Avatar for DaniwebOS

I'm working on a program for fun but I can't figure out my first problem, also I'm aware the program doesn't end. [CODE]#include <iostream> #include <conio.h> #include <string> using namespace std; //all prototypes void studentName(string&); //all global variables //main void main() { do{ string Name; studentName(Name); cout << "\nStudent Name: …

Software Development c++
Member Avatar for jonsca
0
127

The End.