199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Violet_82

Chaps, today I was reading about exception handling and although the book explains them in sufficient details there is something that I really struggle to understand. Ok, here's the example they analyze: // Fig. 11.2: DivideByZeroWithExceptionHandling.java // Handling ArithmeticExceptions and InputMismatchExceptions. import java.util.InputMismatchException; import java.util.Scanner; public class DivideByZeroWithExceptionHandling { // …

Member Avatar for Violet_82
0
398
Member Avatar for CPT

currently I have a class function: class MyClass{ static int E(int A,int B, int C){ //function code } }; //and I call it like this : MyClass::E(1,2,3); //what I would like to do is call it in this way: E(1,2,3); //my current macro definition is this #define E(a,b,c) Myclass::E((a),(b),(c)) how …

Member Avatar for JasonHippy
0
313
Member Avatar for Cameronsmith63

Hi, im new to ASP.Net, just playing around with it... Got a simple question. I am trying to display my Textboxes next to my datagrid, but for some reason, it's always at the bottom of my datagrid. I playing around with this for an introduction to ASP.net. Anyway, i've tried …

Member Avatar for JorgeM
0
202
Member Avatar for Aterin

Greetings, I'm a software development student and over the summer break I decided to make an Android app, figure the best way to improve as a programmer is to program. What I'm trying to do is search a website for information (i.e. search wikipedia for the release date of Superman …

Member Avatar for Aterin
0
238
Member Avatar for nats01282

I want to know if its possible to store php variables in mysql database i currently have a text field which stores the value <div class="row-2"> <div class="titles"> <?=$config['slogan']?> </div> </div> this is the slogan for the website that is in anther table which is got before this - if …

Member Avatar for nats01282
0
1K
Member Avatar for johang_80

Hello, I am currently trying to develop a window form application whose content is added dynamically. What I am trying to do here is to display a number of panels with different sources across the screen horizontally. I am getting the data from a DB and depending on the number …

Member Avatar for ddanbe
0
436
Member Avatar for aynamohol

I have two tables named `stockin and stockout`. I can execute query easily separately for each table. Now, I want to bind both query in a table. Please check query and output below- query in stockin: select serialno, sum(in_quantity) SUMIN, group_concat(in_quantity) GCIN from stockin group by stockin.serialno output: +----------+-------+-------------+ | …

Member Avatar for pritaeas
0
3K
Member Avatar for Abhinisha

what are member function?? what is the use of :: in them ?? what are static and non static member function??

Member Avatar for MonsieurPointer
0
211
Member Avatar for diana john

I have a task in which i have to take some raw data in form of xml and then put that data in data tables using data set and aftre that i have to generate a report from that.Any help would be appreciated.

Member Avatar for eonejames
0
222
Member Avatar for Shiva_nan

Hi, I am doing library application, I want to create Bar Codes for each book.. I ill supply book number as input.. CAN ANYONE TELL HOW TO CREATE BARCODE BASED ON THIS BOOK NUMBER USING C++.. I AM USING DEV C++ COMPILER.. Thanks in Advance.., Shiva

Member Avatar for bruc.harvey
0
258
Member Avatar for ngonix

Hello, I have a small issue with copying text from one textbox in main window to another textbox in an iframe. The code i have is as follows: index.html <html> ... \\JQuery Library Here \\JQuery Code <script> $(function() { $('#lastName').keyup(function() { var txtClone = $(this).val(); var rel = $("#listUnder").contents().find("#relationship option:selected").text(); …

Member Avatar for ngonix
0
1K
Member Avatar for Jacklittle01
Member Avatar for slate
0
324
Member Avatar for sireiz

I want to use the data members to store the info on the file and then read and display them through these two member functions in the class but i can't think of syntax. i made global variables but didn't use the data members in the class. i stored and …

Member Avatar for Moschops
0
343
Member Avatar for SpottyBlue

I just started my assignment for the group and I need help with these. The question is based on here: http://sdrv.ms/16292hI I'm new to this, but I've only learned up to 'Chapter 10: Decision Making'. It's a lot of coding for this assignment and it's incomplete: // Stationery Ordering System.cpp …

Member Avatar for Moschops
0
160
Member Avatar for cleve23

Hi I just started to learn Java and when i was reading through the tutorial for building a simple GUI. It says that parseDouble method is not localizable. I don't understand what it is refering to as this method is not localizable. Please explain to me.THANKS!!!!!!!!!!!! :D Code int tempFahr …

Member Avatar for JamesCherrill
0
200
Member Avatar for CoilFyzx

Hello good day. I am designing two JTables; one on top of the other. The first one has nine columns. And the second one has 8 columns (The first column spans the first columns of the topmost table). What I wish to do now is to make the bottom table …

Member Avatar for JamesCherrill
0
478
Member Avatar for eburlea

I have a login form 'Application_Form_Login' that I call in 'Application_View_Helper_Auth', so that the signin form appears on all pages. If I login from 'index/index', everything is ok, but it doesn't work correctly if I login from 'index/otheraction' or 'othercontroller/index'. The form code starts as follows: class Application_Form_Login extends Zend_Form …

Member Avatar for eburlea
0
395
Member Avatar for genieuk

Hi, Me again... Just wanted to know, i have this piece of code to enter the data from a registration form of mine into the user db. I want to use the mysql_real_escape_string to help stop those evil people who enjoys hacking from hacking my DB $query = "INSERT INTO …

Member Avatar for pritaeas
0
286
Member Avatar for visweswaran28

Hi, I have a string formula and I wanted to execute it in sql server 2008 UDF function. Please suggest to proceed. P.S. I have tried with exec () - error occurred.

Member Avatar for anupamduttabd
0
109
Member Avatar for funfullson

Hello dears. I need to play a music in my projects background. I did such below but it does not work. what is problem please? [CODE] class PlayMusic { private string cmd; private bool isOpen; [DllImport("winmm.dll")] private static extern long mciSendString(string strCommand,StringBuilder strReturn,int iReturnLength, IntPtr hwndCallback); public void Close() { …

Member Avatar for Sri Harsha
0
352
Member Avatar for kantigniter

![50e59f3e9c4e5d94efdbea6bc00b2e2c](/attachments/large/4/50e59f3e9c4e5d94efdbea6bc00b2e2c.jpg "50e59f3e9c4e5d94efdbea6bc00b2e2c") I have three tables, and I'm going to show the third table. What I want to know is how to delete each entry from it? As, the first and the second tables ids are fetched and inserted in the third one. As in, I have my model as …

Member Avatar for kantigniter
0
999
Member Avatar for mbarandao

Hello All: I am some difficulties getting some database variables from an included file to my mysql connection. Here is what i have: file one Called config.inc.php: session_register("client_id"); $_SESSION['client_id'] = $_SESSION['SESS_ACCT_ID'];// $club_id=$_SESSION['client_id']; ob_start(); include('../../../page_title.php'); ob_end_clean(); include('../../../datalogin.php'); if (!defined('DEFAULT_HOST')) define('DEFAULT_HOST','localhost'); if (!defined('DEFAULT_USER')) define('DEFAULT_USER',$account_user); if (!defined('DEFAULT_PASS')) define('DEFAULT_PASS',$account_pass); if (!defined('DEFAULT_DB')) define('DEFAULT_DB',$account_db); the variables …

Member Avatar for mbarandao
0
429
Member Avatar for kiLLer.zoh_1

<?php class contacts { public $name; public $cno; public $clocation; public function __construct($name,$cno,$clocation) { $this->name = trim($name); $this->cno = trim($cno); $this->clocation= trim($clocation); } public function getName() { return $this->name; } public function getNO() { return $this->cno; } public function getLocation() { return $this->clocation; } } class DataBaseAction extends contacts { …

Member Avatar for diafol
0
172
Member Avatar for shane.shaffer.50

I am looking for some advice on where to start with building my guy. I will mostly be coding on my mac, but have the option of windows or linux. I am going to be building an application that will be based around a database for my business and want …

Member Avatar for iamthwee
0
209
Member Avatar for Labdabeta

Hello. I am wondering how EOFs are indicated to either the cstdio functions or the fstream functions. Mainly I am wondering how it differentiates it from data. For example, if EOF is a 2-byte code wouldn't this break the system by inserting a 'false' eof flag: for (int i=0; i<256; …

Member Avatar for Labdabeta
0
182
Member Avatar for peterparker

I am stuck on the final part of the query, I know that this thing is easy, but I am out of ideas now, so sorry for this. I have prepared a query like this: SELECT A.projectName as PARENT, (select COUNT(*) from PSPROJECTITEM WHERE PROJECTNAME = A.PROJECTNAME) parentprojecount, B.ProjectName as …

Member Avatar for atia.akram
0
197
Member Avatar for irfath

Heloo Guyz!! I Uploaded My Html and Php Files To server by using FileZila. And When I google and click my address It shows all the Files i uploaded to server(Shows the directory ). not the home page, how can i show my home page only when i click my …

Member Avatar for irfath
0
205
Member Avatar for bryann

I've built an application that displays the contents of an access database in a datagrid and also a form which allows a user to add a new record to the database. When I tried to run the exe in the bin folder on another computer it displays an error when …

Member Avatar for bryann
0
557
Member Avatar for rakesh.menon.16

org 00h using 1 jump equ r1 jump1 equ r5 mov r0,#0a1H mov r2,#0ah mov a,#6h jump: sub r2,a jump1: inc r0 jz jump cjne a,#00h,jump1 end assembling e06.asm... e06.asm(8): error A8: ATTEMPT TO DEFINE AN ALREADY DEFINED LABEL e06.asm(8): error A9: SYNTAX ERROR e06.asm(9): error A8: ATTEMPT TO DEFINE …

Member Avatar for CarolJ
0
253
Member Avatar for ravinder yadav
Member Avatar for Aterin
0
286
Member Avatar for Kratoswoo

So I have a Datatable that is supposed to show information. I have it working in Windows Forms but tranfering it over to asp.net so a little diffrent. I do not understand GridViews that much. So any help would be appreciative. I will not give everything away. I did a …

Member Avatar for Kratoswoo
0
236
Member Avatar for hikingwithu2

I am changing my web site from static html pages to php pages using includes and a mysql dbse. In the dbse table I store the blog body text and the blog title text, and the blog date. I have written a page I call 'previous_blogs.php' to list all the …

Member Avatar for hag++
0
247
Member Avatar for GTTravis

I have a task and a half that i am sure i can do, just want to be pushed in the right direction: i have a web page (asp.net c#), on it has a button that when clicked should launch the file dialog window, users must be able to select …

Member Avatar for GTTravis
0
153
Member Avatar for sireiz

Kindly take look at this code, it is giving me an error in the main function. #include<iostream.h> #include<fstream.h> #include<cstdlib> #include<cstring> ofstream re; class studentinfo { private: char* VUID; char* campusID; char* Studentname; char* Fathername; public: void Storefile(char*, char*, char*, char*); char* Display() ; studentinfo(char*, char*, char*, char*); ~studentinfo(); }; studentinfo::studentinfo(char* …

Member Avatar for sireiz
0
199
Member Avatar for Knoxarama

'Ello. I'm having a concern about the ability for several objects that require access to one another. Visual studio intellisence shows no errors, but the compiler does. Mostly that classes become unrecognized. I can get different errors by shuffling around the classes within the sapa namespace. Sorry, its a bit …

Member Avatar for JasonHippy
0
208
Member Avatar for theholychilli

I am creating a pokemon text-based game. I have 1 problem, I dont know how to do the attacks. I thought - enemyHP = 100 class pikachu: def slamAttack(self): self.enemyHP = enemyHP - 30 print("pikachu used slam!") print(enemyHP) #then to call it when they ask for slam attack = str(input("OPTIONS: …

Member Avatar for m_ishwar
0
611
Member Avatar for iFrolox

Hello, Before anything, I want to say that I will keep looking around, but im leaving this thread here to possible get faster answers and solutions. Well, I'm trying to save multiple texts from textboxes and comboboxes, and after saving the information to a file an item will be added …

Member Avatar for iFrolox
0
180
Member Avatar for JoeD1

Can some help me with my Default: It is printing the error message but at end of message is giving a decimal value for the char sign. How do I stop this from happening? #include <stdio.h> char sign; int x, y; int main() { printf("Choose:\n"); printf("a) Addition\n"); printf("b) Subtraction\n"); printf("c) …

Member Avatar for JoeD1
0
165
Member Avatar for Thermalnuke

Hey guys Im doing some Research on the artical title. Im wondering if it is possible to have an Access database set upfor a company, but instead of installing microsoft office on every client machine, can you create an .EXE excutable file that will access the database that will be …

Member Avatar for SQLpower
0
450
Member Avatar for davidjennings

Hi All I am running an sql query to obtain the data for $CaseStudyTitle[] = $row['CaseStudyTitle']; located in the while loop and passed as parameters to the fucntion below. Currently I am displaying only one case study title at anytime. The partner can have many case studies titles how can …

Member Avatar for davidjennings
0
199
Member Avatar for bfitzgerald

Hi guys I'm trying to create a login system on my site that uses the login information from my phpBB forum. I'm having trouble retrieving the password hash from the forum database. I'm a bit of a newbie to php so am a bit lost. Thanks in advanced. <?php //include …

Member Avatar for F-3000
0
476
Member Avatar for joanna alday

hello!!! guyz i want to learn how to make a website or web application, and i want to use ajax language.what are the compbination of ajax.it is easy to use or not?

Member Avatar for JorgeM
0
168
Member Avatar for Loi-se

I have a question about when you can be considered a good developer. I'm programming now for about 3 years (mostly in VB.net ) and recently made a graphing calculator: http://sourceforge.net/projects/graphingcalcula/?source=navbar Now I wonder If you guys can say at what level I am with programming. Can you say that …

Member Avatar for Stuugie
0
127
Member Avatar for Abhinisha

in command line argument i am writing argument for the main function as follows int main(int argc,char*argv[]) here argc and argv is cleared to me but why we are using char* with argv... means why we are using * ???

Member Avatar for NathanOliver
0
213
Member Avatar for johnt68

Hello ... I am trying to make an address book with windows forms, and would like to add a birthday reminder feature. The name, address, bithdate go into the xml file ( I think!), and I have put a combo box on the form to say yes or no to …

Member Avatar for johnt68
0
197
Member Avatar for Smartflight

File structure: /index.php /source/header.php /manager/login.php /manager/scripts/auth.php login.php: <?php require ("../source/header.php"); ?> <?php if ($_SESSION['check'] == 2) { unset($_SESSION['check']); echo "<p>Incorrect! Please try again.</p>"; } ?> <form action="scripts/auth.php" method="post" name="login-form"> <label>Table ID</label> <br /> <input type="text" size="20" id="ID" name="ID"> <br /><br /> <label>Password</label> <br /> <input type="password" size="20" id="pass" name="pass"> <br …

Member Avatar for Smartflight
0
469
Member Avatar for ImZick

Hi i need to create a restrictions for the user i have a column "level" which is if the users level is 5 then echo "admin" else if level is 3 echo "mod" and if level is 1 echo "newbie". How can i do that after they login?

Member Avatar for ImZick
0
376
Member Avatar for vaultdweller123

hey guys, anyone here know how to format word doc using PHP?, i already got how to create one, but the formatting is my problem, like setting bold letters, btw i tried html markup it works but the problem though is how to set the page width? it's taking up …

Member Avatar for joonaroshi
0
313
Member Avatar for abra_ka_dabra

I am trying to download a zip file from a server using the following code but it gives me a tmp.zip of size 1kB. What is the mistake in this program? try { URL url = new URL("http://www.nseindia.com/content/historical/DERIVATIVES/2013/JUN/fo18JUN2013bhav.csv.zip"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); InputStream in = connection.getInputStream(); FileOutputStream out …

Member Avatar for JamesCherrill
0
247
Member Avatar for t_thakar

Hi Im new to JQuery and sorry if this question sounds silly. my question is what is the difference between $.ajax and $.post and which is best if I am posting some form to a php and retriving some values on the same page as the form e.g. contact us …

Member Avatar for t_thakar
0
366

The End.