199,114 Archived Topics
Remove Filter ![]() | |
Hello I just started programming and managed to make some programs, but what I don't get is when I get these errors: Compiler: Default compiler Executing gcc.exe... gcc.exe "D:\Documents and Settings\Riikard\Desktop\Untitled1.c" -o "D:\Documents and Settings\Riikard\Desktop\Untitled1.exe" -g3 -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -g3 D:\Documents and Settings\Riikard\Desktop\Untitled1.c:1:20: iostream: No such file or directory D:\Documents and … | |
"Hi, I need some help with a text box input. This is used in a form to capture results from exams. I need the user to not be able to put in a amount greater than 100, is there a way of doing this? | |
When I call this this form in self submission the calue of the drink_id is always the last id value of the table...... How to retrive the proper value as per id ??? [CODE]<form name="drinks" method="post" action="<?php $_SERVER['SELF_PHP']?>"> <table width="100%" border="0" cellspacing="10" cellpadding="0"> <?php $d_id=1; $query01 = "SELECT * FROM … ![]() | |
[CODE]import java.awt.*; import java.awt.event.*; import java.applet.*; /*<applet code="actionapplet" width=500 height=600></applet>*/ public class actionapplet extends Applet implements ActionListener{ String msg,str; Button b1,b2,b3; public void init(){ b1=new Button("substract"); b2=new Button("add"); add(b1); add(b2); b1.addActionListener(this); b2.addActionListener(this); } public void actionPerformed(ActionEvent ae) { str=ae.getActionCommand(); if(str.equals("add")) msg="addition is to be performed"; if(str.equals("substract")) msg="subtraction is to be … | |
I have met a proplem in correcting the following file and please submit to me by correcting the errores and if you can please help me in sorting and updating this file #include <iostream> #include<fstream> #include<string.h> using namespace std; struct gum { string nam,fnam,typ_item,nam_pack,coun_cons; int tin_no,reg_no,tot_item,tot_pack; float weigh; }; void … | |
Sending one image works, but when i repeat the cycle again it just doesn't work. my Client side code (excerpt): [code] for(int i=0;i<50;i++){//fromServer.contains("image") img = ImageIO.read(in); System.out.println("Got image."); label = new JLabel(new ImageIcon(img)); scrollPane.setViewportView(label); fromServer = reader.readLine(); }[/code]On the client side i have this output [code]Got image. Got image. Exception … | |
What is the best solution / IDE etc, to develop for the iphone without using a mac OS. I mainly use Linux but have no problems with using Windows if needed. | |
I'm searching a text document and replacing substrings with other substrings. So for instance: "ra,16([B]sp[/B])" with "ra,16([B]$sp[/B])" The issue I'm having is that say I have the following string: "sp,sp,24" How do I re-iteratively replace "sp" with "$sp" twice without getting: "$$sp,$sp,24" This is my code: [CODE] ... if ( … | |
I've seen that a vector can be sorted using [code] vector<double> V; vector<int> Index; V.push_back(9); V.push_back(10); V.push_back(8); Index.push_back(0); Index.push_back(1); Index.push_back(2); sort(V.begin(), V.end()); [/code] If I want to sort Index according to how V was sorted, there is an optional third parameter to sort() that will do this. I don't understand … | |
I want to display a player in Jsp page that supports .wav file | |
[COLOR=Blue]Hello.... I'm currently using Netbean 5.0 and I just want to add some GIF files to my program when it builds. I'm using the files as icons for some of the GUI buttons and labels. But when I select clean and build main project or build main project and execute … | |
I have try to display selected date from calendar into textbox. But, I got error. My textbox name is txtStart My calendar name is Calendar1 Here is my code.. [CODE] protected void Calendar1_SelectionChanged(object sender, System.EventArgs e) { System.DateTime myDate = new System.DateTime(); myDate = Calendar1.SelectedDate.ToString("MM/dd/yyyy"); txtStart.Text = myDate; } [/CODE] … | |
Ok I need help setting up a postback script in PHP for an affiliate program. Example: [code]http://example.com//postback.php?appId=2798&userId=12345&amount=10&hash=8b44493ab7b37a6e47ca2f8726b87563[/code] How would I script something that would take the postback info and look up the user and give them the amount shown while checking the hash. I am very confused by all this … | |
Hello. So the most I can tell you is i'm having serious trouble with my code of writing to a txt file. It's not that my code isn't working, it's that c++ is outputting WEIRD crap that makes no logic sense, doing things out of order, and just seriously screwing … | |
I want to make a Desktop Effect (for example: fallen leave, snow,... on Desktop) but I don't know how to do that (one of these problem is: how can I do "something" on Desktop, because every program that I had programed run in a window) Who can discuss this problem … | |
Can any one tell me, what is the difference between SQL and MySQL? | |
Hi I seriously need help. I have to create a web app using asp.net and c# that sends data that the user put in and then my web app sends data to another company's webservice, process the data and then my web app should display it to the user. What … | |
I met a problem in sorting a file containing astudents fistnane, secondname and GPA.if I sort the file using first name or lastname their Gpa will be miss placed please help me. the file is: kalayu haile 3.5 fikadu adisu 3.99 eyob assefa 3.25 getaneh allesew 3.75 fraol gezahegn 3.00 … | |
Hi, I have created a data entry user form in MS Access 2007 which pulls out and puts in data from/in 3 different tables, When I create a new form(a new record should be created in all 3 forms with my primary key), I can enter data in fields from … | |
Hi, My code opens Excel 97-2003 version Excel file correctly, but gives error when the Excel file is in 2007 (*.xlsx) format. How to solve this? - Mahesh | |
My question may be funny but i want a right direction so i am posting it. I know fundamentals of c and c++ and i want to go ahead in it. I heard about windows and system programing but i am confused that app like antivirus, process explorer, anti spyware … | |
Hi everyone, I have the following code to save the text inside an editbox: [CODE]var Data: TStringList; begin Data := TStringList.Create; try Data.Append(Edit1.Text); Data.SaveToFile(Savedialog1.Filename +'.txt'); finally Data.Free; end; end;[/CODE] And this code to load it to that editbox where i saved it from: [CODE]var Data: TStringList; begin Data := TStringList.Create; … | |
Is it possible to write a code that prints 'its own code' when executed? Just a thought. | |
:S what iz event model??? what is its use n why i shud use dis n not others????? plzz xplain wid eg........ w8iting....:-/:?: | |
Is there other way to write a Menu code, not using Switch, or creating other Method homework : create Menu in Java code i was wondering if it can be achieved not using switch and not creating other methods (public static void Main)(public static void sayHi()) Thank you. | |
hi, i looking for a dropdown menu something like this: [url]http://www.lwis.net/free-css-drop-down-menu/dropdown.ultimate.horizontal.html[/url] but without jquery javascript or complex javascript. the reason for mininum javascript if possible is that i use many javascript already for other operations like ajax etc and if i add jquery etc all functions simple don´t work :( … | |
Hi I was wondering if there is any way to created a series of lists in a for-loop so that the first list created is named NAME0 or name_0 or indexed in some way. What I have right now is [CODE]for j in range(int(L)): popsizelocus_j=[][/CODE] however, this is not working … | |
Hi all, I am a java programmer and this is the first time I movw to asp .net. However, there is some points i couldnt find out and hopefully i can have some help from you guys. I have form with is very long so i need to devided it … | |
Hi, I'm developing a window-based application where I've a Main Form A. I open another form B on a button click. When I close Form B, I want to reload the Form A. Please help as soon as possible. Thanks in anticipation. | |
hi a piece of code i have requires a files location and name for it to retrieve its content. instead of hard coding it i would like to simply have a window open that enables me to select it from my directory. is there a way i can do this … ![]() | |
Hello. I am using Easy php i am trying to connect with the following code [code] <?php $con = mysql_connect("localhost","admin",""); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code ?> [/code] getting error as follows Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'localhost' (using password: NO) … | |
When I send an email using PHP to hotmail or to my personal email, it comes through fine. The message and PDF attachment is there. When I send the same email to a google gmail account, the headers and subject seem to be intact, but there is no message and … ![]() | |
Anyway I can turn off the 500 error? I have a recursive function that is being set to be called a few hundred times if possible, but before that can happen and proceed with the rest of the code it calls a 500 error. (For those interested its a dynamic … ![]() | |
Please help? I am getting the following error when executing a mass mailing script that contains HTML as the mail content: [B]Parse error: syntax error, unexpected '>' in ... on line 14[/B] If I remove lines 14 to 27 (from <style> to </style>) I get the following error: [B]Parse error: … | |
[CODE] #include <stdio.h> #include <stdlib.h> struct amicable { int** amicablePair; int size; }; struct amicable *getAmicablePairs(int startnum, int endnum); int sumFactors(int number); int main(int argc, char** argv) { int startnum = 220; int endnum = 284; struct amicable* ami; int i; ami = getAmicablePairs(startnum, endnum); if(ami==NULL) { printf("Error: malloc could … | |
Hi All, I want to create SMS sending solution from .net framework to send notification to my clients. I found a website where they offer a software that seems pretty suitable, but I want to know more about the company. Has anyone heard about Ozeki Ltd? Good or bad? Their … | |
Help! Im trying to overwrite a certain record in a text file (basically a log in log out file). Im using Random Access File. I tried to write the updated record using writeBytes but what happens is that it was APPENDED after the record i wish to overwrite. from 150.20.111.0&2010062216:06:31 … | |
If you're doing programs for academic reasons, this is a good site to go for C++ information. Good for snippets. Used it a lot through classes. http://www.mvhs.net/~rkrane/clecs/ | |
I just downloaded PHP, but I am having trouble finding where to write my code. I found a website said to use php-cgi.exe. Is this right, because I can't figure out how to save nor display the code and output. ![]() | |
Hi All, I am doing a project on a Video Library Management System for my final year Computer Science project and I've run into acouple of errors. Could anyone out there help me out...???? Please, I'm desperate...! Thanks. | |
Please help me how to use clrscr(); and gotoxy(); functions in other C Compilers? | |
Hello everyone, I'm having a little trouble here. I'm trying to use a session created from log in(the user id) and take that user id and pull out information from the data base. An example would be: (this is not the actual code, but I will wrap it anyway) [CODE] … ![]() | |
whats the easiest way to change the progress bar value depending on where you click on the actual bar itself (window media player) in c#? i use WMP library:confused: | |
[CODE] Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSend.Click If txtFromAddress.Text = "" Then MsgBox("Please Enter From Address", MsgBoxStyle.Exclamation) txtFromAddress.Focus() Else If txtToAddress.Text = "" Then MsgBox("Please Enter To Address", MsgBoxStyle.Exclamation) txtToAddress.Focus() Else If txtSub.Text = "" Then MsgBox("Please Enter Subject", MsgBoxStyle.Exclamation) txtSub.Focus() Else Dim mailmessage … | |
How could I like programming ? When you spend 2 days on one single, pointless line and the only thing you get to see is an ERROR-response. It`s really inhuman and I cant imagine who would want this voluntarily. Nevertheless, what am I yammering about is following error, that is … | |
I need to display part of text from mysql: for exapmle i`m having 50characters and then i just want to display just part of it like 20characters in the first page and the remain including the first as a link to another page. That when someone clicks the link the … | |
Hi I am a novice in Shell Scripting but wanna learn it as soon as possible as it is such a powerful language. I already have a script created(by a senior fellow) and I can run the .sh file simply by command ./xxxx.sh Now I have created my own script … | |
I'm making an application that converts units. I cant not for the life of me figure out why this isnt working. The answer returned is 0.0 when I convert from Fahrenheit to Kelvin or vice versa. The K to C conversions work though. Any insight would be amazing. This is … | |
help on this enrollment system in cprogramming when I run the programming the output sometimes fall through example when i enter the student number name and address but when i press enter in the address it skips the scanf in the status and goes to the gender it alse does … | |
![]() | Hello all. I have made a basic page in html with a table in it. The top row in the table displays a picture. When I designed and viewed it in html format the table started at the top of the page. I set the rest of the layout up … |
The End.