43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for computerbear

Hello, Code below has requirements commented in. I don't get any errors, but when I go to run it, I immediately get a stack overflow and program closes. I don't even know where to begin to look. I am too new at this. Without a road map to errors, I …

Software Development
Member Avatar for computerbear
0
217
Member Avatar for nore

Hello all, i want to make icon (shortcut to run my program) on System Tray (usually on Right bottom) with code, i'm using visual studio 2008 c#, on classlibrary project, thanks before :D

Software Development visual-studio
Member Avatar for nore
0
123
Member Avatar for mklein

Dear all I am brand new to C# and have previously only written programs in Javascript, so go easy on me ! I have written an "app launcher" program which reads a text file line by line. Each line is just a path to a program e.g. C:\Users\Matt\Desktop\Gravity.exe So far, …

Software Development c#
Member Avatar for mklein
0
205
Member Avatar for richosr

Hi, I have a dilema, I have an MDI app and I open new forms as [CODE] In modBas.bas: Public frmD(50) As frmDocument MDI Form Load (frmMain): Static lDocumentCount As Long lDocumentCount = lDocumentCount + 1 Set frmD(1) = New frmDocument frmD(1).Width = 320 * Screen.TwipsPerPixelX frmD(1).Caption = "Page - …

Software Development visual-basic
Member Avatar for richosr
0
175
Member Avatar for FlightOfGrey

I'm am reasonably new at coding and am currently studying it at College. While in my break I found Project Euler a neat little site with problems which I have been working through for an extra challenge. This is the question that I am stuck on: [url]http://projecteuler.net/index.php?section=problems&id=8[/url] basically you are …

Software Development java java-swing
Member Avatar for jon.kiparsky
0
179
Member Avatar for drongo

Hi, Im undergoing a project at the moment and have stumbled onto an error which a could solve nor understand even with google help... So, the C program Im making is suppose to sort an array of surnames into alphabetical order, also the user can use the menu to pick …

Software Development c
Member Avatar for drongo
0
150
Member Avatar for Dorayaki

Hello, I got a problem, I can save my data to access database and in the access database field I set it to date/time. But problem is when I get the value out from the database.. the format is always month/day/year hour:minutes:seconds example today: 5/2/2011 12:00:00 How to get the …

Software Development listview microsoft-access vb.net
Member Avatar for Unhnd_Exception
-1
3K
Member Avatar for Mr.BunyRabit

Hey there. So i started using crystal reports, and it works great. Ive just hit a wall.. So there are branches with students in those branches. Now what i want to accomplish, is i want the user to be able to choose what branches to show in the report. I …

Software Development display
Member Avatar for Mr.BunyRabit
0
356
Member Avatar for StevoLord

Hi all, I am using Eclipse to create a slideshow program. Currently have anything set up and it works fine. However I would like my BufferedIamges to be made into a video with a time frame of 15seconds for each picture. I only want to have maybe up to 4-5 …

Software Development java video
Member Avatar for StevoLord
0
76
Member Avatar for AliRaiz

first my task was to write this program that checks that string t contained in string s or not and i successfully made it and now i have to change this program a little bit and now i have to use a bool function in this program any one can …

Software Development c++
Member Avatar for AliRaiz
0
97
Member Avatar for moose333

Hello I currently have a program that collects data from a txt file and then works out the averages of each column. What I am now trying to do is use this data to draw a line Graph for each individual column contained within the txt file. This is the …

Software Development
Member Avatar for moose333
0
863
Member Avatar for RewindPlay

hello, I just signed up to ask...How would I store the information from my code(see below) into a object? I'll be naming the object employees. The code I have now executes this:(please tell me if there are any mistakes on the code I have so far) 1.Ask the user to …

Software Development python
Member Avatar for woooee
0
136
Member Avatar for caut_baia

[code] class A { virtual void func()=0; }; class B : public A { void func (); }; class C : virtual public B { void func(); }; //I receive an A* pointer through a function in an LPARAM type argument //and i must downcast from an A* to a …

Software Development c++
0
64
Member Avatar for sirlink99

Is it possible to communicate with java to a usb that has been converted into an antenna, that sends and recieves signals to/from a remote controlled car?

Software Development java
Member Avatar for sirlink99
0
89
Member Avatar for zmoez

Hey Everyone, I'm new to this form, and I seem to like it so far. Anyways, I have this Project that i'm nearly done with but in the sub-class I'm getting 0.0 as an output instead of the actual calculation. Below is the project and the code: You are requested …

Software Development java
Member Avatar for tunlinaung
0
5K
Member Avatar for spunkywacko

[CODE]public string bob = "hello";[/CODE] This works [CODE]public string bob; bob = "hello";[/CODE] This does not? Thank you

Software Development
Member Avatar for spunkywacko
0
95
Member Avatar for xanawa

what is the pattern of datetime in sql?

Software Development sql
Member Avatar for xanawa
0
320
Member Avatar for samueal

Hi, I am using HTTPRequest and HTTPResponse to get the page source of a site. and i'm getting a warning message "Enable JavaScript to view your site". Is there any request i should add to enable JavaScript

