64,152 Solved Topics
Remove Filter ![]() | |
Hello, I would like ask you how works the FLV Metadata, i use it in order to analyse video streaming websites such as YouTube. It analyses the video header only or the whole video? [CODE]<?php class FLVMetaData { private $buffer; private $metaData; public $fileName; private $typeFlagsAudio; private $typeFlagsVideo; public $VCidMap … | |
Hi there, I'm working on a small task to practice my (non-existing) java skills. I'm trying to write a program that reads a text file and replaces every character with a .wav file containing a musical note. A friend gave me some help, and with his help I made class … | |
Hi, I got a problem which I can't solve and I will be most thankful if you can help me out. Ik got a gridview showing data from an XML file and before that data I've created checkboxes in the gridview. The user can select which if an image should … | |
Hi guys, I have two richtextboxes that contain text. I want to go through each line and if a difference is found, it highlights that line on both textboxes and it would be good to highlight the difference itself too. I have attached some code I have written. Note some … | |
Looking on the web there are many, many people trying to sort out how to overcome the INT rounding in programming and now I am one of the many. Having said that there are lots of seemingly good looking answers to the problem, I have not found one that works … | |
hello there u said if any body need help u can help them so plz i need ur help with this i did a program in java gui (temperature converter) and i just need the program to print the result in a text file so plz plz plz help me … | |
guyz,can you help me in importing an excel file?first the program should be able to browse for an excel file and then,the values in an excel file will be imported to the datagrid and save all the data in the database.. I needed it for my project! hope you help … | |
Using visual studio 2008 I created a small vc++ project and ran it using the exe created. The problem is the exe runs fine on my PC. But when I tried to run the exe on an another PC it gave the error "The application has failed to start because … | |
Yesterday I setup a message/note script for a "view project" page. It seemed to work fine. Today I went to test it out a bit more and on random occasions I get stuck in a confirm loop. Screenshot: [url]http://rawrgv.com/images/screenlnl.png[/url] I tried unsetting the form submit variable, but that doesn't seem … | |
hello can you help me, i make exe file on my project but the problem is that when i separate the exe file in my folder where my project is stored. it will not run..but i want only my exe file and put it to my flashdrive without the folder … | |
I'm writing a program that gathers a list of files within a directory and optionally, every file within the subdirectories (10 levels deep) of the directory then exports it as a text file. I have no idea how to do this so I just attempted to code it myself. It … | |
Beginner in Java. I am trying to find the highest value and lowest value of an array. The highest value works perfectly fine, while the lowest value keeps on giving me 0, even though 0 is not part of the array. Below is the code. Thanks. [CODE] mxm = n … | |
Hi, I'm new to Java. Bumped into an error when doing a program. The code below will basically explain everything. This error [CODE]java.lang.ArrayIndexOutOfBoundsException: 15 at randomintegers.main(randomintegers.java:43)[/CODE]keeps on showing up and the program will not execute further. If anyone can help me soon it would be great! Here is my program … | |
i'm having a few problem with my phone book program: 1. If the any of the buttons have empty fields, I need to display an error message. How would I do that? Some sort of try/catch statement or if/else statement? 2. I'm a bit clueless as how I would go … | |
Hey guys, I'm looking to add on to a recent program of mine that uses classes. My next step is to add in a working overloaded equality function in order to compare the gross pay of two Employees within the class. Now, I've read up on this quite a bit … | |
Writing a function to search an array for a value and return the index if found. in finding what the size of the array is for use in the while loop condition i found that here inside the templated function sizeof(data) comes back as 4(it should be 40) but when … | |
Hi I am trying to compute the modulus of two numbers in assembly code. As I am more fluent in C++ it is hard for me to understand the concept of modulus as all I use is the symbol % to compute. The problem I am doing is computing the … | |
Can anyone tell me why setprecision is causing this error at runtime: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted The program ran fine; after I added << setprecision(2) << to a series of output, I received the error when trying to run the program. I have … | |
I'm having a bit of a problem using enum variables. The program below compiles just fine, but the output program at the end is blank. Any hints? [CODE]// Program Reformat reads characters from file DataIn and // writes them to DataOut with the following changes: // all letters are converted … | |
Hi, I'm a newbie in programming in C # and I need advice .. I have a list of XML to Listbox but unfortunately I do not know how to do it on condition that it has called me a text from the ID XML file : [CODE]<slovicka> <lekce id="1"> … | |
hi all im looking to use a select mysql query - but im trying to query the database against a users logged in sessions. I have the sessions working correctly but I am unsure how to included the session data in my sql select query. here is my users session … | |
full function: [CODE] void finalScoreMessage(bool prematureExit) { if (finalPoints_ > highestScore_) { cout << "You've beaten your previous high score! The new high score is: " << finalPoints_ << endl; saveScore(); } else if (finalPoints_ <= highestScore_){ cout << "Your score is: " + finalPoints_ << endl; cout << "Your … | |
hey all. I've been banging my head on this for hours. I'm trying to get only whole numbers from a user and if they input anything different, I want it to display a validation error and restart the function. Here's what I have: I'm either getting an infinite loop of … | |
Hello everyone, I am starting to run completely out of time on an assignment that is due tomorrow. No I'm not asking for free code here, because I already have it 99% complete. My assignment is to read a text file into an array and bubble sort them from highest … | |
I have no error or warning when compling this code but as you can see it keeps changing one of my inputs (int ID) into a random number. This same number is still the output when i change the imput. code: [CODE]#include<iostream> #include<string> #include<sstream> using namespace std; class student { … | |
![]() | Hello everyone! For the last week I've been trying to convert an EXE file into a DLL. I read about 1000 Google pages on the way and now know much more than in the beginning :) I have nearly succeeded in getting the "DLL" to run but there is one … ![]() |
I am using Python 3.1.2 What is the best way to get numeric (float or int) user input? | |
Hi, i have a project to do in VB and its been a while i done anything in it. My problem is taxation and decimal places. How can I round 2.19 to 2.20 ? the actuall number was 2.194 and vb6 rounds it at 2.19, is this as it should … | |
I have this piece of code: [CODE]<xsl:value-of select="format-number(/object/data/row/EGL_1244 - /object/data/row/EGL_1886,'0.00')"/>[/CODE] The idea is it subtracts EGL_1886 from EGL_1244 and displays the result as a number. However, on occasion each value can have a comma in it. So the value "1,234.56" would make the result show NaN. How can I rework … | |
hi, in the database i have a value as True, when it is true i need to write a code for the check box to be ticked when the form is loading i ma using VS 2008 standard C# language? does anyone know the solution for this????? | |
Hi, What is the code to write in txtCaps text box event which can change the whole text entered in as capital letters? Thanks. | |
Hello Everyone, I have an MDI form which works fine. At startup the childform opens and its windowstate is maximized. In the childform I have a textbox but does not have a windowstate to maximize. How can I maximize the textbox with the childform? This is my formload: [code] private … | |
I am trying to search data in database at runtime.... when a user put the license no in the text box and press button this is my query but it is not working, for every search it is showing first record of the database...... Set rd = New Recordset rd.Open … | |
Hi guys, just looking for a bit of help. I've fallen victim to a particularly bad teacher with concurrency and now i have an exam in 2 weeks. I've been relying on online tutorials but the vast majority of it still escapes me. Can i ask what mutex is ? … | |
hello. i m using a datagridview in c#. i wana calculate total cost value from multiple rows of a single column in a data grid. i m actually sending the rows of the grid to the datatable and then counts the value throw foreach(datarow in dt.rows.count) { } but it … | |
Hi, I need some help detecting the escape character ''. It doesn't show up when it's in a string. I'm trying to convert '/' into '&&' and '\/' into '||'. Help is much appreciated. Thanks. | |
Hello when Im trying to learn strncpy function, I copied a part of string to another char array, but it gave me different results when I used puts and printf functions. Can anyone tell me why such difference occurs? I guess its about the last terminating NULL character, but Im … | |
[code] public List<DateTime> GetDates(DateTime startDate, DateTime endDate, int valuationDay) { TimeSpan span; span = endDate - startDate; List<DateTime> result = new List<DateTime>(); DateTime dateToParse = DateTime.MinValue + span; int yearMonths = 0; if (dateToParse.Year > 0) { yearMonths = (dateToParse.Year - 1) * 12; } int monthCount = (yearMonths + … | |
I have this section of code that keeps giving a vector subscript out of range error, but I cant figure out why. the vector is defined as [CODE]vector< vector<double> > distance;[/code] for the test I am doing, point->size() = 3, and through the debugger I have verified that the matrix … | |
[CODE]import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JButton; public class Connect4View extends JFrame { DrawPanel canvas; Connect4Model model; ControlPanel myControlPanel, JRadioButton; public static void main(String[] args) { Connect4View w = new Connect4View(); w.setVisible(true); } public Connect4View() { setTitle("Connect4 solution"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,220); setLocation(300,300); … | |
hi all I'm trying to write a procedure/function in pl sql that get the user's password, encrypting it with md5 algorithm and inserting it into the USERS table. any 1 knows how to do so? i know that md5 is not a good algorithm but i dont care cuz its … | |
Okay, I have a slight problem here. My final project was pretty much open to anything. We just had to make a proposal and do it. So, I proposed a bank type program. I had it done and in the bag(or so I thought) until I was told to include … | |
I am trying to write a program in C with a main function and five other functions: input, output, calculate day of year for a calendar date, calculate calendar date from day of year and year, and determine if its a leap year function. I have a problem with calendar … | |
My project was already due, and incomplete but I would still like to better understand a few things. I have three classes. A Photo Class, PhotoAlbum Class, and a CommandLineMenu class. Each photo has a subject, location, date, and path. the PhotoAlbum is an array of different photo objects. I … | |
Hi there, I am hoping someone can help, I have an large XML structure which I am attempting to interrogate. My structure(problem) is as follows <BigStructure> <Structure myNumber="1003"> <Structures> <myMap> <Point ID="1"> <Opt>THE</Opt> <Next>2</Next> </Point> <Point ID="2"> <Opt>ONE</Opt> <Next>2</Next> </Point> </myMap> <myMap> <Point ID="1"> <Opt>THE</Opt> <Next>2</Next> </Point> <Point ID="2"> <Opt>THIS</Opt> … | |
I've got the following Problem while using linq with stored procedures: I convert the ISingelResult with AsQueryable() to IQueriable and then try to serialize the results with JSON.NET (James Newton Kings JSON serializer) but I alsways get a "The query results cannot be enumerated more than once" Exception Any Help … | |
Hi, I need something like recursion wherein the query repeats itself using it's result to start the NEXT - SAME - QUERY. I made 1 but it just simple reecho the same result. [CODE]// KUNIN ANG ID NI KURIMAW $root = $_GET['id']; $result = mysql_query("SELECT COUNT(*) as count, id, sponsor … | |
I have been trying to solve this problem for days, and if I think about this anymore I might blow my brains out. Anyways, I need help solving a smaller portion of a large assignment for my computer science course. The program basically entails me creating a shipping manifest for … | |
This is a MenuBar class which is supposed to assemble a Menu bar.. basically i have some JMenus which contains some JMenu items here... and add all the JMenus to this class which is the bar (sorry if this is confusing) i am trying to write a public method to … | |
Hey guys, I was curious if I could get some help with these two pieces of code. What I'm trying to do is count the number of comparisons and moves there are in each type of sort, now I'm not a super programmer but I kinda know my way around … |
The End.