199,114 Archived Topics
Remove Filter ![]() | |
Hey guys, I am new to C# and know very little about ASP.net and classes in general. All that to say I got a project file for Visual Studio 2008 that is a C# web form that is suppose to allow you to enter address info: Street, City, State and … | |
Currently,I'm doing a image slide show application but I'm don't know how to save/publish the slide show project into .swf file. Can anyone help me solve this? | |
i have a column in mysql called origin which is type integer(not ascending or descending). All rows have an origin assigned to them can't be duplicated... e.g. two rows with the same origin(integer). when inserting a new row. Just say row 1 has origin 15 and i'm inserting a new … | |
i hv written code of seraching specific folder on user choice with threading implemented. but im getting nullpointer exception at l.statsWith() in thread class two and not with normal searching [CODE]public class onlyfolder { static String z,l,w,e; static String y; static File f; static JFrame frame; static JPanel panel; static … | |
ok, i have a bigger problem. when i run the program (something like this); "Which swimming instructor would you like to choose? Enter j for Jeff, Enter a for Anna j Please enter the first letter of the day of the week you would like to schedule. M for Monday, … | |
I was wondering how to make a program to open a specified file just by entering its location. What command do would i use to open it instead of double clicking on the file. Thanks in advance. | |
OK, i can't figure out what kind of mistake I've done. Can somebody help me please. [CODE]#include<iostream> #include<iomanip> using namespace std; void scedulejeff (char [][4]); void sceduleanna (char [][4]); void Print2DArray(char [][4]); int main() { char jeffarray [4][4]; char annaarray [4][4]; char instructor; cout << "What instructor would you like … | |
Hello, I have been searching for a solution on how to solve this problem for almost a month now. I'm at a point where I feel like I've traveled around the world 7 times and still haven't found the answer. I hate introductions so I'm just going to go ahead … | |
Hi all, I tried running the following code. [code] #! /usr/local/bin/python import threading import time print "Press any key to start timer!" input() threadBreak = False def TimeProcess(): while not threadBreak: print "How are you?" print (time.time() - startTime) startTime = time.time() threading.Thread(target = TimeProcess).start() input() threadBreak = True input … | |
im looking for a python mud game example which i could see the coding and make my own mud, the thing is that im very new to mud if i was able to see an example of a game working then i would be able to understand what coding classes … | |
For my CS1 class we have to write a simple battleship game. I'm having trouble even knowing where to begin. After I get a basic skeleton of functions and classes I think I will know where to begin. We have to use the Zelle graphics.py module ANY help would be … | |
Hey guys. I have a tic tac toe game that plots random X's and O's on a 2d matrix array called theBoard[row][col]. I want to check to see if one X is placed on 1 spot, and if another point is plotted in the same spot, to check if it … | |
[ ] I've got a working bootloader. Now I need to learn how to pass control from that bootloader to... Well, I'm really not sure how to do that. [ ] Once I have passed control out of the bootloader. How do I access the graphics driver? [ ] How … | |
Hi! I have a counter that increments by 1 for every page view. [CODE]$colname_Recordset1 = "-1"; if (isset($_GET['urlcode'])) { $colname_Recordset1 = $_GET['urlcode']; } mysql_query("UPDATE users SET counter = counter + 1 WHERE urlcode = '$colname_Recordset1'");[/CODE] It works in IE but counts twice in firefox the first time the page is … | |
I am taking a class on assembly language for intel based computers and for our final project we need to develop a simple game in assembly. For my project I need to make the console window bigger. I looked in the textbook and i cant find anything about resizing the … | |
Well i want to make my prog more pro so is boardless and it has custom buttons like close - minimize and option btn i made that option btn so it appears another form boardless with options but you can see completely the first form. i want like when i … | |
Morning People I seem to be having a pretty big issue with a buffer I have that is reading a text file and acting upon the results of the file, As of now, the buffer reads each token in the file, and stores each token into a variable, this is … | |
I have to create a program that makes a lottery like game. My teacher wants me to use the constructor to initialize all the fields but I can't seem to get it to do that. Everytime I put the fields in the constructor initialized, I get compile errors. So right … | |
Hello! I am having a bit of difficulty calling a function in my class Image. The point of the class is to generate a 2D array of Color instances, then do various things with it. Within my test code, my editor simply will not allow me to call any methods … | |
ok I'm confused... my class is empty, apart from an inclusion file, but has alot of errors that i cant understand.... Here's the .h file: [CODE] #ifndef creator #define creator #include "stdafx.h" class creator { public: creator(); ~creator(); } #endif [/CODE] And here's the cpp file: [CODE] #include "creator.h" creator::creator() … | |
Is it possible by any way to make a .php with all the data into it a .png Example: You got a php that the data displays in the order you want and u want to like screenshot it and post it into the main .php like a fucntion createphptoimg("test.php") | |
Hello :) I've got this resource (as in files on the pc) management system, that had been tested but now seems to be malfunctioning. I've been debugging for way too long now, and I can't figure out the issue. I'm going to post some of my code first, and then … | |
Hello All; I would like to start off by saying hello, and that this is actually my first post to the group, even though I have been a member for many years. I am a ASP Classic Programmer, professionally for a little over a year, I have developed some rather … | |
Hi I,ve recently joined daniweb and was wondering if you guys might help me in writing a shellscript that automatically detects whether a flashdrive has been inserted into a usb port and recursively searches all folders deleting any .exe files it encounters. Thanx. | |
hi all i'm trying to draw an oval/ellipse over an existing square the problem is that the oval is drawn behind the rectangle how do i fix this? here is my form's code [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; … | |
Hello, I am looking for some code that would help me understand how to use SPSS in C#. Basically, what I need to do is open an SPSS file and save it in another format. If anyone could help me out with this, I'd greatly appreciate it. Thanks, | |
I have been asked to make a proposal for a new IT testing & development environment at work but I have no idea where to start. We are a small team of 3-4 developers and will be developing in a variety of languages for a variety of applications, inculding: - … | |
hi all, i am trying to create a thubnail image and want to insert in a folder and path into database.. i uploaded image into folder but not able to create thumbnail from it [CODE]string s = @"~\uploads\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(Server.MapPath(s)); SqlConnection cn = new SqlConnection("Server=praveen;Integrated Security=True;User Id=sa;Password=sa;Initial Catalog=banking"); string … | |
I am writing here, asking you for a little help. I have assignment in Java for my class in programming. I should create Java Applet and make animation. The animation should consist of several bouncing figures (balls, triangles, squares etc.) and when clicking on them different events should happen. One … | |
The group has now been divided, my problem scenario is the following: There are 2 packing machines, which can pack any type of food, however this needs to be done one at a time. Each food type takes 10 secs to pack. The packing machines get the food from the … | |
I am new to pseudocode and completely computer science idiot ! need help urgently for answers for following questions: 1.) Design an algorithm for finding all the factors of apositive integer. For example, in the case of the integer 12, your algorithm should report the values 1,2,3,4,6, and 12. 2.) … | |
Hey, I have to write a program using vectors that will input a list of positive integers terminated by a negative integer and output the unique numbers in the list in ascending order? Can anyone help me get started? | |
hello, [B]I have an assignment for my one class at school where I am supposed to write a program that creates lists of people who have met. Each line of input is a space-separated list of the names of people who have met. If a person is in a group … | |
I personally prefer the 3 syntax over 2, but I notice most of the code snippets in this forum are for Python 2. Is it because we are still in a steady transition from 2 to 3, or is it something else? | |
Hi, I have a circuit that charges a capacitor and discharges it. The length of the discharge pulse is supposed to be determined by the ADC value from a POT. The pot is wired as a voltage divider and I have tested that the voltage to the pic pin varies … | |
I'm getting started with Django on Windows. And the tutorial [URL="http://docs.djangoproject.com/en/dev/intro/tutorial01/"]http://docs.djangoproject.com/en/dev/intro/tutorial01/[/URL] has me running "python manage.py <command>" from a command promt all the time. But I'm wondering: Couldn't I run the manage.py commands from PythonWin or IDLE? | |
I am so lost in this programming assignment. Here is what I am suppose to do: A. Define a struct that represents a CAT as follows: A CAT has a weight, name, and a neutered flag, i.e., those are the components of the struct. Use a typedef. B. Declare a … | |
I have this Lab for a class that I am taking.. It works as it suppose to... The problem I am having is that if I enter more than 11 char it goes all crazy.. I don't want it to do that... [CODE] #include <iostream> #include <cstring> using namespace std; … | |
Here's my code. [CODE] (define L ()) (define (union L1 L2) ;continue until one list is empty (do() ((or (null? L1) (null? L2))) (cond ((<(car L1)(car L2)) (attach(car L1)(cdr L1)L2)) ((eq?(car L1)(car L2)) (attach(car L1)(cdr L1)(cdr L2))) (else(>(car L1)(car L2)) (attach(car L2)L1(cdr L2))) ) ) ;after which you continue to … | |
Hi all, I have to write a program that will input a string and convert the string to an integer value. The program should then output the integer value multiplied by 2. Also im not supposed to use any built in functions.Can anyone help me? Thanks a million! Sana Zafar | |
Hey I rather not use conio.h for cross compatibility so is there any way to make my own "conio.h" and just include it in my compilation. Thanks. | |
Hi, I want to send three text box values to server using jquery ajax. problem is that, i dont know the exact syntax to send three data. When i try sending one data(also change no.of parameters to one at server side method), its going good but when i try to … | |
I KEEP GETTING THESE TWO ERRORS: 1. error C2011: 'vehicle' : 'class' type redefinition 2.see declaration of 'vehicle' [CODE=c] #include <iostream> #include <string> #include "vehicle_imp.h" //IMPLEMENTATION vehicle::vehicle() { x = 0; y = 0; speed = 0; facing = 0; } void vehicle::turn(int facing) { facing=facing+90; if(facing==360) { facing=0; } … | |
Hello everyone, I am trying to understand composition versus inheritance in C++. I have looked at many web pages, but I haven't found anything that makes sense to me. Can someone please tell me where I can find some examples of programs that might make sense to me? I am … | |
I saw few treads referring to this subject but I just can't get this working includs.cpp [CODE]#include <iostream> using namespace std;[/CODE] main.cpp [CODE]#include "includs.cpp" #include "ispis2.cpp" int main() { ispis(); system("pause"); }[/CODE] ispis2.cpp [CODE]void ispis(){ cout<<"tets file"<<endl; }[/CODE] After compiling this I always get the flowing error [CODE]error C2065: 'cout' … | |
Greetings! I have a form that's meant to be a rudimentary search engine. The forms calls the piece of code below and outputs successfully the results in a new tab. [CODE]<?php //Includes the db config file $dbconf = include '.../config/dbConfig.php'; //checks if fields are set. if(isset($_POST['submit'])) { if( !empty($_POST['search_string']) ) … | |
Hi all, I am working on a PHP project. Im having a problem giving the 'src' for a image, because the image file is placed outside of the www folder :(. Let me explain more. When I log in to my server using FTP logins, it gives the directory structure … | |
Ok, I have a class project to basically design a program that handles classes and vehicles. What I have so far is far from the ending product. I have made 3 classes, car, vehicle, and motorcycle. Car and motorcycle are dervied from vehicle. The car class has a set const … | |
Let's say "a" is a char and "b" a string. Why does it take longer to compute b+a than a+b? Strange, isn't it? | |
how do we use javascript to only allow selection from the list in question 3 to be made IF the user selected at least 1 check box in question 2? below is my code: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> Example … |
The End.