199,114 Archived Topics
Remove Filter ![]() | |
Trying to re-write a php function to C++ using boost.. I have NOT seen code for this anywhere on the net. I thought it was useful and I need it for C++ but I need help.. definition of the function in c++ [CODE] void preg(string pattern, string subject, string &matches, … | |
I've received the requirements to make a form that inserts into a database, and then allows the user to edit the information they inserted. So what the form would do is get registration information from the user, insert it into the appropriate tables, and then redirect to a page with … | |
I need a functioning login code for a windows form. my code that I made has some problems. I posted my code to prove I made Effort. thanks. [QUOTE] -------- Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username … | |
Hey I'm currently writing a program which takes a file of data sorts it (using bubble sort) and for some reason I keep getting a segmentation fault. [CODE] #include <stdio.h> #include <stdlib.h> void compare(int numberstocheck[], int n) { int i, j, k; int thebucket[n]; for(i = 0; i < n; … | |
This fe. My system able to run, but at seat number for the ferry is not changing. i am not sure what happening, but i guess it related to the for loop. It you start the system. Press P -> Press B-> Name -> Select ferry -> Then it print … | |
HI!! I have an application in php that runs on facebook. Surprisingly it works ok in IE and chrome BUT in mozilla does not open a new window with information .. The code that I´m using is : <script language="JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> .. … | |
Hi at all, this is my first post on this forum, thus i think it's nice whether i introduce myself. My real name is Nilo Redini, i came from italy (Pisa), i'm 25 years old and i'm a computer engineer. It's a lot of time that i read this forum … | |
can anyone help me how to add a comment box in HTML? I'm new to html and I don't have any idea how to do it.. please help me ![]() | |
I like STL but the performance of the STL of visual C++ 2005 is not good enough, could I find some containers which looks like STL? Oops, I just found 1.48 release a brand new library--Container This library even support rvalue reference, so sweet. I love you, boost. Thanks | |
I'm working on a portion of the codes to encrypt the ATM card of the user. [CODE] Public class AtmCardAuth{ public static byte[] computeCheckBytes(int acctNum, int pin)throws Exception { // byte[] ret = new byte[32]; // for(int i=0; i<ret.length; ++i) ret[i] = (byte)i; // return ret; String password = Integer.toString(pin); … | |
Hello, i'm back with new question :) So i found how to make non-blocking gui with threading: [CODE] class SearchThread(threading.Thread): def __init__(self): super(SearchThread, self).__init__() self.window = frame.panel_one self.window2 = frame.panel_two def run(self): seit = self.window.inputArea.GetValue() se = self.window.engine.filest(seit) for it in se: self.window2.transferArea.AppendText(it) [/CODE] and i bind it to check-box: … | |
Hi, I'm trying to use JavaScript to make a story out of randomly selected words from 4 arrays and then insert it into a textarea. It isn't working, can someone please tell me how to fix it.... there's an error somewhere I can't find. Thanks. HTML [CODE]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> … | |
i create downloader in vb.net. i need to add resume/pause buttons to it.whats the program for it? | |
I have created my .htaccess file using notepad, its empty at the moment, im on windows. how do i upload it to my server? do i place the file inside my website directory or outside? and how do i test whether the whole process was successful or not? | |
Hello again. Well, I've been trying to get this to work, and I finally was able to combine two functions into one, but now I have to create a new function called FillTime() which will calculate the time to fill to fill the pool, though it seems that it doesnt … | |
hello all i m new at using C1truedbgrid..... and feeling very uncomfortable in shifting frm datagridview to c1truedbgrid.... can you help me in doing so????? my question at this time is that i m using a checkbox column in c1truedbgrid nw in order to select all checkbox i placed an … | |
Hi everyone... I just finished making a program for Video Rental in java..its not much..just retrieves the data from the DB and we can add or edit it...it works perfectly. But now, i want it to display the "Client Name" and "Client ID" field from my Client table and "movie … | |
![]() | Well' I'm trying to print image from my PictureBox...this is my code for drawing image: [CODE]e.Graphics.DrawImage(PictureBox1.Image, 0, 0)[/CODE] But I need something more specified...when I print my document with this code, for some of those, I don't get the whole document. So I need to specify that...I need to stretch … |
I'm having trouble with the calculate mean method in my Average Driver. The Average class is fine it's just declaring the objects and instantiating them I'm having a problem with. Any help would be greatly appreciated. [CODE]import java.util.Scanner; public class Average { Scanner input = new Scanner(System.in); private int[] data … | |
can somebody help. i m getting following errors. i m creating postfix calc C:\Users\Hamza\Pictures\CalcGUIPanel.java:204: int cannot be dereferenced Integer arg2=resultValue.pop(); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:205: int cannot be dereferenced resultValue.push(resultValue.pop()+arg2); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:205: operator + cannot be applied to <any>,java.lang.Integer resultValue.push(resultValue.pop()+arg2); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:205: int cannot be dereferenced resultValue.push(resultValue.pop()+arg2); ^ C:\Users\Hamza\Pictures\CalcGUIPanel.java:211: int cannot be dereferenced … | |
Hello programmers, 1. could give me an[b] example code[/b] how to set up username and password for the service, which have been created using wsdl file, which has been given from web service creators on other side of the world. Web service client has been created using NetBeans IDE. When … | |
Hi, i am new to c#. i write a code as below.You see that i obtained columnname and dataType but How can i get size of field in Table ? Pls help me. foreach(DataColumn dc in ds.Tables[UpdateTableName].Columns ) { lFound = false; cNewName = dc.ColumnName; cNewType = dc.DataType.ToString(); Thanks a … | |
Hi, I'm getting the error at the doc.close in the last argument; type mismatch error using object 11 com addin; for which the doc.close takes 3 arguments. thx [code] Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass(); object file = textBox1.Text; object nullobj = System.Reflection.Missing.Value; Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Open(ref file, ref nullobj, ref … | |
Hi guys, is there a way to get worksheet names from a close workbook? thanks for any help. | |
helo, I learn Classes and methods according to a manual "Think Python: How to Think Like a Computer Scientist" I am stuck on "Polymorphism" There is a part using built-in function sum. I don't know what to do... It should be connected to __add__ function, but still the code must … | |
I came again across "http://www.mysqludf.org/lib_mysqludf_str/index.php" and found the library useful but I could not figured out how to install and use them on WAMP Server version 2.0 with MySQL version 5.1.36 on Windows 7. I did followings steps but did not get the work done: 1. Created a directory named … | |
i have a combobox and few textboxes in Form1. i inserted new item into combobox by entering new item in one of the textbox. i manage to add item into combobox in Form 1. But how can i achieve if the item i added in Form1 to be inserted automatically … | |
Hi, I would like to track students activities by the teacher and this is visible by the students parents "dependents" and therefore the parents could give comments to the activity issued by the teacher and the teacher could respond to parents comment too. So I designed the ER Diagram, but … | |
Hello everyone at Daniweb! This is my first post here, sorry if i do something wrong. Ok, so just a quick background on me and where I'm at in java. This year I'm taking my first Comp Sci class as CSUN (Cal State University Northridge). I am a complete beginner … | |
Hey :) I am trying to make a foot calculator. And i will make a 2 parts dropdown. for example: [B][U]1)[/U][/B] (in the first dropdown) Where have you eaten? [CODE]<select size="6" id="availableOptions" name="availableOptions"> <option value= 1>McD </option> <option value= 2>Burger King</option> <option value= 3>Sunset</option> </select> </td>[/CODE] [B][U]2) [/U][/B] (If you … | |
Hello all, I have a site with login system, when I run it on my local sever it worked perfectly ok, but when uploaded it was not taking me to member page as on my local server. Please can anybody help me with this. The codes are below. myconfig.php [code]<?php … | |
when ever i execute this code it hangs ..any help how to troubleshoot the problem [CODE]Imports System.Net Imports System.IO Partial Class vbIPNexample Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Post back to either sandbox or live Dim strSandbox As String = "https://www.sandbox.paypal.com/cgi-bin/webscr" Dim … | |
I have this code but i can't get it to output in the email address i specified on the form. [CODE]<form action="Script/sender_subscription.php" method="post" name="Pillar Gardens Offer Form" target="_blank" id="Pillar Gardens Offer Form"> <table width="100%" border="1" align="left" cellpadding="1" cellspacing="0" bordercolor="#F8F8F8" bordercolorlight="#CCCCCC"> <tr> <td colspan="2" align="center" valign="middle"><table width="100%" cellpadding="0" cellspacing="0"> <tr> <td … | |
I'm trying to write a test class which shows the user the following menu and implements all options. The program should continue to run and process requests until the user chooses to exit. The program should double-check that the user really wants to exit. All input must be validated and … | |
Hi all! I was hoping I could get some help. I have a input file of data in 5 columns eg. [CODE]A 1 10 B 0.7 B 1 203 A 0.98 C 2 805 C 0.99 ...[/CODE] So what I'm trying to do, is when each item in the first … | |
Hey guys! I'm trying to figure out how to create a program that lets the user find a picture on the hard drive and display the picture. How can I accomplish this? | |
[CODE]#include<stdio.h> int main() { int a,b,c; (printf("\nEnter 2 no.s"))?(scanf("%d%d",&a,&b))?(c=(a>b)?a:b):0:0; while(c>=1) {if(a%c==0 && b%c==0) {printf("\nGCD:%d",c);return 0;} c--; } }[/CODE] | |
Hi all I have a interface built in jsp working fine in i.e6 but not visible in firefox and internet explorer 7. Ho to debug my jsp page .Please suggest | |
I am having trouble figuring out how to test 2 bools in a loop. This is an example. do { }while (!done || !validMove); [CODE] #include <iostream> #include <cmath> using namespace std; int main() { int number1, number2, total; bool done = false, validMove = false; do { cout << … | |
I am having a table in oracle without a primary key and table is having 5 columns. Every time while making the insert, i have to ensure that the same combination of records are not bing inserted. For every row if a specific value has been inserted then a common … | |
"Select * From CashReport where convert(varchar(10),StartDate,101)>=@pStartDate and Convert(varchar(10),EndDate,101)<=@pEndDate and Type = 'I'" [B][COLOR="Red"]Hello! i want to add CUSTOMER NAME in this code how to view each customer datewise report plz help me..[/COLOR][/B] | |
this worked a few times and now its not :( anny help would be greatly appretiated [CODE] #include <iostream> #include <string> using namespace std; string vowels(string str) { string vow = "aeiouAEIOU"; for(size_t i = 0; i <= str.length()+1; i++) { str.erase((str.find_first_of(vow)),1); } return str; } int main() { string … | |
I am also a New Learner, Base on the Request, This Simple Code would detect if a Number is Even or ODD number.... // This is to Detect Odd and Even Number [CODE] bool ValidateDegreeValue; // This is to Validate that the User Enter Number Data double DegreeValueNum; // This … | |
Hey guys, I am writing a bot class to scrape some information off of websites. Here are the requirements. [LIST] [*]Specify Url [*]Check for valid url [*]'GET' contents of url with curl [*]check mime type & response status code [*]check for special url [LIST] [*]parse special data [/LIST] [*]parse for … | |
Hey guys im new to this programming thing and im starting of with pascal.I have a small problem here is the program i want to input a number and that number will determine how man times the for loop runs the problem is the program is compliling but is stoping … | |
I have a tic tac toe board i am finding it hard to figure out how to change parts of the array that contains char. I am looking for a way to to ask the user to select a char to change in the the array and then once they … | |
I am trying to record many small MP3 files from my computer's microphone. There are numberous examples using mciSendString Library "Winmm.dll" to record .wav files. I find the .wav quality to be lacking and I really want to record straight into the MP3 format rather than converting my .wav files. … | |
Hello i am new here also new in php i have problem with my code [CODE] $seller_id = $listings[]['Account_ID']; $seller_info = $rlAccount -> getProfileInfo( $seller_id ); $rlSmarty -> assign_by_ref( 'seller_info', $seller_info ); i get this error Fatal error: Cannot use [] for reading in [/CODE] the array is [CODE] Array … | |
I'm not really good with arrays and have had a go at this, but to no avail. I have a string called $str and another called $area. I need to split the string $str into an array of words (delimiter being spaces). This is the part I was able to … | |
[CODE] ifstream in_gradebook; ofstream out_gradebook; in_gradebook.open("gradeBook.txt"); out_gradebook.open("gradeBook_edit.txt"); while (???) //while int is being read { in_gradebook >> score; out_gradebook << score << " "; sum = sum + score; } average = sum / 10.0; out_gradebook << average << endl;[/CODE] Here is a small snippet of the code I have … |
The End.