132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mackjan

I have a function when I use it outside the class as a function it works perfectly but when I want to use I as a method in a class I get a TypeError massage : [COLOR="Red"]Traceback (most recent call last): File "H:\python\prototyp_01.py", line 122, in <module> manupacians.koor(z) File "H:\python\prototyp_01.py", …

Software Development python
Member Avatar for Mackjan
0
149
Member Avatar for Syakoban

Hi, Full disclosure - I just cut and paste my way through scripting - I don't really know what I'm doing. Some time ago I got help with a little CGI perl script that included a link as a line of code with a variable in the form [ICODE]$page = …

Software Development html-css perl
Member Avatar for Syakoban
0
102
Member Avatar for kanjali

Hi, Please suggest me to do FolderBrowserDialog box for "C# Web Application". Thanks a lot, Anjali

Software Development
Member Avatar for Ramy Mahrous
0
119
Member Avatar for Onixtender

Hi , this pr. works with clases but someway it just throws me a error: [code] switch (atoi(i))//yes its an int 1,2,3,... etc... { case 1: R S(r, h);//create new class R object named S,to constructor we give two parameters F * f1 = &S; //yess pointers polymorph.... cout << …

Software Development c++
Member Avatar for Onixtender
0
84
Member Avatar for Run.[it]

Basically this Menu works however, when I enter in a string the default does catch it but then the Menu repeats the error so in essence isnt full proof. Would the way around this be to check the 1st entry by the user to see if its an integer, if …

Software Development c++
Member Avatar for Run.[it]
0
144
Member Avatar for ivy47469

I am working on the odd number magic square problems. I start the first number in the last row and center column. It worked on the 3x3 square, but not on any other odd numbers. Can anybody check my code? [code] def magic(n): if n > 2 and n % …

Software Development python
Member Avatar for BearofNH
0
141
Member Avatar for javaAddict

I will briefly explain my problem: I have a while-loop and inside I call some methods. Inside one of the methods I have this error: java.lang.[B]NoClassDefFoundError[/B], which is been caught and the while continues. The problem is that a few seconds later as the while keeps running the same method …

Software Development java
0
82
Member Avatar for TylerTCF

I have commented the problem into the code below. See the Store2 vector in the Write Data function. I get error 0xC0000005: Access Violation with no warnings. Any help figuring out why would be appreciated. [ICODE] #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <stdlib.h> using namespace …

Software Development c++
Member Avatar for mitrmkar
0
132
Member Avatar for Spartan552

Hi guys ! This has been killing me for 8 hours Things work well I'm compiling this way : [QUOTE] g++ -Wall -o prog prog.cpp -L/usr/local/sesam/lib -Wl,-rpath /usr/local/sesam/lib -Wl,-rpath,/usr/sesam/lib -ldl -lc[/QUOTE] But when I add a link to /usr/local/sesam/lib/libssv.so that i need [QUOTE]g++ -Wall -o prog prog.cpp -L/usr/local/sesam/lib -lssv -Wl,-rpath …

Software Development c++ ios
Member Avatar for Spartan552
0
171
Member Avatar for Xokzin

Hi There, I'm learning C++. One of the questions requires a function to do a calculation below. I have no clue how to do this. Can anybody help? [QUOTE]WeTryToHelp gives bursaries to help students with buying their textbooks. The amount of money depends on how many modules the student passed …

Software Development c++
Member Avatar for Xokzin
0
127
Member Avatar for sreelatha

Hi, I have a requirement that i have two files, one is input file and another is log file(both will contain the same data mostly). I need to compare these two files and if any difference found then those lines should be write to another file(3rd file). I done googling, …

Software Development file-system python
Member Avatar for sreelatha
0
3K
Member Avatar for conandor

how can i have a automatically check folder size and when the contain of the folder is reach to some limit it will deletes all the contains the files inside.

Software Development shell-scripting
Member Avatar for conandor
0
87
Member Avatar for zoner7

Typically the code that I have seen uses phrases such as i++ as opposed to ++i. Recently, in a recently purchased book, I have seen the former implemented. As I understand i++ means that the addition takes place after the line is executed and thus with the initial value of …

