199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for james6754

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

Member Avatar for ddanbe
0
69
Member Avatar for gerard4143

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

Member Avatar for gerard4143
0
2K
Member Avatar for hao90

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 …

Member Avatar for JKP()
0
94
Member Avatar for bangor_boy

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 …

Member Avatar for bangor_boy
0
126
Member Avatar for jusami

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 …

Member Avatar for thelamb
0
108
Member Avatar for bantipatel
Member Avatar for Duki
Member Avatar for arthurav

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 …

Member Avatar for Fbody
0
190
Member Avatar for Rohith Reddy

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='<%# …

Member Avatar for Rohith Reddy
0
269
Member Avatar for montalbano80

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 …

Member Avatar for Akill10
0
630
Member Avatar for CCISolitude

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 …

Member Avatar for CCISolitude
0
116
Member Avatar for AdriftUniform

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); // …

0
114
Member Avatar for SolidSora

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

Member Avatar for Fbody
0
144
Member Avatar for Thuthu001

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 …

Member Avatar for vijayan121
0
2K
Member Avatar for pooran.c
Member Avatar for pooran.c
0
122
Member Avatar for Kath_Fish

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

Member Avatar for vedro-compota
0
134
Member Avatar for get connected

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 …

Member Avatar for codeorder
0
119
Member Avatar for purijatin

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 …

Member Avatar for purijatin
0
189
Member Avatar for prasi_raj

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]); } }

Member Avatar for Rass Saee
0
87
Member Avatar for jnyekha

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

Member Avatar for jnyekha
0
95
Member Avatar for newbie14

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 …

Member Avatar for newbie14
0
116
Member Avatar for javanoob101

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 …

Member Avatar for javanoob101
0
231
Member Avatar for miketurpin

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 …

Member Avatar for miketurpin
0
252
Member Avatar for Blazar

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 …

Member Avatar for Blazar
0
97
Member Avatar for Polongo

How to make the form size automatic setting the size equals to the screen. or Maximize the whole form including the form components.

Member Avatar for Luc001
0
181
Member Avatar for SHENGTON

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 …

Member Avatar for SHENGTON
0
124
Member Avatar for coroll

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 …

Member Avatar for coroll
0
311
Member Avatar for get connected

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 …

Member Avatar for get connected
0
156
Member Avatar for divakar.it

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

Member Avatar for AndreRet
0
212
Member Avatar for skald89

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?

Member Avatar for skald89
0
110
Member Avatar for neosonic

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 …

Member Avatar for AndreRet
0
344
Member Avatar for sirlink99

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

Member Avatar for sirlink99
0
164
Member Avatar for MasterGberry

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

Member Avatar for elsiekins
0
163
Member Avatar for bwallace

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 …

Member Avatar for chrishea
0
150
Member Avatar for m-hrt

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 …

Member Avatar for SolidSolutions
0
217
Member Avatar for roachae

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 …

Member Avatar for roachae
0
161
Member Avatar for BlueCharge

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 …

Member Avatar for Borzoi
0
108
Member Avatar for ellenski

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

Member Avatar for boblarson
0
142
Member Avatar for like_bilal02

Dear Freinds I want that when i save combobox value it take starting two characters only from textbox and save it

Member Avatar for Pgmer
0
72
Member Avatar for sirlink99

I imported a picture onto another picture and I am wondering how to get rid of the white around the smaller picture.

Member Avatar for sirlink99
0
272
Member Avatar for sirlink99

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

Member Avatar for sirlink99
0
368
Member Avatar for indr

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 …

Member Avatar for Fbody
0
219
Member Avatar for Crutoy

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 …

Member Avatar for Crutoy
0
105
Member Avatar for Jeremy Noye

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 …

Member Avatar for Jeremy Noye
0
179
Member Avatar for megaLU

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 …

Member Avatar for megaLU
0
154
Member Avatar for methmignonne

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 …

0
203
Member Avatar for NasserSJH

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(); …

Member Avatar for NasserSJH
0
205
Member Avatar for Ryujin

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 …

Member Avatar for Ryujin
0
289
Member Avatar for meensatwork

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 …

Member Avatar for richieking
0
214
Member Avatar for Nivass

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 …

Member Avatar for Nivass
0
321

The End.