199,114 Archived Topics
Remove Filter ![]() | |
I have a class with a button, it runs the command automatically when the gui is constructed (which i dont want it to do) but then doesnt work again after. What am I doing wrong? Builtin commands such as endcommand work as they should. relevant excerpts (ignore the indent problem … | |
hi i wannt ot make a programe in C inwhich user input current date and date of birth, output shows age in the number of years, months, days, etc., PLease help me!!!!!!!!!!!!!! | |
Hello, I've written down a small JS function 'checkForm()' to validate the input in a form and alerting, before actually sending data to the PHP server-side script. In my form, in addition to common input text fields I've got two buttons: the first called "ADD" to submit data and "CANCEL" … | |
Hi, Im creating a GUI however i'm experiencing some difficulties. I want to have a text field and a button both placed inside a radiobutton. I've tried inputting ONLY the button, but the button is not displayed when i run the codes. Would be good if light could be shed, … | |
Hello, I have been working on this code but I can't seem to make it work. I want to implement function index() that takes as input the name of a text file (as a string) and a list of words. For every word in the list, the function will print … | |
I have this: [B]foo(cons char *p);[/B] foo not is my function, and I don't have access to your source code. I'm trying use foo so: [B]char val[32]; foo(val);[/B] The result of foo is zero and not the desired string. Other tries: This work: [B]foo("something here");[/B] This don't work: [B]foo((cons char … | |
Okay, I started learning Python last weekend on Saturday with some tutorials and a book. With this being my first programming language my program won't amaze you :P The program I made is a calculator for working out how much turf a person would need given the length and the … | |
Write a program in java to a class called Employee which is having the following instance variables. name(string type) age(int type) designation(string type) salary(double type) The class Employee must have a parameterized constructor having only name as the argument and initializes the name variable. Proceed with same class.... write a … | |
Hi, im a new user to php,problem is : i want to edit/modify the data from the form to the database.kindly make certain changes to it so that the record can be modified.Attached php code is paste below:- <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . … | |
I am facing a very simple problem that many of you will be able to solve, however I'm having a hard time trying to figure a method to program this. I am trying to create a dynamic array with the many prices of different clothing for a shop I'm creating. … | |
Hi guys, I am new in web development how should i start developing web site in PHP??? | |
Hello, Well, this is not a question directly related to programming, so kindly excuse me for that. i have a small doubt regarding endianess and dereferencing of elements This is what i tried: [CODE]#include <stdio.h> int main(void) { int s = 0xFFFFFAFF - 1; int *p = &s; unsigned char … | |
Could anyone please show me a working example of how to find if a file exists but is empty or not? Thanks | |
Can somebody enlighten me why do i get an exception ? code is over here : [CODE] import java.io.InputStreamReader; import java.util.*; public class ObtainKey { public static void KeyAnalyzer(String input) { int idx = 0; int tokenCount; String inputArr[] = null; StringTokenizer st = new StringTokenizer(input); tokenCount = st.countTokens(); for … | |
Hi All, I am writing an MFC Tic Tac Toe app and I am getting a strange error when debugging it. This module loads a bunch of BOOL variables to keep track of whether or not the tile next to it matches (i.e is the tile next to me also … | |
Is it possible to sort a list of numbers from largest to smallest? Like if I had a list of numbers in variable a | |
Hey guys, Im not very good at programming but ive a huge project and i needed help on something. The basic thing is that im making a project for a doctors hospital Now im working on the prescrption and i wanted the doctor to be able to select the patient … | |
So, our group was assigned a project to calculate the GPA of a student. We are using visual Studios 2010. Anyway, all seems to be good but I just cant figure out how to link the out put the GPA to its corresponding boxes. If you scroll down to the … | |
wo, is there a way to create subdomains only through a php file ? like create a function call createsubdomain($username) or something? that would really be helpful in the sense that as soon as a user registers himself on a website, he gets to access hisname.thewebsite.com to access his full … | |
hi Guys, Just started java and so far not too bad but i tried to sort out packages today and got this error. Stuck on it for hours. I'm not sure if im importing or setting up the pacakages properly but that where I'm hoping you can help... Im dealing … | |
Hi guys! I created a simple code to add records into an SQL database as shown below. It seemed to be working but then the next time i tried running it, i got no output. actually on clicking the button nothing happens at all. no warnings or error messages at … | |
Hi, could someone please show me how or direct me to a source where i can learn how to connect and manipulate SQL Server 2008 database with VB.NET. I have created a database in SQL Server 2008 and i've created forms for viewing data on VB.NET but i dont know … | |
Hi. I have a 2D array in a particular class file. Now, I want to equate a 2D array from another class to it. May I know how to do it? So far, this is what I've done: Example: [CODE]private double[][] residuescores = MatchApplet.mydouble;[/CODE] residuescores is from a class itself, … | |
After i key in 20 different value of float, what command should i use so that i can determine the largest and smallest value from these numbers ? | |
Hi, I read a few post on passing arrays from one class to another but i can't understand. I tried doing it and i'm stuck with it, would really appreaciate it if you can help correct the following code: [CODE] //This is my super class public class Transport { protected … | |
I have been messing around with adding sessions and I got everything to work. I can have users login, and it keeps track of all of their info through session_start(). However there is one strange thing that is bothering me. If someone is logged into the page, then if they … | |
Hi I'm new to MFC programming. What do I do if I want to make my window look better? Say, with a button that is not rectangular but oval? And maybe throw in some animation effects? Thank you very much! | |
Here is my code, for some reason it goes to an infinite loop when i try and adjust the highest and lowest values for the Math.Random() method. The code works fine if i do not try to change those values based on if the guess was higher or lower than … | |
I have made a wery simple program but i still get a linker error I have one class Node.h #[CODE]ifndef Node_H #define Node_H #include <iostream> using namespace std; //class node has four fields: type, child1, child2 and parent. The type is -1 if it is a inner node, 0 if … | |
Hello, good evening. :) I'm having a hard time with my "Searching" codes. :( [b]The problem is:[/b] When I try to search the employee number after registering, my program will print "EMPLOYEE NUMBER NOT FOUND". I don't know where's the culprit. :( Here's the whole codes: [code=C]#include <stdio.h> #include <conio.h> … | |
Does any know about make file??? If yes, could you please explain about make file how to create make file and how to use in C,C++??? | |
This is my code: Add_click [code] dbcmd = New SqlCommand("INSERT INTO dms(name, dept) VALUES (@name, @dept)", connection) 'Add Database Parameters dbcmd.Parameters.Add("@name", SqlDbType.VarChar).Value = name.Text dbcmd.Parameters.Add("@dept", SqlDbType.VarChar).Value = dept.Text [/code] But I want to add the data in gridview [code] Dim record_series As String = DirectCast(GridView1.FindControl("Record_Series_Number"), Label).Text Dim doc_name As String … | |
I am at the beginnig of the softphone project for my university final project.. I will implement a softphone with using SIP protocol and C++ language on linux. I need some advice about tutorials, usefull API and whatever which will help me. Thanks.. | |
Hello everybody, I am novice programmer in vb.net.I need to export datas from DatagridView to Excel.I could load the data but not columns names.Please help me to load the column name as well along with datas | |
Hello all, I am currently using VB 2010 and am having a problem comparing strings in my program. My problem is that i need to output a line between each set of employees every time the name changes, in a list box. For example: My current output is: James James … | |
[CODE]i want out put as: * * * * m a h e s * * * * * * *[/CODE] | |
Hi , Basically I want to display a popup box only at a specific time in asp.net application. so i'm using the following code.. aspx page : [code] <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function timedMsg() { var t=setTimeout("alert('good morning!')",6000); } </script> </head> [/code] C# code : [code] protected void … | |
VB .Net : how to validate textbox to get only alphabets a-z , A-Z...Pls help me | |
Hello":) I have code and I wont your help in telling its right or wrong and what missing.... This is the question :: If the user chooses 1, then the program asks the user: “Please enter a new dictionary file name”. The program creates a new file with this file … | |
Hi, I am trying to upload multiple files using file input. And I am able to do that using "multiple" attribute of input type file. I can not use file API as I am using python on server side. So after user has selected the files, I want to access … | |
pls help..iv juz started learning vb.net..encountered this problem in this code: [code] Private Sub NavigateRecords() TextBox1.Text = ds.Tables("stdDataSet").Rows(inc).Item(0)-error msg appeared here sayin null reference evception was unhandled. Object reference not set to an instance of an object. TextBox2.Text = ds.Tables("stdDataSet").Rows(inc).Item(1) TextBox3.Text = ds.Tables("stdDataSet").Rows(inc).Item(2) TextBox4.Text = ds.Tables("stdDataSet").Rows(inc).Item(3) this is the full … | |
[B]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "students" And TextBox2.Text = "amaer" Then Dim a As New Form2 a.Show() Me.Hide() ElseIf MessageBox.Show("Please enter a valid Username and Password.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning) Then End If End Sub[/B] | |
Hi mysql_connect is not working though mysqli_connect is working. Both are enabled in configuration file. Please help. Thanks | |
Hi, I'm trying to post through a value of a button from a form on a previous page, and depending on the button that was pressed, an SQL statement will be executed and then a table will be created based on the result. However, when i try to do this … | |
Hi. Hoping someone could direct me to a starting point for project. No code, I havent started yet. Im looking for a start on finding the proccess exe name that calls a function in my dll file. Just looking for a place to start looking. | |
Hi, Please help me if anybody has found PHP code for implementing Reddit.com API. I want API that can post on reddit.com through php code. Thanks in advance :) | |
Hi, i'm doing a small program that communicates with my first SQL Server, but I'm having some troubles with the C++ (I'm usued to C only, and use it for developing microcontrolers firmwares). What Im trying to do here is it: Write the USER and PASSWORD in a form, then … | |
Hi guys i am wondering if anyone can help. I basically have a few thousand transactions 7,000 - 10,000 transactions to process over a short time. The flow goes like this. <Select single record> ---> <convert to xml doc> ----> <transmit document as string to https:// location> ---> <receive a … | |
Hello all, I have a simple question, I have a website which has a database, and I have a customer(with another website) that takes the orders, but instead of saving the order to their database they must save it to ours, this meaning that the must be able to access … | |
hello i wanted to ask how to create a function that makes the insertion code search for an occurence that i will insert with a cin , instead of picking the first occurence for example the array is arr[]={1,2,3,5,3,1,3} there are 3 threes here , i want to get the … |
The End.