132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for PatMcC

Hi Everyone I just finished a program in Lua and I am really happy with it. However I committed at least two sins, I used a globals and I created a God object. I work alone and my programs are under 2K lines of code. The program had this "design …

Software Development
Member Avatar for griswolf
0
104
Member Avatar for didi00

Hi everyone! So I have a problem with java applet. [code] import java.awt.*; import java.applet.*; // import an extra class for the ActionListener import java.awt.event.*; // Tells the applet you will be using the ActionListener methods. public class project extends Applet implements ActionListener { TextField nameField; Checkbox cb1; Checkbox cb2; …

Software Development java
Member Avatar for didi00
0
160
Member Avatar for domingo

Hi, i have a program that connects with an sql database and it works fine with the sql. Now the problem comes when i publish. When i open the published program it gives me an error. An attempt to attach an auto-named database for file ..... A database with the …

Software Development open-source sql
Member Avatar for rozendaa@xs4all
0
101
Member Avatar for joaonascimento

Hello, I'm new to assembly ... I wonder how I can write the variable res screen... By sending write writes trash... [B]Code:[/B][CODE]name "mycode" ; output file name (max 8 chars for DOS compatibility) ORG 100H JMP MAIN NUM1 DB 12H NUM2 DB 12H RES DB ? MAIN: LEA DX, OPCAO …

Software Development assembly
Member Avatar for wildgoose
0
118
Member Avatar for didi00

Hi everyone! So can someone explain me how to compile a file with gcc? I'm using kubuntu, and I've written my source code in Kate(the text editor), and I saved it in documents like file1, and now how to compile it from the terminal? I've tried with the command: [code] …

Software Development c
Member Avatar for didi00
0
251
Member Avatar for msi_333

hello all , If i have a static reference to object as a class member . and this object is a scheduler that contain ( Jobs , and triggers ) . is there any way to make this object lives even after my function call ends .

Software Development java
Member Avatar for msi_333
0
86
Member Avatar for heiro

