199,114 Archived Topics
Remove Filter ![]() | |
Ok, I have this function that was provided by you guys, and it works, but I needed to tweak it a bit, and I can't seem to get it tweaked right. Trying to make it so it takes a 3rd parameter which takes an integer which will determine how many … | |
Hello friends, I have a small problem with integers... I want to get the seconds of the time in format HHMMSS. My code is: [CODE=cpp] int get_seconds( int time ) { cout << time << endl; int sec = time % 100; time /= 100; cout << time << endl; … | |
I have following text file input.txt Ram Shaym Rahul Radha Madhuri Sita I want to read this file and create new file from this file showing following change output.txt Ram Shyam Rahul Radha Sridevi Sita I want to replace Madhuri by Sridevi and send output in output.txt Can anyone please … | |
I want to convert an XML file into SOAP. And then i have to send that SOAP messgae to server. How can i do this. Thanks in advance | |
[url]http://img200.imageshack.us/i/screenshot20110111at115.png/[/url] Thanks in advance fellow geeks! | |
hello all i m writing a script in which i am trying to set classpath using this export CLASSPATH=$CLASSPATH:/usr/java and then i run the script But nothing is added in the bash_profile | |
I am very new to the world of PHP and MYSQL programming and have run into a roadblock. I am trying to program an admin area of a site i am working on and am coming up with the following error when the page is loaded [QUOTE]Parse error: syntax error, … | |
I have string like: 'par1=val1,par2=val2,par3="some text, again some text, again some text",par4="some text",par5=val5' I have to split it to parts like: par1=val1 par2=val2 par3="some text, again some text, again some text" par4="some text" par5=val5' I use this code: [CODE] a = 'par1=val1,par2=val2,par3="some text1, again some text2, again some text3",par4="some text",par5=val5'.split(',') … | |
Hi all, I am currently studying for my degree in software development and have just started using java. In an effort to get ahead of the game I have bought some books on c++ and can happily report I have ubderstood everything up until the part about bitwise opertaors I … | |
Hi, i am developing a software using microsoft visual studio basic 2010. I used a datagridviewcontrol to display a list of data from product table. What I want to do (actually i am not sure how to do it, or is there a way to do it), when i choose … | |
HI All, I want to give the height and width to crystal report... How can i do that?? can we give user defined height and width to crystal report | |
hi guys, how to add an email address for this statement: mail('myemail@email.com',"title",$text,$headers); to add another email for this can put like this: mail('myemail@email.com,anotheremail@email.com',"title",$text,$headers); what's the correct statement for this? thanks in advance.:) | |
Hey guys, I'm getting the above error, could any of you tell me why? Here's the code [CODE]$mysqli=new mysqli("localhost", "***", "***","***") ; if(!$mysqli){ die("Database error"); } function checklogin($username, $password){ global $mysqli; $result = $mysqli->prepare("SELECT * FROM users WHERE username = ?"); $result->bind_param("s", $username); $result->execute(); if($result != false){ $dbArray=$result->fetch_array();[/CODE] | |
Hi all, how do i compare one date with a list of array which consist of date? [ICODE] $date = 1990-12-3 $viewSchedule = "select * from schedule where id_user = '$idHairstlylist'"; $scheduleResult = mysqli_query($dbConn,$viewSchedule) or die(mysqli_error($dbConn)); while ($row1 = mysqli_fetch_array($scheduleResult)){ for($j=1;$j<=4;$j++){ $day[$j] = $row1['od_week'.$j]; if ($day[$j]!= $date){ echo 'hi'; } … | |
Basically, I am trying to grab data from an XML file, and set it as a var or int. I cannot for the life of me get it to work. It seems to be copying a string of "System.IEnumerated..." or something like that instead of what the actual value of … | |
This is not a homework assignment. :) I'm a MySQL newbie and we just bought a product that uses it. The vendor has indicated that what I want is a special request and wants to schedule professional services time (several weeks in the future) to write us a personalized script. … | |
What is a better way to write the code, [CODE] public void showFeelings(int howManyGoals) { switch (howManyGoals) { case 0: System.out.println("Oh dear, not very good"); break; case 1: System.out.println("Oh dear, not very good"); break; case 2: System.out.println("Oh dear, not very good"); break; case 3: System.out.println("Ive seen donkeys shoot better"); break; … | |
I'm currently building a website for a small charity and they've asked me if it was possible to make an admin area where they could access some of their work when they're out and about so they don't have to fill in forms twice. I can do this as I … | |
I have a program with 2 panels, each with it's own class. LeftPanel and RightPanel. Whenever I click a button that does some calculations (like calculating total assets amount) in one of the panels, it doesn't update that info for the other panel. For example....I have this seperate class that … | |
![]() | Hi, Im new to here. I have a problem with some JS for my website. I made JS to enter text from input boxes in form to a read only text area. However it overites the text instead of putting it below (thats what I want it to do, put … ![]() |
I have a simple question about objects and exception handling. What happens to an object after its thrown? Does the implementation take of cleaning up that object or should I be aware of any situations that may require extra care...I've read this from - Inside The C++ Object Model by … | |
My source code is being altered by itself after executing once or when a copy of the source code file is made. If i try to execute the source code the 2nd time it wont work. There will be some error as there are some unwanted ASCII characters like rectangle,smiley...etc … | |
Hi all, I am in fruit industry and dealing with stock inventory of fruits. I got 2 files, one file got fruit names (fruit.txt) and other file got the inventory status (status.txt). Task for me was to check the fruit list and update the inventory status: Contents of the files: … | |
Hello everyone, I've got an interesting situation. There are three classes [named "A", "B" and "C"], all derived from a abstract base class [named "base"]. However, in my program, I need to sort a vector of "base" object in a way such that objects of type A are less than … | |
Hello, I"m trying to send mail to multi users, but i doesn"t succeded/ I doesn"t know how to add all the mails that i selected to the mailto tag. this the the code that I wrote: [CODE]<SCRIPT LANGUAGE="JavaScript"> function getSelected(opt) { var selected = new Array(); var index = 0; … | |
Getting this error code, is there something about std::remove() that I am not understanding here? 1>AoE2Wide.cpp(337): error C2664: 'strcpy' : cannot convert parameter 1 from 'std::string' to 'char *' I tried using '=' instead of strcpy() too, no luck. [CODE] class Item { public: int Pos; int ReferenceValue; std::string Type; … | |
I am getting this error when compiling in Eclipse Indigo in windows: [code] mingw32-make all 'Building file: ../src/testing.cpp' 'Invoking: GCC C++ Compiler' g++ -I"c:\MinGW\lib\gcc\mingw32\4.5.0\include\c++\tr1\" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testing.d" -MT"src/testing.d" -o "src/testing.o" "../src/testing.cpp" g++: no input files mingw32-make: *** [src/testing.o] Error 1 [/code] Can someone help me … | |
Hi everyone. I have a very simple question about converting strings(in hex) into signed integer number. I use strtol, but it does not work at all. char code[]="FFFFFFFF"; int m; m=strtol(code,NULL,16); printf("%d\n",m); but the result is not -1 How can I manage this in C? Best regards. | |
Hi.. I want to encrypt and decrypt a password using c#.net.If any body knows please help me. | |
hello, I am currently working on CMS and I want a way for the user to upload images to go along with their post how would I upload the image with php and then add it into the database for later retrieval when people look at the posts? | |
#include<stdio.h> #include<conio.h> #define MAX 5 void initialize(int a[], int n); void display (int a[], int n); void input (int a[], int n); int sum (int a[], int n); int largest (int a[], int n); int smallest (int a[], int n); void main (void) { int array [MAX]; int total; initialize(array, … | |
Hello, I am trying to make a simple PHP web page as an assignment with register and login form and I am stuck in asking PHP to verify the password when it is wrong. It basically recognizes the ID & PASSWORD when they are right and send me through to … | |
I have a Form that throws this when I close it: "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." This seems to be the offending code, running in a child thread: [code=c#] this.Invoke(new someDelegate(someMethod)); [/code] I figured that if I could capture … | |
Hi, I have been trying to execute a query and for some reason it returns 0 when there should be 1 in the result. [CODE] SELECT count(TaskID) AS DueToday FROM tasks WHERE TaskDueDate = CURRENT_DATE AND Completed = 'No'[/CODE] I have tried NOW() and various others reference [url]http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_current-date[/url] however it … | |
Hi, this is my first post. I am making my first real text based adventure game in python and I've got an error: unbound method Main() must be called with Game instance as first argument (got nothing instead) But I am no where nere finsihed on the game as of … | |
Hello Everybody, I have run into a bit of a trouble here I wish to set the background image of a button I have written this XAML [CODE]<Button.Background> <ImageBrush ImageSource="/UIDesign;component/Images/Settings.png" /> </Button.Background>[/CODE] but when i run the application and hover the mouse over the button, the background goes away and … | |
the syntax should be something like this: <% function("var") %> ...but this does not work. The function is called and no errors are produced. The function return value simply does not print. Please help, I know this is a very simple explanation. | |
[CODE] private JButton[] buttons; private static final Character firstChar = 'A'; private static final Character lastChar = 'D'; /** Creates a new instance of ButtonPanel */ public ButtonPanel() { buttons = new JButton[4]; setLayout(new GridLayout(2,2)); Character label = firstChar; for (JButton b: buttons) { b = new JButton("" + label); … | |
hi , i have some problem when i want to build my solution , i use different dll and one of them when a build it , he tel me that fatal error C1083: Cannot open type library file: active.dll someone have come idea ? | |
HI there, I'm trying to create Drop Down Lists dynamically. Two thing before we start: 1. Im working on a ContentPanel that is inside a master page 2. I cant add anything to the .aspx directly, so all the code must be inside the .aspx.cs This is my code: [CODE] … | |
Hello, Another exercise. In this particular problem we are given a five digit integer and program have to determine if its a Palindrome. Author states that we have to separate each digit into its own variables using % and /. I came up with solution but i don't know if … | |
So i have a weird problem that isnt exactly an error, its just something im not understanding. i have the following peice of code and the functions it calls. What happens is when the indicated line is run, i get an output telling me the 2nd constructor has been called, … | |
Plain and simple, yet i have no idea how to do it.. Make a datagridview like you never used it. | |
How do I return the data in the last node from the RemoveTail function? Currently I have something like below.This is a basic doubly linked list. [CODE]class List; class Node { Node* next; Node* prev; void* data; public: Link( void* pData ) : next( 0 ), prev( 0 ), data( … | |
I'm working on scraping HTML pages and transforming the selected content from them into XML and I've been seeing a few errors here and there thrown by the Saxon XSLT parser: WARN [2011-01-07 14:44:35 EST] (SaxonTranslator#429473) improper java log: XPTY0004: A sequence of more than one item is not allowed … | |
Hi, I have a little bit of a problem with my client / server apps. I'm trying to build a simple program that resembles a small instant messaging app. So far I've been working on the "user login" and "status change" parts, along with a query to get the status … | |
Hi guys,I am trying to force download files from ftp server to my local machine using the following code. [CODE] <?php header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"" . basename($filename) . "\""); header("Content-Transfer-Encoding: binary"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'ftp://username:password@localhost/'.$path.'/'.$filename); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close($ch); ?>[/CODE] The above code works perfectly … | |
Hi, i'm trying to copy all txt files from a directory into one file to another directory. But i have the following error: "FileStreamsTest: java.io.FileNotFoundException: . (Accès refused)"" My txt files are located in the project folder of NetBeans. here is my code: [CODE]package FileStreamTest; import java.io.*; class FileStreamsTest { … | |
Hi there, I got an empty Web content form that contains the content of a master page. When oen fo the buttons on the form is pressed im required to create a new window to show the result. How can I create that new window without actually having to add … | |
[CODE] while (choice != QUIT) { choice = get_menu_choice(); if (choice == 1) { while(1)//while loop that i want to break out of { puts("please give your archive a name and a path:\n"); scanf("%s", &archive_name); if( create_pointer = fopen(archive_name, "r") != NULL) { printf("file already exists\n"); continue; } else { … |
The End.