Software Development java javascript
Member Avatar for samueal
0
206
Member Avatar for niranga

Hi, I am working on a project which requires to update a JEditorPane or JTextField simultaneously by multiple clients. It is something like this. [B][1]. There are several users( i.e a group) with the same application which contains a JEditorPane. [2]. There is a group leader for a group( note: …

Member Avatar for JamesCherrill
0
279
Member Avatar for munitjsr2

[CODE] #include <iostream> #include <vector> #include <algorithm> using namespace std; class A { public : void getData(vector< A > &); void putData(vector< A > &); private : int x; char name[90]; }; vector< A > v; void A :: getData(vector< A > &Aref) { cout << "id = "; cin …

Software Development algorithm c++
Member Avatar for munitjsr2
0
243
Member Avatar for carinlynchin

here is my one class (controller) and the other (GUI) what is happening is inside the SearchListener inner class for the button, I am calling a method from the controller class (i have already tested the parameter sent and that part works fine) but when i click on a code …

Software Development api gui java java-swing web-server
Member Avatar for carinlynchin
0
3K
Member Avatar for Naruse

Hi, There are a way to separate the string by commas? Please Help. Best Regards

Software Development visual-basic
Member Avatar for Jx_Man
0
185
Member Avatar for Robbie Y.

Hey guys! I'm trying to write a program that involves a switch/case on Microsoft Visual Studion 2010. Unfortunately, some of my variables are not being initialized. I am a very novie programmer so please have mercy on me! Two of my options (1,4) are working but options (2,3) are not. …

Software Development c++
Member Avatar for Robbie Y.
0
172
Member Avatar for APCompSci

Consider the following two classes. [CODE]public class Dog { public void act() { System.out.print("run"); eat(); } public void eat() { System.out.print("eat"); } } public class UnderDog extends Dog { public void act() { super.act(); System.out.print("sleep"); } public void eat() { super.eat(); System.out.print("bark"); } }[/CODE] Assume that the following declaration appears …

Software Development java
Member Avatar for jon.kiparsky
0
2K
Member Avatar for jowana

Hello, I have a line on my image and i want to find the maximim grey-level value on that line . so i need to scan the line and pick the pixel with the highest value how can I do this? should I calculat the gradient magnitude ? Thanks in …

Software Development c++
Member Avatar for jowana
0
124
Member Avatar for blahbla

need some help with this lab this class is to draw a line with *'s i guess in the command prompt since it uses System.out to print i was given the function names and the comments that tells me what the function does i wrote the code in the functions …

Software Development java
0
101
Member Avatar for Mr. K
Member Avatar for pseudorandom21
-2
251
Member Avatar for turt2live

Ok, So I'm amking a game and need walls so you can't walk through walls (This is a top down view game, screenshot [URL="http://turt2live.servebeer.com/game_stuff/walls.png"]here[/URL]), although, my calculation for seeing if you are going to hit a wall slows down the game with the 3 walls I have (I stopped making …

Software Development image java
Member Avatar for turt2live
0
196
Member Avatar for ROTC89

Hi I am new to python. I am trying to get my fraction program to work but I keep getting this error message: Any advice would be helpful! [ICODE] File "main.py", line 5, in ? from fraction import* File "/home/students/bf133052/CS4223/fraction.py", line 10 def__init__(self,numerator,denominator=1): ^ SyntaxError: invalid syntax [/ICODE] here is …

Software Development python
Member Avatar for ROTC89
0
3K
Member Avatar for bibiki

hey there, I am trying to make my first connection to a mysql server with java. I took the following code from another thread: [CODE] import java.sql.Connection; import java.sql.DriverManager; public class Connect { public static Connection ConnectDB() { Connection conn = null; try { String userName = "root"; String password …

Software Development java mysql
Member Avatar for bibiki
0
166
Member Avatar for munitjsr2

I am learning C/C++/oracle/Unix? I am thinking of developing some application on my own, but I have no Idea what else is required. If you take an example of C++.I have very basic knowledge of it(data types, oops concepts,vectors,file handling,exception handling etc) I am not an expert though. I have …

Software Development c++ oracle unix
Member Avatar for munitjsr2
-2
334
Member Avatar for ak24

Hello. I'm learning C with "The C Programming Language" book, and I'm trying to solve exercise 1.13: "Write a program to print a histogram of the lengths of words in its input. It is easy to draw the histogram with the bars horizontal; a vertical orientation is more challenging." I …

Software Development c
Member Avatar for ak24
1
374
Member Avatar for zebnoon

Hye dear ! please till how barcode reader read and put code in VB6 textbox.for example in the General store software.If you have any example please send me. zeb noon

Software Development visual-basic
Member Avatar for zebnoon
0
181
Member Avatar for Mr. K

I am trying to move a ball using time. What do I need to know to move the ball? How can I move the ball 20 pixel per second? [CODE]#include <allegro.h> int ballx = 320; int bally = 240; void ball(){ if(key[KEY_RIGHT]){ } else if(key[KEY_LEFT]) { } acquire_screen(); circlefill(screen,ballx,bally,5,makecol(255,255,255)); release_screen(); …

Software Development c++
Member Avatar for Mr. K
0
193
Member Avatar for pseudorandom21

Hey I'm making a small application for my gaming buddies, and I have a picturebox that I'm drawing on. The problem is, it appears as though the Location property of the MouseEventArgs is wrong, and it becomes even more so toward the bottom + right portion of the picture, like …

Software Development gaming
Member Avatar for pseudorandom21
0
95
Member Avatar for sms5660

I can't make my array work. I have never encountered this error before and I am a beginner programmer, this is my homework assignment. Please help! I really don't understand/know a lot of terminology, so it would be most helpful if you showed me how to change my errors. Thank …

Software Development c++
Member Avatar for sms5660
0
260
Member Avatar for warlord902

I want to expand my Jtree nodes into multiple lines. Any idea for how to achieve this?

Software Development java
Member Avatar for warlord902
0
1K
Member Avatar for Archenemie

I have just started looking at simple cryptography in order to learn python better. Encryptions and decryptions should be speedy and accurate so im hoping it will improve my programming skills. I recently wrote this quick script for a shift cypher but i wasnt sure how to be able to …

Software Development encryption python
Member Avatar for Archenemie
0
228
Member Avatar for Venku Tur'Mukan

Hey, everybody, I'm a newbie at Python (2.7.1), and new to DaniWeb as well. and the apparent simplicity of Python got me interested in programming (seriously, the only thing before this was HTML). Anyway... I was taking a test and thought that after I was finished I could make an …

Software Development python
Member Avatar for vegaseat
0
44K
Member Avatar for Learner7

Hi, I put 4 buttons on my form. [B]cmdFirst cmdPrevious cmdNext cmdLast [/B] How can I navigate my MS Access database using these buttons. I don't want to use .ADO instead I would like to use my own buttons with code (OLEDB). Sample code for this purpose would be highly …

Software Development vb.net
Member Avatar for pramodsajwan07
0
457
Member Avatar for UnitedForLife

Hey, I am new to python and was wondering how to import modules? I want to import the datetime module. Do i have to download it from a website? Thanks

Software Development python
Member Avatar for vegaseat
0
104
Member Avatar for novice20

Hi all, I need to set some variables via Pysnmp which take 'unsigned int' only. Is python int by default a 32 bit- signed int? How do I convert it into 16 and 8 bit- unsigned ints? I need to read two registers consequently( which are of 8 bits each) …

Software Development python
Member Avatar for vegaseat
0
9K
Member Avatar for david59

this is my program [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { char[] d = new char[12]; string dd = "5Ed5v3a4r3d4"; for (int i = 0; i < dd.Length; i++) { d[i] = dd[i]; { if (d[i] >= …

Software Development
Member Avatar for ddanbe
0
113
Member Avatar for johnt68

Hello I have a class with an sql statement to return a list of customers from a postcode search from a database. Then on my form I am attempting to return a sorted list of these customers into a list box for selection. Could someone please tell me how to …

Software Development
Member Avatar for johnt68
0
209
Member Avatar for jmcginny5

I had posted this before. But I am more on the right track. The places that I need help with have something saying like "need something here" or "need to fix the way it is displaying" I can't figure it out. I also am not sure if the multiplication portion …

Software Development c++
Member Avatar for TrustyTony
0
222
Member Avatar for turt2live

Hello, I currently have 2 JFrames for my "game" (Not really a good one), one for the actual game and one for a minimap. What I can't figure out is that when you click off the game (for example to a browser or something) the game and minimap loose focus, …

Software Development java
Member Avatar for turt2live
0
209
Member Avatar for stupid guy

how can i know what type of drivers are used..type1 type2 type3 type3 type 4 ..some guys in my class do that..by just looking at these two statements...help me ..;) [CODE]Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:bike","scott","tiger");[/CODE]

Software Development java
Member Avatar for cretaros
0
199
Member Avatar for turt2live

Hello, I currently have this code to buffer an image: [CODE] public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; ImageIcon icon = new ImageIcon("back.gif"); Image image = icon.getImage(); BufferedImage buff = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_ARGB); Graphics2D b = (Graphics2D) buff.createGraphics(); b.drawImage(image,imgX,imgY,this); b.setColor(Color.BLUE); b.fillRect((window.getWidth()/2)-13, (window.getHeight()/2)-13, 26, 26); g2.drawImage(buff, 0, 0, …

Software Development html-css image java
Member Avatar for turt2live
0
279
Member Avatar for cafegeo

I have two functions. One is supposed to fill in an array, and the other takes that new array, finds the lowest number in that array, and prints the subscript. int getNumAccidents(int acc[], const int size); [B]Fills array num_acc[][/B] int findLowest(int acc[], const int size); [B]Takes num_acc[], finds lowest value …

Software Development c++
Member Avatar for cafegeo
0
239
Member Avatar for emaduddeen

Hi Everyone, Can you reply with a tutorial and maybe a sample project that can be downloaded that shows how to update a database such as MS Access from DataAdapter commands in which changes are made in a DataGridView? For example, the DataAdapter contains 2 tables called FirstTable and the …

Software Development vb.net
Member Avatar for docjwm
0
406

The End.