Here is my code so far: [CODE] import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import javax.swing.*; public class Paint extends JFrame { private static PCanvas canvas = new PCanvas(); public Paint() { // Create a panel to group three buttons JPanel p1 = new JPanel(new GridLayout (1, …

Software Development gui java pc-peripheral
Member Avatar for sfrider0
0
3K
Member Avatar for broli100

Hi, I am making application where I need to repaint windows form where I display some variables. I used InvalidateRect(NULL,0,0); - now the form is refreshing but started to blink because I refresh whole area,and I dont need to refresh all the buttons and static text ,only area where I …

Software Development c++
Member Avatar for broli100
0
106
Member Avatar for kdw3

Hi All. I am relatively new to programming so this may seem like a trivial question, but here goes. On my form I have a datagridview which is bound to a 'Supplier' table in Access 2003. Once I click on a record on the DataGridView, textboxes below which are also …

Software Development dataset vb.net
Member Avatar for kdw3
0
283
Member Avatar for Greyhelm

I am trying to update an occupants list in the class Place, after setting it with: [CODE] places["smith"] = Place( "smith", "This is the Blacksmith's Shop", "grimwo", ("well", "bakery", "mill"), () ) persons["berrol"] = Person("berrol", "bakery", "baker") [/CODE] The classes are setup as: Person / Place [CODE] class Person(object): """ …

Software Development python
Member Avatar for Greyhelm
0
10K
Member Avatar for jiraiya

Hi everyone, I'm trying to build a GUI for a project I'm working on, and I'm having trouble working out how to move between different displays within the same GUI. I have a simple GUI with a menu bar and two buttons in the content pane. If the user clicks …

Software Development gui java
Member Avatar for jiraiya
0
75
Member Avatar for Wizablue

I'm trying to make a program,it's almost done... but i'm stuck on an error message that I get. I would appreciate any help. The error message: [QUOTE]error: conflicting types for ‘findEntry’ note: previous implicit declaration of ‘findEntry’...LINE 15[/QUOTE] I get it for this code: [CODE] catalogPointer findEntry(catalogPointer head, char names[]) …

Software Development c
Member Avatar for Wizablue
0
360
Member Avatar for mindserve

I have an app where it loads the image to a pic box from a path that is stored in an Access database. The image itself is not stored in the database. I have searched everywhere for a solution to get the image to load to the report viewer but …

Software Development vb.net
Member Avatar for mindserve
0
319
Member Avatar for Kesarion

I'm trying to translate a Pascal mouse movement algorithm to C++ but I'm not too good at it. The mouse moves to a position but when it moves again it only goes a small increment and crashes after a few more moves or if I move the mouse a few …

Software Development algorithm c++ pascal
Member Avatar for iamthwee
0
407
Member Avatar for baby_c

hey guys i'm new to c and still learning.need some help here. i wrote this code and it isn't work properly,unable to figure out whats wrong!!but when the [B]strget()[/B] call from the main() its working.please some help... [CODE]main() { int x; printf("enter a value :"); scanf("%d",&x); switch(x) { case 1: …

Software Development c
Member Avatar for Aia
0
174
Member Avatar for jeffjpeterson

Its been awhile since I've messed with any kind of programming and I'll admit, I'm a bit rusty. I am an avid amazon mp3 user, but their downloads always have extra stuff attached to the track name, like Explicit, or Album Version. I want to make a program that will …

Software Development python
Member Avatar for jeffjpeterson
0
284
Member Avatar for jdpjtp910

I am trying to pass data into a class object and the put that class object into a binary tree. My code was mostly give from the professor, but I am stuck on this part. He gave us the binarytree.h and employee.h. I had to create the emp_tree.cpp. Employee.h: (give …

Software Development c++
Member Avatar for jdpjtp910
0
559
Member Avatar for pickleleon

This is my very first thread on the net period, I'll do my best to describe my c# problem. I was wondering if there is any way of calling upon general event trigger objects (referring to buttons, picture box etc.) on a whole, for example is there a keyword that …

Software Development
Member Avatar for pickleleon
0
262
Member Avatar for sksingh73

i have got 2 cpp files & a header file, which i have included in all 2 cpp files. its like this [U]abc.h[/U] extern uint32_t key; [U]a.cpp[/U] #include "abc.h" uint32_t key; int main { ............. } [U]b.cpp[/U] #include "abc.h" int main { printf("Key: %.8x\n", key); ............. } now when i …

Software Development c++
Member Avatar for nbaztec
0
97
Member Avatar for MaxDes

Hi all first post! I am attempting to read an XML and display certain portions of the XML in a datagridview. I was able to get one table at a time, but I am having trouble figuring out how to get ALL the info I want from the XML and …

Software Development dataset display vb.net xml
Member Avatar for MaxDes
0
1K
Member Avatar for judithSampathwa

hi there, i have a datagrid view in C#. i got the data to be displyed from the database to the datagridview combo column, as shown below: [CODE] DataGridViewComboBoxColumn comboBox = (DataGridViewComboBoxColumn)dgvAction.Rows[0].Cells[1].OwningColumn; comboBox.Items.Clear(); comboBox.Items.AddRange(m.LoadUSEmp()); [/CODE] this code is loaded when the form loads but when it load i want to …

Software Development
Member Avatar for nick.crane
0
138
Member Avatar for macca21

HEEEEELLLLLLP!!!! Here's what I have after hour upon hour of battling away at OOP... If anyone could fix my errors and help with a bit more of the development I'd be very grateful, I can't wrap my head around OOP despite the hours of reading and trying :( The task …

Software Development oop python
Member Avatar for snippsat
0
298
Member Avatar for sharensla

is their any body tell me the Difference between int* a; and int *a; ?

Software Development c++
Member Avatar for Fbody
0
2K
Member Avatar for Quargar

Hello, I'm new to these forums, and have just started programming in assembly. I wrote a small program to print out the first command line argument, and it's not working. It goes like this: [icode] section .data empty db "The pointer was null",10,0 section .text global _start _start: mov rcx, …

Software Development assembly
Member Avatar for Quargar
0
249
Member Avatar for redZERO

Hey guys This is more of a question of how people generally do things. Often in programs involving a GUI, I need to have more than one logical 'screen', for example if you were filling in a form, you would click "Next" and the next 'screen' would appear showing completely …

Software Development gui java
Member Avatar for tizon
0
138
Member Avatar for kbar

Hi, I'm trying to find the number abcd such that a^b + c^d = abcd however, I'm running the code fine, but it's going to my second if statement, the one that's supposed to tell me that there's no solution. Am I doing something wrong or is there truly no …

Software Development java
Member Avatar for kbar
0
96
Member Avatar for Java1990

Hi I'm i beginner in java :$ and i have a problem .... with the code they want from me to write a program that reads and prints the number of occurrence of each alphabetical letter in the string . the program should call a method to creat an array …

Software Development java
Member Avatar for Java1990
0
204
Member Avatar for pt730

Hello, I am trying to pass some information to a new page, create a string array, and then use that information in additional code in the application. It seems to work fine until the last step, where the array values seem to disappear (goes null). Somewhere between when the new …

Software Development
Member Avatar for pt730
0
82
Member Avatar for alllucky7s

So this is my problem: as the title suggests, I have a Labyrinth class that contains two binary trees made of two different kinds of structs that represent different kinds of rooms. The names are in spanish, so Arbol means tree, Laberinto is the labyrinth class and Sala1 and Sala2 …

Software Development c++ data-structure
Member Avatar for alllucky7s
0
210
Member Avatar for tizon

Hi guys, Need help with my project it is an offline personal dairy so i have to display calendar i did but the problem is it doesn't look like a calender at all it's just look like an collection of buttons i tried to set border as setBorder(1,1,1,1) but that …

Software Development display gui java
Member Avatar for tizon
0
100
Member Avatar for Sandhya212

Hi, I use Fedore Eclipse IDE to run C++ code. I need to use the Scythe Statistical toolbox which implements random number generators from different functions (gamma, beta etc). I have added the toolbox's location to the path of header files in Eclipse and added the [CODE]#include "distribution"[/CODE] (available in …

Software Development c++ ide
Member Avatar for Sandhya212
0
163
Member Avatar for m.c.w.e.

HI, I have a question. Currently i am working on a sort of catalogue in excel where i also use vb codes. The user can easely search for products using an productnr. It shows all the specifications of that product. All this information is used out of another database. Secondly …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
266
Member Avatar for oaktrees

I am reading in a string from a file which has the format $ 235.0 M. I need to convert this to a number and save the letter M somewhere else. Any pointers on how to strip off the $ and M? Thank you.

Software Development python
Member Avatar for oaktrees
0
136
Member Avatar for techie1991

I want to print a float number with it's digits extending to 20000 digits after the decimal i.e. if the number is 10/3, it should print 3.333333333333333333333333333...20000 or more times. So, how do I print something like that? Also, do tell the solution for C and C++ as well... The …

Software Development c++
Member Avatar for nbaztec
0
173
Member Avatar for vlady

Hello, Pls can somebody help me with time comparison between 2 scripts. I have already looked the documentation but I haven't found anything. I deal with following exercise: "Run this version of fibonacci and the original with a range of parameters and compare their run times." I intend to measure …

Software Development python
Member Avatar for vlady
0
148
Member Avatar for Alazzawi

Hi everyone. earlier i wrote that i have a problem with the help file in my project, that it does not work under windows vista or 7. thanks god i figured it out that it need a MS help package to be installed to these OS so the help file …

Software Development visual-basic windows-vista
Member Avatar for omoridi
0
111
Member Avatar for web24

Hi Guys, I am very new to Databases and keep getting this error in VB6 : "Syntax Error in FROM Clause" I'm using a MS Access database connected to my project via the Adodc control which has it's recordsource properties set to my table (Clients), I am trying to filter …

Software Development visual-basic
Member Avatar for omoridi
0
2K
Member Avatar for sdinu96

[code]#include<stdio.h> #include<stdlib.h> #include<string.h> struct name { int *a; char b[10]; char c; }; int main() { struct name *p; p = ( struct name * ) malloc ( 3 * sizeof ( struct name ) ); char *n; n = ( char * ) p; *n = 275; strcpy ( …

Software Development c
Member Avatar for Banfa
0
465
Member Avatar for i_luv_c++

Hey guys, I am working on a assignment. I am 90% done with the code. However I stuck on the part where i have to flip the output(vertically and horizontaly). I tried I everything i could. I tried setting the row up side down that way it would help and …

Software Development c++
Member Avatar for Swiftle
0
82
Member Avatar for basma.lm

hi, i work on a windows application and i have a principal form which show another form in its load event: [CODE] private void FormPrincipal_Load(object sender, EventArgs e) { FormR fp = new FormR(); fp.Show(); } [/CODE] the form FormR contain this code in its load event: [CODE] private void …

Software Development
Member Avatar for Ketsuekiame
0
143
Member Avatar for zizi

hi, I have a string that has duplicates like "SbS"I want to replace one the first "S" and the other time,the other "S",so the output for it would be: "Sb" and "bS" but as I do it with Replace to just get one result that is : "b" what is …

Software Development
Member Avatar for zizi
0
106
Member Avatar for shrutinr

Hi, I m having problem with accessing one form (project1) value in another form(project2). I m using VC++ 2008 express edition and i m doing my project pure vc++. I have to store the the project1's textBox value in project2's textBox.. Please help me to resolve this problem. Thanks in …

Software Development c++
Member Avatar for jonsca
0
169
Member Avatar for swerty4

Hey , Have a task i want to do I have a .txt file with mispelt words and a .txt file which is a dictionary and has correct spelling of words now i know that i need to split both of the .txt files into words , i need to …

Software Development python
Member Avatar for swerty4
0
136
Member Avatar for ceyesuma

Would it be safe to assume that if I had a synchronized DAO for each model that implements an interface too each with access to XML resources. So when my JDesktopPnane builds each JTabbedPane with the corresponding view GUI panel that I could have the code in the in each …

Software Development gui java xml
Member Avatar for ceyesuma
0
103
Member Avatar for Swiftle

Hello, I'm trying to make a circular list by modifying an existing simple-linked list. I'm having a problem when testing whether or not a node is valid. The old code looked like this: [code] return (elem == NULL); [/code] Now with a circular list I have my sentinel node and …

Software Development c++ linked-list
Member Avatar for Swiftle
0
90
Member Avatar for kizito106

Am new to java.How can I solve this small problem? Am using database based authentication to enable mi logon.Am trying to compare the username and passfield fields but I dont know the best conditional operator/logic operator to use. Here is my sample code that contains a red wavy underline in …

Software Development ide java java-netbeans
Member Avatar for jwenting
0
139
Member Avatar for jellybeannn

Hi, I've got a input sheet where start and end dates are saved to a access database, I do have the access database dates field as Date/Time with a short date format. On my output page the start date's month and day are swapped but only if the actual day …

Software Development
Member Avatar for jellybeannn
0
1K
Member Avatar for Derice

I would like to include .swf file in a vb 2005 program. I have no idea how and where to include the .swf file. It is inside the picture box? Please guide me, I am new in vb and have no idea how 2 do it. thx

Software Development visual-basic
Member Avatar for gelmo214
0
1K
Member Avatar for darelet

Hello, I'm researching in image processing and need to develop a Gabor filter in C++ and openCV. I found a good sample on which I'm basing my code. Problem is, while I've tried to emulate much as possible the other code, mine is not producing correct results. I changed a …

Software Development c++
Member Avatar for darelet
0
157
Member Avatar for migz.natividad

[B]Please Help Me With the codes Im currently having a problem with code[/B] // Im trying to Transfer the Item Collection properties of te LisBox1 to ListBox2 but im having an error of result. Here is the code C# [CODE] ListBox2.Items.Add(ListBox1.Items); [/CODE] Plese help with me the code! Thank you!

Software Development
Member Avatar for Ramy Mahrous
0
120

The End.