132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for INFANT

How to design using crystal report with a particular record and the coding in vb

Software Development visual-basic
Member Avatar for apollo13suicide
0
76
Member Avatar for evios

hi....i create a command button using the code shown below: [code] Private Sub Command3_Click() Form5.Show 'sum action needed here to detect user's action Command3.Caption = "Unhide History" Unload Form5 End Sub [/code] I need to change the caption to unhide history once the user had pressed unhide button

Software Development visual-basic
Member Avatar for Jx_Man
0
98
Member Avatar for terrorblade

Hye all.. Can anybody here give some ideas or repair to make this program better.. I mean a good programming style.. This program is about using POINTER only..:) [CODE]//This program find the total rain for each year, the average //yearly rainfall and the month with the highest and lowest rainfall …

Software Development c++
Member Avatar for Laiq Ahmed
0
241
Member Avatar for tomok

Hi guys, Couldn't find a suitable forum for this question, please move this thread if needed. What I need to do redirect the output of TOP to a text file. Doing a simple %> top > top.txt yields the following %> less top.txt load averages: 0.88, 0.89, 0.87 11:50:49 100 …

Software Development shell-scripting unix
Member Avatar for masijade
0
90
Member Avatar for krookedkop

Hey guys, I'm not sure if you can tell how long I've been registered by my status or something but I'm new obviously and having a little problem with an program I'm writing. I get an error message stating that "The constructor bankofMark.mattsAccount(String, String, String, String, String, String, String, String, …

Software Development java java-swing
Member Avatar for Jens
0
272
Member Avatar for Church

how do i make a string variable into an integer variable. something like: number = String i've always only converted it from a textbox now i'm having trouble using variables.. not sure why it's different.. [CODE] monthtxt = Mid(CardLength, 1, countnum) yeartxt = Mid(CardLength, i + 1, Yearstart) isvalid = …

Software Development visual-basic
Member Avatar for Church
0
108
Member Avatar for tree100

Hello, this is my first post. I'm learning VB6 at home, with online tutorials. So far ok, but I can't find the right info on making a dual-paned app. Sort of like in webpages, where a 'frame' acts differently than the rest of the page. I guess it's like a …

Software Development first-post visual-basic
Member Avatar for Jx_Man
0
113
Member Avatar for Mel(plusplus)

the problem is as follows my teacher wants me to: write a program that reads lines of text into a string using the getline(cin,line) function and then type sets these lines of text so that they are column aligned on the left and right margins as shown in the second …

Software Development c++
Member Avatar for WaltP
0
84
Member Avatar for ferrari77

Hi. I have a problem. This is my code. // the array.h file #ifndef ARRAY_H #define ARRAY_H #include <iostream> #include "arr_exception.h" using namespace std; class Array { friend ostream &operator <<(ostream &os, const Array &arr); // done public: Array(int n); // done Array(const Array &array); // done ~Array() {cout << …

Software Development c++
Member Avatar for ferrari77
0
472
Member Avatar for theausum

Is Enumeration interface not used anymore??

Software Development java
Member Avatar for Paul.Esson
0
101
Member Avatar for aamir55

i m using this small application for the purpose of loading multiple images from disk and then show them as thumbnail i m using List View for this purpose. my application is generating thumbnails successfully but i modified such that when i double click on a thumbnail and that image …

Software Development vb.net
0
241
Member Avatar for afan_ell

can hyperterminal on our pc communicate with VB?

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
83
Member Avatar for ventrica

this is my simple program and i need to save or write the info that i key in in a notepad and also have the function to displat the info in the notepad. Can any one help me?TQ this is my simple program in VB. how can i write the …

Software Development visual-basic
Member Avatar for techtix
0
322
Member Avatar for andy999

Hi all, Iam newbe to this forum and seeks some help. I am using a msflexgrid in vb6 which uploads data from the net. What I want the uploaded data in msflexgrid having 10 cols and 10 rows to be saved in access database and also want to save the …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
576
Member Avatar for Defcon106

I was looking into a python program for the PSP. Is it worth downloading? Will it help me to learn the program when I dont have a PC handy? Also does anyone know if you can install Python to a portable harddrive and run it from any computer? Thanks in …

Software Development python
Member Avatar for Defcon106
0
76
Member Avatar for jimJohnson

trying to get this program to run and getting an odd error...does anyone know what I have to do [code=java] //packages to import import java.awt.*; import java.applet.*; import java.awt.event.*; public class PetAdviceApplet extends Applet implements ItemListener { //declare variables and construct components int housing; double hours; String pet; Label promptLabel …

Software Development java
Member Avatar for jimJohnson
0
140
Member Avatar for maciac

I'm having real trouble getting my script to work, it's about 3 pages long and I'm having trouble with one of my if...then constructs. The code for the sub is as follows: [CODE]check_a_b () { CHECKA="634274" CHECKB="512274" if [ CHECKA=CHECKB ]; then echo "Match" echo "$CHECKA" >> "$LOGFILE" echo "$CHECKB" …

Software Development macos shell-scripting
Member Avatar for eggi
0
104
Member Avatar for lizhiyuan

