199,114 Archived Topics
Remove Filter ![]() | |
Guys is it possible that I create a program whose functionality would be selecting a file, then gets the contents of that file (Word or text files). The program, of course, has a Richtextbox on it where the file content will be filled to. If it is, could anyone please … | |
hi i have two problems in c++ console application 1. I want a function to execute when a certain key is pressed .kbhit() is for any key but i want to modify it to a specific key ..plz tell me about it also if any other function can do this … | |
Hi! I'm new to asp.net.So,I created a simple project to connect it to a database to see whether its working fine. My database contains a table with three fields 1.EmpId 2.EmpName 3.EmpPhoto I created database and entered a row by using SQL SERVER MANAGEMENT STUDIO EXPRESS 2005. I used the … | |
I currently have fields on my form which are set up as integers in phpmyadmin. I want to be able to display error messages if any field has been left blank when save is clicked, but at the moment i keep getting column '......' cannot be null. or maybe an … | |
Two things. First I need to resolve the linker errors I'm getting and I also need to learn how to create a text file in a C++ project file. I'm working on a stacks project with classes and I'm running into linker errors. Specifically it says: [B][Linker error] undefined reference … | |
![]() | Hello people, I have downloaded a datepicker in order to use it in my script so as to allow people to pick their date of birth. The date picker in question is this one : core.ui.datepicker/ui.datepicker.js It works, but the problem is that it shows only the years that start … |
Hello; I have a following method that allocates memory for some objects. [CODE] public static int formStyleOfLyle(int a) { ObjectL[] numberL = new ObjectL[a]; if(numberL==null) { return -1; } return 0; } [/CODE] I really dont know what this does; but I need to check the return value of this … | |
C# Linq to Entities - Reference.EntityKey Now that I have built a database and here is the corresponding SQL code: [url]http://www.mediafire.com/?f4a0d74j7qe7a1f[/url] Visual Studio 2008 SP1’s ADO.NET Entity Framework has generated an Entity Model like this: [url]http://postimage.org/image/lulmehljv/[/url] I have created some methods as follows: [code] private void buttonAddPatient_Click(object sender, EventArgs e) … | |
My program receives no errors or run time errors, but for some reason it runs infinitely. I need help pinpointing the problem D: I will post additional information about the exercise I am trying to solve in this thread. [CODE] package captcrunch; /** * * @author Josh */ public class … | |
I'm trying to make a form in VB.Net that takes speech input (not text-to-speech) on my Windows XP Pro computer. I've tried to install Microsoft Speech SDK 5.1 according to [URL="http://support.microsoft.com/kb/306537"]http://support.microsoft.com/kb/306537[/URL]. The problem is my Office 2007 does not have an Alternative User Input feature, as it says in the … | |
hello guys.i have an issue.i want to show certain tabs based on user level. my user levels are: master admin supervisor gp patient But it an admin might be a gp also.how am i supposed to do that? | |
[CODE]#!/usr/bin/python import smtplib sender = 'from@fromdomain.com' receivers = ['to@todomain.com'] message = """From: From Person <from@fromdomain.com> To: To Person <to@todomain.com> Subject: SMTP e-mail test This is a test e-mail message. """ try: smtpObj = smtplib.SMTP('smtp.gmail.com') smtpObj.sendmail(sender, receivers, message) print "Successfully sent email" except smtplib.SMTPException: print "Error: unable to send email" [/CODE] … | |
Hi, I have my application in VS2008 and coded Vb.net. My query is i want to save record from an excel sheet to my Database Table. But i dont want to insert the Excel sheet as a whole rather i want to insert the record in my database table Row … | |
A new issue !! I have a checkbox column in the datagridview and also a column named "partqty" which displays the quantity of materails available.. I would want that when the user checks on the checkbox, the quantities of checked rows should be added and displayed in the textbox.. I … | |
My assignment for my programming class is to create a script using JavaScript that asks a user to enter a number in a pop up dialog box on their browser, and then tell them if they entered an odd or an even number. This is what I have come up … | |
![]() | Hi everyone just started Daniweb! I have been using devcpp for some time.I am trying to make a switch from DevCpp to Visual Studio but find the latter confusing having so many options. Recently, I did a console application that will accept a word from user and prints its anagrams. … ![]() |
I am trying to make an 8x8 board with an array. The only problem I run into is making a box or square that will be placed into that array. for instance: @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ … | |
I've never felt like a total moron until I took a Computer Science class. I'm trying to create a program that rolls a pair of standard 6 sided dice 10,000 times and outputs how many times doubles show up, using a "while" loop. I think what I'm trying to do … | |
Here is the code It's an Open type free use code for convert css to inline style codes by capturing from your own html code or a url and it outputs an html code when finished. Because i need to send webpages in an e-mail. I am brand new to … | |
this code is for bring an output of "Hello, [name]!" with frame on its outside. [CODE]//ask for a person's name, and generated a frame greeting. #include <iostream> #include <string> // say what standard-library names we use using std::cin; using std::endl; using std::cout; using std::string; int main() { // ask for … | |
Hello !! I am stuck with an issue and need some guidance.. I am using visual studio 2008, vb.net Windows app and ms access 2003. I just wanted to know that there is a form in which i select an option from the list of options in combobox.. While the … | |
having much problem in email. i tried everything..but dont know whats hapening im getting simple plain text email while im sending the html input [CODE] { $from_name= ADMIN_NAME; $from_email=ADMIN_EMAIL; $subject="Simple html email"; $message = '<h1>Hello, World!</h1> </br>'.$_POST['msg']; $headers = "From: $from_name <$from_email>\r\n"; $headers .= "Reply-To: $from_name <$from_email>\r\n"; $headers .= "Return-Path: … | |
Hi again !! I am making a widows application wherein i have a form containing two datagridviews.. The first one( named dgv1) consists of all the data from the database and a checkbox column.. While the user selects the rows using checkbox, the data are displayed in adjoining datagridview(named dgv3).. … | |
First let me start by saying that I hope I wrapped my code properly. Next, my instructor sent us some code using a class and instructed us to add to it and make it so that we can display a checking account balance from a simple three line text file, … | |
Write a function which accepts a sentence as input parameter. Each word in that sentence is to b reversed (remember: not the whole sentence to b reversed, each word should b reversed). Space should b there between each word. Return the sentence with reversed words to main function and produce … | |
Hey guys, I need to print out character symbols for this program. I need to print 2 different shapes of symbols. For the first shape, I have to print out a triangle, represented by the "*" in the nested for loop. I need to print out a square shape using … | |
Good day, I am having problem with the wordpress add_action function. currently, I tried the code provided in wordpress.org forum without success: [CODE] $comment_ID="15"; function echo_comment_id( $comment_ID ) { echo "I just received $comment_ID"; } add_action( 'comment_id_not_found', 'echo_comment_id', 10, 1 ); [/CODE] When I run the code, $comment_ID does not … | |
Hello I have hit a wall with this issue, been at it for a few hours now and it is bewildering to me to say the least With that being said, the below code is giving me some erroneous answer during the execution. The user enters a number from the … | |
How do i constantly keep checking for specific characters in a text file till there are no more specific characters left. this way i can keep displaying text file logos on my application until there are none left in the text file being searched by c++ :) i did have … | |
Hello, as you can tell from my username I'm completely new at C++ and have no idea how to write a function that won't chuck up any errors! What I'm trying to do is to compare an inputted student's ID number to ones already stored in my current array and … | |
I am trying to write my dictionary to a csv and i am getting errors, was wondering if someone could tell me what i am doing wrong this is my function [CODE] n = open(file.csv,"w") for item in my_dict.items(): f.write(item) f.close() [/CODE] my my_dict is for example {john ['25']} when … | |
Hi guys, quick question, my objective is to make class somehow hold all values that i'm using in the program. I'd like the class to act as a database, if that's possible. My only problem is that, i'm passing an array from the main form to the class, and that … | |
I have no idea what wrong my cods when I press = button of my calculator nothing happens. [CODE]import java.util.Stack; import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; import java.util.Vector; public class Ahsan extends JFrame{ Stack s = new Stack(); private JFrame f; private JPanel p1,p2; private JTextField … | |
I have to create a form that I enter the price of gas each month over a year. I enter the price in a text box and click the enter button to send the price to a list box immediatley and use an array. I have the following code but … | |
guys, it's been a long while since the last I asked about this and so far, no one yet has ever given me the right and helpful answer. My problem is, I have a program, I have published it, and I have been actually using it in my PC. Whenever … | |
[CODE]$ClassName=mysql_real_escape_string($_POST["ClassName"], $con); $query="SELECT ClassID FROM Class WHERE Name='".$ClassName."' "; $q=mysql_query($query,$con);[/CODE] its not working..any help...please............!!!!!!!!! | |
I have built a site completely off of tutorials. aonentertainment.com in the pursuit of learning and profit to pay for classes. I want to add (Next,1,2,3,Previous) so I do not have to manually create new pages. I searched DaniWeb.com and found >> [URL="http://www.daniweb.com/web-development/php/threads/1720"]Clean Previous Next Script for MySQL[/URL]. Link to … | |
I am using asp.net codebehind (c#) and I wrote code for checking the username and password. I want the other parts of the form to be inactive or "grayed out" so the user can't edit them until they successfully enter in the correct username and password. I would show code … | |
Guys I have a table with image datatype and I wana insert an image in the image field, for example [CODE=SQL]insert into dbo.Products(ProductID, ProductName, ProductPrice, ProductImage) valeus(144, '8 Gig Lenovo memory Stick', 250.00, 'Image from C:Drive or where ever the image residing')[/CODE] Thanx in advance | |
Write a program that will ask the user for the name of an item, the part number of the item, the cost of the item and the quantity of the item. The program will then calculate the total cost of the item. The program will also keep track of the … | |
I know how to write to an existing txt file via Py function, but can you create the file itself from the function, or MUST the txt file already exist? | |
Hi all, I'm not a Python expert (I've only dabbled a little). A user has asked me to help with a short webcrawling script they have written. They are making use of Dale Hunscher's UrlNet library in the script. They basically want to have the script ignore overly repetitive URLS … | |
Hello,I'm new here and I'm not here to beg for code or anything i just need some help as to something I'm doing. I'm fairly good with php and I have been trying to do something with no luck. I want to make 3 links and 3 hidden images. When … | |
hey me and my group are doing a project but we dont know how to use the file pointer (to export the C program to a text file and we dont know how to make it so the random generator makes our words go diagonal top left bottom left top … | |
Hi, I'm learning java and I have a problem. The getText() doesn't seem to work. What I am trying to do is to write a simple code, where I assign the text of a button to a string variable and print that string variable on the command line. I get … | |
Hi guys, trying to write a function that reads a text file and counts the periods in it and prints the answer. I keep getting an error saying that UnboundLocalError: local variable 'periods' referenced before assignment. I am not sure how to fix this. We must use a function to … | |
[CODE]#include <stdio.h> #include <conio.h> #include <math.h> // +-*/ void readArray(int *a, int n) //fuctie care citeste un tablou { for(int i=0; i<n; i++) { printf("A[%i]=",i); scanf("%i",&a[i]); } } void printArray(int *a, int n) { for(int i=0; i<n; i++) { printf("%i ",a[i]); } } void patratPerfect(int *a,int n) { for(int i=0; … | |
Hi I have made lots of Access databases over the years but it seems I have fogotton lots of basic principles since I have not used it for ages. One thing I want to do is: For instance when you send an email using Yahoo or similar webmail if you … | |
Hello, below is the program written to enter the details of grocery products purchased and find the totalamount. namespace grocery_billing { public class program { public static void Main() { int choice, key; float Price, TotalCost; string ItemDescription; DateTime Date; File.Create(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "grocery billing.txt"); Console.WriteLine("Press 1 to read data from … |
The End.