132,726 Archived Topics
Remove Filter ![]() | |
Hello everyone! So I am still coding this game and every time I make progress somewhere I take a step back somewhere else. I know that it is late but I am re-writing from scratch. Anyway, the basic concept of how I am doing this now is as follows: I … Software Development c++ | |
Hi, Can somebody please advice me on raising/throwing custom exceptions? Here is what I'm trying to do. [CODE] //MainFunction() will call SubFunction() to perform some ADO function. MainFunction() { try { SubFunction() //OtherFunction1 //OtherFunction2 } catch(...) { //to catch custom exceptions raised by me in SubFunction() so that it will … Software Development c++ | |
Hi, I'm new to Python, and although I've quite some programming experience, I wasn't able to find an answer for this problem: As a first project, I am trying to create a small text game. All is going well (since it's very basic), except for my inventory system. At the … Software Development python | |
Guys, I could really use some direction in getting this console program working for a C++ assignment. I'm in my 8th week and although I've been doing good on past projects, this is a multiple file assignment and I'm confusing myself the more I try to understand. I feel like … Software Development c++ | |
Hello everyone, I have searched for this high and low but could not find a solution. To elaborate on the heading. I am trying to figure out a way to do this: 1. I have a text file with one line paths and file listing in it, for example: [CODE] … Software Development python | |
Hey guys, I want to know how you guys parse html. I'm writing a program to compare products on a website. I already have a system that scrapes the websites. I looked at HTMLParser, I'm a little confused on how to use it, I was thinking about writing my own … | |
Hi fellas..this is my first post here..I am new to this 'hardcore programming' and all..I came across a problem for which I killed some time..with no fruits..It might be simple,trivial or even 'famous' for you guys..Any assistance is appreciated much.So here it goes.. Given an integer,the problem is to find … | |
I have the same problem with multiple joins. Here is the query: Data data = (from scr in entities.SponsoredCharitableReportsSet from company in entities.CompanySet.Where(c => c.ID == scr.CompanyID) from user in entities.UserSet.Where(u => u.MemberID == scr.MemberID) where scr.ID == DetailsID orderby scr.DateRequested, company.CompanyName, user.FullName select new Data { ID = (company … Software Development | |
hey, does anyone know how to handle this exception? please help me [CODE] //Retrieves all the contract numbers from the Contract table public String[] getPhaseNumbers(String TopicNo) { db.openConnection(); String query = @"Select Phase From Topic Where TopicNo = @topicNo"; SqlCommand command = new SqlCommand(query, DB.getConnection()); command.Parameters.Add("@topicNo",SqlDbType.Int).Value = TopicNo; SqlDataAdapter da … Software Development | |
I have this program, is working good but i got error when the rows are full because stop and not keep going...can some one help me please..:) import random class Rack(object): def __init__(self, cols, rows): self.rows = rows self.cols = cols grid = Rack(7,6) def returnStartRack(xLen,yLen, blank): grid = [] … Software Development python | |
yes im kinda new to vb and hoping someone can help me, i'v tried google with no luck. so i am creating a database program using access SQL statements to load the data, everything works perfictly except i cant figur out how to upon first install of the program the … Software Development microsoft-access visual-basic | |
Hi All, I am new in programming, and currently learning from some samples. From a[URL="http://www.c-sharpcorner.com/uploadfile/sthangaraju/tcpclientserverst11182005014316am/tcpclientserverst.aspx"] page[/URL], I tried to implement a TCP client server with the following page in WPF (visual studio 2008) [CODE]using System; using System.Text; using System.Net; using System.Net.Sockets; public class serv { public static void Main() { … Software Development asp.net client-server ipad socket-programming visual-studio | |
Hi, I'm trying to count the number of unique IP addresses present in an apache log file. I am using a text file to store the unique IP addresses as this needs to scale to large numbers of IP addresses (upwards of 100 million) so using a dictionary or any … Software Development apache data-structure python | |
Parking lot simulation This program simulates the operations of a parking lot. This particular parking lot consists of two alleys, each of which is wide enough for only one car and is closed at one end. You must use a Link List. Alley A Alley A is the primary parking … Software Development c++ | |
Hi, I want to left outer join 2 tables called a and b.In the Where clause I want to check properties from both tables i.e like this [CODE] var query = from a in data.A join b in data.B on a.id == b.id where a.marks = 1 && b.archived == … Software Development | |
hi , i have a multiline text box in one form when i write information on it in the run time, it goes on without showing the scroll bar, how can i add the scroll bar controll to the textbox?? this is in C# Any one know the answer?? please … Software Development | |
Hello. Is there someone who might be able to show me how to adjust a insert for a prepared statement sent to a derby embedded db? [code] run: driver name from xml: org.apache.derby.jdbc.EmbeddedDriver in bCreatedTables: created table: createAdminTable created table: createPayeeTable created table: createStudentTable created table: createInstructorTable created table: createBookingTable … | |
I'm trying to make a form with a thermometer painted on it. I want the thermometer to go up each second. I tried the code below and it sorta works, but not really. It does the For... Next loop okay and shows the message box, but then does NOT Exit … Software Development vb.net | |
Is there a safe and legal way to go from a pointer to a member of an object to a pointer to that same object? | |
Hello friends, I've been working on a program that extracts the data from a database, then when I query the database the data is displayed on a listview, and then only the items that are selected are added into another listview(checkbox), now my problem is that i need to calculate … Software Development listview | |
I am trying to use pow(2,a); and I am getting a error 'pow' ambigous call to over load function. I don't understand why, I added the cmath libarary. Here is the code. [CODE] #include <iostream> #include <cmath> using namespace std; int binaryToDec(int); int main() { binaryToDec(1110); return 0; } int … Software Development c++ | |
Hi Everyone, I need help understanding how these traversals work :s [url]http://en.wikipedia.org/wiki/Tree_traversal[/url] On this page they have the code for these tree traversals, but I don't quite get it. For example, printing using the in-order traversal (using the example tree provided on the site) should give: A, B, C, D, … Software Development algorithm c++ first-post | |
hi, i am facing strange behaving of my application. i have developed one simple application, which will fill up some fields in webbrowser control webpage. this webpage has iframes in it. domain of both iframe are same and fields which i am filling with my code is in iframe. but … Software Development visual-basic | |
I have a 480 x 480 Panel in a Form upon which I draw. However, only things I draw in the area between (0,0) and (200, 100) appear. The application records the actions I perform outside this area, but their results do not appear. It seems as if only the … Software Development | |
Okay my syntax highlighter works very well, I only have on problem, Sometimes GetWords() adds "\n" to operatorless although there isn't pressed an enter I think the problem is within the GetWords() function, but I give all functions to be sure.. Main function is OnKeyUp, colorize prints the text colored … Software Development python | |
Hey folks, Probably a stupid error on my part, but I'm having trouble with this. Using ioctl calls to get adapter info on a linux box. I've got it working using a fixed size array (of struct ifreq) but it's not working when I try to use a dynamic array … Software Development c++ | |
Hi Would anyone know if there is a book explaining all the various C++ Libraries and what features they encapsulate? I'm thinking in terms of, for example: iostream -- then a list of features and functions in iostream etc. Could anyone suggest any books or good reference material for this … | |
I am trying to add two matrices and get error when I add two matrices in the line rslt = m1+m2 using operator overloading. Both m1 and m2 are matrix classes. Here is the code: [CODE] int main(int argc,char *argv[]) { matrix * rslt; //matrix *m1 = new matrix(); matrix … Software Development c++ | |
Hello friends. Can anybody tell me how many ways exist to create the instance of class. i know only two ways to create the instance of class. 1. using new operator 2. using Class.forName() can anybody tell me more method. someone told me that there is more than 5 method … Software Development java | |
hi, how the below code is generating out put as " -1 < ( unsigned char ) 1 ". i read in many books saying when we do operation with singed and unsigned value always the resultant will be data type that has more width . i understand that -1 … Software Development c | |
Hi every thanks for taking the time to read my thread. anyway i had an idea of doing a car diagnostic program which would then store results and act as a car library for my final year project but im not sure if this is possible and if it is … Software Development java | |
my assignment is to write a program that asks the user to enter the name of the artist, the name of the art and then how much it is worth. At the end the program should print the average of the values. After that, it wants the program to sort … Software Development python | |
Hello, I'm making a program that can play Bejeweled 2. Everything is working smooth except for a glitch in the movement algorithm. If anyone is really good at making these type of algorithms can you look at this code and/or give me some hints ? This is the core algorithm … | |
Hi, I have got some code that at startup checks for the existence of a file, if it finds the particular file then it opens another form. If it doesn't find the particular file then it shows a messagebox asking whether or not to enter some data, answer YES or … Software Development | |
Hello, Need a litle help with a problem. It is posible to automatically change the value of variables? For example: If i have 2 variables: "a" and "b", and let's say initially "a"= 3 and "b"= "a"+5; If i change "a" = 7, how can i do that "b" automatically … Software Development c++ | |
I have to program Portable Data Terminal(PDT) using C++. Is there any site that gives the details? I could not find. Please help me with code examples bcause I am new to this. Thanks in advance Software Development c++ | |
Gentlemen, Is it possible to initialize the array at the time of creation?? I mean: int *a = new int[10]; // here array is only created. I wanna initialize the same too here itself. Is it possible??? Software Development c++ | |
i am trying to create an interactive program that gives a prompt for the hangman game. there is meant to be a phrase book of about 100 movies. The phrase book is in an attachment. So far what i have done is made a I made a for loop to … Software Development java | |
Hi, I was making a menu bar for my JFrame, which contains a menu item named "Help". I'm wondering how to make F1 a shortcut to that menu item. I thought of using .setAccelorator()., but that didn't seem to work. So can you show me how? Thanks! Software Development java | |
Hello.. I can't even understand this problem since im a stupid beginner. I feel like I'm gonna die.. Please anybody help me.. Implement a “Cash Register” applet as demonstrated below. It should have the following functionality: 1.A section containing 9 buttons in a 3x3 layout where each button corresponds to … Software Development java | |
hey guys. i am having a problem with combo boxes in c++. i am making a very simple game for a subject at uni, in this game you pick up guns and shoot monsters. each gun has attributes; damage range and name. when you pick up a gun it is … | |
Hi My txt file looks something like this: Branch: ltm_7.4 Destination: Test 5 [CODE] lines = open("branch_dest.txt").readlines() lines=[x.split() for x in lines] print lines branch = "%s" % lines[0][1].strip(': ') print branch destination = "%s" % lines[1][2].strip(': ') print destination [/CODE] I need to extract the branch name and the … Software Development python | |
Hi All, I am trying to help my family stop sucking at managing their available funds and have a "true" available amount so they are up to date at all times on their available funds. Is it possible to get the list of pending charges for any given user for … Software Development | |
I'm trying to automatically convert a binary input in a textbox to a hex code in a second textbox. It does work the way I'm trying to, but the order it comes out is wrong, for instance, 1111 = 0F this is correct, but when i now make it : … Software Development | |
i have a ibm java webservice with soap protection username and password needed to give for accesing this webservice .. i need to call this webservice from C# client ... when i call this webservice .its showing this error com.ibm.wsspi.wssecurity.SoapSecurityException: WSEC5048E: One of "SOAP Header" elements required. please help me... … | |
How cand i read from registry this two types? REG_BINARY & REG_MULTI_SZ ? Software Development c++ | |
i'm pretty clueless about everything dealing with python. i need help creating a sorting algorithm that can sort names in a list alphabetically. and example code to help get me started would be much appreciated. Software Development python | |
I want to load a form of project2 on click event of form of project1. how to do this?need answer urgently...... Software Development visual-basic | |
Hi, I have found some code that looks like something I would like to use but am really unsure of where it goes within the form. The code is [URL="http://www.midnightprogrammer.net/post/2009/10/22/ReadWrite-settings-to-INI-File-using-C.aspx"]here[/URL]. It's the first bit of code the [COLOR="Red"]class INIFile[/COLOR] section that I don't know the placement for on my form. … Software Development |
The End.