132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for darkeclipse8

I'm doing a part C, part Assembly code but I'm getting a segmentation fault. And I haven't figured out why? Can anyone help? [CODE] #include <stdio.h> #define SZ 7 int* a[SZ]; int x, y, z; void populate() { x = 1; y = 2; z = 3; a[0] = &x; …

Software Development assembly
Member Avatar for untio
0
136
Member Avatar for davelee

Hi, I am writing a piece of code for a student database. I have one abstract base class named student and three classes (physics student, biology student and chemistry student) derived from student. I want to overload the insertion operator (<<) so that at some point in main I can …

Software Development c++
Member Avatar for vijayan121
0
865
Member Avatar for anjela

i'm developing application in .net using c# that has 1 dropdown list .I want to take data in it .to show in list.please suggest me some help

Software Development
Member Avatar for asshankar
0
708
Member Avatar for e-papa

Hi there, I've been trying to create a memory test game, but been trying to figure out a way to get the output to display for a limited amount of time, any suggestions geeks in the house.

Software Development python
Member Avatar for e-papa
0
283
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 fisat

can anyone please send me the code for marking an object in two successive frames???? please its very urgent....

Software Development python video
Member Avatar for object21
0
57
Member Avatar for MeSam0804

hi I want to fetch data from sql and use them to make a new data I really like to store the records in variables and maybe do some operations on some of them , but the main point is to update three tables in ways that are not the …

Software Development sql vb.net
Member Avatar for MeSam0804
0
141
Member Avatar for Sahilroy

I was given an assignment to complete on database, i have created it and also works but crashes after executing once, check it friends and please help, if you can modify or make it works my time is really limited and am unable to find a solution, friends be graceful …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
117
Member Avatar for rafu5418

Hi, Anyone can help me to build this little program? i want to know that which folder or drive i'm in and my program will automatically write the status on the list box <example: kind of FileSystemWatcher1>. i mean, i want to get the current status of the drive and …

Software Development display file-system vb.net
Member Avatar for rafu5418
0
83
Member Avatar for amithlaxman

Hi, I have start and end time like this: [CODE] $start = "Wed Apr 27 03:57:21 EDT 2011" $end = "Wed Apr 27 03:58:42 EDT 2011" [/CODE] I need to compute the exact time taken some thing like 2 hours or 1 min. I have to do this with out …

Software Development perl
Member Avatar for d5e5
0
3K
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 javarook

I have to ask the user a question on what number they would like to search for in the list. The code compiles fine but when I run it, nothing shows up for the user to ask a question. here is the code: [code]#include<stdio.h> #include<stdlib.h> struct Node { int data; …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
172
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 WolfShield

Hey, I am working on a book writing program right now and I am wondering what the best way of saving the book(s) would be. I would like all of the books in one place, and I need to divide between all of the chapters in the book. So I …

Software Development
Member Avatar for WolfShield
0
213
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 ghsuan

I have made the JButtons just like Keyboard, which when the user type, then what he/she typed must be displayed on the textfield. And as the user press the keyboard, the colour of keys on the screen should be changed then go back to the original colour when the key …

Software Development gui java
Member Avatar for tunlinaung
0
2K
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 hqt

Hi, I want to download multiple files from the server/web to the folder I choose before (I already know the exactly link and know parser), but I don't know how to "download a file" with Perl. So, anyone helps me how to download file with Perl (give me detail about …

Software Development perl
Member Avatar for erezschatz
0
120
Member Avatar for hawita

Hi please help. Any help would be appreciated :D I have to write a program to read data from a large text file, analyze it, and output the results of the analysis to a data file. there are two data files to process. Problem: Using airborne sensors that record GPS …

Software Development c++
Member Avatar for jonsca
0
190
Member Avatar for initialise

Hi all, I'm stumped and can't seem to find an answer on Google. I am running a java application through Eclipse and it connects to mysql. It connects fine if I run it through Eclipse but if I make a standalone jar file and then run it through Window's Vista …

Software Development ide java mysql
Member Avatar for initialise
0
647
Member Avatar for Krammig

Thanks for reading. I installed VS2010 after a drive crash, prior I had VS2005 and everything was fine. Now on compiling a C++ app that was fine previously I am seeing a couple of errors which I just cannot figure out. Error 1 error C1189: #error : This file requires …

Software Development c++ visual-studio
Member Avatar for Krammig
0
383
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
Member Avatar for gruffy321

hi all and thanks for reading. Personally i thought i wouldnt be in the frame of putting up one of my assignments, as i can see where an opinion might be formed, over me trying to pull as fast one and get someone to code this for me etcetc etc..... …

Software Development c pascal
Member Avatar for WaltP
0
224
Member Avatar for gruffy321

Hi all, hope someone can help here, i cant seem to get this to compile. maybe im tired and have not looked at it, but its a bit like blind leading blind etc, meaning not sure what the error is referring to, i have enclosed an attachment image of the …

Software Development c
Member Avatar for gruffy321
0
162
Member Avatar for chocl8drop

I am trying to write a C++ program that will list the perfect numbers between 1 and 1000. I also have to print the divisors to confirm the number is perfect. I started by trying to find the perfect numbers. Here is my code. Please help. #include <iostream> using std::cout; …

Software Development c++
Member Avatar for sundas0068
0
633
Member Avatar for sahasrara

Dear all this program create a linked list of numbers while you dont enter 0. then bubble sort function is called and finally display function shows sorted list. I wrote it by Borland 5.02 . Have a good time!

