199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mpike

ok so i've just started using visual c++ for my coding. I'd like to add a sound files to my current project. I've looked up so many ways to do this from allegro to directx and BASS but i cant seem to get anything to work. I've been looking into …

Member Avatar for mpike
0
164
Member Avatar for tubesnube

Hi, myself and two of my friends are creating a game that imitates that of Whack-a-mole. I am trying to implement code so that when I click on the mole with the mouse, the image changes to a different image, eg. the image when just moving the mouse is a …

Member Avatar for tubesnube
0
2K
Member Avatar for jnolan19

I have been trying to figure this out as the instructor is of no help in his teaching. Need to declare variables for the average score and the letter grade. Calculate the average, use IF/ElseIF statements to determine the letter grade, and return the letter grade. The Private Function CalculateGrade …

Member Avatar for codeorder
0
172
Member Avatar for bpatt22

[CODE] class Player(object): def __init__(self): self.points = 0 def add_points(): plyr1.points += 1 plyr2.points += 1 plyr3.points += 1 if __name__ == '__main__': (plyr1, plyr2, plyr3 = (Player(), Player(), Player()) add_points()[/CODE] How could the 3 lines in add_points() be written better/shorter?

Member Avatar for Gribouillis
0
151
Member Avatar for fraijyia

Anyone, please help me to make a program that has something to do with POS in Visual Basic ... Please! Thank you . You can email it at [U][I][B]email removed[/B][/I][/U]

Member Avatar for WaltP
0
2K
Member Avatar for jackmaverick1

In function `_start': undefined reference to `main' what does this mean? I don't have a function _start. and my main.cpp is empty, theres just a few giant source files (500+ lines together) that are never called... Do you see any problems with this that might have something to do with …

Member Avatar for jackmaverick1
0
118
Member Avatar for andimiami

I need to format my BMR output so it has a nice neat appearance with the Headings over each column. In one column it should say BMR and the other Daily Calorie Intake. This is what I have so far: [CODE]/* Program: Harris Benedict Equation * */ # include <fstream> …

Member Avatar for andimiami
0
220
Member Avatar for makman99

I need to create a program that monitors incoming packets to a certain process. Each incoming packet needs to be searched for a string of hex (eg. "FF 00 00 03") and modified to be null (eg. 00 00 00 00). Or, if it's easier, to just completely block the …

Member Avatar for makman99
0
112
Member Avatar for lochnessmonster

I was wanting to try a neat little project while i was bored at work and came up with a CodeInjection class. I understand this class is VERY POORLY DESIGNED. My question is how can i fix this?? what can i do differently to make this class not so tightly …

Member Avatar for mike_2000_17
0
107
Member Avatar for m16piggy

I keep getting this error when I try to Debug my Internet radio player. I don't know why. I used absolutely no advanced settings. Just had the buttons programmed to make a Webbrowser control go to a URL that would play some music. I even tried to just compile and …

Member Avatar for Mike Askew
0
168
Member Avatar for dennysimon

hello all I try to open my datagridview's content in excell the problem is it's change the string value to numeric. so if in datagridview the content is "0001" in excell it become "1"; how to correct this problem ? any help ? thanks denny

Member Avatar for ddanbe
0
95
Member Avatar for chetanbasuray

I would like to draw a curve between any two points using java...I have the points from a calculation result in the program, all I need is a function that helps me to draw a curve, can any one please help me out with dis, m kind of at a …

Member Avatar for chetanbasuray
0
85
Member Avatar for GrexD

I'm not entirely new to xPath. I've programmed with the TreeView control in VB.Net extensively, so I have a very good grasp of the concept of trees, nodes, parent, children, siblings, etc. I've read several tutorials on line about using the XmlDocument class in the .Net Framework. All of these …

Member Avatar for GrexD
0
206
Member Avatar for AmerJamil

im totally new in object oriented progrmng in C++ course, i have to create a table in which i have to answer in yes /no that for example if class can be public so the answer is Y and if class can not be public then answer will be N. …

Member Avatar for AmerJamil
0
96
Member Avatar for Mahkoe

Why use const char* instead of string? I see it all over the place. Personally, I prefer strings.

Member Avatar for mike_2000_17
0
1K
Member Avatar for Na'Vi

I was writing a program and I wasn't sure sure how to do letter b. I have the methods and constructor but I'm not sure how to format the float. 2. Create a class called Item. a. Item will need instance variables itemID, itemName, inStore, and Price (of types String, …

Member Avatar for JamesCherrill
0
115
Member Avatar for nickliutw

I know this is probably seem to be very easy for you guys. I have been trying to figure this out for three hours. The requirement ask me to write a method determine whether an integer is even or not. If it is true, return true. If it is false, …

Member Avatar for nickliutw
0
137
Member Avatar for cleggy1987

hi i am having trouble with resizing can't get id using $(this).attr("id") [CODE] <script type="text/javascript"> $(document).ready(function() { $('.text_wrapper').resizable({ onResize: function(e) { var id = $(this).attr("id"); var parent = $(this).parent(); $('.wrapper').load('modules/web/process-sortable-size.php?height='+ e.data.resizeData.target.css('height') +'&width='+ e.data.resizeData.target.css('width') +'&id='+ id); }, onStop: function(e) { } }); }); </script>[/CODE]

Member Avatar for cleggy1987
0
125
Member Avatar for pikachoo

Hello, Is there any tool or anything that can detect errors related to the usage of not allocated memory? For example the code could look like this: [CODE]... char* myptr1; ... char* myptr2=""; ... strcpy(myptr1, "My text"); ... strcpy(myptr2, mystruct.mystring); ... [/CODE] The main problem is that there are lots …

Member Avatar for L7Sqr
0
79
Member Avatar for ddanbe

The next code from the book "Pro-linq language itegrated query in C# 2008" gives a casting exception error on line 29. I know ToArray returns an array of objects, which are in fact of type Employee so why it generates an error? [CODE=C#]public class Employee { public int id; public …

Member Avatar for ddanbe
0
143
Member Avatar for srikanth2321

Hi, I was just wondering what might be the path to load jar file from c sharp project folder. Currently the path I'm using is String strJarFilePath1 = "C:\\Users\\xxxx\\Downloads\\ss\\ss.jar"; which works perfectly If I place this ss.jar in project folder by the name WindowsFormsApplication1 what might be the path? I …

Member Avatar for srikanth2321
0
212
Member Avatar for hket89

Write a program for the following problem. An instructor needs a program that accepts a student identification number and three test scores, test1, test2, and final_test as input, and determines and outputs for each student the semester average and the final letter grade according to the following scheme: SEMESTER AVERAGE …

Member Avatar for dani_277
0
270
Member Avatar for lamanne

eish am strugling with this binary tree.huffman code and i ave an assignment,have a look on that You are given a text file. Any printable character, including digits and punctuation can be present in the file. Newlines and blank spaces can be present as well. Your job is to write …

Member Avatar for lamanne
0
312
Member Avatar for vb2learn

Hello Guyz Need some more help now. This is my GUI [img]http://screensnapr.com/e/AuJ8Ka.png[/img] Suppose i have this written in textbox1 [CODE] vb.net gettext leaning daniweb.com 2 learn vb2learn[/CODE] [img]http://screensnapr.com/e/sC969O.png[/img] It should show "leaning daniweb.com 2 learn" in the other textbox Like [img]http://screensnapr.com/e/3MW0jl.png[/img] So the line which should contain daniweb.com, it should …

Member Avatar for vb2learn
0
107
Member Avatar for bertm81

Hey All, am looking for a way to break an xml Tag line into tag and attributes. Say I have This line [code=xml] <event time="12:30" value="This is a Sample Value" type="event"> </event> [/code] I have this so far [code=python] # Open file to read f=open("myTest2.xml") #start reading File for line …

Member Avatar for bertm81
0
204
Member Avatar for xxxferraxxx

Hi, I need help with Resource files.... That i need to do is running file that i have put in the resource files (exe file) So the idea of this when i click the button the file that i have put run so it cant be happen with shell. is …

Member Avatar for xxxferraxxx
0
2K
Member Avatar for packetpirate

I'm having trouble aligning some text with setw and the left alignment. I'm not sure if it has something to do with the fact that I'm printing from a function. The text within quotes aligns fine, but the output from the function aligns to the right and screws up the …

Member Avatar for Ancient Dragon
0
100
Member Avatar for ubi_ct83

hi, i would like to ask opinion and comment about my situation.actually i dont know where to locate my thread because i dont know the specific of my question. im developing a web-base system.i use 3-tier architecture.im using html n php in gui,database mysql and for the application im using …

Member Avatar for ubi_ct83
0
166
Member Avatar for wonder_laptop

i know that i should use this to compile all the java classes . i used these and its working great. but i dont understand all of this . i did some readings and i understand now that when i use "set" , it sets the varibale name to the …

Member Avatar for JamesCherrill
0
165
Member Avatar for kitkat123

Heyloo im new to this forumm i wanted help regarding iteratve approach which project can i take for iterative approach

Member Avatar for jon.kiparsky
0
90
Member Avatar for lttleastig

Good day i would like to ask how to make a login system the password is encrypted with the code below. [CODE]HashBytes('MD5', REVERSE(UPPER(@ID)) + @PW)[/CODE] thanks in advance

Member Avatar for ahmedelhamahmy
0
260
Member Avatar for kinto

Hey, I have a function, though it's not working as it should be. My program is Dijkstra's algorithm, and I am trying to build a list of a node's nearest neighbours using info contained in a text file of the network (7 nodes in this case), in the form: 0,2,4,1,6,0,0 …

Member Avatar for kinto
0
232
Member Avatar for bettybarnes

hi does anyone know how to display selected row from a datagridview to another form that records will be in textboxes..

Member Avatar for bettybarnes
0
130
Member Avatar for newbieha

Hi,everyone Im new to JAVA and not sure how does recursion work in JAVA I have to use JAVA Turtle to draw snowflake here is the pseudocode. procedure snowflakePart( S, N ) : if N is greater than 0: move turtle forward S units if N is greater than 1: …

Member Avatar for newbieha
0
569
Member Avatar for Yousha

I have a data base using access which has one column as jobno and which is empty. I want that when my form load (vb.net 2005) it generate a number which then appears in a textbox. Below are my codes please i cant complete it help me. Private Sub Form1_Load(ByVal …

Member Avatar for Yousha
0
181
Member Avatar for HelloMe

How can i continue a very long sentence on the second line in a JLabel? /n does not work /t does not work as well I dont want the html thing cause i have a simple application. Thank you

Member Avatar for HelloMe
0
150
Member Avatar for Stefano Mtangoo

Hi, please help me with error. I want to run simple project below. I have a lot of errors below and don't know how to fix it. I use GCC port (Mingw) [CODE=C++]#include "mysql/my_global.h" #include "mysql/mysql.h" #include <stdio.h> int main(int argc, char **argv) { printf("MySQL client version: %s\n", mysql_get_client_info()); } …

Member Avatar for Stefano Mtangoo
0
3K
Member Avatar for mrblippy

Hi everyone, I am having an issue with a query i am doing for an assignment, i have made an attempt but i know i have not done it right. below is the table structures: Customer: CustomerCode,[pk] CustomerName Movie: MovieCode,[pk] Name, Rating Video: VideoCode,[pk] Name, CustomerSoldTo,[fk1] MovieCode,[fk2] What i have …

Member Avatar for smantscheff
0
107
Member Avatar for Mike Bishop

Afternoon All, hope someone can help as this is really doing my head in. I have a SQL View which has a field called MOP/T which shows the number like so 28.5140299679490 349.893390000000 349.893389892905 I want to format that field so that it only shows the number before the decimal …

Member Avatar for Mike Bishop
0
104
Member Avatar for ShadyTyrant

Hello I have a web site called shadygames. I want to make sure that all the information is filled out in a contact form I have set up. I am using ajax to update the page if more information is required by the user. I have the email validation working …

Member Avatar for McLaren
0
171
Member Avatar for paulablanca

Hello! I am just wondering if someone can help me to generate a bar graph where in the x and y values are coming from a sql database. Thank you very much and God Bless. :)

Member Avatar for paulablanca
0
88
Member Avatar for Tabone3

Hi, I recently begin to work with MYSQL, php and html and I have this problem. On the homepage of my site on the sidebar I have a section where it tells you the latest blogs that have been posted. Now here comes the problem. I wish that whenever I …

Member Avatar for reygcalantaol
0
340
Member Avatar for McLaren

Hi, where is the best practice to put js, image, css files when you make component? I put them in the same directory as component is. Is it good practice? Or should they be in media directory?

Member Avatar for McLaren
0
157
Member Avatar for McLaren

Hi, would it be difficult to let's say add a record to another table on user registration? Lets say I want to add a records how many credits the user has in jos_credits table when user registers, in other words - add record with that user id and set credits …

Member Avatar for McLaren
0
437
Member Avatar for lewilaloupe

Hi, This is a SQL statement query (so may be in the wrong forum). Any help much appreciated! I have 3 tables in an Access DB (I know!): IndexData is main table with title, description, date, fileid Category table has categories (Cat1) associated to fileid in IndexData i.e. a fileid …

Member Avatar for reygcalantaol
0
188
Member Avatar for debasishgang7

I am using python in win32 enviornment.i wanna add extra library for using serial port.So i have downloaded the lib for windows env. The package is installing fine.But when ever i import serial following error i get.Can anyone please help me out... [CODE]>>> import serial Traceback (most recent call last): …

Member Avatar for debasishgang7
0
198
Member Avatar for VasquezPL

Hi guys..I try to automate outlook..it works great ..the problem is that I use office14 at home, and my company (where I need my program to work) uses office12... I was told that to make it possible to run on office12 and later, I need to get msoutl.olb from office12. …

Member Avatar for VasquezPL
0
316
Member Avatar for rookanga

Im trying to make a fast food program on which the user will input the amount that he has, then he will click on what he wants, by using check boxes. There are 7 different check boxes with 7 different amounts of money. I got an idea on what to …

Member Avatar for rookanga
0
953
Member Avatar for VasquezPL

I have found a solution here: [url]http://support.microsoft.com/kb/220600[/url] The problem is that its for MFC..I dunno how to create wrapper for .net C++/CLI I cannot add it via class wizard. using #import produces error: [CODE]Error 1 error C2812: #import is not supported with /clr:pure and /clr:safe[/CODE] I want to use automate …

Member Avatar for VasquezPL
0
451
Member Avatar for kur3k

Hello, how i can creat menu in wx.ListCtrl(), for example when i double click in item list, i return menu like for wx.Menu().

Member Avatar for kur3k
0
864

The End.