43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lardshow

i know i'm now loosing the plot over this so any rapid help will be appreciated! i have to write a method which calculates the average from numbers contained in a list, when i try and run the code i get the error message: Semantic error: Cannot reach instance method: …

Software Development java
Member Avatar for lardshow
0
552
Member Avatar for DAWNIE

Hi, I'm currently doing a sch proj. I would like to know how do I add points to the checkboxes and how do I add the checked boxes up to get the overall points? Below I have an attachment on roughly how I wan it to works in case my …

Software Development vb.net
Member Avatar for Teme64
0
323
Member Avatar for lqdo

Hi, I want to load an image from the code-behind. I have the path of this image ("C:\somedironwebserver\somefileonwebserver.jpg") and i need to get the url ([url]http://www.mysite/somefileonwebserver.jpg)[/url]. Currently I am combining strings to get get this URL but i think there must be a better way. google didn't realy helped me. …

Software Development
Member Avatar for kvprajapati
0
304
Member Avatar for nschessnerd

Hey, I need help keeping a http connection alive. I have used setsockopt to set keepalive to 1, and in the http packet i set keep-alive to 300, but the server replies with: [code] Connection: close[/code] my packet looks like [code=cplusplus] string buffer2="POST "+P.path+" HTTP/1.0\r\nHost: "+P.httpUrl+"\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows …

Software Development c++ windows-server xml
0
94
Member Avatar for dmanw100

Hello, I am trying to do something very simple but my dial up connection is making it hard to research so I'd like some help! I'm trying to store instances of classes I created in a file. Something along these lines: [CODE] class apple { int flavor; String color; apple(int …

Software Development apple java
Member Avatar for dmanw100
0
111
Member Avatar for jabbaro

Hi I am doing a project to read the output of an instrument and store in excel sheet. I have succesfully read the data thru mscomm1 and am able to show it in a text box. The data from serial it read from 3 second in 3 second using a …

Software Development visual-basic
Member Avatar for jann353
0
149
Member Avatar for tformed

I keep on getting the following error, I've tried modifying the constructor, but I can't get it to work. "C:\Users\Documents\NetBeansProjects\Assignment-1\src\Bank.java:34: cannot find symbol symbol : constructor Customer(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) location: class Customer Customer customer = new Customer(last, first, street, city, state, z, acctNum); 1 error BUILD FAILED (total time: 0 seconds) " …

Software Development java java-swing
Member Avatar for tformed
0
240
Member Avatar for abu taher

I attach a file. In this file I make a querie. all the (data) field of both tabel show in the querie. I want all data will add up in querie. I mean a calculate field. like : (200,200,300) this amount was in both table. in querie it will show …

Software Development visual-basic
Member Avatar for abu taher
0
80
Member Avatar for tomtetlaw

When I run this, my charactor won't move, i don't get any errors, he just doesn't move. I've been trying to fix this for ages to no avail, heres my code: [code=python]import pygame pygame.init() class Player: def __init__(self, speed, image): self.move_speed = speed ##self.x = 640/2 ##self.y = 480/2 self.speed …

Software Development python
Member Avatar for slate
0
298
Member Avatar for lardshow

i'm trying to call a method from a different class and i just cant get it to work.... code from method displayTutorGroup(): [code] /** * Displays the names and marks for the students * in the tutor group in the Display Pane */ public void displayTutorGroup() { for (String name: …

Software Development java
Member Avatar for lardshow
0
92
Member Avatar for ajay_p5

Dear people I have been trying to fetch some data from the web. For this I am using the LWP:: Simple module. The problem is that I have been trying to pass a value to the URL in get function. here is my code: use LWP:: Simple; $iq= 'all_proteins.data'; $id= …

Software Development perl
Member Avatar for ajay_p5
0
150
Member Avatar for bigtreeworld

Hi there... How can you stop IE from opening up in a WebBrowser control on a new window (target=_blank")? I've gotten the WebBrowser_NewWindow thig and tried e.Cancel and CancelEventArgs and none of these work. What do I do? By THe way, I'm using VB Express 2008 Please help me! This …

Software Development vb.net
Member Avatar for bigtreeworld
0
1K
Member Avatar for abhinav.sharma

So, Python 2.6.2 is supposed to have the following JSON module: [url]http://docs.python.org/library/json.html[/url] I have the standard MacPython 2.6.2, but the attributes of my JSON library are different, can someone help me fix this? Here's mine: [url=http://img30.imageshack.us/my.php?image=picture1axb.png][img=http://img30.imageshack.us/img30/481/picture1axb.th.png][/url]

Software Development json python
Member Avatar for abhinav.sharma
0
139
Member Avatar for zack.walters

I am working on this project for a class. I have input the students last name, first name, student ID and three test scores. I have to make the first step a function that stores the data into an array. Inside this array it is also going to give the …

Software Development c++
Member Avatar for yun
0
148
Member Avatar for lqdo

Hey, I'm creating a web application with the use of a ObjectDataSource. When I try to run the webapp i get the following error: [CODE] The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found. [InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' …

Software Development web-server
Member Avatar for lqdo
0
937
Member Avatar for RobinTheHood

Hi all, I’m trying to re-write a solution from Ms. Access to VB.Net Previously I had a number of queries that filtered records depending on what value of a filed on my main menu, if the filter was empty (Null) than all records were returned. Here’s the criteria part of …

Software Development microsoft-access vb.net
Member Avatar for RobinTheHood
0
160
Member Avatar for free_eagle

Hello, I am starting out with learning C# language. Recently, I bought a book "VISUAL C# 2005, How to Program by Deitel". Later I found that there is 2008 version of C#. Would you please tell me what is the difference between these two versions of the language? Is it …

Software Development c c# c++
Member Avatar for jjoensuu
0
303
Member Avatar for InVerteBrain

I have a problem with VB.Net: Having a section of Text Boxes that I need to enable and disable by command buttons. The names are: txtBx1, txtBx2… and so on. Attempting to loop through those with the assignments to en- or disable failed. VB.Net does not recognize the names when …

Software Development vb.net
Member Avatar for Teme64
0
92
Member Avatar for tomtetlaw

When I run this code, the window opens, and i can click on the X button and it quits normally, but my image doesn't show up, heres my code: [code=python]import pygame class Player: def __init__(self, speed, image): self.move_speed = speed self.x = 0 self.y = 0 self.speed = [0,0] self.image …

Software Development python
Member Avatar for slate
0
137
Member Avatar for newbie_newbie

Maybe it's a really basic question..... ..but why does this NOT work? Respectively what options do I have to get this working? g++ reports: expected constructor, destructor, or type conversion before ... (I marked the line below in which the error occured.) Your help is very appreciated! Thanks! [code=c++] #ifndef …

Software Development c++
Member Avatar for newbie_newbie
0
148
Member Avatar for JamesKox

I'm was wondering if someone can check if this method produce the right result? [CODE] public int fileSize (String name) throws IOException { int charLength = 0; File file = new File("name"); Scanner input = new Scanner(file); while (input.hasNext()) { charLength++; } return charLength; }[/CODE] What this is supposed to …

Software Development java
Member Avatar for JamesKox
0
260
Member Avatar for cwarn23

Hi, I have been trying to get the Jsapi (Java Speech API) embeded into my web applet but have had quite a few troubles. The script for the Jsapi from what I can see was designed for .Jav files where as I am trying to make a .class file. So …

Software Development api audio java java-netbeans web-browser
Member Avatar for cwarn23
0
191
Member Avatar for gabec94

for those of you not familiar with the rules they can be found [URL="en.wikipedia.org/wiki/Conway's_Game_of_Life"]here[/URL]: i am sort of new to java and i am trying to write the game of life, i have got the board made and how to randomly assign each cell a true or false (living or …

Software Development java
Member Avatar for gabec94
0
5K
Member Avatar for lolwtf

I created a program in VB to send text messages to cell phones a while back but never got it to work. I using my friends mail server(I had to block out the username and password when posting the code below, but his server works) to relay the message. Here …

Software Development vb.net
Member Avatar for lolwtf
0
138
Member Avatar for edogg23

Hello. I am a beginner to programming. I would like to use a form to populate my sql database. Can somebody tell me where to find information on doing this? I have my database and I'm able to display the information from from the database but I don't know how …

Software Development sql vb.net
Member Avatar for jbisono
0
110
Member Avatar for serkan sendur

Note : this is not a question but a snippet(i dont prefer to post to snippet section as it is not much useful) Form1.Designer.cs : [CODE]namespace GrabDeviceInfo { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up …

Software Development microsoft-windows
Member Avatar for serkan sendur
0
107
Member Avatar for jephthah

im going to risk getting a beating, because this is something i should (used to?) know... anyhoo, given a function, how do you tell the size of the array that is passed? obviously trying to find the sizeof the pointer doesn't work (it returns the size of the pointer, duh) …

Software Development c
Member Avatar for nalply
0
513
Member Avatar for kiddo39

How can I write a loop using letters instead of numbers so it looks like this: 2 sets used 'a-z' and 'A-Z' aaaaa aaaaA aaaAa aaAaa and so on: aaaAA then on to b: bbbbb bbbbA I can do it with numbers, something like this: [code] for i in range(10): …

Software Development python
Member Avatar for kiddo39
0
4K
Member Avatar for ashishchoure

Hi, I have PCRE library for window 32 bit . I want it for window64 bit From where can i get this? I have source code also and i built it on 64 bit machine but created library is not supporting.

Software Development c++
Member Avatar for ashishchoure
0
189
Member Avatar for hughesadam_87

Hey fellas, I have searched for this answer for about an hour on and off and cannot find anything so sorry to have to resort to posting. I have a list [a, b, c, d] And I want to write it to a simple output file, but I want it …

Software Development python
Member Avatar for jlm699
0
141
Member Avatar for tayspen

Ok so i want my program to read a text file to a certain point. Lets say to the line line that says fn: i then want it to read the one line only and only the the text after fn: and i want it to shoew that text in …

Software Development
Member Avatar for jaiprakashv
0
618
Member Avatar for aot

Okay, so I'm thinking of taking the plunge into wxPython. But it's especially important to me to know if wxPython can do the following things easily and well: 1) Display a vertical array of radio buttons (or perhaps any buttons will do). They must have no labels, and I need …

Software Development python tkinter
Member Avatar for aot
0
255
Member Avatar for sanushks

Hi All, Currently i'm using `sprintf` to copy from pointer variable to a character array. `sprintf(length,"%.*s",(int)len,part1);` where part1 is a pointer to a character array.. length is a characteter array too. Is there a way i can do the above thingy to copy the part1 to a integer variable? Thanks …

Software Development c
Member Avatar for sanushks
0
160
Member Avatar for serkan sendur

hi i have to create two programs for the same project; live and test respectively. everything for these two will be the same except for the product names and shortcut names on user's programs menu. And also i need to set setup project's removepreviousversions property to true. What i did …

Software Development
Member Avatar for kvprajapati
0
115
Member Avatar for kvprajapati

I have difficulties to implement variable length argument to my C function.

Software Development c
Member Avatar for kvprajapati
0
171
Member Avatar for serkan sendur

hi guys, i want to be able to pass command line parameters from setup.exe to setup.msi. is that possible?

Software Development
Member Avatar for kvprajapati
0
115
Member Avatar for kvprajapati

I am confused about static class and nested class. Is there any difference to code and use of static & nested class?.

Software Development java
Member Avatar for JamesCherrill
0
169
Member Avatar for Poab9200

Hello I made the following program for someone on this site that had requested the game. I didn't have a problem making it. During some tests I conducted I ran into a problem, at least what had seemed like a problem. Player 1 will win on average 90-96% of the …

Software Development c c# c++
0
73
Member Avatar for JamesKox

Hello guys, I'm trying to create a method where it takes a InputStream as a parameter, reads the stream and returns the number of characters it contains as an int. I'm having difficulties with this. I've searched the internet for examples, but i can't find one that helps me with …

Software Development java
Member Avatar for kvprajapati
0
2K
Member Avatar for Slacker101

[code]class theGame { private: void question1();//You awake void question2();//Go find a sword void question3();//Go find armor void question4();//Find dragon void question5();//Kill dragon char answer1; char answer2; char answer3; char answer4; char answer5; public: void showQuestion(); void enterAnswer(); }; void theGame::showQuestion() { void question1(); void questoin2(); void question3(); void question4(); void …

Software Development c++
Member Avatar for Stinomus
0
171
Member Avatar for Daria Shmaria

Is there a way to convert from const char * to char * without casting away the const? I was warned that it could be dangerous and cause crashes (which I would agree with, since when I ran my program with const_cast, it caused a segmentation fault). Alternatively, is there …

Software Development c++
Member Avatar for Daria Shmaria
0
30K
Member Avatar for mohankumar554

hi, how to get the database values into drop down box in python... how to configure the dropdown box....

Software Development python
Member Avatar for vegaseat
0
168
Member Avatar for javaAddict

Hi everybody, I have found these books [URL="http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134/ref=sr_1_1?ie=UTF8&s=books&qid=1242936833&sr=1-1"]Learning OpenCV: Computer Vision with the OpenCV Library[/URL] from [B]AMAZON[/B] and this: [URL="http://www.papasotiriou.gr/product.ebook.asp?pfid=1761941&prid=1016178"]Learning OpenCV[/URL] from my [B]LOCAL[/B] store Which one do you suggest to buy? Should I wait and order the first one? OR is the second at my local store as good …

Software Development c computer-vision
Member Avatar for jephthah
0
101
Member Avatar for Lukezzz

I am writing 1 line to a file and close the file. Then after a few seconds the file will be open and written to again but then when using the code the string is overwritten. What I want to do is to continue write on next line. I am …

Software Development c++
Member Avatar for Lukezzz
0
90
Member Avatar for efficacious

Hi everyone, Major C# newb here. I literally just started learning the language a few days ago.. I've been using just a txt editor and console to compile. I've gone through a beginner tutorial and I feel like I pretty much understand syntax. But now I'm trying to get a …

Software Development gui
Member Avatar for ddanbe
0
141
Member Avatar for johnnydarten

I am a C++ beginner and I am trying to write a code about an application for dynamic allocation in memory which uses chained hash tables to implement some data about persons iam using a no as a key and a name as my data I defined the class tables …

Software Development c++
Member Avatar for johnnydarten
0
111
Member Avatar for hughesadam_87

Hey guys, I'm new to python so if this is a silly question, pardon me. I have the following basic assignment: Take a user-specified range of lines from some data file, call it input, and write them to an output data file. What I want to do is have the …

Software Development python
Member Avatar for The_Kernel
0
140
Member Avatar for serkan sendur

hi guys, i want to integrate UILEVEL property of windows installer to MSI package. i use orca to modify .msi file, i created a new row in property table and set property to UILEVEl and set value to 2 but it didnt seem to change anything. do you know how …

Software Development
0
81
Member Avatar for flash121

I want to read a jpg image from a file to an Image object and then paint it on my JPanel, but the image doesn't appear.I've tried drawing some other stuff on the panel (like lines etc.) and everything appeared without any problems. My code: This class represents my JPanel: …

Software Development image java
Member Avatar for flash121
0
178
Member Avatar for kenji

I bought a bunch a cheap books on Python and am wondering whether I should read them as Python 3 introduced changes to the language and so to speak broke old code as far as I can tell. I am reading Programing in Python 3, and after that I was …

Software Development first-post python
Member Avatar for kenji
0
135

The End.