199,114 Archived Topics
Remove Filter ![]() | |
Good morning, I've been trying with various libraries (everything from pugixml to RapidXML) but have been unable to parse a simple XML file. [b]I want to grab all the inner text of each page->text into separate std::string's.[/b], so 1 page per std::string. My RapidXML attempt: [url]https://ideone.com/XWylb[/url] My pugiXML attempt: [url]https://ideone.com/RzN6X[/url] … | |
As the title says, I need to know how to put a "Credits" or "About" tab in my form, so people know that its from me. (I made a little Halo Reach Music Player with music, I just started programming yesterday and the app is finished, it just needs the … | |
How to delete Temporary Internet Files using visua basic 6.0 Hello everybody I think all is well. I want to delete all files and folders in local settings folder in c: drive Using Visual Basic 6.0 Example: C:\Documents and Settings\RazaMughal\Local Settings\Temp C:\Documents and Settings\Don't Worry\Local Settings\History C:\Documents and Settings\Razamughal\Local Settings\Temporary … | |
am geting this error while testing the login panel of my website that am currently developing. Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/smartie1/public_html/checklog.php on line 43 which is in red this is the php script used for login <?php session_start(); function session_defaults() { $_SESSION['logged'] … | |
hi Iam using following script for time count, my Quiz project <script type="text/javascript"> var javascript_countdown = function () { var time_left = 10; //number of seconds for countdown var keep_counting = 1; function countdown() { if(time_left < 2) { keep_counting = 0; } time_left = time_left - 1; } function … | |
hey everyone last week i got an assignment from my teacher.He want me to create a program that have the same interface like tuneup 2011.He told me to use ActiveX Control but i don't understand what he mean ! can you help me how to do it ? i try … | |
Hello! I have this: [CODE] <?php $next_friday = strtotime("next friday"); echo "<select>"; // If you want to loop for 8 weeks for ( $i=1; $i < 10; $i++ ) { echo "<option>".date("m-d-Y",strtotime("+{$i} week", $next_friday)); } echo "</select>"; ?>[/CODE] It shows every friday and but all together. How would I modify … | |
I have created a report using NAVICAT Report Tool Report has an extension RTM . How..Do i run this report on Online web server.. | |
Hi, I want to insert and select the data from the same table.I am using following query to insert and select the data from the same table. However, I am not able to insert the data. Is there any method to do this? $sql=mysql_query("INSERT INTO users (name,ref_no) VALUES( '$name', (SELECT … | |
Hello guys... I had an assignment where i needed to find the average temperature.. here is the question This project asks the students to read input data from a file, do some processing, and direct the output onto the screen. Use Visual C++ to write your program. Write a C++ … | |
What does the $ means, EventQueue$1.class(Red marked) Attached picture [URL="http://i39.photobucket.com/albums/e179/iamcreasy/Untitled-6.jpg"]http://i39.photobucket.com/albums/e179/iamcreasy/Untitled-6.jpg[/URL] I am using NetBeans. | |
I cant figure out how to plug in my vectors for my High and Low. I am fairly new please Help. [CODE]#include <iostream> #include <string> #include <vector> #include <iomanip> #include "conio.h" using namespace std; //Create a datatype to represent weather station... struct SurveyInfo { string LocationID; //The location of the … | |
Hi All, I need to have a Regex that will not allow just spaces, but it can allow sentences with spaces. It should allow any special characters that occur as well. Actually, it is for a text area of comments. So i want to restrict him from entering just spaces. … | |
Hi When I load my renew.php page - the following warning appears. However when I click the 'renew' button in the page, the code below still works, but only when I click the 'renew' button twice. I can't find what is wrong with the code to cause the error message … | |
Hi, I need some help in making the login like the daniweb...How am i going to do this that when i click the login it will show the div and the background will turns to gray.just like the daniweb...I am not quite good in javascript i am still studying on … | |
I have two quick questions: 1) What is the point of a static method? As far as I can tell, there is no data there that would be accessed by multiple objects as there is no data stored there at all... 2)What does it mean to have a const after … | |
Hey everyone, I have another issue with my login page...It is in the checkuser.php and after I register, get the automated email that directs me to a page where my account has been activated..and redirects me to a log in page..I put in my info that the email gives me … | |
Hi, i've both pyhon 2.7 and python 3.2 installed on my windows PC. I downloaded and installed the module BeautifulSoup but it got installed only in python 2.7 how can i installed this also in python 3.2. | |
Hi friends... I am using Wamp with PHP 5.3 and want to connect with SQL Server 2005 but not successful. I also tried it with PHP 5.2.8 but it still not working. I google it and found some solutions but not successsful yet. Can anyone give me detailed guide (step … | |
these person is hired by her employee which it agree that the salary would be one penny the first day, two pennies the second day and four pennies the third day and continuing to double each day. i have to use a combo box to select the days that the … | |
Hello, I'm a bit stuck here... Background: a program that (eventually) will save data synchronised from a MTC. (ive worked out all the mtc stuff) The code I am using uses winmm.dll to receive midi messages. This works fine, I can process incoming packets etc. using vb2010 What I'm stuck … | |
I've got a problem trying to replace keys (dictionary) that I have in a file, with its corresponding values. More details: an input file called event_from_picks looks like: EVENT2593 EVENT2594 EVENT2595 EVENT41025 EVENT2646 EVENT2649 Also, my dictionary, created by reloc_event_coords_dic() looks like: {'EVENT23595': ['36.9828 -34.0538 138.1554'], 'EVENT2594': ['41.2669 -33.0179 139.2269'], … | |
I am making a Gui for an inventory. And I want for each time a person presses my next button, the jLabels to display the next item in the arrayList. Right now I'm stuck as it only displays the last element, Any help please? [CODE] // action on the button … | |
import java.util.Scanner; public class Student { private String FirstName; private String LastName; private String Address; private String PhoneNumber; private int Credits; private double Tuition; double Health_Care; double Late_Fee; double Meal_Plan; double TotalTuition; double IncidentalFee; private boolean state; private boolean LateFee; private boolean CampusFood; private boolean HealthCare; public Student() { } … | |
If statement acting weird. For some reason if in the IF statement `if ( choosePositionX )` goes to else which tells the user the other player already made the move it goes into the next if `if ( choosePositionO )` and prints out the else in that one. How can … | |
I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't … | |
I need to convert a true type font into a list of three dimensional vertices using openGL. I looked at the NeHe tutorial, but it only creates a display list from the font and as far as I can tell it is not possible for me to extract the vertices … | |
Okay so I am completely new to creating a database, and have been trying to create one in Visual Studio 2010 I found this guide on the web and have been following it pretty successfully till I came to spot that I can't get past (here's the link - [url]http://msdn.microsoft.com/en-us/library/dd193408.aspx[/url]) … | |
Right now, I am learning how to use an Array. How the program should work is, I declare how many numbers I want to input, and then, put numbers in. At last, I can choose either find the maximum, sum, or product. The program seems right to me but it's … | |
[CODE]public class Order { private int widgets; private double price; public Order(double undiscountedUnitPrice) { price = undiscountedUnitPrice; widgets = 0; } public void addWidgets(int quantity) { widgets = widgets+quantity; } public double getTotalPrice() { return price*widgets; } public double getUnitDiscount() { if(widgets>10000) { if((widgets-10000)/1000>47.5) double toTakeOff = (((widgets-10000)/1000)*.10); price = … | |
Here is my project: Write a program that dynamically allocates an array large enough to hold a user defined number of structures (string name and three double tests). Using a function, the user will enter a name and 3 test scores for each element in the array. Using another function, … | |
Hello everyone, I'm a java programmer writing a half graphical half text rpg. For the moment I read my data from text files, e.g. Enemies.txt id name hp and so forth. However, I want to make it a little more clear to handle, as in a database format. I can … | |
Ok, so for this assignment, we were given a program and a class. We have to find where the program code needs modified and make the changes necessary to use the class. [CODE]/****************************************************************************** Programmer: Date: November 6, 2011 Compiler: Cisual C++.NET Source File: hw7.cpp Action: Reads words from stdin and … | |
Hi I have a function 'checkfile'within my 'add a record'form which checks to ensure that the images which users are uploading with the form are within a certain size...in this case 32kb, which is specified within GW_MAXFILESIZE. What would actually be much more useful and user friendly is if when … | |
Directions...Write a program SumOfOdds that has one main method that asks the user to input two odd integers where the first is smaller than the second. The program ouputs the sum of all the odd integers from the smaller output to the larger output. You must use a while loop … | |
hello all I have one textField and one textArea. How to move the cursor to the end of Text of TextArea when -cursor is in textField,and keyboard [Enter] pressed thank you denny | |
I am still trying to take a look at the gtk GUI package and reinstalled the following: gtk-win32-devel-2.8.6-rc3.exe and pygtk-2.8.2-1.win32-py2.4.exe (updated version) I have it down to a simpler error message now. Here are my warnings and errors with the sample file base.py [code]Traceback (most recent call last): File "D:/Python24/Atest/Demo/pyGTK/base.py", … | |
Hi, I'm trying to make a set of monsters that have values that can be loaded. Like a Goblin having enemyhealth = 50, enemydamage = 15, etc. Here's what I kinda have an idea of doing... But I really have no idea how to use it. (File containing values for … | |
I started taking a "introduction to programming" class a month ago, and the introductory language we are using is Python. Because I have never programmed before and only have a month's worth of experience with Python, please forgive my mistakes. So basically, here's the prerequisites to the "Piglatin Translator" assignment … | |
Log In Failed for User '' The user is not associated with a trusted SQL Server connection Well, that's the full title of my problem. I'm working on a C# program that supposedly could access a database run by SQL Server Express. I know the program works, because it works … | |
Hi. I'd like to add time (and no date, and not a timestamp) data to a field in MySQL through a PHP form. I've been having problems, as the date is also included. But I only want the time (I want to be able to sort the data by the … | |
With the command"NumericUpDown Control" I would run a command based on the number selected in NumericUpDown Control example If I select the number 5 in the Control NumericUpDown instruction must be repeated 5 times/x5 PS: sorry for my English but I am Italian | |
I'm currently working on a implementing a matrix inversion method for a Matrix class in C++. One thing that isn't implemented is a check for when the pivot element is 0, meaning I will need to swap the rows (likely with the row just beneath it). Here is what I … | |
Hi, I'm using a javascript function to toggle and display only 1 div at a time. In this case, I have 3 divs as toggle buttons and 3 divs to show content (which belong to those 3 buttons). My problem is these 3 divs (divs with class .linkBox) that act … | |
[CODE]If minutes > 1 Then ProcessTerminate (FindWindow(vbNullString, "King Kong V-1.4")) Shell "I:\DISTRIBU\Quality\RIMData\Monkey\KingKong.mdb" End If[/CODE] this will restart the application.. i'm terminating the app but i can't get it to start again.. any suggestions? thanks | |
Is there any reason I'm missing as to why not many languages let a programmer create a table of constant information at compile time? Something like: [code] public const Dictionary<string,decimal> SOME_DICT = new Dictionary<string,decimal>( {"A", 1.9}, {"B",2.3}, {"C", 4.4444} ); [/code] | |
can u guys help me out i have make one form and i want that if i click on text around radio it select radio here is my form code [CODE]<form name="myForm" action="join.php" method="post" id="joinPool" name="insert" > <input type="hidden" value="" name="event_id" > <input type="hidden" value="survivor" name="game_type" > <input type="hidden" value="38" … | |
I'm having an issue with prototype... I have the following code that I want to execute: [CODE]Event.observe(window, 'load', function(){ $('mesTour1').hide(); $('mesTour2').hide(); $('mesTour3').hide(); $('mesTour4').hide(); $('mesTour1').appear().delay(0.5); $('cancelTour').observe('click', function(){ $('mesTour1').fade(); }); });[/CODE] the very first time it's loaded, it doesn't work, but if the page is refreshed, it works perfectly. is there something … | |
i want to add a word document into c sharp code as reference..and while clicking a button in the form,the word file has to get opened.. | |
HI, i am writing a program to enter monthly grocery items, purchase date and price. as part of program i have written to enter the data, write the entered data to a text file and read the existing data from the text file. [CODE]using System; using System.IO; using System.Collections.Generic; using … |
The End.