43,549 Solved Topics
Remove Filter ![]() | |
I am new to OOP. Before I did my best never to use global variables and it worked fine. But with OOP I find that I am starting to use global variables... very frustrating indeed. How do you prevent it? Let me give you an example. Assume you have a … | |
Hi, guys! I'm new in OOP, so i have some problems here... I'm doing a model of an elevator. There are three classes: building, elevator(which is located in a building), passenger. I have a class "building" which contains as a composition another class -"elevator". Class "elevator" has buttons(function-elements) inside, such … | |
Hi. I have wrote a basic program in delphi to perform calculations. The system the program was wrote on had the region set to English(United Kingdom). Upon testing the software, it will only perform calculations when the system is set in either English(United Kingdom) Or English(United States). If i set … | |
I've just finished my homework program and I'm looking for any critiques. Whether they be about my methods, format of how the code is spaced and such, or anything of the sort. Also some ideas on decent commenting would be helpful. In summary I'm trying to learn some good programming … Software Development c++ | |
hey everybody! :D I am a major noob at programming and I am using VB '08 Express and want to use a text file to set variables on seperate forms of one program. What I would like to know is if i should use seperate files for each form and … Software Development vb.net | |
I'm trying to learn the very basics of HTML parsing in python. Through these forums I learned what a parser is. [I] " Parsing often means "perform syntax analysis" on a program or a text. It means check if a text obeys given grammar rules and extract the corresponding information. … Software Development data-structure html-css python | |
Hello, Im trying to open a new windows form by clicking in a menustrip item. Its not the first time I make that but now it doesn't work and I dont know why. Here it is the code I have: [CODE] private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutBox about … Software Development assembly visual-studio | |
[COLOR=#555555]I am a newbie to Python and need to transfer files across an internal network. Are there any coding tips or code snippets that would be helpful? Any assistance provided would be appreciated.[/COLOR] Software Development file-system python | |
Title probably makes no sense :) I have a single picturebox button that I will be using to open new forms. Is there a way to set a variable and then have the button open the form name included in the variable I really dont know where to start as … Software Development vb.net | |
Thank you for your reply. Problem solved! Software Development c++ | |
Hello, I have my main program.cs with static void main and i want to call a method I have created in my misc_methods.cs. The method is string_split(string inputString) misc_methods.cs is in the same folder and looks like this: [CODE]namespace my_project { class string_split { public string_split(string inputString) { ...code for … Software Development | |
Hi again, I just had a really quick question. Is there any kind of goto command in Python like there is in Java? Software Development python | |
[code] #!/usr/local/bin/perl use IO::Socket; my $url = 'localhost'; my $port = 6464; my $error = 1; my $sock ; while ($error) { my $sock = new IO::Socket::INET ( LocalHost => $url, LocalPort => $port, Proto => 'tcp', Listen => 1, Reuse => 1 ); $error = 0 ; $error =1 … Software Development perl | |
[CODE]#include <iostream> #include <cstdlib> #include <ctime> #include <string> using namespace std; void RandomArrayFill(int* array, int size) { //int* array = new int[size]; cout << "Creating and filling the array with integers..." << endl; for(int i = 0; i< size; ++i) { array[i] = rand() % 101; } cout << "Array … Software Development c++ | |
Hi there. I was wondering how I can store a file I have on my computer into my WFA project. I want to store a file in there so that when the user clicks on the button, it will distribute the file inside the program to the user's computer, in … Software Development | |
First Off. Total newbie here and first thread so go easy on me. I used the tut from the Starting wxPython (GUI code) thread. I have converted it to a text editor and added some annoying features to mess with my boss. I am able to open a file, edit … | |
Hi, Is there a way to split the string: 'Autocolli\^sion:No^Pack\^age:10DB15' on '^' character, but not if it follows a backslash? I have tried a regular expression like '[^\\]\^' but it removes also the 'o' in 'No'. Marcin Software Development python | |
I just finished installing Fedora 11 on my 64-bit Vista computer (dual boot) and see that it does not include gcc or g++. I looked on gnu.org, found something that described the gcc compiler package (briefly) but no links to where to download the binaries. Anyone have links to it? Software Development c++ | |
Hello, i am new to using C# and I was wondering how if i set some variable in a from how i can transfer them back to the main method? for example if i have: [CODE]public partial class MyInputForm : Form { String name; Int ref_no; public ..... FORM IMPLEMENTATION[/CODE] … Software Development | |
I have these code below for the button : [CODE] import java.awt.*; import java.applet.*; import java.awt.event.*; public class Coba extends Applet { Button button1; public void init() { Font font = new Font("TimesRoman",Font.BOLD,16); setFont(font); button1 = new Button("Level Easy"); resize(250,250); LevelEasy lvleasy = new LevelEasy(); button1.addActionListener(lvleasy); //button1.addActionListener(this); add("Left",button1); } private … Software Development java | |
Hey, I was wondering how (if it's even possible) to create my own compiler directives. Any help? Software Development c++ | |
[B]I have a combo box to select different types of data in the database, the listview will be filled with data according to its category based on the combo box. The problem is, when i click on that first index of the combo box, it fills the listview with the … Software Development listview microsoft-access open-source | |
i'm try to send many picture using socket programming in VB 2005 from client to server. but, after i run the program, only the first picture that reach destination server. and there is an error saying that my socket are no longer connected after the first picture are sent. client … Software Development client-server file-stream socket-programming vb.net | |
Hi all, I need help regarding following problem. I'm getting HTTP get responses from a program(Kannel) periodically. The HTTP is in the following format. "http://localhost/sms.php?A=10&B=abc" I want to know whether is it possible to get the values of A & B using a Java program (not JSP) as soon as … | |
i created a custom installer as a custom action for my setup project in order to install some cab files to pocket pc using active sync. the custom installer class library project gives an error but i dont know how to debug it. do you have any ideas? Software Development | |
This is probably quite obvious but i am new to .net if i create a form and then have a sumbit button that is something like [CODE] public void SubmitButton_Click(object sender, EventArgs e) { String name; Int ref_no; ref_no = this.REF.Text; name = "this.NAME.Text; return name, ref_no; }[/CODE] Then that … Software Development | |
I am trying again(!) to learn enough Python to be able to process a bunch of files, and have run into something I don't understand right at the beginning. I am using Python 2.5 IDLE on a WindowsXP machine, and going through examples given in a Python tutorial. My understanding … Software Development python | |
I am doing a fuction where I want to check that a String contains only Letters between: "A-Z" and Numbers between: "0-9" and "_" Instead of checking all one by one. Is there any approach to check against all at the same time ? [code] String ThisString= TextBox1.Text.Trim().ToLower(); for (int … Software Development c++ | |
Hey, I would like to call a few functions from a static method, but it seems I can't. More specifically, I would like to start or stop a timer from a static hook, called when you click your left mouse button. Here is the code [code] //When you click... public … Software Development | |
Hey, Im having a problem with this programm. It is supoused to have a vetor (pila) that would store all the elements on the try block. When it gets to the "666" element (at the end of the try b lock) it is suppouset to throw an exception (pilallenaexception) but … Software Development c++ | |
hi, is there anyway to display a .jpg (or other type) images in Tkinter with Python 3.1? From what I read here in the forum, for Python 2.6 I could use the PIL package. But the PIL packages doesnt support Pyton 3.1 yet (from what I read on the PIL … | |
hi all:) i got confused in this point:( i have questions that i don't understand it well knowing that i have searched a lot but i don't know i didn't understand it yet 1-when it is really impossible to work in a program without a delegate (please give a simple … Software Development | |
Hello every one?I have a program use to copy the contents of an array to a File.But it does not work. when it runs Visual Studio starts to debug. But nothing happening.File contents does not change.Please help me tho solve this problem.Thank you very much. Here is the program. [CODE]#include<stdio.h> … Software Development c file-system visual-studio | |
hello everyone, I am new to python so I need help about [B].pyd[/B] file I have a[B] xxx.pyd[/B] file which is basically a merge of many [B].h5[/B] data files. I have to use this [B]xxx.pyd files[/B](merge of simulations files) and compare it with one experiment data file which is also … Software Development python | |
Hello, I am writing a program (for fun as well as for practical uses) that will allow me to keep track of several projects I am working on and how long I have spent working on each. My program has a class "Project" which has the following variables: [code="VB"] Private … Software Development vb.net | |
Hiiiiiiii i m making a C# spell check application in which i m using Microsoft word 10.0 or 11.0 object library, so in that case if i want to use 12.0 instead of 10.0 or 11.0.... So it is not support that application, and give some error and warning. So … Software Development | |
I created an array, and I am trying to pass it to a method then double the size of that array. Than I would like to print the array. I am at a loss right now as to why it wont print, and what I am doing wrong. Any help … Software Development java | |
Please help me undersatnd why this code does no work, even when it compiled without problems. After I have input the filename the application just hangs up and aborts thereafter. My input file contains the graph' adjacency matrix and the application is supposed to pull this data from the file … Software Development c++ file-system | |
I'm having some trouble using struct which I can't seem to figure out. it seems to be following all the examples perfectly, i've tried to break it down to it's simplest block and nothing. Can somebody please tell me why this won't compile? [code=C]#include <stdio.h> typedef struct a{ char a[25][12]={"a", … Software Development c | |
Hi guys. I'm new in this community. I have to do a project which should do this: [QUOTE]Input an integer containing only 0s and 1s (i.e., a “binary Software Development c | |
Hi all, I've got my restore database code working good but was wondering if there is anyway to get some feedback from the SQL server during the restore? [CODE] Dim sqlstr As String sqlstr = "restore database " + dbNameFinal + " from disk ='" + tbBAKpath.Text + "' with … | |
I'm trying to understand something about 2d char arrays. How can I set up my 2d array to accept the following [code=C] char a[][] = {{"item1", "1", "1"}, {"item2", "1", "2"}}[/code] no matter what values I put in 2 brackets there are too many initializers, and putting a third dimension … Software Development c | |
Hey, I found a cool class online for finding certain colors in a designated rectangle around your mouse position. Its optimised for speed, and supposedly works, but when I try compiling it I get around 32 errors. Heres the code [code] public static Point PixelSearch(Rectangle rect, int PixelColor, int Shade_Variation) … | |
I have been part time working on the same application for a year. its a very self serving, on day freeware application for easily accessing applications ect. I need a container for dynamically create rows of buttons, I am currently using some transparent panels, and changing their visibility when I … Software Development | |
how to set file installation condition through command line for a .net setup project? Thanks Software Development | |
hi, how do I left justify all the radiobutton displayed? For example, I have 5 radio button with different text, each on different row using: [CODE]rb[i].grid(row=i, column=0)[/CODE] Instead of displaying it left justified, its all centered. I tried using anchor='w', but result the same. I tried also to count the … | |
Hello guys I am reading some book but there and went to input validation but there is something logical i dont get in it you know when press enter with getchar() sometimes it transmits newline to the program but book has solution but i don't know why it works i … Software Development c | |
i'm thinking how to do this since last week. i can make a rps game in java, BUT not in OO way. just the simple ones. what i want to do is a rps game - the OO way. i planning this program to have two options, play with player … Software Development java | |
ListViewItemCollection class has no constructor, so i cant create an instance. the listview in compact framework does not have SelectedItems property, so i want to create it. I want to iterate through all the items and if they are selected i want to add that item to the instance of … Software Development listview | |
Hi, I'm starting working with the Graphics and related and strugling to understand it. I'm trying to do something as simple as drawing a String on a panel. The string changes on runtime. I post the code below. In effect, every new number is drawn on top of the old … Software Development java java-swing |
The End.