43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … Software Development client-server python user-interface window-manager windows-server | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
| |
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++ | |
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 … | |
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 | |
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++ | |
[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 | |
what is the syntax of returning a two dimensional to main function? Software Development c | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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? | |
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 | |
Do I do it like: [code=C] wchar_t *str = L"12345"; [/code] because that doesn't seem to be working. Software Development c | |
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++ | |
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 … | |
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++ | |
Please can someone tell me the difference between a struct and an enumeration? Software Development c++ | |
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 | |
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 :) … | |
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++ | |
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++ | |
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++ | |
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++ | |
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++ |
The End.