199,114 Archived Topics
Remove Filter ![]() | |
I understand how to use properties. What I would like to know is... Properties are designed to stop direct access to an variable Can anyone give an example where if the property was not used and the variable was written to directly..this would cause a problem? Thanks James | |
Am I correct assuming that a reference to an object will not call the object's destructor when the reference goes out of scope? The code I attached supports my assumption but I'm not certain if its correct...Any comments? [code] #include <iostream> class myint { public: myint():itsvalue(0) {} myint(unsigned long val):itsvalue(val) … | |
How to let the button set to it "latest" text because i suppose to set the button's text to "booked" and the foreground to red. However, everytime i re-run the program, the button re-set. I know i should do something on constructor, but how? Here is my coding.. Thanks for … | |
Have written code for a game, a letter is randomly choosen by the programme and then the player has to pick the same one with the sequence getting longer and longer, the choosen letter is added to an arrayList for the game and then when the player picks a letter … | |
how do i include classes in my code. my lab notes say i need to include classes. [code] #include <iostream> #include <string> #include <stdlib.h> #include <cstdlib> #include <fstream> using namespace std; void login(); void Members(); void PassChange(); string inuser; string inpass; string user; string pass; string tempass; string data; string … | |
how to deploy jsp page on the internet? pls help me. | |
Is it possible to somehow use the winsock API on a unix machine? | |
I have the following program : [CODE] #include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int,int); matrice(char *); matrice(int,int,T **); matrice(matrice &x); ~matrice(){}; template <class U> friend ostream &operator <<(ostream &,matrice<U> &); int getNrLinii(){ return m; } int getNrColoane(){ return … | |
Hello, I have problem in converting the following datalist to PDF. Can anyone help me in this regard. Thanks, Rohith [CODE] <asp:DataList ID="resultdatalist" runat="server"> <ItemTemplate> <table id="listdata" bordercolor="#000033" cellspacing="1" cellpadding="1" align="center" border="2" width="610px" style="position:absolute;top:130px" > <tr> <td style="width:260px; height:27px"> <asp:Label ID="propertyname" runat="server" Text="1.PROPERTY NAME" Font-Bold="true" Font-Size="Small"></asp:Label></td><td style="width:350px"><asp:Label ID="propertynametxt" runat="server" Text='<%# … | |
I am creating a Pool.java code for class final and all we need to do is to create a program that calculate the volume of the pool after the user enters the size of the pool. I have only one line where my code is giving me a error. The … | |
Hi all, DANIWEB saved me a few months ago, and I'm hoping the community can save me again :) I've found myself in the position of needing to extract a very small portion of data from a vast SQL database. I've got the specific table in question, and have isolated … | |
Hi, I have created a system where users can follow another user, I am currently querying the table to display who is following who. I have two queries as shown below: [code=php] // followers query $query = "SELECT * FROM friends WHERE friFriend='$view'"; $result = queryMysql($query); $num = mysql_num_rows($result); // … | |
I have a Seat Class and I'm trying to get my main file to access the Seat class and it's not working. Here is my code: My seat class: [CODE]#include<iostream> #include<iomanip> #include<string> class Seat{ public: char name; bool available; Seat(char name, bool available){ this.name=name; this.available = available; } Seat(){ name="A1"; … | |
Hi, I need help with concatenating several bits values to one big value. For example: lets say I have these char variables which I want to concatenate to one value. [code] unsigned char x = 0x02; //00000010 unsigned char y = 0x01; //00000001 unsigned char z = 0x03; //00000011[/CODE] and … | |
what is the difference between procedure and functions?? | |
Hi .... i got one problem.... i am doing a project. I use StreamReader to read my content in one file. i need to change tht file into the string type. Then, i need to change the string type to string array....who know how to do this one.... | |
Hi to any an d all that read this thread. I have a VB.NET App that creates forms from a template. I am having problems getting them to communicate with each other. Is it possible to send data from one textbox in the first instance to the same textbox in … | |
In the below code, iam calculating the time taken to calculate the Square Root of first 30000000 numbers. But there is a weird thing happening: [CODE] import java.util.*; public class Cache { public static void main(String args[]) { for(int j=0;j<=1000;j++) { ; } float[] a = new float[30000000]; long as … | |
Hi everyone, I am not getting how to enter values to that array. Please some one give me a solution. typedef struct user { int array[10]; }user; void main() { int i; user *tmp; printf("enter array values"); for(i=0;i<10;i++) { scanf("%d",&tmp->array[i]); } for(i=0;i<10;i++) { printf("[%d]\n",tmp->array[i]); } } | |
Can somebody please help me code a form that will perform a search on a database and retrieve the datas into separate textboxes according to the rows. And also I only know understand c# language. i would be gratefull if anyone could help me out. Thanks....Thanks | |
Dear All, I am using an adapted code from the web for sending sms via gsm modem. Now I would like to modify to read sms message from database table and send it.So I would like to programme it to read on every 30 second from the db process and … | |
I've changed some of the code but the animation plays when you keep pressing the space bar. I want it to animate my bullet across the screen just by pressing the space bar(not by pressing the space bar mulitple times). Thank for your help! *Note: the old code was posted … | |
Hi, I'd need a function where an optional argument takes on the value of another argument when it's not specified. I'd like to be able to write: function some_fun ($a, $b, $c, $d=$b) { ... However, this is not correct PHP syntax. I'd really like it to be, and may … | |
How would one go about having a unique forum made when user does a certain thing on a web site? On this web site I am making there are user groups and every time a group is made by a user, I want a unique forum made just for that … | |
How to make the form size automatic setting the size equals to the screen. or Maximize the whole form including the form components. | |
Hello, good evening. :) This is a thesis. My thesis is "SMS Textspeak Corrector". [b]SMS Textspeak Corrector[/b] is a text messaging software for mobile phone where users can convert or correct the “txt spk” message to the original normal words. For instance, it will correct the “txt spk” text message … | |
Hi, I want to send no emails with attachments.But i dont know anything about sending emails.Im using windows 7 visual studio 2008. I was looking for help on internet. According to them I installed IIS.I think it is IIS 7. How to check the version of IIS? Also smtp is … | |
Hi I Have a form that contains around 30 Labels and 30 Pictureboxes. I have a piece of code that on form load that steps through the labels and changes the text to a file name from a directory. This all works fairly well however: I need to be able … | |
I would like to copy and paste special values in excel using VB6 during report generation. But pastespecial is not working. Its throwing error 1004 Paste Special method worksheet failed. Below is the code. can you please advise [CODE]xlTmp.ActiveSheet.Range("H7:H23").Select xlTmp.Selection.Copy xlTmp.Sheets("Consolidation").Activate xlTmp.ActiveSheet.Cells(6, 4).Value = P(N) xlTmp.ActiveSheet.Cells(8, PS).Select xlTmp.ActiveSheet.PasteSpecial xlPasteValues, xlNone, … | |
I have a form on page 2 and I want the information submitted on the form to be sent to page 3. How do i do that? | |
Hi, I just want to ask a simple question.. hopefully. I use package and deployment wizard to create my software's installer. My software can be run by using a lot of pictures and document that because it contains millions of pictureboxes. Those pictures must be located in the same folder … | |
Hello. I am having trouble with my menu and buttons (which are just pictures that change when you scroll over them). One of my buttons works perfectly, but when I coded the rest in the same way (at least I think so) they dont work. Sorry for the long code. … | |
I am having issues with the compiler in checking to see if a piece of a string is empty or not. I have a feeling this is simple, but today has not been my day with this code, but I am still doing my best. Ty tableRow is a std::vector<std::string> … | |
I'm working on a script for a custom inbox to read e-mails. (We have several inboxes available to us on our hosting account but we need a custom one for a few reasons.) Today, e-mails have begun vanishing from the account -- they're not just gone from this custom inbox … | |
internet explorer shows blank page of my website im working on the website works fine on firefox but in internet explorer all im seeing is a blank page..... here is the link of the website also in local computer its not working why??? [url]http://www.deezmedia.net/dev_projects/karaoketalent/index.html[/url] thanks in advance.... here is the … | |
My SQL isn't the best. Here's my situation: My table consists of three fields. I'll call them A, B, and C (for simplicity). For each A, there should be only one B-C combination. No matter how many times A is in the table, it should always have the same B … | |
Hi Everyone, I have made my own forums/site which is working out quite well. The only problem I'm having is when people edit there topic or if I edit the news. The current topic or news is loaded into a textarea including all the line breaks which were instered via … | |
Hi, There is something wrong with my code. I can't seem to access the database anymore not can I add new data information. I am suppose to create a registration form with username and password. Then save it to a database on MS Access. Then login using the login form. … | |
Dear Freinds I want that when i save combobox value it take starting two characters only from textbox and save it | |
I imported a picture onto another picture and I am wondering how to get rid of the white around the smaller picture. | |
when the space key is pressed then the menu apears, but when you press the resume button (cont) then the menu should dissapear, but it doesn't. please help. Thanks [code]// The "ArrowKeys" class. import java.applet.*; import java.awt.*; import java.awt.event.*; public class ArrowKeys2 extends Applet implements KeyListener, Runnable, MouseListener, MouseMotionListener { … | |
i gave the copy constructor in the below code just to know when will it be called.. [CODE] #include<iostream> using namespace std; class counter { int val; public: ~counter() { cout<<"destructor"<<endl; } counter(counter&) { cout<<"copy constructor called"<<endl; } counter():val(0) {} counter& operator++() { ++val; *this; } int getval() { return … | |
Hello , i was doing an exercise in book which asked to draw a diamond shape by displaying '*' using nested for loops. It took me quite a while to come up with a way to reverse the pyramid , and complete this exercise. So i was hoping some one … | |
Hello all. I've had many problems solved for me by daniweb users without ever even joining. Now, though, I've run into a problem that I can't seem to solve. It feels like a very stupid problem that will probably have an easy answer, but alas I have not found it … | |
Hi, I'm very new to C++ and am trying to write a class to model affine transformations. I have written code for a 3x3 matrix and am now trying to write code for multiplying it by (x,y,z) where z=1. My problem is I can't return the two values for the … | |
hi. im doing an edge detection which will detect edges of each RGB channel and then combine them to show it as a final output. im now having a problem with combining the three as it doesnt show me a binary image, instead it has some colors on it. i … | |
hi.. I don't know why the circle doesn't move .. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MouseGameV2 extends JFrame implements MouseMotionListener { CircleClass a[]; Graphics gx; int m = 5; Thread move1; //---------------------// JPanel p1 = new JPanel(); JPanel p2 = new JPanel(); JPanel p3 = new JPanel(); … | |
I wrote this script that enables user to send a search to a library catalog and/or a group of article databases. [URL="http://unixweb.kutztown.edu/~rjens816/php/twinsaltbox.htm"]It works roughly as hoped[/URL] in IE and in Firefox, [B]but[/B] in Safari and in Chrome it refuses to send two searches simultaneously (the third button on the prompt … | |
Hello, Iam trying to get a table from the html page.I succeeded in getting the table values.But i have problem in getting the field names in the 1st column. [CODE]# Getting the field names.How to strip the 'b' and get only the names paramKey = table.findAll('b') print paramKey[/CODE] The above … | |
Hi, I have loaded a image in a picture box and also i zoomed in without any issue. when i zoom the picture box by keeping scroll bar at the top on issue found. But when i zoom the picture box by keeping the scroll bar at bottom Or at … |
The End.