199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Enders_Game

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 …

0
106
Member Avatar for comsians

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!!!!!!!!!!!!!!

Member Avatar for comsians
0
366
Member Avatar for BigFormat

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" …

Member Avatar for BigFormat
0
186
Member Avatar for yap_1991

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, …

Member Avatar for di2daer
0
181
Member Avatar for br0wnm4n

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 …

Member Avatar for br0wnm4n
0
250
Member Avatar for ricardo.crudo

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 …

Member Avatar for Ancient Dragon
0
175
Member Avatar for Shlaa

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 …

Member Avatar for Shlaa
0
138
Member Avatar for hassin

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 …

Member Avatar for masijade
0
159
Member Avatar for khushhappy

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: ' . …

Member Avatar for khushhappy
0
135
Member Avatar for Diogo Martinho

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. …

Member Avatar for Fbody
0
165
Member Avatar for Naveed_786

Hi guys, I am new in web development how should i start developing web site in PHP???

Member Avatar for chrishea
0
112
Member Avatar for myk45

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 …

Member Avatar for Ancient Dragon
0
100
Member Avatar for heidik

Could anyone please show me a working example of how to find if a file exists but is empty or not? Thanks

Member Avatar for Ancient Dragon
0
354
Member Avatar for hatux

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 …

Member Avatar for hatux
0
133
Member Avatar for hag++

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 …

Member Avatar for hag++
0
362
Member Avatar for j855

Is it possible to sort a list of numbers from largest to smallest? Like if I had a list of numbers in variable a

Member Avatar for j855
0
70
Member Avatar for Roses89

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 …

Member Avatar for Roses89
0
112
Member Avatar for i.am.wolf

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 …

Member Avatar for ddanbe
0
372
Member Avatar for equatorlounge

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 …

Member Avatar for equatorlounge
0
327
Member Avatar for Spiderpig085

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 …

Member Avatar for Spiderpig085
0
209
Member Avatar for chris evans

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 …

Member Avatar for AndreRet
0
150
Member Avatar for chris evans

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 …

Member Avatar for AndreRet
0
214
Member Avatar for Sunshineserene

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, …

Member Avatar for JamesCherrill
0
160
Member Avatar for Chalson

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 ?

Member Avatar for PsychoLogic
0
201
Member Avatar for wilsonz91

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 …

Member Avatar for JamesCherrill
0
6K
Member Avatar for lDeadeyesl

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 …

Member Avatar for rajesh1158
0
131
Member Avatar for punchinello

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!

Member Avatar for punchinello
0
81
Member Avatar for ryan400

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 …

Member Avatar for ryan400
0
1K
Member Avatar for morgon

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 …

Member Avatar for gerard4143
0
113
Member Avatar for SHENGTON

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> …

Member Avatar for PsychoLogic
0
157
Member Avatar for Perry31

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++???

Member Avatar for Perry31
0
131
Member Avatar for jaejoong

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 …

Member Avatar for jaejoong
0
100
Member Avatar for ImaginaryHero

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..

Member Avatar for alwaysLearning0
0
3K
Member Avatar for cintojose

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

Member Avatar for Netcode
0
291
Member Avatar for xcarbonx

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 …

Member Avatar for Netcode
0
108
Member Avatar for umamahesh2020
Member Avatar for pranav.falcon
0
106
Member Avatar for Arun.Emm

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 …

Member Avatar for Tarang
0
860
Member Avatar for warne

VB .Net : how to validate textbox to get only alphabets a-z , A-Z...Pls help me

Member Avatar for Netcode
0
230
Member Avatar for mallak alrooh

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 …

Member Avatar for JamesCherrill
0
142
Member Avatar for ryoonnet

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 …

Member Avatar for Airshow
0
276
Member Avatar for annesil

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 …

Member Avatar for Netcode
0
167
Member Avatar for krusnik08

[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]

Member Avatar for Netcode
0
148
Member Avatar for amazed

Hi mysql_connect is not working though mysqli_connect is working. Both are enabled in configuration file. Please help. Thanks

Member Avatar for jogesh_p
0
116
Member Avatar for stonest123

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 …

Member Avatar for stonest123
0
154
Member Avatar for Suzie999

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.

Member Avatar for Suzie999
0
170
Member Avatar for kasim.badami

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 :)

Member Avatar for kasim.badami
0
273
Member Avatar for Scoppio

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 …

Member Avatar for Scoppio
0
207
Member Avatar for lazynewt

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 …

Member Avatar for lazynewt
0
262
Member Avatar for Triztian

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 …

Member Avatar for aquilax
0
145
Member Avatar for Hey11

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 …

Member Avatar for myk45
0
108

The End.