43,549 Solved Topics
Remove Filter ![]() | |
Greetings, I'm currently engulfing myself into game programming, and so far I've made a pretty stable library for a 2D-side scrolling shooter. Note that I'm not posting this in the game development due to my issue being more general than game-specific. What I'm experiencing trouble with, is upon deleting an … | |
I am using Visual Studio 2010 Express Edition, and I am developing a basic game application. It involves a New Game button that is clearly named "NewGame" in 'Form1.cs'. But when I use this code: [CODE]NewGame.Click += new EventHandler(newGame);[/CODE] in 'Program.cs' I get the error message "Error 1 - The … Software Development visual-basic visual-studio | |
I'm making my first program that is using threads...the problem is that when I click the button that I created in windows form it never goes to the button click event in the debuger!!! I've read that that those threads should be background so i made like this [CODE]Thread sendcon … Software Development | |
Hi i have a dataset already created (which may consist of many tables) now i would liek to fill the datagrid view from it. BY CODE how can i do so? Software Development dataset | |
Hi, after making some adjustmens to my code as recommended, I get those discard qualifiers errors.. [CODE] //pentathlete.h #include <iostream> using namespace std; template < class T > class pentathlete { protected : T comp_res [ 5 ] ; public : T sum_res ; pentathlete ( ) { for ( … Software Development c++ | |
My assignment is to write a golf program that tallies the scores and prints out names and final scores in this format: Player4:21, Player2:33 etc etc. My question is can you use the range function to assign input to the proper variable name in Python 2.7. Here's what I have … Software Development python | |
Hi, I've written a code to count vowels and consonants. But it hangs and doesn't do anything when a function call is made or even before that at get statement. When I try to get a string from user to pass to the function to count vowels or consonants. Here … | |
Ok, so ive had this really annoying problem with Visual C++. It bugs me because it doesnt make any logical sense. something i guess we need to program. Anyway, Visual C++ reckons that the datatype "string" isnt defined, even though it is in the included library string. If i right … Software Development c++ | |
Hi guys! In my makefile I have line - [CODE]gcc -Wall parent.c errmsg.o -o parent[/CODE] What does it mean "Wall" here ? big thanks in advance) Software Development shell-scripting | |
hi, please help me to do this. i have problem in vb.net window base application. i want to block TAB key from the keyboard. please give me API code or any useful hint to do that. thanks in advance. jack parsana. | |
Hello, can you help me please, how can be my newly added data to be selected in my listview after i clicked my Add button.Please help me. Thank you in advance hoping for your positive response. here is my code. [CODE] Private Sub cmdadd_Click() Dim Objlist as ListItem sql = … Software Development listview visual-basic | |
Hi. I just want to ask if it is possible to create a function that accepts an expression into its arguments. Just like what IIF do. Ex: [CODE]Dim strResponse as String = IIF(Msgbox("Select Yes or No", vbYesNo) = vbYes, "Yes", "No")[/CODE] I forgot the code, but its the thought that … Software Development vb.net visual-basic | |
Dear Sir/Madam, I have a small programe developed in VB 6.0 and database MS Access. Where user can insert their only name & address and can retrieve the existing records. Just for test, I have kept this programe (.exe file and database file) in the share document of a computer … Software Development visual-basic | |
Im creating a desktop application in Visual Basic 6.0 and im having trouble getting the data from datagrid. Im used to using DataGridView commands in Visual Basic .Net but its not available in VB6. I already tried using datagrid1.textmatrix but its not available for the datagrid controls. I think .textmatrix … Software Development visual-basic | |
I have a data file which includes an employee name, hours worked, salary and age. I have to manipulate this data: Print out the data as it is read in. Compute overtime(over 40 hours) Compute tax paid per employee using a specific formula. Sort the list by name. And a … Software Development c++ data-structure | |
I'm having trouble overloading the operator< for a class that I want to use as a key for an stl map. It works fine for a comparison test, but when I try to use the std::map.find() function I get an error: [I]binary '<' : no operator found which takes a … Software Development c++ | |
Okay, so I have a rather easy problem that I can't seem to figure out. I'm getting cannot find symbol errors for T item=(T)input.next(); The program is a test file for a Binary Tree program. I was told the input 'item' has to be in T type. Obviously they have … Software Development data-structure java | |
Hi, I am working with [B]python2.4 on windows[/B], and want pysnmp to be imported. Have downloaded [B]pysnmp-4.1.14a.tar.gz[/B] and [B]pyasn1-0.0.12a.tar.gz[/B] and put it under [B]D:\Python24\Lib\site-packages\[/B]. Still i am getting the import error. from pysnmp.entity.rfc3413.oneliner import cmdgen ImportError: No module named pysnmp.entity.rfc3413.oneliner What should I do to make pysnmp importable? | |
I am testing a program in C++ Templates (from the Deitel Textook) and I have the typical three files: Array.h: [CODE]// Exercise 14.7 Solution: Array.h // Class template Array definition. #ifndef ARRAY1_H #define ARRAY1_H #include <iostream> using namespace std; template < typename elementType, int numberOfElements > class Array { public: … Software Development c++ | |
Apologies if this question has been asked before, but all other threads are so old that it was advised to start a new thread. As the title suggest, i'm having trouble linking files in Code::Blocks(Linux OS). I had the same problems back when i was using Windows. Error message is … Software Development c | |
I have this Code written but I am having problems with the While loop I need it to recognize if the password has less then 5 characters and if there are spaces. I just cannot get it working for the spaces. Can anyone help?? [CODE]#include <iostream> #include <vector> #include <string> … | |
Hello, I need to random generate some values in c++. I know that I can use rand() but I need to generate values with the following condition: the generated values must be equal to 2^n (0, 2, 4, 8, ...). Is that possible? Kind regards, M. Software Development c++ | |
| |
Hello all. I am trying to write a short little game, mainly to boost my knowledge of classes and objects, and of course I am starting to encounter problems. I have several classes for different types of creatures in this game. Most of them take the form of: [CODE] class … | |
After reading a reply to a post regarding importing modules, help("modules") was suggested as a means to display what is currently available. I tried it and got errors after only performing a basic install of Python 2.7 and Python for Windows. Can these be repaired [see attached] Software Development python | |
Hi, i'm having a problem trying to print out a list of strings. i can get them to print out using rectangles successfully but when the bottom of the page is reached it wont go onto the next page, instead it just stops printing. I've done this so far which … Software Development c# | |
Need some help with this one. Is it possible to define a class constructor in an interface? I need to ensure that any classes that use a specific interface all have at least one constructor with specific parameters. Is there a different option that can yield the same outcome? Software Development | |
I'm tired, so the answer to this might be obvious but I cannot figure out what is going on. I uploaded the code plus input file. When I ran the code here's what I got: [code] What do you want to do? -1 -- quit 1 -- add object 2 … Software Development file-system java | |
Hi, i have a datagridview where i create new rows and give the name of the header myself eg: table 1 table 2 table 3 As you know the datagridview has the column headers and the rows.. The attachment with this thread has a red circle where i would like … Software Development | |
hello there, i have a problem, it might be trivial but i cannot for the life of me understandw what is causing it. so i have a numeric updown and based on the value, it loops and creates as many txtboxes as the value in hte numupdown. and then i … Software Development | |
Hey all:) I'm learning Java and I'm having a little trouble on a polymorphic write-to-file function. Let me quickly explain my project: I have an abstract class Mammal, with non-abstract children Horse, Cow etc. I have a Main program that creates a couple Horses and Cows, and store these in … | |
hi, i am doing a hotel reservation system and i don't know how to get the rooms available ! can some one help pls ? i have these tables: [ICODE][B][U][COLOR="Red"]tblRoom[/COLOR][/U][/B] ID--int RoomNo--int RoomType--int BedType--varchar(25) RatePerNight--money MaxNoOfPersons--int [COLOR="red"][B][U]tblReservation[/U][/B][/COLOR] ID--int GuestID--int DateOfReservation--datetime NoOfPersons--int RoomID--int ArrivalDate--datetime DepartureDate--datetime TotalCost--money CheckIn--bit (-this is set to … Software Development sql | |
I have trhe following code which prints the datagridview.. now i want to print a [COLOR="Green"]label and a textbox [/COLOR]under the datagridview.. how can i do so? [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Collections; namespace ResturantBookingSystem { public partial … Software Development | |
Hello I'm trying to draw a line graph on a form but I'm now very much stuck. I'm trying to read in the data from a txt file into an array and then plot the graph using the points collected from the file. This is the contents of the file … Software Development | |
In the book C Primer Plus, Fifth Edition, in Chapter 10. Arrays and Pointers: C guarantees that, given an array, a pointer to any array element, or to the position after the last element, is a valid pointer. But the effect of incrementing or decrementing a pointer beyond these limits … Software Development c | |
Hi, Im trying to compare an inputted string to an array of string. If the inputted matches one of the array of string it should return 0, but if not it should return 1. Any suggestion on how to do this? This is my program: [CODE]{ for ( int j=0; … Software Development c++ | |
All things equal, does an object of a class which has methods take up more memory resources than an instance of a class without methods. What if it is a vector of such objects? For example: [CODE] class A{ public: void DoSomething(); void DoSomethingelse(); private: int x, y; }; class … Software Development c++ motherboards-cpu-ram | |
Hi Guys, I have some problems in spiting a composite cell value and adding them into a list box.Can you please let me know how i can do it? I have a code like below which is suppose to return a Primary Key cell value.the code works fine and return … Software Development | |
Hi, i have some issues with class inheritance and i do not know how to solve it, maybe someone could help me with that ? [CODE] //pentathlete.h #include <iostream> using namespace std; template < class T > class pentathlete { protected : T comp_res [ 5 ] ; /*private: int … | |
Hi how do i merge all columns in one row in a datagridview and enter some text in it pls? Software Development | |
I am working on a perl code that reads in a file with various information (example: ID, value A, value B, value C..Value Z) The file values are separated by tabs. I want to only extract the first 3 columns (ID, value A, value B) and output it to another … Software Development perl | |
Hello everyone, I am using [CODE]ExecuteNonQuery()[/CODE] to execute a SQL command that inserts data into a SQL Server 2005 Database. I want to return the number of rows affected. I've read that this method returns the value, but I can't figure out how to access it. Help is very much … Software Development sql windows-server | |
I'm working on a program that's supposed to generate a 40 character random string of uppercase letters A-Z, then generate a random replacement string of random uppercase letters A-Z of length between 2 and 20. It displays the 40 character string, but when I enter the length of the replacement … Software Development c | |
Hello I have a txt file with multiple values in six different columns. What I need to do is get each column of data and place them into individual arrays for later use. Also once I have the data I need to convert the arrays into integers. This is the … Software Development | |
hi, im working on a small project on access 2007, i have a form that contains multiple textboxes ,and a save button. these textboxes are related to tables, so what i need is a code for that button to save the records in the textboxes in the tables and then … Software Development microsoft-access visual-basic | |
Hi, I was implementing the Exampler / Prototype pattern just to brush up on C++. Couldn't figure out how to do the cleanup at the end. Problem is deleting all the prototypes from the map in base class at the end. I.e. deleting all stored pointers in [ICODE]Animal::examplesPtr[/ICODE], which is … | |
I'm trying to use a variable as a case condition, however it seems you cannot, as the error I get is "constant expected" I'm wondering if there is a way to work around this limitation? my variable is a string. Software Development | |
Hi alls, since 2 week i'm stuck to do this thing. Actually i need to display image from oracle database into the picturebox. My oracle database got table name "STAFF_PHOTO" and the column of photo is "PICTURE". The image already converted into ByteArray. I'm already make a connection and success … | |
I want generate auto number format like year/month/4digit number eg:11/04/0001 2. I want read the database find last number and let number auto + 1 to generate new number Software Development |
The End.