Software Development c++ linked-list
Member Avatar for mike_2000_17
0
216
Member Avatar for james6754

Anyone know what association is in C#. Someone I know is mentioning it and I cannot think what it is. The only thing I can think of is it being a 'has a' relationship e.g... [CODE] class Student : BankAccount { } [/CODE] Even still..this would still be coded in …

Software Development
Member Avatar for Momerath
0
118
Member Avatar for unclepauly

hello, i am using the Graphics.DrawLine method in C# and this is fine for thin lines but for thick lines it draws really badly. i have sample code to reproduce the problem below. just create a new c# forms application and add a picture box to the form. make the …

Software Development asp.net image
Member Avatar for jayantpaliwal
0
712
Member Avatar for sergent

I started learning assembly today and I copied and pasted a program that displays hello world. I tried to modify it to use C function system("PAUSE") and I made this: [CODE][section .data] hello: db 'Hello, world!',10,0 pause: db 'PAUSE',10,0 [section .text] global _main extern _printf extern _system _main: push hello …

Software Development assembly
Member Avatar for sergent
0
692
Member Avatar for TheBadger

Hey bit stuck trying to make a Factory which creates multiple objects e.g. I want 10 rabbits, 6 foxes, 4 dogs + more animals instead of three for loops like this one for(int i = 0; i < foxCount; i++) { Fox fox = new Fox(); } Is there a …

Software Development java
Member Avatar for Mitja Bonca
0
161
Member Avatar for skatamatic

Does anyone here know what is wrong with my code here? I am trying to write a c# library for use in VB6. I think I have tried just about everything on google and still continue to get the message "ActiveX component can't create object". I am a total VB6 …

Software Development assembly visual-basic
Member Avatar for skatamatic
0
479
Member Avatar for jasleen12345

hi i am new to java applets...i am making an digital clock...this is my code...my prob is time doesn't change automatically....it has to be refreshed...pls see [CODE]package jas; import java.applet.Applet; import java.awt.*; import java.util.*; public class sd extends Applet implements Runnable { String am_pm="Time is "; Thread t=null; int state; …

Software Development java
Member Avatar for bibiki
0
169
Member Avatar for sms5660

I have to write this code for my homework assignment. I am in an introductory C++ class, VERY introductory. We had to write a blackjack game, but follow the book at the same time, I know there are many easier ways to do the things my code says, but we …

Software Development c++
Member Avatar for sms5660
0
220
Member Avatar for Labdabeta

I have a problem that I am having trouble solving. I have a string of undefined length containing '0' or '1'. I need to convert this string to decimal... but I CANNOT store it in anything but another string. My issue is how to do this?! I have been thinking …

Software Development c++
Member Avatar for nezachem
0
154
Member Avatar for melisko

Hello guys I have spend nearly whole day to find this answer .. All i want to know , is what is an equivalent for this two simple to use functions from C . In C this is very easy , and i believe that user friendly Java will make …

Software Development java
Member Avatar for jon.kiparsky
0
274
Member Avatar for MrCapuchino

Hello, I have a xsl file Here I have the HTML code to display a webpage, inside i have a table that fills the rows with data from an XML file. I created a link that has the href attribute filled with data from an element in the XML file. …

Software Development html-css xml
Member Avatar for MrCapuchino
0
132
Member Avatar for jmcginny5

Here is the prompt of what I have to do: Overview In this assignment, implement a class called Complex, which will be used to represent a complex number. A complex number is one that is comprised of a real part and an imaginary part. It is typically represented in the …

Software Development c++
Member Avatar for jmcginny5
0
2K
Member Avatar for darkelflemurian

Hello everyone I have the following situation with the background worker and hope someone can help me with this. 1.- i have a form and in that form I have the background worker. the methods doWork, Progresschanged, Runworklercompleted are in the form. 2.- when i star doWork, it executes a …

Software Development vb.net
Member Avatar for darkelflemurian
0
162
Member Avatar for muteki

Hi, first of all I'm new at the forum I hope to help and be helped ;-). I'm trying to display the values inside an ArrayList on a JSP. I execute a PreparedStatement and I put all the values inside an ArrayList<HashMap<String, Object>>. Once, I have all the values inside …

Software Development display java session
Member Avatar for khamsinh
0
4K
Member Avatar for deucalion0

Hey guys I have to create class diagrams for my software project and I was wondering what happens when there is no inheritance between my classes. I have five classes: Titlescreen, Program, Robot, Levels and Form1. None of these classes are abstract, they have no Inheritance between them, just Objects …

Software Development
Member Avatar for deucalion0
0
136
Member Avatar for Majestics

There is a database program for making invoice , its written in vb.net, there is no save option in that program, the programmer who designed it is not availble now... I want to add save button, the solution i have thought is to take the handle of the application and …

Software Development java
Member Avatar for mKorbel
0
189
Member Avatar for christos312

Hello to everyone, I have a program that gets some information from the user and updates the database. I also have two DataGridView, [B]OpenOrders[/B] and [B]ItemsInOrder[/B] When the user click on a cell in the [B]OpenOrders[/B] a [I]CellChange[/I] event is triggered and it updates the [B]ItemsInOrder[/B] grid view... Now after …

Software Development vb.net
Member Avatar for christos312
0
1K
Member Avatar for geekme

I have eclipse , jre and jdk in the same desktop folder but while trying to install eclipse it gives the error message that no JVM or JRE were found in the path C:\User\desktop\eclipse\jre\bin\jawaw.exe javaw.exe in your current path. Please help

Software Development java
Member Avatar for Majestics
0
77

The End.