199,114 Archived Topics
Remove Filter ![]() | |
Hey please I am trying to create a chat system but my main server routine in my server class keeps give error saying its out of bound. I think it is the port number but dont know how to fix it. Is there anyway I can hard code the port … | |
halo, im a newer in this c++ program.i try to execute this code(at the attachment) at ns2 unbuntu 9.10 but the following error occur. help me fix this error. analyze.cpp:55: error: ‘EXIT_FAILURE’ was not declared in this scope analyze.cpp:55: error: ‘exit’ was not declared in this scope analyze.cpp:61: error: ‘EXIT_FAILURE’ … | |
Hi everyone, I have written a program here about customers, it works fine so far, but I am having a problem with getting customer details, for example, when I enter customer name, age...etc, it saves this info into a customer.txt file, I can see this information until I exit the … | |
Hi, im fairly new to c++.I have a variable in my while loop that gets the x position of the mouse and constantly refreshes and outputs to the screen. My problem is that i want to get the exact x position wherever the mouse is when i press the 1 … | |
I have this function which computes the position record of 6 requests. ( ie x,y,dx,dy--these are the position records for a request) I want to display these position records in a textfield, which i have in my GUI, as soon as i press the "positionrecord" button. I am able to … | |
I just hit a brick wall. I'm writing a code that will ask a user the height of a pyramid an output the corresponding pyramid with * characters. I got that part working but now I need to turn it into a half pyramid like so: * ** *** **** … | |
Hey everyone, I am using Visual Studio 2008 to debug some code where the goal is create a linked list using pointer variables. Here is the main error I am getting when trying to compile: [CODE] error C2227: left of '->Account' must point to class/struct/union/generic type type is 'Link_t' [/CODE] … | |
Hi, I am new to perl scripting language, While i am working with this i got a problem in this.When ever i am trying to redirect to a next page uisng perl script i got the problem it did not redirect to the next page. here i am explaning with … | |
hey guys...my code is working fine..only problem i have is my first do-while loop doesnt work...every time i try to compare the word given by the user to 'q' ||'Q'...it gives an error saying no match for the operator..please help me ....thanks! [CODE]#include <iostream> #include <string> using namespace std; bool … | |
Here is my issue. I'm attempting to create a daily mailing using a console app. Well, when I started, I for some brilliant reason made a web app. So I'm trying to translate it into a console app, and while I THINK this should work, I keep getting a "type … | |
Say i just do a simple printf statement [code] printf("i want this text to be different color > %s", thisbit); [/code] i want whatever i print out at the %s (the string) to be different color. Im sure it only something little that why i ask. | |
Hi Friends I have a requirement to where my cgi program has to send an email when the "Submit" button is pressed. Here is my cgi program, which has a text field to enter the username and a submit button. [code] #!C:/Perl/bin/Perl.exe use strict; use CGI qw(:standard); use CGI; use … | |
Hi, I'm hoping someone can make sense of this... I'm trying to use WMI to get file information from a specific directory on a remote machine using CIM_DataFile. I can get all of the files on the on the remote machine using: System.Management.ObjectQuery oq1 = new System.Management.ObjectQuery("SELECT * FROM CIM_DataFile"); … | |
The msgbox widget is really useful. However the font limitations of the default msgbox can be brutal if your trying to deliver a message with considerable information. Has anyone coded an improved msgbox class that would take the same arguements + font? | |
Today is my first day on this site. I am vey new to VB.NET, i have a good amount of experience in VB6. I have a application I wrote for my Aikido club to track hours and I am converting it to .NET. The code below is very basic and … | |
I am curious about how to post or have published tutorials. I have searched the forum but the latest information I cna find is years out of date. Any help here? | |
hello i woud like to have an C# code witch will run a file at monday, one at tuesday, one at wedensday, one at thursday, one at friday, one at saturday and one at sunday, can somone provide me this please ? | |
isalpha and ispunct work punctiliously, but isspace spaces out. [CODE] cout << "Please enter an integer: "; cin >> str; int bogus = 0; for (int i = 0; i < str.length(); i++) { char temp = str.at(i); if (isalpha(temp) || isspace(temp) || ispunct(temp)) { cout << "Please try again!" … | |
I'm using the VB.NET 2005 RichTextBox control as a base for a user control that I've written, and one of the functions I'm writing into this control is a spelling check. There's a problem I've found though: I can't preserve RTF markup when corrections to the spelling are made. I've … | |
I have images in the database, and I am looking to resize images whilst keeping the quality. This is link one, without image resize [URL="http://horble.com/test/test.php"]http://horble.com/test/test.php[/URL] This is linke two, with image resize. [URL="http://horble.com/test/test1.php"]http://horble.com/test/test1.php[/URL] As you can see, the resize image distorts the image, and for the image already displayed that … | |
Warning: require_once(../../GrBx/cw3/admin/application.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\GrBx\cw3\admin\ProductForm.php on line 2 Fatal error: require_once() [function.require]: Failed opening required '../../GrBx/cw3/admin/application.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\GrBx\cw3\admin\ProductForm.php on line 2 Can someone please explain this error message? I am using Cartweaver and I'm trying to change it in a … | |
i have a Jsp page. in this Jsp page having some links. i want when i click to link of result some data should be display. but it does not displaying. please check the below code. Indus.jsp [CODE] <html> <head> <title>Indus Public School</title> </head> <body> <div align="center"><font size="+3"> Indus Public … | |
Hi i've got a simple username and password entry on my webpage. My login class works perfectly in Windows Form but not in my Web Application Login class: [code] using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; namespace assignmentForm { public class UserLogin { private SqlConnection connection = … | |
This code : ...line 6... [code] #include "FileToVector.h" #include "VectorToIntArray.h" #include <string.h> #include <iostream> using namespace std; int main(int argc, char *argv[]){ char* in = argv[1]; FileToVector ftv = FileToVector(in); vector<char> v = ftv.fileToVector(); VectorToIntArray vt = VectorToIntArray(v); //int* a = vt.letterFrequencies(); cout<< v.size(); return 0; } [/code] produces this … | |
we were asked by our professor to create a web program which is called BOOK RESERVATION.. from the name itself, i guess it's way too obvious on what he wants us to do.. we are to use EJB which makes things a whole lot harder since he never discuss this … | |
how to crete flash in vb.net 2008 | |
HI, I'm relatively new to programming in C++. I'm pretty solid in C and Java though. Anyway, I'm trying to create a class, Mesh, that has a vector full of my other class, Node, however the compiler doesn't seem to like it. I've looked through the console message but I … | |
Hi All, I am trying to learn stl to have some knowledge of how things work. I have just covered some basics and I have come to a block. I will explain what I am trying to do. I have a class that performs some basic operations on its member. … | |
Hi! I need help for my homework in c++. My professor wants us to write a program that ask a question and there is a multiple choice and the answer. like the gameshow "Who wants to be a millionaire?" Please give me some example.. (^_^) thank you so much! | |
This is a distraction task in a Psychologgy experiment. For a period of 5 mins the user moves a pic box from the centre of the panel to a matching triangle. The picbox mouseup detects which region it is and adds a score and then sets it back to the … | |
Hi Experts , I have a datagridview which is bound to a data source,I modify the data source and add one empty row at the beginning,this is to provide a quick search,user can click on a cell and filter the datagridview. But the problem is I am facing an exception … | |
Hi, I am create one application using C#.net and SQL Server 2005, In this application uses procedure,plz give me syntax how to create procedure in SQL Server and how to handle error in stored procedure. | |
I have two Jsp pages named bestschool.jsp and schoolnames.jsp. I am calling schoolnames.jsp from bestschool.jsp. I want when I click the link on INDUS School. It can show all concerning link of INDUS School links like profile, result, facility etc. in the same place instead of other naming school links. … | |
I am having issues getting my code to work properly. The objective of the program is to allow the user to enter 5 scores and then it is supposed to calculate the mean and rearrange the data set from highest to lowest (descending order). I am supposed to run it … | |
Hello everyone. So, I am trying to come up with an algorithm to do following: I have total 12 cells that I need to fill until program stops. I have 3 rows and each row has 4 columns. As an example, let me illustrate this as in airplane. So you … | |
hello, how can i call function from another function? i declare 3 functions which are move_mid ,move_left and move_right please see this code (it's just my idea and i know i has many syntacs erorr , but my goal is just how a function call some functions) [CODE]move_left() { cout … | |
hello everyone.. im student from indonesia n im newbie ihave a problem n i need your help ihave data from table, like that: TGL || Tahun || semester || Keterangan 2010-1-1 || 2010 || Genap || LIbur tahun baru 2010-1-2 || 2010 || Genap || LIbur UAS 2010-1-3 || 2010 … | |
Desperately need help ! ..... I need to install Player/Stage ( [URL="http://playerstage.sourceforge.net/"]http://playerstage.sourceforge.net/[/URL] ) on Ubuntu 9.10. Found this, [URL="http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html"]http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html[/URL] ..... but could not get it to work ! Any help is greatly appreciated ! | |
can anyone offer some help on this matter i have 5 session arrays and i want to merge all of them. however these session arrays are take from several multiple select list. while the code that i have done so far works fine, it has one small problem. in the … | |
hi everybody, I am doing pagination. if I set the limit to 5 and the no of result is 30, then 6 pages is shown as the overall page). however, only the first 5 results is shown. How should I change the code? many thanks [CODE] <?php /* call this … | |
here's my code [CODE] $sql=mysql_query("insert into guest (fname, lname, address, contactno, emailadd) values ('$fname', '$lname', '$country', '$contact', '$mail')"); $search = mysql_query("select * from guest order by code DESC limit 1"); $row = mysql_fetch_array($search); $lastnum = $row['code']; $number = $_POST["Rooms"]; $count = count($number); for ($i=0; $i<$count; $i++) { mysql_query("Insert Into rent … | |
I try to generate 10 random integers and store it in an array(9). Then I split the array into half by converting it into string. My code can compile but it sometimes work and most time cannot work. I don't know what is the problem.... [code] Public Class Form1 Private … | |
I have a simple file watcher application which watches the folder C:\. I am watching the folder so that as soon as a new file is created in C:\, it moves the newfile to a specified folder somewhere else. My problem is that if two files are dropped in the … | |
Hello there, I wrote a code for reading xml datas from one url, the code is working fine, but if data contains "-" it throw error message. Here is my code [CODE] h = httplib2.Http('.cache') response, content = h.request(dataurl) data = content.decode('utf-8') elem = etree.fromstring(data) [/CODE] i am getting error … | |
ive already search in google and yahoo but i don't know how to add that code to my code. here's my code in displaying a data in the table [CODE] $result = mysql_query("SELECT * FROM rent where status = 'pending' order by cno asc"); $count = mysql_num_rows($result); <table border='1' cellspacing='0' … | |
Hi, i creates this program: [CODE=python] import wmi c = wmi.WMI() for i in c.Win32_Processor (): cputype = i.Name print cputype for i in c.Win32_ComputerSystem(): mem = int(i.TotalPhysicalMemory) print mem/1000000, "mb" [/CODE] I make exe file with py2exe. When i run program, i see this error: [CODE] D:\py\dist>cpu.exe Traceback (most … | |
i have a datalist,i want an add button at the end of each row,clicking wich should result in a new blank row | |
good day everyone! is there any idea on how to set the picture property of the Data Report's Image Control based on the Form's Image Control? this code doesn't work: 'Me.Sections("Section2").Controls("imgEmployee").Picture = frmMain.imgPic.Picture Thank you very much for responses. | |
I have a problem trying to copy 3 fields on a form to a database. The reason I cannot seem to do it is that the last field asks how many copies you want to save in a combo box. So lets say the user selects 3 I need to … |
The End.