64,152 Solved Topics
Remove Filter ![]() | |
Hello, Im trying to get this program to display a receipt of the items bought with its price and total, but so far this is what I've acomplished, I've been trying for a long time now, to make it print the receipt in the win2 but I haven't been able. … | |
Hi everybody! I'm a newbie to C++ and I need some help to improve my skills in c++. *When you make input data "cafe monde" into a string variable, the variable only accept "cafe" and not the white space and "monde". What should I do to retrieve white spacem "monde" … | |
Hi every one. i m sending mail in php and facing a problem the problem is when i add some text in the body like this <b>this text is bold</b> then this text is shown as it is in the mail i want to show this text bold The problem … | |
hi guys, so iam writing a program which creates a .bat file in a directory and copies it to another directory through copyfile...the problem is that while the .bat file is created properly but when it's copied to the other directory an error occurs saying its not a win32 appropriate … | |
Howdy, I'm a GIS guy trying to get my hands dirty with some Python. What I'm trying to do is iterate through a file (shapefile), reading specific fields from each row of the file's associated table. The table has thousands of rows, which is why a Python script is handy … | |
I'm writing a form that will include a place to upload a pdf. I would like the upload section to be a separate form in a popup. After the user successfully uploads a file I want the original form/window to update with a link to the uploaded file and a … | |
hi as i am new to PHP I am trying to find the name and mobile number from a string. i am using textarea as input format is as 1 - name, mobile(10 digit[9999999999], 11 digit[0-9999999999], 12 digit[91-9999999999]) in a single line 2 - user can input only mobile number … ![]() | |
I used datetimepicker.value.date to insert the value in database. Then I used this [CODE]dateTimePicker1.Value= Convert.ToDateTime(dt.Rows[0]["Issued_Date"]);[/CODE] But it doesn't work, neither .ToString(). | |
Hi, I want to know how to read the binary file from 10th byte to 90th byte in a file size of 100 bytes and need to write the read data into new binary file. please help me in doing this. | |
i was looking at this code and thinking when is it a good idea to use the do-while method. [CODE]import java.io.*; class ValidHex { public static void main(String[] args) { Console console=System.console(); String hex; boolean valid; do{ System.out.println("Please enter a valid hexadecimal number"); hex=console.readLine(); if(hex.length()==0) valid=false; else valid=true; for(int index=0;index<hex.length() … | |
Hi there, I have a form that loads data from the database and the and tose data are being disabled so that the user can’t edit any information on it. In the same form I have two radio button as received and denied, Weh I select deny another small form … | |
Hi all, I'm trying to develop a javascript to display a few images in a div. The plan is to get two pictures which will act as next/last image, but I'm stuck for running the script when the page loads, which is using the onLoad function in the body tag. … | |
Well, right now i'm using linux, but i've heard that windows is really best for programing videogames ( on c++ ) well, wich O.S. do you think is the best? P.D. Sorry for the bad english jeje :$ | |
Hi I have been trying to install the ERIC python IDE [url]http://www.die-offenbachs.de/eric/eric-links.html[/url] for a while now to no sucess. I could not i kept getting errors when installing the QT module [code] Determining the layout of your Qt installation... Error: Make sure you have a working Qt v4 qmake on … | |
Hello, here's the setup for the project. I have a WCF Service that is hosted on a net.tcp binding in buffered mode and ReliableSession enabled. The binding is configured to use TransportWithMessageCredential security. The certificate is a self signed certificate that I am identifying using the Thumbprint. The UserNameValidator is … | |
brothers, please teach me how to show error message when a user input non-character type value? i try myself while i use if statement, but it will show me the error message too when type character type or string type. [CODE] if(name > 0) { system("cls"); printf("\t\t============\n"); printf("\t\t ALERT! \n"); … | |
Hi all, I literally only started looking at shell a couple of hours ago. I am looking to do just one task, which I think should be quite straight forward. I will try explain it as best I can......... Basically I am trying to automate the grep command from ubuntu … | |
Hi i am a newbie to perl.. I have a script which copies files from local machine to a remote machine. I am using Getopt::Long to get the command line arguments. "-d" : for directories "-f" : for files doubt #1 GetOptions ('d:s' => \@dir, 'f:s' => \@fil); If i … | |
Dear All, I am calling a perameter crstal report which i have made in visual studio when i enter criteria in textbox it does not compare and prompt all the record how to resolve it please help. [CODE]Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, … | |
Hi everybody. I'm developing an application that sends keystrokes to another background application. The problem is that i have so send a "Alt+F", but i can't get it to work. I'm using PostMessage: [CODE] [DllImport("User32.Dll", EntryPoint = "PostMessageA")] private static extern bool PostMessage(IntPtr hWnd, uint msg, int wParam, int lParam); … | |
When i run the report there comes an error "Invalid data source i am using this code [CODE]Dim cryRpt As New ReportDocument cryRpt.Load("C:\PaymentSystem\PaymentSystem\Instalment.rpt") Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterValues As New ParameterValues Dim crParameterDiscreteValue As New ParameterDiscreteValue crParameterDiscreteValue.Value = TextBox1.Text crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields() crParameterFieldDefinition = _ … | |
Please help me converting numbers to words.. i don't have idea for this... Regards Neji | |
Hello Any one know the rules for htaccess, I have follow requirement: [url]http://www.domainname.com/aboutus.php--input[/url] [url]http://www.domainname.com/aboutus/[/url]--Need this output | |
Hi.. I would like to use microsoft visual studio C++ 6.0 to build a execute file to detect whether network drive is connected and ready to used.. can anyone of you teach me how do I do this..?? my situation is I have 2 PC connect using LAN.. PC A … | |
Hi! I created a primitive login system and am wondering if I could somehow not show the actual password and instead asterisk. Here is the code : [CODE]#include<iostream> #include<string> #include<vector> using namespace std; int main() { string username; string password; cout << "Do you want to register?" << endl; cout … | |
Please note that I mean overlapping windows in a literal sense, not in the DWSTYLE sense listed within this very function. I've been having this problem for quite a while now whereby I create a number of windows using the above function and have been having issues with the main, … | |
Hi, i get the following error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. this is my code [CODE] import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String itemn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order where … | |
Hi, i want to call another jsp from a jsp.lets say one.jsp and two.jsp. So one.jsp has a form. two .jsp need to get that values from one.jsp. Can 'request.getparameter()' be used in two.jsp to get the parameters sent by the one.jsp.please can any one help me? this is my … | |
Hey team, i'm having a problem with this query, [code] "SELECT * FROM marketingDB WHERE company_name LIKE 'allied' & '*'" [/code] the program ive written runs fine and it doesnt show any problem with the query infact the exact same query works fine on access but when i put it … | |
[CODE] int cg = Convert.ToInt16(comboBox1.SelectedValue.ToString()); [/CODE] This code is giving an error. Please tell me where I m wrong. | |
Can someone help me entering a date "manually" in MySQL thanks :) here's my code it's currently entering 0000-00-00 in my databse THE HTML [CODE]<html> <head> <title>..</title> <body> <form action="work1.php" method="post"> Value1: <input type="text" name="date"><br> <input type="Submit"> </form> </body> </head> </html>[/CODE] PHP [CODE]<?php $username="root"; $password=""; $database="wapwap"; $date=$_POST['Value1']; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or … | |
hello everyone. i have a problem with MDI parent.in my project there is parent form and child form. in my MDi parent form i had created fix layout panel where i want to show the other child form . but i dot no how to call child form on that … | |
Hello Everybody, I want my text box only accepts numbers and colon like 00:00 .The length should be limited to 5.Plese help as I stucked up with this............Thank You. CintoJose | |
Hi everyone... Im having problems running my servlet using netbeans 6.8, It's just a simple Hello World application but I always encountered error "java.lang.NullPointerException", not sure why since the Hello World apps is already available in netbeans when you add a servlet. I dont have problems deploying my web-apps in … | |
HI this is my code.it uses access database.But givs me this error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String mn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order … | |
Hello all! So basically I start off with one array, then I run a function that takes 3 floats, puts those 3 floats into a temporary array, then it returns this new temporary array and where I call this fucntion, It looks like this: [CODE=c++] float array [] = { … | |
my code should accept 5 numbers, sum them up , average them.. and print the numbers that are below the average it doesnt appear to be working..why? [CODE]import java.io.*; class Pra1 { public static void main(String[] args) { Console console=System.console(); int size=5; int number=0; String allNumbers=""; String Snumber=""; int sum=0; … | |
Ok I don't understand why the update statement only works once.. and after it rolls another 6, it wont add another 500 to the RP amount. [CODE]<?php session_start(); include("logincheck.php"); ?> <?php include_once("header.php"); ?> <td width='100%' valign='top' align='center'> <center><?php $dice = rand(1,6); echo "You rolled a<br /><b>{$dice}</b>\n"; if($dice == 6) { … | |
I have a JComboBox that is set to editable and has a keylistener attached. The input comes from a scan gun. What I am trying to do is if there are more than one item in the JComboBox, I need to scan a barcode that represents the # sign and … | |
Dear all, Q.No.1 1. I want to make a crystal report 2. It should have two datatimepicker 3. User select two diiferent dates and report must be run Q.No.2 1. How can i run a report when i pass a perametor from textbox. Please give me some Code thanks in … | |
Ok, I have my username set as 1 under admin and this other account set as 0 under admin. But it's not showing the page to any of the accounts and only showing the else statement. Does anyone know whats the problem? Im so confused and I have been staring … | |
Hi, This is my 1st post on daniWeb. First i want to mention that i am complete Ametuer(noob) in programming. just trying to work around with C# and need some help. Ok my problem is that i have a LISTBOX on my page with Selection mode = MULTI, A label … | |
Hi guys i'm using ASP.net ans SQL server 2005 with stored procedure to do simple search from a table in database.Plz help me out The error i get Function or procedure expects @searchKey which was not supplied. protected void btnSearch_Click(object sender, EventArgs e) { string constring = ConfigurationManager.AppSettings.Get("con").ToString(); SqlConnection conn … | |
Guys, Please explain what is happening here? [code=perl] #!/usr/bin/perl $line="abcd"; @arr=split("",$line); print $arr[$0]; $x="x"; if ($arr[0]==$x) { print "Hello"; } [/code] The output is: aHello Am I dreaming this? | |
Just recently, I have upgraded from gcc 3 to gcc 4.5.0. However, when I try to compile a basic "hello world" example in c++, I get the following warning: Info: resolving std::cout by linking to __imp___ZSt4cout (auto-import) c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a uto-importing has been activated without --enable-auto-import specified on the c … | |
Hello all! I am trying to create a simple app that takes something from an mysql database and prints it, I had some problems with the libraries at first, but now it compiles and shows me the black console window, but then suddenly it gives me some errors and in … | |
Hello everybody, I read this forum sometimes, but this is my first post :) I have a simple function for an intranet site that should make and return a XMLHttpRequest object in most browsers (including IE8): [code=js] function createXMLHttpRequest() { var xmlhttp = false; if (window.XMLHttpRequest) { xmlhttp = new … | |
I have some data encrypted with MD5CryptoServiceProvider. I need code for decrpyting. | |
hello everyone i have a problem in writing in word document the proble is that i want to append a string after a table i made in that document but it overides it the code is:- [code=csharp]//Text to word file StringBuilder strBuilder = newStringBuilder(); strBuilder.Append("<h1 title='Header' align='Center'>Writing To Word Using … |
The End.