132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for get2tk

pls whats the difference between writing a procedure,method and function.

Software Development java
Member Avatar for JamesCherrill
0
298
Member Avatar for Mearah

Hey, is there somebody who tried to use pyOpenGL with wxPython? I want to have a GUI, where I have a frame integrated, that shows a 3D image computed by an OpenGL algorithm build in the PyOpenGL environment. Mearah

Software Development algorithm gui opengl python
Member Avatar for Mearah
0
683
Member Avatar for snta

i'm new programmer. can u help me , how to retrieve data from database(access) and display in combo box. the value in combo box will automatic display into text box example: dtbs=office.mdb table name= item field name=itemID,itemName itemID=M1; itemName=modem itemID=M2; itemName=repeater i want this combo box display all itemID in …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
156
Member Avatar for neha_p

hey, I have done my bachelors in Electronics (B.E in electronics)and was working in IT comapany in asp.net,VB .for 6 months.now i want to shift to java,j2ee . i now have to show 1 year experience in java ,j2ee but can u please help me as too wht should i …

Software Development asp.net java
Member Avatar for verruckt24
0
99
Member Avatar for max.yevs

so i was trying to make a very simple counter (although not sure if that's what you call it) [code=python]import time a = 0 def main(): time.sleep(5) b = a + 1 print (b) del(a) a = b del(b) main() main()[/code] i know this is very unefficient and there is …

Software Development python
Member Avatar for adam1122
0
146
Member Avatar for leegeorg07

i have python 2.5 and 3 and i want to use 2to3 to convert all of my programs to python3 but i dont know how to use it, if it helps in the Lib folder of python3 it is called lib2to3. any help or examples welcome.

Software Development python
Member Avatar for leegeorg07
0
197
Member Avatar for Benniit

Am using Vb.NET 2008 and SQL 2008. I have a problem, when the execution reaches daAdapter.Update(dtTable) then I receive this error ""String or binary data would be truncated. The statement has been terminated"" Then the record fails to update. What could possibly be the error? Below is the complete code. …

Software Development dataset vb.net
Member Avatar for Teme64
0
165
Member Avatar for ravikiran032

I have created a dos script which deletes files in "g:/documents and settings/ravi kiran/recent" where my OS installed in g: drive. when i run the script it is promting for Y/N. so I have given input from a file "kiran.txt" using input redirector.But it is not working. the code is …

Software Development shell-scripting
Member Avatar for rm_daniweb
0
151
Member Avatar for danish_k12

Hi, I am in Urgent need. I want to develop a software in vb6[coz good in it] to split pdf files. There are few software available for that but my issue is i want to split pdf file according to the data. The files contain statements some are 1 pages, …

Software Development pdf visual-basic
Member Avatar for vb5prgrmr
0
791
Member Avatar for yasirfarid

hello, i am using picture box, and coding on form load P1.Picture = "D:\My Document\My Pictures\Display Picture\ICE.BMP" why it gives "TYPE MISSMACH" Error. plz reply soon. Yasir

Software Development visual-basic
Member Avatar for mizkhyz
0
356
Member Avatar for mizkhyz

hi, am new here i need ur help. How to load an image from web browser control to an image in a visual basic form? i am using vb6.0, an imagebox, web browser object. i want to know to load the image from web to my vb form thank you …

Software Development image visual-basic web-browser
Member Avatar for mizkhyz
0
79
Member Avatar for k2k

hi, i have a JFrame... one menuBar placed on a JPanel.. and then two JPanel with different things (let me call them ActionPanelOne, and ActionPanelTwo). i put the JPanel (with JMenuBar) North of the JFrame, and menuIteam will call the 2 ActionPanel individually to come up. my problem is: Once …

Software Development java
Member Avatar for k2k
0
182
Member Avatar for guest7

Hi, I am getting "Segmentation fault" error in line number in the following function. [ICODE]deque <string> text; deque <string> text_1; int circuit::writetofile(int maxno,char *fname) { /* Before writing the clauses correct the line p cnf */ //deque<string> text; std::string s,t; /* Counting the number of original clauses in the file …

Software Development c++ ios
Member Avatar for nucleon
0
240
Member Avatar for txwooley

I have an assignment to: "Wrap this code in a function called compare(x, y). Call compare three times: one each where the first argument is less than, greater than, and equal to the second argument." So I came up with this: [code=syntax] def compare(x, y): if x < y: print …

Software Development python
Member Avatar for txwooley
0
111
Member Avatar for songweaver

Hey guys, I am working on a fraction program where you can add, divide, subtract, multiply, and divide and it uses addressing. Anyway I got it to work except when I added an error message if to make sure that the 2nd Numerator, 1st and 2nd Denominator are not zero. …

Software Development c++
Member Avatar for songweaver
0
90
Member Avatar for halfnode

[CODE=Cplusplus]#include "STDAFX.H" #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cstdlib> using namespace std; class Subject { private: string code; int cu; char pf; public: Subject(void); void setCode(string); void setCU(int); void setPF(char); }; class Student { private: string name; int count; int totalCU; Subject subjects[4]; public: Student(void); void setName(string); …

Software Development c++
Member Avatar for halfnode
0
196
Member Avatar for nightGoddess

Ok so here is the problem: i am working on a code that will read a date from the keyboard in MM//DD//YYYY format. and then determines if it is a valid date or not. So far I have gotten: [code] import java.util.Scanner; /** * Program: UseCheckDate * File Name: UseCheckDate.java …

Software Development java
Member Avatar for nightGoddess
0
118
Member Avatar for txwooley

I am trying to learn Python. I have browsed through a few tutorials and tried to follow them until they get too complex and I try to find another one to give a different perspective. I am currently trying (and very much enjoying) the very basic "How to Think Like …

Software Development python
Member Avatar for txwooley
0
105
Member Avatar for harrykokil

hi every one i created a slidebar in tkinter. as i move it forward the value of a variable increases. but as i move it backwards, the value also increases. it should decrease. do u guys have a simple slidebar implemeted and which affect the value of an attribute? thanks

Software Development python tkinter
Member Avatar for vegaseat
0
108
Member Avatar for Bladtman242

Hi, which C# enviroment (i like to keep compiler, editer and debugger in the same program) can you guys recommend?

Software Development c c# c++
Member Avatar for Bladtman242
0
168
Member Avatar for archiphile

I am not only new here, but, I am a complete newbie to programing. I was on the hunt for some beginner tutorials today on the web. I found what I thought would be a simple yet in depth problem. I spent the last hour making sure that I had …

Software Development c++
Member Avatar for RayvenHawk
0
175
Member Avatar for flip121

I am in an introductory cs course, and we have a project due in a couple of weeks. I have asked my instructor if I can ask for help here and he did allow me to post the code and ask. The project is to write a simple game where …

Software Development objective-c python tkinter
Member Avatar for flip121
0
1K
Member Avatar for scarebyte

Hi guys, I have a question concerning the following code I have written for a final project in an entry level C++ course. My task requires 3 level hierarchy (which i have) and use of polymorphism. The program works in this state, but I dont think I am actually exercising …

Software Development c++
Member Avatar for scarebyte
0
769
Member Avatar for ppushpa

i have a file like a1 0.7 a2 0.5 b1 0.6 b2 0.8 a2 0.4 b3 0.6 a1 0.3 a2 0.4 a3 0.7 i want to read a file data and add values if it has same variables.Ex; a1=1.0 a2=1.3 a3=0.7 b1=0.6 b2=0.8 b3=0.6 whats the concept used to done …

Software Development java
Member Avatar for Ezzaral
0
69
Member Avatar for Francis87

Hey Guyz, i hav a pretty simple task, i had got some text files of data, which are like scores. and i need to be able to edit the txt file to say change a charector A -> X or B-> R etc.. etc.. it would be great if i …

Software Development c
Member Avatar for ArkM
0
314
Member Avatar for Nperic

Hey there, I am just a little confused with the code below, i parse the XML file although i cant call functions from outside the main. My programming isnt really up to scratch. Ive had a long break so now im paying for it :( Any help/ suggestions would be …

Software Development java xml
Member Avatar for Ezzaral
0
138
Member Avatar for jaguar_s

I need to read data from a data register n times and calculate the average of that and write it into another data register.... I dont know how to do this at all... Can anyone help me...

Software Development c
Member Avatar for ArkM
0
110
Member Avatar for lancevo3

I have to write a function that takes an input such as this chevrolet, MALIBU and makes chevrolet into CHEVROLET and MAILIBU into Malibu I am having no trouble with capitalizing the CHEVROLET but when it comes time for the Malibu to be corrected it doesn't come out right. directions …

Software Development c++
Member Avatar for Clockowl
0
161
Member Avatar for ning2009

Hi, there Let me put my resource line and target lines here firstly resource line: 56 J=7224,164 SEC=CON450X450 ANG=45 target lines: *beam section,section=R, elset=CON450X45056,material=con2 0.45,0.45 0.707107,0.707107,0 I have a dictionary below (created using woooee's code) Frame_Section contains {'CON450X450': [['MAT', 'CONC2'], ['SH', 'R'], ['T', '.45,.45']], 'B400': [['MAT', 'CONC2'], ['SH', 'R'], ['T', …

Software Development python
Member Avatar for ning2009
0
213
Member Avatar for ammonation42

i am at uni an i have a project in which i have to create a backgammon game. i have created the board the dice and the moves, now i need to do the legality of the moves i was wondering if anyone had an idea of how i would …

Software Development c++
Member Avatar for jephthah
0
98
Member Avatar for redmaverick

I am unable to execute these codes. This code is a replica from a website. I used Testing.java and Person.java. Should the files be named comparable.ex01.Testing.java and comparable.ex01.Person.java? As I am pretty new to java I have this doubt. [CODE] package comparable.ex01; import java.util.Arrays; import java.util.ArrayList; public class Testing { …

Software Development java
Member Avatar for Ezzaral
0
123
Member Avatar for lancevo3

I'm working on a program which requires me to read in a file of input and organize it by calling a few functions. The first function I'm writing breaks up the input and assigns it to the appropriate array. For some reason what I keep getting back is random values. …

Software Development c++
Member Avatar for lancevo3
0
217
Member Avatar for sabian4k

I don't understand what getstream is about nor do i know how to change a certain part in an array to something else. please help me. [code] // ************************************************************************** // // Airplane.cpp // // Program that displays the seat diagram for an airplane and allows the user // to select …

Software Development c++
Member Avatar for Lerner
0
154
Member Avatar for konczuras

Hello Everybody! I'm trying to catch the entering event (when the control becomes active in a form) of an hScrollBar. It would be used for an undo/redo process, and whenever I click on it, or just tabbing to it or anything else, the enter event won't fire. Anybody got some …

Software Development
Member Avatar for konczuras
0
83
Member Avatar for danishamman

Plz provide me complete discription of four algorithms used for sorting arrays e.g bubble sort.

Software Development c++
Member Avatar for jephthah
0
229
Member Avatar for camonchain

([I]Invoice class[/I] Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four pieces of information as instance variables— a part number (type string), a part description (type string), a quantity of the item …

Software Development c++
Member Avatar for jephthah
0
194
Member Avatar for shki_80

HI All, I have ollowing code to delete the image by using File.Delete(fileNamefordel + ".jpg"); function. It works fine on local server but not on uploaded server. string fileNamefordel = Server.MapPath("StdImage") + "\\" + (Session["lCandidateID"]).ToString(); if (File.Exists(fileNamefordel + ".png")) { File.Delete(fileNamefordel + ".png"); } if (File.Exists(fileNamefordel + ".gif")) { File.Delete(fileNamefordel …

Software Development file-system session
Member Avatar for serkan sendur
0
299
Member Avatar for katamole

Hi again, I'm trying to use a python wrapper for the last.fm api. It's pretty old but seems to be working ok (for now). See [url]http://code.google.com/p/pyscrobble/[/url] Anyway, I'm having trouble extracting some information from the output. [CODE] import scrobble user = scrobble.User('mattfeliks') # invoke user class recent = user.recent_tracks # …

Software Development api google-api python
Member Avatar for katamole
0
103
Member Avatar for soulbee1

Forgive my ignorance, I am learning. I am writing a C++ BlackJack program for school project. I have googled and incorporated the following code into my project. My results are I am getting a value for the cards of 2 - 5 and i do not understand why. If someone …

Software Development c++
Member Avatar for nucleon
0
732
Member Avatar for oracle123

Hi all, I am a newbie to C programming world. In my program I want to log information into a log file whose file name should be filename_date_time I am using following code to write information but need help in changing the file name from filename to filename_date_time. [CODE] #include …

Software Development c file-system
Member Avatar for jephthah
0
4K
Member Avatar for manoj_582033

I want to create server in one system and make another system as clients like if i save data in server that is also saved in clients system .So what datasource i have to give i mean to say that if i run setup in any system then that database …

Software Development vb.net
Member Avatar for PirateTUX
0
134
Member Avatar for RayvenHawk

I have an assignment that needs me to read in a file that is a source code in a .txt file. Then read in a file listing c++ keywords. Examine the first file for those keywords and convert them to lowercase and export the new file into a .cpp file. …

Software Development c++
Member Avatar for RayvenHawk
0
91
Member Avatar for dulahdaglace

i want to read to a 2d-array from a file, but for some reason the file is not opening (at least thats what the output says) [code=cplusplus] #include <fstream> #include<string> #include <iostream> using namespace std; int main(){ string filename; cout<<"Please type the name of the file"; cin>>filename; fstream file(filename.c_str());//same result …

Software Development c++
Member Avatar for dulahdaglace
0
244
Member Avatar for want_to_code

[code=c] // a code which prints "hello world" #include<stdio.h> int main() { (&printf)("hello world"); return 0; } why does the above code work? #include<stdio.h> int main() { char str1[]="hello"; int j=762; char str2[]="hello"; if(str1==str2) printf("true %d\n",--j); else printf("\nfalse %d\n",j--); return 0; } [/code] //the above code prints "false 762", why? …

Software Development c
Member Avatar for Nick Evan
0
299
Member Avatar for Clockowl

Hey guys, How do you handle exceptions in your programs? For instance, I have this function: [code=cpp]bool load_file(const char *filepath, std::string &dest) throw (std::bad_alloc, std::runtime_error) { using namespace std; ifstream file; file.open(filepath, ios::binary); if (!file.good()) { throw runtime_error("Couldn't open the file"); } //get filesize in bytes from ifstream //seek end, …

Software Development c++ ios
Member Avatar for Clockowl
0
108
Member Avatar for shers

Hi, I am working on VB.Net. I have a sub form with a datagridview, that is being loaded with the criteria taken from another form. Hence this form is called with parameters. Here is the code that calls the sub form. [CODE] Dim frmHis As New frmHist(ds, rb) frmHis.Show()[/CODE] where …

Software Development dataset vb.net
Member Avatar for Ramy Mahrous
0
213
Member Avatar for neutralfox

Hello, I have just finished writing the code for my FTP application but according to my code, everything should work fine. But when I run my application, the file is not transfer to the server. Can someone please check where I am going wrong. I am sending the code as …

Software Development client-server java
Member Avatar for neutralfox
0
92
Member Avatar for neutralfox

Hello everyone, Actually I want to learn more about thread, can we have more than one "run" for thread in a program ? [code] package ignisftpv20; import javax.swing.JFileChooser; import java.io.*; import java.net.*; import javax.swing.JOptionPane; public class FTPClient extends javax.swing.JFrame implements Runnable { JFileChooser fileChooser = new JFileChooser(); File fileUpload; ObjectInputStream …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
264
Member Avatar for neutralfox

Hello everyone, I just fall on an article on design patterns. They said that if you want to become a good programmer, you must follow design patterns. But till now I have never follow these patterns. I don't even know how to use design patterns, they said that there are …

Software Development java
Member Avatar for neutralfox
0
102
Member Avatar for docesam

i want to start programming a new program (electronic health care center) in python and before start learning python i wanna make sure that python does have all the features i need to accomblish this project so i wanna ask you does python able to support these features : 1- …

Software Development python
Member Avatar for Mearah
0
168

The End.