199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
[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? | |
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] | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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. … | |
Why use const char* instead of string? I see it all over the place. Personally, I prefer strings. | |
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, … | |
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, … | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Heyloo im new to this forumm i wanted help regarding iteratve approach which project can i take for iterative approach | |
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 | |
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 … | |
hi does anyone know how to display selected row from a datagridview to another form that records will be in textboxes.. | |
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: … | |
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 … | |
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 | |
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()); } … | |
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 … | |
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 … | |
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 … | |
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. :) | |
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 … | |
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? | |
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 … | |
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 … | |
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): … | |
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. … | |
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 … | |
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 … | |
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(). |
The End.