43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for hyperzero4

Hello, I'm doing a project doing atomic models and am using a toolkit that was developed for Python 2.4 on Ubuntu. I have Python 2.4 installed as my default python currently; however, when I download the tools I need from the synaptic package manager. They only work for my original …

Software Development operating-system python tkinter ubuntu
Member Avatar for woooee
0
156
Member Avatar for arshad115

Hi,I want to create a picturebox at runtime.i mean when i click a button then,the picturebox is created. i have tried this code, but it doesnt work. [code] PictureBox^ pct; pct=gcnew PictureBox; pct->Location = Point(240,210); pct->Size.Height= 30; pct->Size.Width= 30; pct->BackColor.Aquamarine; Controls->Add(pct); pct->Visible=true; [/code] i am using visual c++ 2008. after …

Software Development c++
Member Avatar for arshad115
0
795
Member Avatar for soultrav

How do i compare an object with null? From what i've seen right now, at execution an NullPointerException will be thrown :S For example, if I have a list: [code=java] class List { private Node data; private Lista urm; public List(Node d,Lista u) { data = d; urm = u; …

Software Development java
Member Avatar for Zibo
0
7K
Member Avatar for madtorahtut

Hello! I'm having some trouble understanding how arrays are passed. From my understanding, my code here passes a pointer to the first element of the blah array, which is "var1=5". My question then is how can I move to the next element of my blah array, "var2=234234" in my filevars() …

Software Development c
Member Avatar for madtorahtut
0
334
Member Avatar for bhanu1225

Hello All. I got a doubt. In general, for updating remote database, we use ip address for the remote system. Here, i would like to update two remote systems at a time. I wrote the code like the below one. Could anyone please give the correct advice and suggestions. [B]try: …

Software Development python
Member Avatar for jice
0
285
Member Avatar for Poppystar

I am new to programming and am trying to create a program to access a database of DVD's. I want to input a unique code for a title and display relevant fields from that record. I am getting the error above and have spent many hours now trying to see …

Software Development java java-swing
Member Avatar for Poppystar
0
579
Member Avatar for pythonian4000

Hey everyone! I have been teaching myself Python, and so as an exercise, I have tried writing an image grabber for OneManga.com. You put in the path to the comic page you want to start the grab from, and it grabs every page from there to the end of the …

Software Development python web-server xml
Member Avatar for pythonian4000
0
222
Member Avatar for KirkPatrick

Just had a quick question about my code. Seems like a very simple solution, perhaps I'm just too sleepy to think straight. What I am wanting to do is if a certain index is selected in my combobox i want certain textfields to display which is apparent by the code: …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for Dendei