i encountered the problem below, anyone can explain to me, thanks. for (;*sPtr!='\0';sPtr) cout << *sPtr; how to understand for loop ";"? thanks

Software Development c++
Member Avatar for Lerner
0
105
Member Avatar for rhinocort23

how can i make an over a network connection for like games or chat program?

Software Development vb.net
Member Avatar for rhinocort23
0
103
Member Avatar for mhuneidi

Hey, Well I am fairly new to C++ and am supposed to create a program that compares various pizza's between size and price so the unit would be dollar/area^2 The input from the user should first be how many items you have to compare.. The next input from the user …

Software Development c++
Member Avatar for Lerner
0
151
Member Avatar for lizhiyuan

dear all what is difference when a function was called with an array as an argument and with a point as an argument? thanks. anyone can give me an example?

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for lemichelle

I'm trying to get a program to print out two strings that I input. I can't figure out why its not working! [code] #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE 30 int main() { char s1[ARRAY_SIZE]; char s2 [ARRAY_SIZE]; printf("Enter a String:\n"); scanf("%25s\n", s1); printf("Enter string 2:\n"); scanf("%25s\n", s2); printf("String 1: …

Software Development c
Member Avatar for Aia
0
79
Member Avatar for wsn

What does the following code do when the input is 56789 1234 45a72 int i; float f; char name[50]; scanf("%2 %f %*d %2s",&i,&f1,&name); When I ran the code in the compiler and used printf to check the results i got 56 789.000000 45a72 I understand that it didn't 1234 because …

Software Development c
Member Avatar for wsn
0
99
Member Avatar for deactivated

I was hoping that someone could help me out with this. For our program, we are supposed to write the following function [QUOTE]int reportMaxima( double array[ ] [ NCOLS ], int nRows, int nCols, double xMin, double xMax, double yMin, double yMax ); Finds and prints out cells in the …

Software Development c++
Member Avatar for dougy83
0
874
Member Avatar for awoc

[code] /* while readAccuracy returns a 1 { call readLimits call printInputs call printArea } */ while (readAccuracy == 1) { calcArea (readLimits, printInputs, printArea); } [/code]

Software Development c
Member Avatar for awoc
0
88
Member Avatar for tgreer

Hello, this is not a Web Development question, but this is the only XML forum on Daniweb. I need to copy a specific number of nodes in an XSLT transform. For example, I need to copy the first 5 <student> nodes, with all child nodes and attribute nodes, even though …

Software Development xml
Member Avatar for tgreer
0
2K
Member Avatar for leverin4

I'm still working on the same Flight Database as before. It's a program using 3 classes each with their own header and implementation files. The 3 classes are Date, Flight, and Trip. The Date Class is only used within the Flight and Trip Classes. So those two classes each have …

Software Development c++
Member Avatar for leverin4
0
282
Member Avatar for afan_ell

can anyone help me i wanna calculate the total of electrical bill this is my situation... Rate 1 = 0.218 for first 0 – 200 KWh usage Rate 2 = 0.289 for 201-1000 KWh usage Electrical usage (KWh) = Latest Meter Reading - Previous Meter Reading If electrical usage between …

Software Development visual-basic
Member Avatar for cometburn
0
101
Member Avatar for k2k

I have three child classes which 2 of them work and the last one has the "not a base or memeber error" can anyone tell what went wrong? please see the last file at the bottom [code=cpp] # include <iostream> # include <string> using namespace std; class Employee { public: …

Software Development c++
Member Avatar for dougy83
0
116
Member Avatar for hapiscrap

[code=cplusplus] #include <iostream> main() { int employeeid; int hoursworked; float hourlyrate, grosspay; cout << "ENTER THE EMPLOYEE ID: "; cin >> employeeid; cout << "ENTER THE HOURS WORKED: "; cin >> hoursworked; cout << "ENTER THE HOURLY RATE: "; cin >> hourlyrate; grosspay = hoursworked * hourlyrate; cout << "EMPLOYEE …

Software Development c++
Member Avatar for Majestics
0
137
Member Avatar for olodu

Hi all, I need help in passing parameter value to a datagridview control on my form. I have a form with a textbox control, a datagridview control and a button. When the user enters in the title of a movie in the textbox and clicks on the OK button, I …

Software Development vb.net
Member Avatar for Fritzeh
0
776
Member Avatar for question!!

Hi, I am new to VC++ programming. I need to create 2 forms and and collect the data that is input in the forms to a class. Now the forms are defined in the form1.h and form2.h files. I have a class "Railway_Input" in the main cpp file. The cpp …

Software Development c++
Member Avatar for question!!
0
115
Member Avatar for kimbokasteniv

When is it more efficient to store the value of a calculation than perform that calculation 2 or more times? I have always been under the impression that performing a simple arithmetic calculation two or three times is faster than instantiating a variable to hold the value of the calculation. …

Software Development java
Member Avatar for kimbokasteniv
0
107
Member Avatar for TheBeast32

