132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 … ![]() | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 … | |
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 | |
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 … | |
is their any body tell me the Difference between int* a; and int *a; ? Software Development c++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
[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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
[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 |
The End.