Hi me and my class are getting this problem with tim.start(); and stop. we get start to work with a button but cant stop and we can stop with the keyboard but not with the buttons bad explaination i know but have an look plz :P [CODE] /* * To …

Software Development java java-swing
Member Avatar for Dendei
0
128
Member Avatar for gbarnas

Greetings, I've been given a task to create a bunch of thin-client systems. I found a Python script that acts as a window manager and provides a simple "Connect or Shut Down" interface. It works well, but now I've been asked to adapt it for two special situations. 1. Connect …

Member Avatar for gbarnas
0
230
Member Avatar for grisha83

Hello, For some reason, my program prints out extra zero from my linked list Can anyone tell me why? Thank you [ICODE]public class Main { public static void main(String[] args) { IntNode my = new IntNode(5,null); LinkedList list = new LinkedList(); list.createList(0); list.addValue(1); list.addValue(23); list.addValue(3); list.addValue(4); list.print(); list.getLength(); } }[/ICODE] …

Software Development java linked-list
Member Avatar for grisha83
0
91
Member Avatar for grisha83

Hello, I was wondering why do we need to assign value of -1 to the top of the stack? topOfStack = -1; Thank you

Software Development java
Member Avatar for grisha83
0
105
Member Avatar for billymcguffin

in my coding program, it says this line of code is wrong syntax: [icode]class Mainwindow()[/icode]. Why? whenever i add a line above it with just a semicolon (;), it says it isnt bad syntax. i copied it directly from a tutorial. WHY??? billy

Software Development python
Member Avatar for jlm699
0
98
Member Avatar for lolwtf

I working on a personal project of mine and got stuck. The program is a simple quiz in which the user answers some questions, and their results are saved into a text file. Reading and writing to text files is easy so I don't need help with that. On my …

Software Development file-system vb.net
Member Avatar for lolwtf
0
1K
Member Avatar for pferian

Hy, I have to develop an application usign Visual C++ 2008 that should handle (open, change cells and save) some Excel 2003 sheets. I am using .NET Framework 3.5 and the COM reference Interop.Excel.1.5. Does anyboby knows how to code this? Thanks.

Software Development c++
Member Avatar for pferian
0
152
Member Avatar for dot_net_rookie

Hi I am trying to bind two checkboxes in a datagrid. The 1st Checkbox is category and the 2nd Checkbox is sub category. A category can have several sub categories. When i bind the 1st checkbox the category name is repeated more than once and I need to have only …

Software Development vb.net
Member Avatar for dot_net_rookie
0
183
Member Avatar for juzzy

how do you add the output of a sum back into the input? eg. i = 100 print i/2 which will give you 50 (obviously) then i want to divide the answer by 2 and then the answer of that by 2 and so on ad infinitum thanks in advance

Software Development python
Member Avatar for juzzy
0
112
Member Avatar for anilopo

hi! i've got a problem i can't understand. i hope someone could help me.. :/ i've got this error: syntax error : missing ';' before 'tag::id' on this line in the code: [CODE]Graph :: Graph (char * str) { // constructor... } [/CODE] the decleration of this function in the …

Software Development c++
Member Avatar for anilopo
0
197
Member Avatar for mohankumar554

hi, how to add days to current date in python

Software Development python
Member Avatar for bhanu1225
0
127
Member Avatar for pt_solar

Hi I'm a beginner and I need some help with designing this program. It basically asks to make a class named Employee that has these variables: Name, Id Number, Department and Position. The class should have these constructors: 1- A constructor that accepts the arguments: Employee Name, Id Number, Department …

Software Development c++
Member Avatar for pt_solar
0
276
Member Avatar for dweller

Hello there guys, I'm new to C++ and i've got something to ask. I want to create several classes at different .cpp files. But i want to create objects from some of classes at other classes. let me explain it with an example: Main.cpp ClassA.cpp ClassB.cpp These are my cpp …

Software Development c++ queue
Member Avatar for dweller
0
185
Member Avatar for suretd

Good Day All, I have another question: I have done this program to sort a list of artist and their biggest hits, etc. It has 4 parallel arrays that i have to sort alphabetically using the Sort Option in the menu bar. I am using Bubble sort, to sort the …

Software Development audio java java-swing
Member Avatar for VernonDozier
0
150
Member Avatar for cutieshunky

I am trying to figure out how to run programs and compile them in C++ if anyone can help please let me know. The major problem I am having is on this particular problem Prb04-3.cpp it will not let me run it. I tried to paste it on here and …

Software Development c++
Member Avatar for Ancient Dragon
0
105
Member Avatar for tizzo233

[code] // s2.cpp : Defines the entry point for the console application. // Project Stage 2.cpp : Defines the entry point for the console application. /* Algorithm Menu() Choose option Create a new expense Enter the initial amount of money in bank or to add money to bank from paycheck …

Software Development algorithm c++ file-system linked-list
Member Avatar for tizzo233
0
154
Member Avatar for miniroselit

what is the syntax of returning a two dimensional to main function?

Software Development c
Member Avatar for Luckychap
0
148
Member Avatar for haven_u

After creating a class called student i aslo include a constructor and destructor the implementation code is shown below. student::student(){;} student:: ~student(){;} but i still have an error message as - " return type specification for constructor invalid" can any one help me figure whats wrong ??

Software Development c++
Member Avatar for haven_u
0
130
Member Avatar for fastfingers

Hello all, having a problem with an auto save function. [CODE]System.IO.File.WriteAllLines(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), Form1.myList.ToArray());[/CODE] basically it keeps telling me i dont have permissions, i even tried running my software with admin rights. I do have a couple of questions, 1: I have not specified a text title, and System.IO.File.WriteAllLines does not let …

Software Development
Member Avatar for fastfingers
0
94
Member Avatar for monkey_king

I'm trying to get myself acquainted with memory allocation and deallocation while writing a program that will actually be usefull for me. The program is a simple datareader, that tries to read a matrix from file. The "main" program which works is 'int get_lex(char *in,char *delims,char ***returnvals)' This will essential …

Software Development c++ ios linked-list
Member Avatar for monkey_king
0
131
Member Avatar for javaAddict

Hi, I am trying to use this method: [URL="http://www.cs.indiana.edu/cgi-pub/oleykin/website/OpenCVHelp/ref/OpenCVRef_CxCore.htm#decl_cvCheckArr"]cvCheckArr[/URL] As a parameter I pass an IplImage and it compiles, but when I tried to run got this error: "Unsupported format in function: cvCheckArr .cxmathfuncs.cpp " I checked the above file and found from the code that it tries to convert …

Software Development c
0
75
Member Avatar for madtorahtut

Hello! I am rather new to c, and I am having a parsing problem. What I am trying to accomplish: I have a file filled with assignment statements such as: [CODE]var1=5 var2=80[/CODE]...etc. I want to parse through the file and then do a check to see if the variables exist …

Software Development c file-system
Member Avatar for Narue
0
97
Member Avatar for HUPextreme

hi there, i'm quite the beginner at c++, just got to my last project for my course to do. The project asks me to create a family tree using linked list. It says the tree and its components should be templated so it can have a family tree of any …

Software Development c++ data-structure linked-list
Member Avatar for HUPextreme
0
860
Member Avatar for Bob Jacobs

OK so I have created by VB application I have created my setup files. I have zipped them up with winrar, selecting .Zip as the format. I have put the zipped up file on my ISP, and I have a web page with a button linking to the zipped up …

Software Development visual-basic
Member Avatar for Bob Jacobs
0
116
Member Avatar for socksy

I installed it, and I'm trying to follow the tutorial but it won't work right. I made the test file, but when I type "python test.py" in command prompt it doesn't work. What am I doing wrong?

Software Development python
Member Avatar for socksy
0
164
Member Avatar for firehazrd0

I'm a toal noob to programming. i just bought a C++ book and im trying to develop some very simple programs. I'm using dev C++. I'm stuck on this one, its having an issue linking. here is my code: [code=cplusplus] #include <iostream> #include <math.h> #include <stdlib.h> #include <time.h> using namespace …

Software Development c++
Member Avatar for firehazrd0
-1
103
Member Avatar for jesseb07

hey, got a quick question regarding template classes. I've made several data structures that I've found to be very useful (using template classes) but it's getting tiresome making a new explicit specialization every time I implement it in a new way. Such as if I want to do this in …

Software Development c++ data-structure
Member Avatar for jesseb07
0
131
Member Avatar for waldchr

I need to know a way to open a notepad document from one of my programs without opening a console window. The calling program is a standard window, so it would look bad if a console widow opened. There are a couple of things you should be aware of as …

Software Development c++
Member Avatar for waldchr
0
213
Member Avatar for Usura

anyone know why this wont work? [CODE] fstream f; f.open("a.dat", ios::in | ios::out | ios::binary); [/CODE] it doesnt create a.dat... also how would i switch f from read state to write state?

Software Development c++ ios
Member Avatar for amrith92
0
117
Member Avatar for alias120

I am having a lot of trouble getting this program to work properly. No compilation errors, but this is the output i get when i compile; init: deps-jar: Compiling 1 source file to /home/alias120/NetBeansProjects/createFile/build/classes compile: run: Checking to see if file already exists... true You produced the following file contents: …

Software Development java
Member Avatar for alias120
0
82
Member Avatar for scru

Do I do it like: [code=C] wchar_t *str = L"12345"; [/code] because that doesn't seem to be working.

Software Development c
Member Avatar for scru
-1
159
Member Avatar for csurage

I have a problem I'm trying to write to a list box but everytime I do the program states : Unhandled exception at 0x5c560a97 (msvcr90d.dll) in Dialog_Box.exe: 0xC0000005: Access violation reading location 0x00070000. when I take out SetWindowText(); the program is fine. here is a copy of my code: [code=cplusplus] …

Software Development c++
Member Avatar for amrith92
0
1K
Member Avatar for ShadowScripter

Hi, I remember from when I learned PHP, how easy and fun OOP was, and how to call member functions in conjuction (after eachother) on the same line, like this: [CODE=PHP] MyClass->Foo()->Bar()->Pancakes("flour etc"); [/CODE] To be able to do that, all you needed to do was make a return holding …

Software Development c++ oop
Member Avatar for ShadowScripter
0
100
Member Avatar for Daria Shmaria

In an assignment involving cyclic shift hash codes, the instructions include the following code: [code] int hashCode(const char* p, int len) { unsigned int h = 0; for (int i = 0; i < len; i++) { h = (h << 5)|(h >> 27); h += (unsigned int)p[i]; } return …

Software Development c++
Member Avatar for Daria Shmaria
0
718
Member Avatar for rizillion

Please can someone tell me the difference between a struct and an enumeration?

Software Development c++
Member Avatar for tux4life
0
204
Member Avatar for Zibo

Hello. I've got simple JFrame and into that I put JPanel (object of subclass of JPanel class). I want to check, what's this panel's size from inside of this panel class, but every method (getSize, getBounds) returns [0,0]. If I call getSize method from JFrame class, then it's fine, but …

Software Development java
Member Avatar for Zibo
0
191
Member Avatar for DimaYasny

Hi all, I was searching for an IDE that is capable of Python GUI drawing, much like MSVS can draw GUI windows without actually having to code them manually. Atm I use NetBeans 6.5 for Python, but I can switch. Yeah, I'd prefer a Linux based IDE of course :) …

Software Development gui ide python
Member Avatar for DimaYasny
1
1K
Member Avatar for ShadowScripter

Contrary to what the title implies, my real problem lie in returning a vector pointer, and then use it. Here's what I tried: [CODE=cpp] #include <vector> #include <string> #include <cstring> //? Needed? #define R_OK 0 #define R_ERROR 1 using namespace std; vector<string>* tester(){ vector<string> v; v.push_back("Lolzer"); vector<string> *ptr = &v; …

Software Development c++
Member Avatar for ShadowScripter
0
94
Member Avatar for kylcrow

I have a project due in an hour, and I am stuck on it. My project is to write some functions for a maze. ( Live regions, Dead Regions, and if it is possible to exit). The point of the project is to understand graphs and specifically depth first search. …

Software Development c++
Member Avatar for Ancient Dragon
0
101
Member Avatar for deepglue555

string pin, checks, list; checks = whitecheck(kingsq); pin = whitepin(kingsq); list = whitelist(checks, pin, wkbool, wqbool, enpassant) i wrote a chess program in VB6 and have finished converting it to C++. however everytime pin or checks is not a null string it throws a GPF. how can i pass the …

Software Development c++
Member Avatar for deepglue555
0
266
Member Avatar for Liszt

If you have done a program in VC++ 2008, what is the procedure to do a release and a "Finished" program of this. In the "Form1 Property Pages", I have under General choosed: Configuration: [I]Release[/I] Platform: [I]Active(Win32)[/I]Output Directory: C:\ Intermediate Directory: [I]C:\[/I] When I now compile the application using F7, …

Software Development c++
Member Avatar for Liszt
0
179
Member Avatar for Stefano Mtangoo

After pondering and wondering, I have decided to go for wxWidgets. Here is my first trial application. After running a test app from zetcode.com in my Code::Blocks & wxWidgets and I confirmed that it is fine! Then I tried to write my own app as shown below but I ran …

Software Development c++
Member Avatar for Stefano Mtangoo
0
170

The End.