Hello, I have been wondering how to keep a value even after a program ends. An example could be a countdown of days on a trial of a product. It must be able to not be changed by the user. How would I do this?

Software Development c++
Member Avatar for TheBeast32
0
142
Member Avatar for sham
Member Avatar for sonia sardana
0
945
Member Avatar for Latent12

Hello Everyone, I have a Blackjack Assignment due in a few days in my Programming class. I have completed the program and it seems to be working. Could I ask someone to take a look at it and tell me how it looks. Where I could make improvements and so …

Software Development c++
Member Avatar for Majestics
0
227
Member Avatar for White-Gandalf

Hallo, i stumbled over a curious behavior today, which i never saw in more than 15 years of usage of cpp compilers: The following gets compiled without any error message by gpp 3.4.5 (from mingw, included in devcpp), where i normally would seriously expect an error message: [code]sometype funcname(sometype somearg) …

Software Development c++
Member Avatar for Narue
0
268
Member Avatar for leverin4

I have two classes, Date and Flight. In my Flight object I have Two date objects. I'm running into trouble when trying to initialize the Dates. My current code is below. I don't understand why what I'm doing doesn't work. The flight header file has a #include "Date.h" command, so …

Software Development c++
Member Avatar for Narue
0
111
Member Avatar for Ryano24

I wrote this code that inputs employees salaries and distributes them to how much they made. I need some help translating this code into C++ [code=c] #include <stdio.h> int main(){ int sales[9]={0}; double gross=0, percent=0, salary=0; int total=0; int counter=0; printf("For 5 peoples salary ranges, Enter the first gross\n"); scanf("%d", …

Software Development c c# c++
Member Avatar for Narue
0
128
Member Avatar for dgg32

Hi, everybody. This is my first day here. And I create a new account because I hope to learn more from you. Here is the my task. I have a text file, it contains a DNA sequence. I want to fragment it into sequences with a definitive length into a …

Software Development c++ ios
Member Avatar for dgg32
0
104
Member Avatar for richasr1

I'm currently trying to manipulate TShape objects over multiple classes, I had a problem with #includes and now that is sorted, the only thing i'm trying to do is create shapes on one form from another class, by creating the function and then calling it in my main class, here's …

Software Development c++
Member Avatar for White-Gandalf
0
114
Member Avatar for rzr.copperhead

i compile this code in Microsoft visual studio C++. No errors.. but i cant save the file.. why ?? [CODE] #include <iostream> #include <vector> #include <fstream> #include <conio.h> using namespace std; using std::vector; class Service { public: Service( string d ) { strcpy(servDate,d.c_str()); } void setDate(string d) { strcpy(servDate,d.c_str()); } …

Software Development c++ ios visual-studio
Member Avatar for rzr.copperhead
0
120
Member Avatar for Katherine692008

**I'm to the point I think where I can ask a user to input a string value, answer is Hourly. if hourly the user enters hours, then the program prints out value in currency format answer is Salary user enters which salary level Level 1 is for recent college grads …

Software Development java
Member Avatar for Katherine692008
0
115
Member Avatar for kimhanu

who have code about it ? please give me .... I want it to study thanks you very much .

Software Development vb.net
Member Avatar for bwkeller
0
78
Member Avatar for Nemoticchigga

How do I access a private member of a class? [code=cplusplus] class Foo { public: int blah; private: bool whatever; }; int main() { Foo* myFoo; myFoo->whatever = true; //does not work obviously } [/code] How do I access 'whatever'? Thanks.

Software Development c++
Member Avatar for White-Gandalf
0
80
Member Avatar for lookforlohith

#include<iostream> #include<fstream> #include<iomanip> using namespace std; class lohi { int x; int y; public : lohi() { x=10; y=20; } }X; int main() { fstream io; io.open("just1",ios::in | ios:: out | ios::app); io.write((char*)&X,sizeof(X)); io.close(); } in this programme i expect a file to be created and contents of x,y to …

Software Development c++ ios
Member Avatar for ivailosp
0
113
Member Avatar for nireekshan

hai i am write simple java code dataRetriving from Mysqldatabase to c:\ Commend fromt The out put desplay QUERY send me Plse

Software Development java mysql
Member Avatar for jwenting
0
78
Member Avatar for wakeup

This is the code char number[]="0.58"; double value = atof(number); When I execute it value is 0.57999999999999996 Do you know why? Thanks in advance

Software Development c++
Member Avatar for White-Gandalf
0
116
Member Avatar for LindaWiklund

Hello Trying to fetch a part of a string with g_regex_split. The string may look like: `"9999 00 00 CC 03 00 CC 00 00 'xxx'"` What I want is to remove everything except: `00 00 CC 03 00 CC 00 00` My idea is (since there is no get_this_part_of_string …

Software Development c++
Member Avatar for White-Gandalf
0
186
Member Avatar for Jboy05

How do I write a C++ for loop that displays the following set of numbers: 0, 10, 20, 30, 40, 50 ..... 1000 I don't know anything about loops, so any help will be much appreciated Thank you much. :)

Software Development c++ display
Member Avatar for Jboy05
0
99

The End.