199,114 Archived Topics
Remove Filter ![]() | |
Can any one help me how to [ICODE]resize images[/ICODE] in php with out changing its original quality,that is if an image with size 100/100 when it reduced to 40/30 or any our required dimensions with out changing its [ICODE]quality[/ICODE] . | |
I use: Visual studio 8.0 MySql database Two table's: table :Groups, two fields : groupnb,groupdef table Article,three fields : articlenb,group,articledef I want to show with the DataGridViewComboBoxColumn two fields from [COLOR="Red"]groups[/COLOR] table . But i want only link field "articlenb" to column, but a want o show filed "Articlenb" and … | |
Hi, My front end has a Tshape(Cirle) Over a Panel and I am trying to move the circle on the panel and get the X and Y values and send these values through comport for serial communication. However I am able to retrieve the values but the shape is flickering … | |
Hi guys, I have a very simple form with 2 textboxes only and a listview to display added record. Upon form load i wanted to sest focus to textbox1, but it shows this error: Run-time error 5:Invalid Procedure call or argument My form load code [CODE]Private Sub Form_Load() bModelMaster = … | |
[QUOTE]Hi friends.............. I have a page in which all details of user displays. I want that when user click on button"Print ICard" then ICard is printed and this printed Icard have size of what I desire instead of full page and I also need "Thank You" message on print out … | |
Hi All, Im trying to get the following example to update without the need to click but cant get the bugger to work. The file its referring to is just echoing hello, im fine with setting that page up when its finished. all im getting is a white page. [code] … | |
I am trying to set a value in string for dateTimePicker1 but when i try dateTimePicker1->Value=System::Convert::ToDateTime("18/11/2010"); it doesn't change anything, the old value stays thesame. How do i change the dateTimePicker to a string value?(for example : "18/11/2010") Thanks in advanced. | |
[CODE]public static String strCap(String str){ //capitalizes the first letter of the string String newStr1 = str.replace(str.charAt(0), Character.toUpperCase(str.charAt(0))); int position = str.indexOf(". "); // looks for a period followed by a space while(position != -1){ newStr1 = newStr1.replace(newStr1.charAt(position + 2), Character.toUpperCase(newStr1.charAt(position + 2))); position = str.indexOf(". ", position+1); } return newStr1; … | |
I have this struct for an item in a to-do list [code=c] struct Task { char description[TASK_DESC_SIZE]; /* description of the task */ int priority; /* task priority */ }; [/code] i'm just not sure how to alter the description while making a task using this [code=c] TYPE createTask (int … | |
Hello All, First let me acknowledge I am still fairly new to webdevelopment and this site. Thanks in advance to anyone who can help me with this issue and for those willing to try. The PROBLEM: I load into a div on index.php page via AJAX another php page. Once … | |
Hi, I am having problem with my code can anybody help it is giving me this error Parse error: parse error, expecting `T_FUNCTION'on line 4. Here is my code <?php class database { $dbconnect=NULL; $dbhost="localhost"; $dbuser="root"; $dbpass=""; $dbname="db_student_info"; function db_connect() { global $dbhost,$dbuser,$dbpass,$dbname; if(!$dbconnect) $dbconnect=mysql_connect($dbhost,$dbname,$dbpass); if(!$dbconnect) {return 0;} else if(!mysql_select_db($dbname)) … | |
Hi this is my first post on DaniWeb.... the information has helped me in the past but im seriously stuck.... Help would be very much appreciated.. Im trying to create a form where the user can upload 5 pictures to a mysql database (members) field names are img1, img2, img3, … | |
I am new in java swing and I created a frame... i checked the documentation API and it has this "setSize()" method.. so yeah i did set the size of my frame but everytime i run the program, it is not on the size that i have specified [CODE] public … | |
I am trying to pull coordinates for a form location out of a database and insert them into the Location property: [code] childForm.Location = new Point(/* coordinates go here */); [/code] I have tried doing a direct replacement with the DataSet (which didn't work): [code] childForm.Location = new Point((string)row["location"]); [/code] … | |
Hi, I am relatively new to c++ and DW so this may sound a little stiff. I recently learned about classes and I was wondering if there is a way to take user input and set that input to a private variable. I know it would require accessors methods, but … | |
i have a Jframe.in order to paint it i not using paintComponent but ordinary function containing g.drawstring("sd",0,0). when ever i click the mouse the string should appear at that point and it should move with the cursor until another click appears. my problem after clicking the string is not appearing … | |
I am new to C++ programming and I'm having a little trouble. I have to create a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with … | |
[B]Simple Question: Please read[/B] I have the following code snippet from my program that i am working on [CODE] bit running = 0; float var1, average_value; void is_something_running(void) { if (fabs(var1 - average_value) <= 0.001){ return *(&running) = 0; } else return *(&running) = 1; }[/CODE] var1 and average value … | |
Hi all, Can I ask you all, what kinds of tool/api you use to write 2d game such as chess or mario?? And does a 3d api capable of making 2d game?? Currently I am using allegro as a start, is allegro old?? Thank you all! | |
Hello, forum :) Does anyone know a c++ code that performs the same actions as a "tee" command does in linux? Basically what the tee command does is read an input from an input stream and directs it to two places: 1) Displays the input stream on the screen 2) … | |
Hey, I'm trying to download a file from the internet and save it to my desktop.. The code compiles but at runtime it does not download the file: [CODE] try { WebClient fileDownloader = new WebClient(); fileDownloader.DownloadFile("http://www.google.com/logos/2010/lebanonind10-hp.jpg", "/Users/p/Desktop"); } catch(Exception ex) { Console.WriteLine ("The file cannot be downloaded!"); } [/CODE] … | |
Hey. I need to copy the last 2 sets of numbers from this url [url]https://www.molten-wow.com/?display=info[/url] so I can put each one into a php variable Can this be done? Thanks | |
Hey everyone, Im working on a few java programs for a class and this one i can't seem to find an answer anywhere for. I need to write a program that roll's a dice, which is simple, then i have to have it roll the dice 20 times. Also simple. … | |
Hai Im trying to make a link for mp3 file from some folders. How create a link for these mp3 files by using php code ? | |
[I][CODE]execfile('comp1.py') def exefi(name, locals=None, globals=None): exec compile(open(name).read(), name, 'exec') in locals, globals exefi('comp1.py')[/CODE][/I] it can execute successfully. but [I][CODE]#execfile('comp1.py') def exefi(name, locals=None, globals=None): exec compile(open(name).read(), name, 'exec') in locals, globals exefi('comp1.py')[/CODE][/I] it come with "File "comp1.py", line 39, in <module> ex=c.end() File "comp1.py", line 17, in end return compile(string.join(self.code, "\n"),"<code>","exec") … | |
I have set the two following cookie when a user successfully logs in. [CODE]$total = mysql_query("SELECT total FROM usersystem WHERE username = '$username'"); setcookie("username", "$username", time()+3600); setcookie("total", "$total", time()+3600); header( 'Location: play.php' ) ; $_SESSION['username'] = $username; [/CODE] (Username is previously defined and does display when retrieved.) Then on the … | |
Hi guys, Im in the middle of writing my own custom cms, and ive found a frustrating bug I cannot get rid of! When the user logouts, they can use the back button the trace back through the pages theyve been on. However refreshing the page shows them as logged … ![]() | |
Okay. I have a program I am writing similar to the lottery, my input file provides 10 combinations and my rand() produces 5 random numbers which I want to compare them against using binary and linear search. I know how to compare them 1 number at a time, but don't … | |
Hi, I cant make the file to get uploaded. [B]index.html [/B] [CODE]<html> <body> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> </body> </html> [/CODE] [B]uploader.php[/B] [CODE]<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Uploader php … | |
I have been working on this simple text editor using Python 3 and Tkinter. This is my first time creating a program with an actual GUI and I have relied only on Tkinter documentation. I managed to create a text editor. However, we I started working on the commands of … | |
OK im not sure if this is a programming or pc problem but please read on ok i made a program to display playing cards in random locations using cards.dll just for a bit of fun but on my main PC which has 2.19 GHZ processor and 1 GB ram … | |
Hi i am a total beginner and studying for a FD degree in C++. My assignment states Assignment Details a telephone company requires a program to calculate call charges for their customers. The regular charge rate for long distance phone calls is £1.50 for the first 3 minutes (or part … | |
I have created an html page that must not have the automatically created url/page number at the top, in the header, or the url/page number at the bottom, in the footer, when you print the page. I know that it is possible because google maps does it [URL="http://maps.google.com/maps?hl=en&ie=UTF8&ll=37.0625,-95.677068&spn=54.269804,79.013672&z=4&pw=2"]http://maps.google.com/maps?hl=en&ie=UTF8&ll=37.0625,-95.677068&spn=54.269804,79.013672&z=4&pw=2[/URL]. So I … | |
Ok....so here is my problem. I want to release a library where with my dllInjection class, whenever the user instantiates an object, it will automatically perform the injection for the user. The only arguments they need to provide will be the processName, and dllName. Anyways my question is, i understand … | |
Hey guys I need help with part 2 of my space invaders game. So far I have the missile shooting from the base but the missile is only fired once and that's it. I need to finish the code so that once the missile hits the top of the window … | |
Recently, I have been assigned the task of tracking training records used by multiple departments within my company. Before, they would fill out ISO Standard Forms that are built in MS Excel and save them in one folder. This folder held ALL of the documents used by multiple departments, training … | |
Hi guys, Can anyone help me to fix my code so I don't get the unexpected unindent error? The code is very big, so I'll only post a small part so you can help me. I'm using the PyScripter IDE. [CODE]def pegar_dados_serial(): ser = serial.Serial(port='COM4', baudrate=115200, timeout=2) #Rotina para leitura … | |
Hello I want to use a CustomValidator using ASP.NET/C# to make sure a textbox isnt empty (no spaces, no blanks, no nulls, etc) How do I do it? Thanks | |
Could someone please explain the line dealing with the array options[] array? I was trying to write it out with document.write(options[0]) but I end up with undefined output. Ultimately I would like to assign the values for width and height into it. [CODE] jQuery(document).ready(function($){ var $anchors=$('a[rel="enlargeimage"]') //look for links with … | |
I cant display a board for some reason I added a catch statemnt but there is something wrong with the if statment inside the for loop but i dont what is wrong thugh with the if else statement. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; const int size … | |
Hi All I'm new to dot Net but I have developed a master page template. Within this, I want to add contentplaceholders. Within those contentplaceholders, I'd like to add commented out HTML or example HTML so that my interns can see directions (such as what class to add, what to … | |
[B]Problem:[/B] Write a program which reads a stream of integers from a file and stores them in an array. The array is then analyzed to compute the average of all the values in the array and all of the values that are above the average should be printed out to … | |
Hi, I have a program that has a package that is imported in a class called Control.All the files are compiling correctly apart from when I try to import a package. I am importing the package by [CODE]package carpkg;[/CODE] and in my main there is [CODE]GUI gui = new GUI[/CODE] … | |
hi to al i was doin some programming till i encountered this problem in the followin code... i am nt able to find anythn wrong with the code bt it's nt showing the right result. #include<iostream> #include<conio.h> using namespace std; class person { char* name; public: void get() { cout<<"enter … | |
Hi everyone I would appreciate it if someone can point me into right direction. One section of my latest project idea involves linking several form controls to the Google map (distance calculating section), which is area I’m not familiar with. What I would like to achieve is following: (VB2010) I … | |
Ok, so, I'm trying to copy an array starting at a specific based on the number of variables I have. I have the program give me the number of variables. What I need is to copy the original array, UnsortedArray, start at the index of var + 1. I have … | |
I wrote small proggy..and I dunno why it doesnt work...can you help me? [CODE] #include <string.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <cstdlib> #include <sstream> #include <iostream> using namespace std; int main() { string option[] = {"option1.txt","option2.txt","option3.txt","option4.txt"}; string token; string filename_token; string line,filename,filename1,c0,c1,c2,c3,c4,c5,c6; int i=4; … | |
So there's this old programming assignment from last semester and he's giving extra credit if we finish it. Here's the assignment [url]http://www.cs.oswego.edu/~odendahl/coursework/csc212/201009/assignments/04.html[/url] I really want to finish this but it's the first time my class is trying to do it without pseudo code. Here's what I have so far for … | |
//$update = $_POST['update']; //$quantity = $_POST['quantity']; //if($update){ //for($a=0;$a<$count;$a++){ mysql_query ("UPDATE productorder SET Product_quantity = '$quantity' WHERE id = '$id'"); THEY ONLY UPDATE THE LAST RECORD HOW I UPDATE THE MULITY RECORDS ![]() | |
Can anyone help me improve my source code below? I tried fixing it but apparently, there's not much success. [CODE] #define NUM_THREADS1 1 void *go_to_website2(void *program); void *go_to_website1(void *program) { char* str[3]; str[0] = (char *)program; str[1] = "http://www.google.com"; //supposedly 2nd website to go to str[2] = '\0'; char* new_prog … |
The End.