64,152 Solved Topics
Remove Filter ![]() | |
Hi gueys, I am programming a class compenent liberary in C++ CLR, but I have a problem with exception throwing. this is the code that call the exception: `throw gcnew ReadStreamException(Error);` and this is the exception class: public ref class ReadStreamException : Exception { ReadStreamException(String^ Message) : Exception(Message) {} }; … | |
Will someone please tell me why I keep getting my custom file not found exception? The file is spelled correctly and is in the same directory of my java file. I am programming on Eclipse on Mac OS X. Here is my source: // Dillon Sheffield // Lab 10a // … | |
I meant to post this in the C forum and not the C++ forum. Below is the link to a picture of the debug error window [url]http://www.flickr.com/photos/7629837...in/photostream[/url] It's a program that i'm doing and I keep getting this error here's a link to the programming problem. Its' Number 3 [url]http://books.google.com/books?id=bSy...%2B%2B&f=false[/url] … | |
Stack-based Evaluation and Simple Subroutine Linkage Hello, I have to Write a program that evaluates 3x2 – 2y2 – 5xy + 20x – 16y + 100 for integers x and y that the user enters. Prompt the user for x and y. Use pread from chapter 26 for this. Use … | |
Hi Everyone, I am trying to creale an application which is supposed to display some line trace.What I have is the lenght of lines and the angle (Azimut) degree of the Line for example 45 degree. Can you please let me know how I can do this? I also have … | |
New Daniweb way to copy the code from posts with indentation is to double click (not too quickly) to select the code region and use normal copy paste as you like (second mouse button or ctrl-c). Easier than before but little not obvious! | |
I'm currently writing a program where the program reads in words from a .txt file and stores the data into an array. The user then has the ability to enter in entries into array and the program then writes everything to the txt file where it can be read again. … | |
Please help what is missing here i cannot get the data of row that I check on the checkbox? <? include("connect.php"); include("home_order.php"); echo "<div><table border=0 cellspacing='15' align=center id=table1> <tr> <th>Title</th> <th>Price</th> </tr>"; $code = $row['Code']; $getcheck=$_GET['check']; if ($getcheck){ $result= mysql_query("SELECT * FROM books where Code='$code'"); while($row = mysql_fetch_array($result)) { echo … | |
I cannot update row datas.I cannot find what is wrong because my query in updating is 100% right for me.I hope so..But here is my codes so you can help me. this is home_admin.php <? include("connect.php"); include("addfunc.php"); echo"<link rel=stylesheet type=text/css href=design.css />"; echo"<center><img src=top.png></center>"; if(isset($_GET['add'])){ echo "<table align=center id=table> <tr … | |
Hey all, I've been searching Rohitab, CodeProject and various other sites to figure out how to write OPCodes to a file and cannot figure it out. I thought I'd ask here because it's the only site I have an account on and I usually get my answers here or hints. … | |
I am trying to write a script that will facilitate cataloguing various files on a backup medium. Looking at what's available, only **stat** seems suitable but it outputs the data with a lot of formatting I don't require and would take a lot of scripting to massage into what I … | |
**Hey, so i got syntax error when i'm trying to use this file** Parse error: syntax error, unexpected $end in /var/www/vhosts/airlinesofisrael.com/httpdocs/phpvms.full/lib/skins/lolim/layout.tpl on line 129 my code is below, can someone help please? :) <?php /** * * * * * * * * * * * * * */ ?><!DOCTYPE … | |
IF someone can write this code out for me so i can use it as an example for the rest of my problems and question i have to do I would really appreciate it alot. and no this question is not Homework what so ever I am a visual person … | |
Does C++ Console apps have a TryParse equivalent.. I mean .Net has it for both C# and C++ but why does C++ Consoles NOT have this! Or am I just wrong and cannot find it? I was thinking of writing my own with templates that can be use for ANY … | |
Hello. So here's the stitch. I was asked to modify some existing code to only prompt the user to save changes when a change was actually made and not every time the new page button was pressed - which was what it was currently doing. I've ran into a bit … | |
I am trying to change the data type of a primary key in table A from INT(11) to CHAR(11). However, this primary key is a foreign key in tables B and C. SQL is giving me an error whenever I try to change the value type of the primary key. … | |
Hey. I'm writing a script that processes some data. The script creates a HTML page which contains a form that calls (action=) the same script and changes according to data asked. So the user asks for something, the script goes to a DB, gets it and prints it into the … | |
I have a problem with netbeans.... Already I installed MySql. but in netbeans Services panal not mention anything about databases.. If I right click on their its not mention anything.. I want to add database through that. So how I can do it. What are the pre-Requirement to do this(Any … | |
Hello: I was wondering if I can get some guidance on how to pull data from mysql and inserted in js array in the following manner var option_array = new Array(num_of_cats); option_array[0] = new Array(\"You need to select a category\"); // This is the first (blank) category. Don't mess with … | |
Hi gueys, I have question searched in google but without something that can help. **How to get the binary stream from files ( especially executable files) using winapi (CreateFile , etc)????** I learned in these days how to read write files using Createfile, ReadFile, WriteFile , etc and all these … | |
... to provide Email client reading pane functionality such that it can display an attached image as part of the message body. Is there a single control that will display text with an imbedded image or do I need to create a UserControl? | |
My web hosting service provider allows me to uplaod my ROOT.war file only. and there is no directory structure. So is there any way by which I can upload pics and add new pages or make changes in existing pages without re-uploading the entire ROOT.war file. P.S. I also want … | |
im using fpdf.php library have some extension the pdf_lp.php then i got this error on my codes... hope somebody can help me identify my error.. any help is very much appreciated. <?php date_default_timezone_set('Asia/Manila'); require_once('./pdf_lp.php'); include ('connect.php'); // $sql = mysql_query("SELECT * FROM mydb WHERE contractno = '$_SESSION[contractno]'") $sql = "SELECT … | |
Hi, I have a problem with a the imput of some data on a program Im making (FYI new in c++, homework). So basicly the progrma I have is to imput diferent type of data, this is what im doing. (Im using codeblock 8.02 in Ubuntu 10.04 ) #include <iostream> … | |
Okay, I've got an order form that needs to calculate the total each time a quantity is updated. I have it set up the way I think it should work. I've added one of my methods here for my QuantityBox_TextChanged. I have 3 quantity boxes like this, and I set … | |
what's wrong in my codes? this is my insert.php: `<?php $host="localhost"; // Host name $username="root"; // Mysql username $password="rommelbarrio"; // Mysql password $db_name="system"; // Database name $tbl_name="grades"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // Get values from … | |
I'm a tutor that is helping one of my students with a simple guessing game program. It's supposed to be similar to the board game Mastermind. This program should prompt the user to enter 5 distinct digits, and it should return the how many digits are correct and how many … | |
I'm not sure what i'm doing wrong, any help would be great. main.cpp(58): error C3861: 'preOrederHelper': identifier not found main.cpp(53) : while compiling class template member function 'void tree<T>::preOrderHelper(treeNode<T> *) const' with [ T=int ] main.cpp(9) : while compiling class template member function 'tree<T>::tree(void)' with [ T=int ] main.cpp(103) : … | |
Hi, Im using session variables and when passing from one page to another with a target="_top" the session variables are erased. Is there anyway i can go around this problem ? Any idea will be greatly appreciated. Thank you | |
Hello everybody How to show usb drive letter when we attach my usb to my computer example: we use a label or textbox and one timer now we want to do this we start my project and attach a usb drive to my pc the lebel or textbox show much … | |
I am using code::blocks and have written a dll. I am currently testing it but am getting tired of having to compile it, copy the DLL, DEF, H and A files into a test project, and then compiling the test project every time I need to fix something. Is there … | |
I was just wondering why do we exactly call glTranste command if its possible just to increase objects x, y or z. And its even stated in this tutorial: http://nehe.gamedev.net/tutorial/particle_engine_using_triangle_strips/21001/ that its even faster to only use Vertex3f() instead of resetting the Modelview Matrix. Anyways, maybe its just something particular … | |
Hi, The code below is a Jquery News Ticker. It works but recently the codes broke. The codes are pulling data from the database. Some of the titles and descriptions have ' or "" in them. Would that stop the codes from working? If so, if you dont mind, Please … | |
Hello every one i think all is fine i want to open a folder with a file path Example: i have a file path c:\testfile.txt now we want to open folder of this file where save my testfile.txt file using a command botton i mean {open containing folder} please help … | |
Can some one tell me is there a way to convert vb.net code to c# in VS2010? | |
I need help with this code Constructer is abnormally called again n again.... add these file 2 a project n run ...i've given given constant messages in da code to explain the problem! Hit (1) two tyms i.e GetInput function in da menu.... u'll get 2 knw wat da problem … | |
Hi everyboy, I have a question how to add not boolean expression to the conditional loop, Imagine some situation where I have : while(some expression && another expression) { .... } So lets say I want to calculate how many times "another expression" was evaluated. I wish I would stick … | |
all thing is ok. all ready 11 item was saved. in sr. no. 12 when I input all necessary thing and click in save button massage was show " save data". no error massage show. but the data is not save in database. I don't know why? So I need … | |
hi. i have some code in visual basic and i wrote some classes in c++ and i want make it dll but i don't know that when you use dlls it decreases the speed of process or not. thanks. | |
Hey Ive been literally killing myself looking up guides but most are way outdated and/or complicated. I tried a few simply ones but they simply appear to be out of date. Can someone point me on a easy way to set it up in Windows? Ive been trying to use … | |
I have been programming in c++ for a while now, and i see the windows.h class is very handy on windows computers, where can i find a good tutorial for windows.h (winapi) (win32) programming. The ones i found so far either doesnt give you enought info on programming and some … | |
I want to update my database but the problem is that the driver is not taking any values from the preparedStatement. I am getting an error : java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] You must enter a value in the 'ClassicRoom.Occupy' field. Press any key to continue... Here is the ActionPerformed … | |
How can I have my program modify itself? Example: Size = 1mb ..Run program once.. size = ++1mb On Second Run, check if itself is 1mb Or something of the sort :S. I need to be able to check if my program has ever been ran before.. So.. Is there … | |
I am having an error that I can't seem to get past. The problem I get is an internal server error 500 when I try to run the C++ CGI script. here is my HTML document. I am using Apache Web Server. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> … | |
Hi, I just started learning about java applets recently and was wondering why the shapes won't appear on screen when I press a button. import java.applet.*; import java.awt.*; import java.awt.event.*; public class Buttons extends Applet implements ActionListener { public void init() { button1 = new Button("Button 1"); add(button1); button1.addActionListener(this); button2 … | |
Hi, I have 2 sets of multiple sequence files of DNA sequences. Examples of set 1 are as follows: Seq1.txt contains: ATACAGGATCAGATG Seq2.txt contains: ATACCGGATCAGATG Seq3.txt contains: ATACAGGGTCAGATG Examples of set 2 are as follows: Seq1.txt contains: >seq1 ATACAGGATCAGATG >seq2 Seq2.txt contains: ATACCGGATCAGATG >seq3 Seq3.txt contains: ATACAGGGTCAGATG I want one/two … | |
Hello guys, I've been working with webdesign for like 6 years and never seen something like this. I can't get my PNG image to be transparant! I've exported it on several settings in Photoshop but nothing seems to work. Does anyone has any idea on solving this? http://www.photoshop-leren.nl/ Thanks! Best, … | |
Hi Guys, I have written the below program to convert binary to octal, it is giving me erroneous results. On entering 1111 as the input number I should get 17 as the output, whereas I am getting 16707000337 as the output. Kindly help me out, below is my program: /*program … | |
Hey all, Back with another Win32 question. When I paint to my window (create a background image), what happens is that everything is fine until I draw the window off the screen causing it to invalidate everything.. When dragged back onscreen, my background is redrawn but my controls are all … | |
Hi, I'm developing a blog that will have categories. I want to be able to store blog posts in more than one category. My problem is i am not sure how to go about it. I have a table called posts: CREATE TABLE `posts` ( `post_id` int(10) unsigned NOT NULL … |
The End.