Software Development c++ first-post
Member Avatar for Abzero
0
274
Member Avatar for scuba183

So I'm having a bit of a problem with a CGI script. It runs fine, except for the little problem that param(x) doesn't work at all. It will either crash the program or return an undefined value. [code=perl] #!/usr/bin/perl use warnings; use CGI qw(:standard ); $temp=uc(param('class')); $class=chomp ($temp); $temp=uc(param('type')); $type=chomp …

Software Development perl
Member Avatar for KevinADC
0
120
Member Avatar for p3_tib2001

Help! Now I study about NAT (Network Address Translator), it is a new way about translate IP local to public. Ok, the point is when I want to install NAT in LINUX, i got error messages like below. I think this is about coding in nat.h. What should I do …

Software Development c
Member Avatar for p3_tib2001
0
170
Member Avatar for sowmyask

I have a file names abc.txt on desktop. I wanna copy it to d:\workfile folder. If I use the code-- File.Copy(strsourceFilePath,strtargetFolderPath,true); I am getting a exception that Access is Denied. If I use Move method ,File.Move(strsourceFilePath,strtargetFolderPath); am getting the exception Cannot create a file , already exists. Can anybody help …

Software Development file-system
Member Avatar for sowmyask
0
122
Member Avatar for Sawamura

Hi all, i want to make indent in rtf using track bar. So when i scroll track bar my paragraph can shift follows the trackbar position. Would u like to help me please... Thank u very much

Software Development vb.net
Member Avatar for Jx_Man
0
116
Member Avatar for preyan

I have pygame v 1.8.0 installed but it is without the font and video module support how do i have to enable it or from where do i have to get it

Software Development python video
Member Avatar for preyan
0
83
Member Avatar for Naruse

How to use progress bar to display a picture. I mean after progress bar is completed it will showing a picture. Please Help i just newbie :)

Software Development vb.net
Member Avatar for Jx_Man
0
128
Member Avatar for geetajlo

hi every1.. i want to sort my combo box bt the pblem is that that i have bind it with a database. in the properties window i have set sorted = true bt it says ComboBox that has a DataSource set cannot be sorted. Sort the data using the underlying …

Software Development vb.net
Member Avatar for Pgmer
0
114
Member Avatar for tondeuse34

Hey guys, recently i started with socket programming in python and still doing it. And i decided to do a project, its a text based GUI with different options that are related to Networks, but ive had trouble with it looping back to the menu which the input is represented …

Software Development gui python socket-programming
Member Avatar for jrcagle
0
119
Member Avatar for ivy47469

I am writing a Crap Game. The first part turn out fine but I have problem with this requirement [I][U]"Your program must keep track of and report the number of games won by the user and the number of games won by the computer ("house"). The score should be 0-0 …

Software Development python
Member Avatar for jrcagle
0
102
Member Avatar for budstar

Sorry I just realise that made not sense. I have created a program in python similar to battleships. I have created the class section which were working when I include the direction section in the main and not as a seperate method, However when I move the method into a …

Software Development python
Member Avatar for jrcagle
0
140
Member Avatar for dinilkarun

I have a variable declared in a class file. A form is called from the class. When the control goes to the from; the value stored in the varaible is lost. Hence ,when I get the control back to the class from the form, I am unable to get the …

Software Development visual-basic
Member Avatar for selvaganapathy
0
86
Member Avatar for pa3k80

how make program run as service... I need the option in program, which program run in the background. Anybody has a tutorial about this...

Software Development c++
Member Avatar for Salem
0
113
Member Avatar for k2k

I am currently taking shell scripting online, my professor has emphasized again and again not to use csh. I haven't learn in depth the difference between csh and sh yet. Can anyone explain abit what is the major difference? a little example please if possible.. thanks

Software Development shell-scripting
Member Avatar for Salem
0
449
Member Avatar for scru

I have one that seems to be hard to find info on (with good reason). I want to hook into Firefox and IE and detect when a user inputs a password and username, prompt the user, and then get that username/password combination, and the url of the website that it …

