43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Admiral Pimms

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 …

Software Development c++ perl
Member Avatar for Admiral Pimms
0
430
Member Avatar for jmurph333

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
Member Avatar for jmurph333
0
2K
Member Avatar for kadamora

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
Member Avatar for kadamora
0
175
Member Avatar for xanawa

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
Member Avatar for xanawa
0
105
Member Avatar for n0de

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++
Member Avatar for n0de
0
1K
Member Avatar for tigerra80

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
Member Avatar for sneekula
0
2K
Member Avatar for shazzy99

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 …

Software Development c c# c++
Member Avatar for shazzy99
0
143
Member Avatar for missc

i made a form that consists of labels !! this form is like an invoice .. all labels and lists contains the items and its const and at the end the total cost .. now i have a print button, and i would like to print the contents of the …

Software Development
Member Avatar for missc
0
113
Member Avatar for lexusdominus

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++
Member Avatar for lexusdominus
0
126
Member Avatar for vedro-compota

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
Member Avatar for vedro-compota
0
109
Member Avatar for jackparsana

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.

Software Development api vb.net
Member Avatar for pankeel
0
150
Member Avatar for jemz

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
Member Avatar for Jx_Man
0
693
Member Avatar for michaelzip

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
Member Avatar for michaelzip
0
173
Member Avatar for P.manidas

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
Member Avatar for debasisdas
0
548
Member Avatar for romz

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
Member Avatar for romz
0
5K
Member Avatar for cafegeo

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
Member Avatar for cafegeo
0
3K
Member Avatar for Jsplinter

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++
Member Avatar for mike_2000_17
0
2K
Member Avatar for Iamthecheese

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
Member Avatar for Ezzaral
0
2K
Member Avatar for novice20

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?

Software Development ide python
Member Avatar for snippsat
0
2K
Member Avatar for sciprog1

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++
Member Avatar for sciprog1
0
148
Member Avatar for Anark10n

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
Member Avatar for Anark10n
0
2K
Member Avatar for jswain323058

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> …

Software Development c c# c++
Member Avatar for jswain323058
0
91
Member Avatar for miskeen

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++
Member Avatar for vijayan121
0
227
Member Avatar for gayansameera

What are the all possible function signatures of C.

Software Development c
Member Avatar for gayansameera
0
103
Member Avatar for karlamadeus

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 …

Software Development oop python
Member Avatar for griswolf
0
229
Member Avatar for stan_l

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
Member Avatar for snippsat
0
489
Member Avatar for ChrisHunter

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#
Member Avatar for ChrisHunter
0
950
Member Avatar for zachattack05

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
Member Avatar for zachattack05
0
63
Member Avatar for dancks

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
Member Avatar for dancks
0
159
Member Avatar for xanawa

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
Member Avatar for xanawa
0
138
Member Avatar for Hellborg

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
Member Avatar for Mitja Bonca
0
209
Member Avatar for lacoffo

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 …

Software Development java oop
Member Avatar for lacoffo
0
261
Member Avatar for missc

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
Member Avatar for missc
0
3K
Member Avatar for xanawa

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
Member Avatar for xanawa
0
178
Member Avatar for moose333

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
Member Avatar for ddanbe
0
698
Member Avatar for Markmit

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
Member Avatar for yashsaxena
0
887
Member Avatar for Tinee

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++
Member Avatar for Tinee
0
252
Member Avatar for Jsplinter

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
Member Avatar for mike_2000_17
0
139
Member Avatar for Behseini

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
Member Avatar for Behseini
0
214
Member Avatar for n0de

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 …

Software Development c++ oop
Member Avatar for n0de
0
161
Member Avatar for xanawa

Hi how do i merge all columns in one row in a datagridview and enter some text in it pls?

Software Development
Member Avatar for xanawa
0
106
Member Avatar for whoadiz

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
Member Avatar for whoadiz
0
83
Member Avatar for TheJohnSpecko

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
Member Avatar for Mitja Bonca
0
184
Member Avatar for wdearth

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
Member Avatar for arjunpk
0
164
Member Avatar for moose333

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
Member Avatar for moose333
0
424
Member Avatar for deadelgabar

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
Member Avatar for deadelgabar
1
222
Member Avatar for thekashyap

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 …

Software Development algorithm c++
Member Avatar for thekashyap
0
104
Member Avatar for Suzie999

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
Member Avatar for Suzie999
0
66
Member Avatar for kerek2

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 …

Software Development image oracle vb.net
Member Avatar for abcd.xyz
0
3K
Member Avatar for lianpiau

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
Member Avatar for lianpiau
0
2K

The End.