199,114 Archived Topics
Remove Filter ![]() | |
I want my program to do two back to back webrequests. The first one fills out the form on the page. The second webrequests a page which submit the data from the previous webrequest. I tried doing this but I keep getting this error: [QUOTE]The request was aborted: The connection … | |
Ok here it is short sweet and to the the point: how do I get a asembly languige OS to reconise the floppy drive as A:/ | |
Hi To All, Once againg I'm in a big problem. I'm using C# 2008 and Access 2007. My DB contain 2 tables Customer and Booking. Both having Relation on CustomerID column. Customer -> CustomerID (PK) and Booking -> CustomerID(FK) Now I want to display the few columns from Customer and … | |
let me preface this by explaining the reason i'm writing this code.. i've been writing an x86 PC emulator in FreeBASIC, and this program is designed to test it's handling of video mode 13h, including palette manipulation. i thought in addition to being fun (at least for a nerd like … | |
i have a code written in c++/Cli (CLR Console app) that uses .Net framework. it basically uploads a file to a ftp server. i wanna run it on computers that dont have .net framework. and are running windows xp or windows 7. can i somehow convert it into win32 console … | |
i had used gridview to display records from database, i am able to display records but in pagination when i click 2,3,4,5......10 page the gridview disappears. find the code below for gridview: [CODE] <asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="10" AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging" onselectedindexchanged="GridView1_SelectedIndexChanged" GridLines="Horizontal"> code behind: protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) … | |
objective: Write a class Bug that models a bug moving along a horizontal line. The bug moves either to the right of to the left. Initially, the bug moves to the right, but it can turn to change its direction. Provide a constructor. All methods are included below. [CODE] public … | |
I am trying to login into the system I have created 3 pages 1.Registration Page 2.Login Page 3.Secure Page In registration page I can enter new username and password and that gets registered well that works fine..but when i try to login with that username and password I get an … | |
Hi, I am trying to a play a .wav file in a C++ program. I think my code is OK, but when it plays, it plays the default windows 'error' sound, not my .wav file. This is the program: [code] #include <iostream> #include <windows.h> #include <mmsystem.h> #pragma comment(lib,"Winmm.lib") using namespace … | |
friends i m using vc++ 6.0 and oracle 10g version.i created mfc file and connected database. i done insert and delete operation.but i cant check or view the data(table).can you any one tell how to do? and any other option 2 view the database thanking you | |
I am building a website for a charitable organization here in Paradise, CA called Heart to Hand. One of the many things that I am going to have the site do is list children in need of Christmas presents. For those people that are a bit indecisive I want to … | |
need help to making change I have read textbook a lot but i still dont know what to do next steps. Here is problem. The program should prompt the user for and accept two inputs: 1. The price (including any applicable tax, etc.) for whatever was purchased by the customer. … | |
I want to write an XML file in the following format [ICODE]<?xml version="1.0" encoding="utf-8" ?> <trans> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from … | |
I am trying to do basic animations with images, and I am wondering how I could get a smaller image from a larger one without going through and editing it. I made a sprite [URL="http://translate.google.com/translate?hl=en&u=http%3A%2F%2Fwww.famitsu.com%2Ffreegame%2Ftool%2Fchibi%2Findex1.html"]here[/URL] and downloaded the image. As you see in the thumbnail the animation is from all … | |
Ok so while working on this I want to figure out at about line 23 for "hours" I understand the argument "NUMBER_OF_SECONDS_IN_AN_HOUR" but not "totalSeconds" is totalseconds the value coming from : "totalSeconds= GetNumberOfSeconds();" ? Which is the input received by the user? For lines 25-29 , how does totalSeconds … | |
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Lcbo\flash_import.php on line 6 this is the error i get from this code: [CODE] require_once("Connections/LCconnect2.php"); $myquery = mysql_query("SELECT pro_brand FROM product_information ORDER BY pro_id DESC"); print "&winetitle="; while($row=mysql_fetch_array($myquery)){ //<----line 6 print $row['pro_brand']."|"; } [/CODE] is it something to do … | |
I created a barcode and displayed it in a picture box and i want to print it. i can't figure how to do it.. | |
Well im having this problem on how to add large integers. I have used strings to take in a very large number something that can work on as many digits as you need it to. I take in 2 strings for the numbers you want to add. After which I … | |
Hi guys i working on a project that open an excel document using vb6 but i encounter this. Run-time error 1004 : C:\aaaaa\aaaa\myBook1.xls' could not be found. Check the spelling of the file name, and verify that the file location is correct. This is the Code: Private Sub Form_Click() Dim … | |
Hi, I am almost done with C++ and my project is on Resistors. The problem is that when i try to tun the program, line 37 and 34 has an error saying "no match operator". It is the same as line 28 and 31. Then when I make line 34 … | |
What I would like is when I input the file path in the console window (lets say C:\hello.txt), I would like it to create, open, then write text into the file. Here's an example of my code. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main () { … | |
I google'd myself silly, I can't find tutorials for this. I hope someone could lend me a hand. I'll try to make this simple. I have a PHP & MySQL driven site. I have a form for adding new content. The form has a set of check box options that … | |
I am trying to learn c++ from a textbook (as so many others) but am having a really hard time following this example: Write a program to input and display a sales file. Each input line contains an integer ID number and a sales amount. When the end of the … | |
Hi All, Can anybody see why the following function is ignoring the plain text part of the multipart? [code] $attachment = chunk_split(base64_encode(file_get_contents($filetoattach))); //Let's start our headers $headers = "From: $from_name<" .$from_name . ">\n"; $headers .= "Reply-To: <" . $from_name . ">\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/related; type=\"multipart/alternative\"; … | |
Hi, I am really struggling to get some ideas for a project to do for my final year in Forensic Computing course. Unlike other computer courses it has to be something to do with computer forensics area I have been told. I am medium programmer in C but very confident … | |
How would I recode this to use checkboxes for each $result ? I want to make it so that instead of selecting different results from the drop down multiple times, a user can check the boxes of results they want and submit them that way. [CODE]echo "<table> <tr><td><b>Class:</td><td>#$class_id</td></tr> <tr><td><b>Show:</td><td><a href='shows.php?id=$show_id'>$show_name … | |
What does it mean if there is an ampersand right before the function name? Something like: int& myFunction(int& a, int& b) Also my book said something about how it doesn't create a copy of something if you pass it by reference, but what exactly does that mean? I never understood … | |
Hello! i didnt see any primary forum this should be in, so i'll ask the animals of PHP. I really want the url [CODE]http://www.mysite.net/index.php?page=images[/CODE] to be [CODE]http://www.mysite.net/index/images[/CODE] Anyone got any idea? i've been searching and trying all day, but my brain capacity is not online today.. I will hug you...:( ![]() | |
I have this in a script of mine: [code=javascript] function add_option(section){ var sec = section.id; var addnew = document.myform.addnew.value; alert('add_option: section: '+addnew); [/code] I am pulling text from the input with the name of addnew, and it works. I would like to use a variable in place of the "addnew" … | |
I was trying to implement checkboxes, but that seems too difficult. Here is the code: [CODE]<?php session_start(); // Maintain session state header("Cache-control: private"); // Fixes IE6's back button problem. $page_title = "Class Information"; include('header.php'); $class_id = $_GET['id']; $enter = $_POST['enter_horse']; $horse_id = $_POST['horse_id']; //general show information $result = @mysql_query("SELECT s.show_id, … ![]() | |
Hello! I've made a custom JPanel that overrides paintComponent which paints a rounded rectangle. My problem is that when I place other components in the panel, like a JLabel, they don't get rounded corners like the panel they are in. here is my panel class: [code] private static class BackgroundPanel … | |
Hi, <I don't know where to post this, but this question is related to Python> We have a returned page with two tables, each table one dictionary returned from database with bunch of values (may or may not) and we are displaying these tables side by side. Our requirement needs … | |
Hey all im new to the site and looking around i can tell i came to the rite place. Now for my question. Im suppose to take a poem with punctuations and blank lines in it and reprint the poem one word per line. The reprint cant have punctuations or … | |
Hi guys, I'm having trouble with this particular code [code=c] #include <stdio.h> int main() { char aChar; printf("Please enter a character: "); scanf("%c",&aChar); while (aChar!='x') { printf("The Letter is %c\n", aChar); printf("Please Enter another character: "); scanf("%c", &aChar); } return 0; } [/code] The output is: Please enter a character: … | |
Not sure if this is the right place but it looked good to me lol. Anyway, I'm looking for a web PDF viewer that I could set up "locations" on the pdf for the user to select from and view using one single pdf, and it has to work on … | |
Hi everyone! i am developing an application using java and mysql as a database server. the problem is i want to change the default date format in mysql. i created a table like this; create table registration (registrationNo integer primary key, customerName varchar[50] not null, regDate DATE not null); so … | |
I brought a website template off line. it came with a contact form that i have know idea how to edit it. here is the code please help i just want the message to go straight to my email when the user pushes send. Thanks in advance i been online … | |
Guys.. I need help in my RPG game project.. I used visual basic 2008, windows form applications. I used panel and its background is the map, and I used picture box as the character and with transparent gif pictures in every keyevents, I already can move the picturebox with keyevents. … | |
hi frnds.... i am working on a window based student registration project using vs2008 and ms access database.what i have to do is to register students for main or comptt. exam according to the course they are in. The students are shown in a datagridview as per the course generated … | |
I am still having major trouble with my openGL model program. The big issue is that I cannot figure out how to debug it since I am saving the important data to the graphics chip using vertex buffer objects (VBOs) so at least as far as I can tell, I … | |
there are 2 common ways to loop through a vector 1: [CODE] vector<int> myvec; // let's assume it's initialized for(int i = 0; i != myvec.size( ); i++) { // code // access by 'myvec[i]' } [/CODE] 2: [CODE] vector<int> myvec; // let's assume it's initialized for(vector<int> :: iterator i … | |
Hey there, I am aware of GridLayout, BorderLayout and FlowLayout classes. However, I find them not to work satisfactorily well for me when trying to layout the entire content in a frame. What I usually do is this: I identify parts that I want in my window. For each part, … | |
After a month of study on wxPython the vender finally admitted they were actually using pyQT... There are enough differences to make pyQT a *real* pain. So, I was wondering if there were *any* people on this Forum who were fairly well versed on pyQT? | |
Hi all, I'm coding Conway's Game of Life for my Java class and I've run into some logic errors. My problem so far is the fact that I have a section of code that looks similar to this: [CODE]if(board[i][j+1].getLife() == 1) board[i][j].setNumNeighbors(1); //Where setNumNeighbors(int n) { numNeighbors +=1} }[/CODE] etc, … | |
hi guys, i'm having an SQL Error in my CMS, somebody please have a look i get this error: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files (x86)\VertrigoServ\www\portal\estrutura\publicidades\exibe.php on line 73" my code: <? $variables=(strtolower($_SERVER['REQUEST_METHOD'])== 'GET') ? $_GET : $_POST; foreach ($variables as $k=> … | |
Hi all i have a new problem that needs some solvin I'm trying to add data sets to Google's Javascript Motionchart from my SQL database via PHP Here is what i have so far: [CODE] <?php include "conn.php"; // Select all the rows in the markers table $query = "SELECT … | |
/* can any 1 tell me wats the problem."[COLOR="Red"]Que: reverse an array without using temporary array[/COLOR] " [COLOR="Green"]This works for N =5 but when N =6 it displays the original values of an array.[/COLOR] */ [CODE]#include <stdio.h> #include <conio.h> #define N 6 void print(int b[N]) { int i; printf("\n"); for(i=0;i<N;i++) … | |
Soo my program is working...but there is just one problem...null is also being printed along with the content or string from the file... is there anyway i can stop null from being printed. The code read asks a user to give a filename .txt then the user is asked a … | |
![]() | I'm trying to create a java applet that displays farhen and cels temperatures in a chart. Temps below freezing need to be displayed in blue, and about boiling displayed in red. It needs to use applet graphics to draw the strings in different colors but I'm fairly lost when it … |
hey daniweb :) I need to click this button in vb. like click a button in webbrowser1 [CODE]<input type="submit" name="ok" value="send" class="btn sbold slarger">[/CODE] I've scoured through the internet, but alas, i failed to look for a helpful one :\ how would i go about this? Thanks a lot |
The End.