Software Development
Member Avatar for Ramy Mahrous
0
113
Member Avatar for nschessnerd

i basically have a long array i want to copy to another array object. does this copy by refrence? i know java doesnt do refrences but i read somewhere it would pass by refrence. [code='java'] char[][][] data=new char[numFiles][][],data1=new char[numFiles][][]; for (int i = 0; i < numFiles; i++) { data[i]=split(files[i]); …

Software Development java
Member Avatar for nschessnerd
0
115
Member Avatar for evios

How can i actually initializes a 2-dimensional array ALL to 0? [code]Dim machinecount(,) As Integer[/code] I try using 2 For loops to set it as 0 like the one shown but it gv me an error: [code] For B = 0 To 23 For C = 0 To 4 machinecount(B, …

Software Development vb.net
Member Avatar for evios
0
138
Member Avatar for agodislife

Hi, could someone please help me with this error message, I 've included my program along with the error message. Thank you. Compiling... C:\Documents and Settings\\Lab7\Lab7.cpp(33) : fatal error C1004: unexpected end of file found Error executing cl.exe. Lab7.obj - 1 error(s), 0 warning(s) [code=cpp] #include <iostream> using namespace std; …

Software Development c c# c++
Member Avatar for VernonDozier
0
99
Member Avatar for nurulshidanoni

Dear all, I have this code and this data...but i want to sort the sum1 in descending order..but my problem is..i want to sort many array....like this.. after sort 3: ............. 46 1: .............. 25 2:..................20 how to sort in descending order together with the row? 1: 5 6 7 …

Software Development algorithm c++
Member Avatar for nurulshidanoni
0
118
Member Avatar for dangermini

Hi, i am currently trying to learn how to program in python and i have been doing ok until now! I am confused about classes objects and methods, i understand most of how they work. In a question task I am asked to create some code for a die (singular …

Software Development python
Member Avatar for dangermini
0
85
Member Avatar for Kabooom

Hey all, had another question that came up in my first Python program. The program is pretty much just a GUI for an application launcher. My current version has rollover buttons and successfully launches the applications, but is bloated and needs some revision so I'll post the first version with …

Software Development gui python
Member Avatar for Kabooom
0
300
Member Avatar for Finn.oftedal

I've tried to create mailbox in exchange 2007 using code that works on 2003-version. It's much faster to create a program in VB6 then in net. So, does anyone know what I have to do to make mailbox on 2007.version with vb6?

Software Development visual-basic
Member Avatar for Finn.oftedal
0
80
Member Avatar for hewara

hi everyone, i am struggling with a code and i need help! if u help me i appriciate... the result that i want to get is "value of myarray[0]=0.577 or 0.5" and the others value of myarray[1] and value of my array[2] is zero. i am using devc++ compiler. i …

Software Development c++
Member Avatar for hewara
0
95
Member Avatar for cbattagler

I am attempting to read in a comma delimited file and only take in the first three values. At the moment the code I have obviously does not work. The text file is laid out like this: [code]1249968.646,16761001.880,1206.990,1,2,104,3,218210.549527[/code] At the moment this is what my read in code looks like: …

Software Development c++
Member Avatar for cbattagler
0
192
Member Avatar for Jennifer84

I have about 20 vectors like the example below inside a buttoncontrol that will push_back data. This buttoncontrol and all the vectors will read a .txtfile that takes up 1.5 MB. So together the 20 vectors will fill data with a total of about 20 MB when I press the …

Software Development c++
Member Avatar for Jennifer84
0
128
Member Avatar for efp1225

I am trying to include the posix library in my Visual Studio 2005 projects, and I am unsure how to include it. I have the posix.lib file and I added it to the additional dependencies of Configuration Properties->Linker->Input. When I build, I get the message that it can't find the …

Software Development c++ visual-studio
Member Avatar for Zabbat
0
113
Member Avatar for lich

Teacher gave a question today to find Base is 2 and power is 3. so that Answer should be 8. so to find that she told us to use Recursion and do it. i done it in the normal way. but when i do it in the Recursion way. one …

Software Development c
Member Avatar for jephthah
0
114
Member Avatar for Gagless

I am working on a recursive function that does multiplication so I don't have to use the * operator or loops. What I'm stuck on right now is how to get it to produce negative products. I thought the code for positive products subtracted from 0 would work, but I …

Software Development c++
Member Avatar for Gagless
0
152
Member Avatar for mmx64

Hallo, can someone help me out: I have a stringgrid, where i display hex data of a file( a hexeditor), and i need to change the color of the cell, if i chenge the data inside it. How can i do that?? Thanks.

Software Development pascal
Member Avatar for mmx64
0
3K
Member Avatar for Mr.UNOwen

Hello, I created two classes, one extends JButton and the other extends JPanel. In both cases, both overrides the paint method. Basically I'm extending JPanel so I can place an image as the back ground. The issue I'm having is that every time the button is drawn, if it's drawn …

Software Development java
Member Avatar for Mr.UNOwen
0
254
Member Avatar for Bitto11

Hello ppl I am new to c++ and especially a noob in graphics. All the functions I have learnt are from Help File in Turbo c++ 3.0. Since this part of c++ is not in my course, I am having difficulties learning it. Now, in the following code the[B] outtext …

Software Development c++
Member Avatar for Bitto11
0
182
Member Avatar for CoolGamer48

Hey, I'm having a problem with my RPG. I'm trying to get a player to move from one room to another. All the coordinates (and other properties) of all the objects inside a given room are contained inside a text file, and this includes the properties of an exit to …

Software Development c++
Member Avatar for mitrmkar
0
87
Member Avatar for biggz

i need to build a recursive function which calculates the average of specific numbers entered ... so its fine till now but ... it says the number of entries is determined by the user's interest .. so i got some ideas i kinda stopped here i made a function which …

Software Development python
Member Avatar for bumsfeld
0
99
Member Avatar for heshan

Hi, I am having a string like below. What I need to do is to process the string in such a way that I could get the output in a format like below.The problem I am facing here is that some elements have commas(,) within itself , so it is …

Software Development python
Member Avatar for bumsfeld
0
142
Member Avatar for coolian

Has anyone here managed to integrate NetBeans 4.0 with VSS 6.0? I am only able to see the projects I've added under the "Versioning" tab (in NetBeans), and not from VSS. Also, when I refresh the list, this is the error I keep getting: Command "Refresh" has failed. Execution string: …

Software Development java microsoft
Member Avatar for Ezzaral
0
203
Member Avatar for L31chH4rdT

Hey guys, I'm at the losing end of a problem involving strings and char input. Basically, I have a tree full of morse code and alphabet equivalents in struct morsetree that i will decode against. so when i decode **** * *-** *-** --- *-- *** *-* *-** -**, i …

Software Development c++
Member Avatar for Duoas
0
311
Member Avatar for petzoldt01

A some point in my program, it is necessary for me to start a child process (Im on linux, btw, ubuntu gutsy). The process streams DV to stdout, but can be controlled in an "interactive mode" through commands to stdin. How does one establish streams going both ways? If you …

Software Development c++ ubuntu
Member Avatar for Duoas
0
351
Member Avatar for Nemoticchigga

[CODE] private: delegate System::Void delegate_function(void); if(this->InvokeRequired) { AsyncCallback ^ac = gcnew AsyncCallback(&WCS::MainForm::delegate_function_callback); delegate_function ^df = gcnew delegate_function(this, &WCS::MainForm::function_to_invoke); System::IAsyncResult ^asyncresult; //Begin invoke command here. try { asyncresult = df->BeginInvoke(ac, df); //asyncresult = this->statusLight->BeginInvoke(ac, df); //this->commsStatusLight->EndInvoke(asyncresult); //df->Invoke(); df->EndInvoke(asyncresult); //df->DynamicInvoke(ac, df); } catch (...) { std::cerr << "caught"; } } public: System::Void …

Software Development c++
Member Avatar for Nick Evan
0
88

The End.