199,114 Archived Topics
Remove Filter ![]() | |
hi, i have a panel with controls and richtextbox's within it. When the user clicks the save button, i take panel1 and DrawToBitmap, then add the image to a pdf created using abcPDF7. My problem is that i have recently change textbox's with richTextBox's to enable the user more functionality, … | |
Hello all. So I am trying to write a program that will read in a text file, then it will scan the file for prompts, such as %[color], %[noise], etc. Then from what prompts are within that file, the program will ask the user what word they would like to … | |
I'm working on a program that will find the prime factors to an unsigned integer that is entered by the user. I just have to make sure the program can handle a number up to 1000. I'm writing assembly in x86. I have already got a prompt for the user … | |
Hey guys. I am getting a fair amount of errors when trying to create this menu. I am not sure whether or not I am going about it correctly. Without further adieu: [CODE]package assignment.pkg2; import java.util.Scanner; public class Assignment2 { public static final int MAX_NUM = 10; public static void … | |
I have an assignment to reverse the sequence of coins in a purse. I cannot use any methods from the Collections or Arrays Class. I have the following code but have no idea what to do from here to get the purse contents to reverse. [code] import java.util.ArrayList; public class … | |
I have an assignment to create a class Purse and print the coins in the purse, reverse the sequence of the coins, transfer the contents of one purse to another, and compare to see if two purses have the same contents. I have the following code but the transfer is … | |
My goal is to output monthly cost insrance for entered employee id, but my program keeps giving me a error idk why [CODE]import sys #empfile=raw_input("Enter Emp.file Name:") #emp=sys.argv[1] #print emp #usage : run it as follows from command line. #python db.py employee.txt InsurancePlans.txt InsurancePolicies.txt def dict2(lines): dict={} for l in … | |
So I have to create a guessing game to be played between 2-5 players. That part wasn't very difficult. I am however having LOTS of trouble with the try...catch statement. I have to have to make the program have a try catch so it doesn't throw an error if the … | |
Hello There Iam Sorry My problem Will take Time To Explain So Iam Sorry For That first thing that's my code in the index file [CODE]<?php $result = mysql_query("SELECT * FROM games"); while($row = mysql_fetch_array($result)) { echo "Game Name : <a href='GameDetails.php?id=$row[id]'>$row[name]</a><br/>"; echo "Genre : $row[genre]<br/>"; } ?>[/CODE] [COLOR="Red"]In The … | |
I'm trying to do disk reads and writes when programming in C++ in the win32 console mode. I can create the file on disk using CreateFile(), but I can't figure out how to read or write to that file. I used the ReadFile() and WriteFile() functions but I just get … | |
![]() | Hey, guys. I'm new to this forum and this is my first post ever on this site. I am currently a freshman in Penn State University and I am having trouble with my C++ class. I have a group project but have no idea where to start with this program … ![]() |
Hello guys.. I have this website called jupiter.php. It's code ignitered. I want to put it in my friend's website called [url]www.planet.com[/url]. My website should be accessed like this: [url]www.planet.com/jupiter[/url]. Problem is, I don't know how to. Should I ask what programming language or web server my friend is using? … | |
For the website I'm working on, I've included a "search the site" section. Once the user searches a keyword or a phrase, the php processes all the content in the mysql database and prints out the title, content and a link to the page with the article containing that specific … | |
Here is the instruction to the assignment: [url]http://dl.dropbox.com/u/43732846/Instruction.txt[/url] I think I got up to the part to initialize array and set length to 0 but I'm not sure how to do a for loop to print. I tried like strlen(month), printf(month[i]), etc, but none of them seems to work. And … | |
I would like to use a non-final variable in an On-click listener and converting the variable to final is not an option because the variable is an ArrayList<String> which i will be altering and editing throughout the coarse of the program. This is an overview of the code I have … | |
Hello, I am updating a DataGridView using [CODE](dAdapter).Update(dTable);[/CODE] How to check if update is done successfully in order to display a message box. | |
Hi all, I'm having trouble getting POST value from dynamically generated txtinput[] and MultiSelect since they form an array. I read so many articles but I get confuse.. a short form of my code is given below.. Pls help me with best way how I can get array values in … ![]() | |
Hello I Need To Know how to Retrieve Random Data From A Table In Database i have a table called actiongames i need a code to retrieve random data from this table | |
Hi, is there anyone out there who has any little knowledge of how to got about getting ur program to read a .bmp file? Pls teach me or show me an example just about how to get ur program to read .bmp files Cheers Ming | |
Hi all, i understand that php header needs calling before any output. i made a mistake and used it after an include which did output some html which gave the error. but when testing on localhost with exact same code the header location redirect worked fine with no error? any … ![]() | |
Hi There, Proberly a really simple request but im desperate for help none the same lol, I need to write some code that, takes filenames from a folder, and displays them in an order in a list. (Im using Visual Studio btw) lol. The file names are in the format … | |
NOTE: If this is too long, scroll to the last paragraph where hopefully I've summarized my problem. I have a simple problem. I have two tables, one is for the "header" and one is for the "details" of the header. I need a view to return all details and the … | |
This is code for the slope intercept formula y = mx + b I am supposed to find the slope (y2 - y1) / (x2 - x1) and have the user input the b for the y = mx + b in my program. Once the user does that I … | |
hello friends may peace on you ! I have a little problem in my code.i want display the fetch value from db in a textfield after pressing load button.i am using ajax post method for it but cant figure it out what the problem.please help me ! Thanks, [B]Index.php[/B] [CODE] … | |
Hello, I am new to web development and PHP/JS. I am currently using JWPlayer to show video on our church website using an xml playlist and all is working fine but it is rather cumbersome to upload new videos/Mp3 files. Each time we want to add a new video or … | |
Another noob question here.. Im a frshman programming student and I don't have the best instructor. I've just finish doing a simple inventory system Vb6 + MS Access database. My question is how can I save the database path? because whenever I change computer from Home to School I need … | |
Hello. Is there a way to move to the mouse cursor on the screen using C or C++? I am using windows vista and Microsoft visual studio 2008. I am pretty new to C so I don't know much. I have read previous threads which said that you need to … | |
hello guys! we have a big problem in our database. When we input values, and retrieve them in forms, we can see them. but when we look directly into our database, we can't see it. What is the possible problem? here is our codes to add values. [CODE] Private Sub … | |
When I run my program it prints out the number for the forty eighth sequence as being -132375223 when it should read 4807526976. What am I doing wrong? -Towey [code] # include <iostream> using namespace std; int main () { int x1=0; int x2=1; int fib; for (int i = … | |
I'm writing a Level Editor but my program is shows the X,Y,Z positions like DWORD(unsigned long). I want to show them like a float but I can't find a formula or function for that. If you know something please reply! | |
Hello. I've been doing a small application that will go (using only unsigned integer values) from 0 to 4026531840 and print them out. My code is next: [CODE]#include <stdio.h> #include <inttypes.h> int main(void){ uint64_t cnt; for(cnt=0;cnt<=4026531840;cnt++){ printf("%d\n",cnt); } } [/CODE] The only problem that i have is the last numbers … | |
Hi All! I got a problem with one of my files where I can't upload a file to my database. I want to save the path in the db but it gives me an error and says the "Filename cannot be empty". In my .html [CODE] Upload a profile picture(50px … ![]() | |
[INDENT]:icon_lol:Suppose there is a (method) [U]call stack[/U]; An [B]exception[/B] has occured in a deep level but not handled there yet; So the corresponding [I]finally block[/I] at that level is executed first and then [B]it[/B] is thrown to be propagated up through the [U]call stack[/U] and at each step if [B]it[/B] … | |
[CODE] public class Planet { private String planetName; private int travelDay; public Planet(){ planetName = "Earth"; travelDay = 365; } public Planet(String planetName, int travelDay){ this.planetName = planetName; this.travelDay = travelDay; } public void setPlanetName(String planetName){ this.planetName = planetName; } public String getPlanetName(){ return planetName; } public void setTravelDay(int travelDay){ … | |
I've looked into all the other threads and I am still lost. [CODE]#include<iostream> #include<cmath> using namespace std; //Prototype's ////////////////////////////// double functiony(double); double area(int, double, double); // Main ////////////////////////////// int main (void) { //Solving for y=x^3 using k as y and d as x double k; double d=0; k = functiony(d); … | |
[code] void test(std:shared_ptr<some_type> A) {.....} [/code] would make a copy of a shared_ptr what if we pass a shared_ptr into a function like [code] void test(std:shared_ptr<some_type> const &A) {.....} [/code] Is this safe? Thanks a lot | |
hello i have a problem with the % sign in to the url links for example my url is [code]http://www.site.com/1411/The-trafic-is-increased-to-20%-this-year[/code] that % is used like a variable in browsers and is not clickable in IE 8 or it gives errors in others browsers! removing % is not an option because … | |
Ola! I'm still kind of new with the whole assembly language and just need some help with this program i'm writing. What I want it to do is to ask a question -like for a number and then store that inserted number in a variable. And then test whether its … | |
Hi all, I queried results form MySQL database using php and stored the results in a text file. Now i want to store the text file contents in a single string variable. I would be thankful if anyone could help me with this. Thanking you. Have a nice day. cheers, … | |
[I][B]Hello,[/B][/I] I would have contacted the website's owner, but there's no email on the site. I'm looking for someone's help on this. By looking at the code below, the link(s) open in a new window, and wanted to know if there's something that can either be added, modified or deleted … | |
When on the digital mars website he advertzed that their compiler could use all 80bits of a 32bit machine. What the heck does this mean? | |
So I need to do this following program and I'm totally confused at the moment. Can someone please help me? Your help will be greatly appreciated. Objective: 1. Write a program that incorporates function modules 2. Use appropriate function declarations 3. Use function headers and write function procedure 4. Use … | |
i need to use crossfade function to to this. i need some help please, i am new at this. any help would be great. i have done a program than makes a double image but this need to happen slowly. | |
Hi All, I am tring to using the below function to read in a .txt file, which consist of a 10x10 matrix number. I just cannot find out where goes wrong, it appears such a funny number -858993460... [CODE]void readinput(int in[][MAXCOLS]) { int row ,col,ip; //Declare row,col, ip as int … | |
I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But … | |
how to automatically display data in textbox from database when primary key is added in textbox | |
Hi all. I've been trying to get this code to post to a https url for some time without any remedy. I'll give you all a basic rundown, I have a site that we're trying to generate leads off of, and we have a 3rd party crm system that we … | |
What is the difference between Release and Debug modes in Visual Studio while building a project? | |
Ok simple question. Google didn't bring up much and I need this. This is the question: How do I interact with non-text files in a simple console app? | |
I want to write a shell script to automate the ftp session, in that it should take the inputs like the server ip , username , password from a different file who path i'll pass. and also the validations that if the server path exits or not. |
The End.