199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nokomoli

Hi Guys, I have some confusing part in the sql command the question is i have 2 different query : a)[code=sql] Select SUM(T1.Amount+T2.Amount) as Total From TABLE1 T1 INNER TABLE2 T2 ON T1.ID = T2.ID[/code] b) [code=sql]Select Sum(Amount) as Total FROM TABLE3 [/code] the result if a) query is 100 …

Member Avatar for nokomoli
0
173
Member Avatar for justapimp

I have been looking for a way to evaluate if a column in a database has a null value in it. So far, every method suggested have failed and I would like to know anyone else have successfully evaluate a null value in C# Visual Studio 2005.

Member Avatar for Kusno
0
347
Member Avatar for midimatt

Hello everybody, I'm back, started my 2nd year at Uni now and started programming in the wonder that is C++ and enjoying it tremendously. but I've hit a slight problem, not with code but with design. I'm not sure where to put the input/output, sounds weird but I'll elaborate. i …

Member Avatar for ithelp
0
145
Member Avatar for Smirre

Need help with a java project I need to do. Here is the project specifications : """Create a console calculator applicaion that: * Takes one command line argument: your name and surname. When the program starts, display the date and time with a welcome message for the user. * Display …

Member Avatar for ithelp
0
224
Member Avatar for PaladinHammer

Here is the code: [CODE]// All this has to do is take the "names.txt" file, and send it to "backwards.txt" // in reverse order, as an array. No idea why its not working, sent all necessary files with it. #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using …

Member Avatar for PaladinHammer
0
232
Member Avatar for delner

I'm trying to do a program involving a base class and subclasses, whose subclasses use each other. In terms of code: [ICODE] Class Space { ... }; Class Room : public Space { Link* l; ... }; Class Link : public Space { Room* r; ... }; [/ICODE] Now I'm …

Member Avatar for Alex Edwards
0
75
Member Avatar for PaladinHammer

Here's the code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using namespace std; string getData(ifstream &fin, string array[]); //string getData(ifstream &fin, string array[]); This is what it SHOULD look like. void outputData(ofstream &fout, string array[], int numNames); //void outputData(ofstream &fout, string array[], int numNames) int main() { …

Member Avatar for Lerner
0
95
Member Avatar for speranza

can you help me assign sql query to gridview..i am trying like this but it doesnt work. [CODE] Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim con As New SqlConnection("Data Source=SPERANZA\SQLEXPRESS;initial catalog=master;integrated security=true") Dim cmd As New SqlCommand Dim dr As SqlDataReader cmd.Connection = con con.Open() cmd.CommandText …

Member Avatar for reena12
0
172
Member Avatar for mshefa
Member Avatar for MosaicFuneral
0
247
Member Avatar for dkstevens

I'm new to vb.net[COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR] though I've done a fair bit of work in vb6. My problem is this. I have a form with two tab[COLOR=#000000][COLOR=#000000]controls[/COLOR][/COLOR] and on the tab pages are text boxes, group boxes, check boxes, etc. for entering parameters. While I'm developing using [COLOR=#000000][COLOR=#000000]debug[/COLOR][/COLOR]gging in vb.net 2005, each …

Member Avatar for rmblefsh
0
224
Member Avatar for smile4evr

hi all... i want to know if using simlpe combo with dropdown style 2 (where you cant type ur own data) im not able to retrieve data coz its showing that its has read only property... is it possible that i can change the syle property of my combo box... …

Member Avatar for smile4evr
0
69
Member Avatar for afg_91320

im designing a program where it calls a function that uses the linear search algorithm to locate one of the values. function must keep a count of the comparisons it makes until it finds the value. the program then calls the binary search (a sep. function) to locate the same …

Member Avatar for Lerner
0
117
Member Avatar for Kira71

I got my program to work but it seems it cannot: 1.cant read a file if its only one archive (needs two to be able to read) 2.can only read the first line in a FILE 3.delete function deletes more than one than intended. help are appreciated :) I have …

Member Avatar for Kira71
0
125
Member Avatar for mblachford

hi all, glad I found this site. I hope you all can help me out with this little problem. First, my environment: Mac OSX 10.5.5 Python 2.6 (compiled from source, not using macports) basedir: /usr/local/bin/python; /usr/local/lib/python2.6 Following the proper directions on how to install setuptools (from here [url]http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other[/url]) [code] bash-3.2# …

Member Avatar for woooee
0
173
Member Avatar for RavUn

Hello, I know how to create a hash_map and use my hash function with it, but I don't know how to handle collisions. Specifically, how would I implement a chain/buckets with a linked list... it seems like it's built in but I can't find how to do it. [code] #include …

Member Avatar for RavUn
0
139
Member Avatar for anny**

hello friend z!! give me some idea about : [B]write a program that takes two characters and two integers by using two command program[/B]

Member Avatar for MosaicFuneral
0
99
Member Avatar for intrikate01

Hi, can anyone help me with building a script that submits a URL over and over again? im pretty new at php and im just starting to learn how to use codes and stuff. basically the whole idea is i use a urlsubmitter.php script then open command prompt and use …

Member Avatar for intrikate01
0
141
Member Avatar for dusse

How can I declarate a matrix of strings? if I write something like the line below, my code do not compile string a[MAX][MAX]; someone can give me a solution? thanks

Member Avatar for Lerner
0
116
Member Avatar for Arctic wolf

Hello everyone, I know there is a build in real time clock inside the computer and I know it's possible to use this clock when you write a program on Assembler(using an interupt that I don't remember at the moment),is there a way to use the real time clock while …

Member Avatar for Arctic wolf
0
654
Member Avatar for StainlessSteelR

I'm having some problems with a program that invovles arrays. I have a program that is suppose to read data from a file fish.txt about fisherman. The a function is suppose to print the number of fish that need to be thrown back because their is a maximum of 14 …

Member Avatar for VernonDozier
0
170
Member Avatar for trooper01

I'm working on an assignment and when I run the application I get the message Build Successful, but the Form doesn't show up on my screen. How do I make the Form appear?

0
56
Member Avatar for 123468743867143

I have rebuilt numerous navigational buttons into CSS (.button {backgroung-image ETC) to reduce the number of http requests. It works fine (better loading time and so forth) except that the images are "seen" as unsecured. My thought: Possibly move or copy the images in question from http to https. [B]But …

Member Avatar for 123468743867143
0
105
Member Avatar for naveen_arc

getting value of return value of stored procedure to code behined,with MicroSoft Patterns and Practices. Hi all, I am using Microsoft Patterns and Practices to make a database connection to my application. I am able to get the value of the OUT parameter of the stored procedure to code behind. …

Member Avatar for Jugortha
0
180
Member Avatar for chebude

Here I am again with new problem. I want to do some calculation on each field row after row. The for loop which I tried is not giving me what I expected [ICODE]#sum each 5 fields over the raw: for step in range (6, N, 5): for i in range …

Member Avatar for chebude
0
98
Member Avatar for sheady

I'm trying to make a checkout system but i'm having trouble with one part and cannot think of a solution for the life of me. Basically when you enter the checkout form it displays the items for sale (because on another form you enter the details of an item for …

Member Avatar for jsosnowski
0
293
Member Avatar for atman

Hey guys, Im reading up on pointers and since i dont have a physical teacher, Its abit hard concept to grasp. Could anyone please explain in their own words shortly how they work, I understand that they carry the adress of another variable, and you'd assign this adress with an …

Member Avatar for ArkM
0
80
Member Avatar for MichaelSammels

Hello, This is my first post on DaniWeb, so I hope I did it OK. Anyway, you'll notice that in the top of every window you have standard close button (the x in the red box). I was wondering if it was possible to remove at this runtime, using VB6, …

Member Avatar for jbennet
0
147
Member Avatar for techgenie

Hi guys I am working on a Lottery program to generate 6 unique numbers. So far I have the following: CLASS LOOKS LIKE THIS: [code=cplusplus] #include "stdafx.h" #include <string> #include <ctime> #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers class Lottery // Lottery class definition { public: …

Member Avatar for skatamatic
0
285
Member Avatar for gisek

Hi, Recently I came up with an idea of making my own program for tagging mp3 files. I realised I'm lacking in knowledge. For now I need the following information: 1. After typing a path to a main folder, I'd like to read the names of the folders inside. 2. …

Member Avatar for james_zheng
0
199
Member Avatar for mjta18

Hi to all, im MJ a 4th year Computer Science student... well im new at using netbeans... can someone please help me to have a tutorial about the codes on Mobile Applications... cause im planning to make an applet that will server as a quick refresher about a certain subject …

Member Avatar for mjta18
0
266
Member Avatar for ihatehippies

everything works fine on my app until I add a menu. Every button every field, everything ends up stacked in the top left corner. as soon as I set the menubar to the main frame and run it collapses. I have like 5 sizers that get added to a final …

Member Avatar for Stefano Mtangoo
0
151
Member Avatar for Grimmic

I need to make an array using the following info. Salesperson January February March 1 2400 3500 2000 2 1500 7000 1000 3 600 450 2100 4 790 240 500 5 1000 1000 1000 6 6300 7000 8000 7 1300 450 700 8 2700 5500 6000 9 4700 4800 4900 …

Member Avatar for Sheryl99
0
130
Member Avatar for egsonas

Hi everyone, I'm writting old "Battle ship" game. I know, that is very funny, but I want my own version, with one objects and inheretancy levels. Here is a plan what I'm reaching for: ---------------------------- object: A-level: - aship - keeps common parameters of floating things B-level - ship - …

Member Avatar for VernonDozier
0
256
Member Avatar for Lokolo

[code] int numOfMonths = numOfYears * 12; float monthlyRepayments; float actualRate = (rate/100)/12; //monthlyRepayments = (borrowAmount*(pow((1+actualRate),numOfMonths))*actualRate)/((pow((1+actualRate),numOfMonths))-1); monthlyRepayments = (100000 * (pow((1+actualRate),180) * actualRate))/((pow((1+actualRate),180))-1); [/code] Ok this is the actual equation: (100000*(1+A1)^180*A1)/((1+A1)^180-1) btw A1 =0.06/12 So the commented line is original one I tried, didn't work. So I tried just putting …

Member Avatar for Lokolo
0
153
Member Avatar for dmanw100

I'm working on a project for school where we have to read from a voters database which is set up in the following manner: voternumber:voternama:havevoted Ex: 1253:Bill Simmons:false 3244:Steve Jobs:true I made this algorithm to search for a voter by ID number but for some reason it keeps coming up …

Member Avatar for javaAddict
0
103
Member Avatar for hightechgirl7

NEED HELP!!!! My teacher is horrible teaching intro to programming. I asked her several times to help me and she won't. I hope you can help me with this....we are learning about using arrays.... The city of Cary is holding a special census. The census takers collect one record for …

Member Avatar for mabpest
0
292
Member Avatar for minas1

Hi. I made some headers I want to include in every project from the include directories. So I'll be able to do [I]#include <hello.h>[/I] instead of [I]"hello.h"[/I], and I won't need to place them in the same directory every time. So I did this: [IMG]http://i38.tinypic.com/2n1bdj8.jpg[/IMG] [IMG]http://i34.tinypic.com/33a4d1g.jpg[/IMG] but it doesn't work. …

Member Avatar for cikara21
0
235
Member Avatar for CodeBoy101
Member Avatar for kiwihaha
0
12K
Member Avatar for f.ben.isaac

I got some newbies questions, i hope to hear from you... Feel free to answer any! I will appreciate it so much if you answer them all :-) 1. Do AV's generally (windows security specifically) trust application written under .NET more than the ones written written under MFC & Win32 …

Member Avatar for ArkM
0
126
Member Avatar for BigSeckC

Hey all, I apologize now for being a Noob. I'm using a Tutorial to learn VB6 (for starters) and everything was going great until just now... The assignment is to create a [URL="http://www.profsr.com/vb/vbless04.htm"]Weekly Payroll[/URL]. I have managed to figure out how to make the standard calc ( Hrs worked * …

Member Avatar for BigSeckC
0
230
Member Avatar for Vualta

hello everyone, I am working on an assignment for my cs class. It is basically a board game with 20 levels. i have a question about why this code in my program is not working...hopefully what I am posting makes any sense because what I am writing is already long...and …

Member Avatar for quuba
0
562
Member Avatar for KDan

Hi everyone!! First of all am quite new to cpp especially under linux. I am currently working on a small project under Linux and am having to deal with large number of data(larger than 1 GB). numerous number of operation is to be done with these data. for example: sorting, …

Member Avatar for james_zheng
0
192
Member Avatar for lich

hi im a noob in C#. just learning by my self. need to know how to assign values to variables. which we input normally in C we use scanf ne. but in C#. how we gonna assign

Member Avatar for ddanbe
0
194
Member Avatar for Judas

Using Dev-C++ Im a newbie to c++ Is it possible to save files using a variable as the filename. What i want to do is setup a text based program like a mud and be able to go from room to room and have it display room discription and available …

Member Avatar for cikara21
0
1K
Member Avatar for AutoC

Hi, I need help with implementing cyclic codes.Its much like crc.I've found a lot of software implementations for crc but havent understood them.I've looked at a crc guide which gave, [code] So to implement CRC division, we have to feed the message through a division register. At this point, we …

Member Avatar for vijayan121
0
158
Member Avatar for RaDeuX

For some reason I'm getting a memory leak error. It's probably from the part where I start to copy the strings and allocate an array of characters, but I have no idea why. I'm using a text file for input data, which is found here: [url]http://puma.deanza.edu/distribute/DeliaG/Fall_2008/CIS15BG/BG_Labs/BG_Lab_6/countries.txt[/url] I appreciate anyone who …

Member Avatar for RaDeuX
0
115
Member Avatar for xorl

Hey I have a problem that annoys me a lot.... i want to extract all titles and songnames within a file, a *.pls file to be exact. ive read the entire file from beginning to end and ive splitted the text like so.. string[] titles = readpls.Split(new string[] { @"\n", …

Member Avatar for xorl
0
174
Member Avatar for tuse

Hi! In the following code- [code=php] <?php header('Cache-Control:no-cache'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form id="form1" name="form1" method="post" action="<?php echo($_SERVER['PHP_SELF']);?>"> <p> <label>Name: <input type="text" name="txt" id="txt" value="<?php $_POST['txt'];?>" /> </label></p> <p> <input type="submit" name="b1" id="b1" …

Member Avatar for tuse
0
91
Member Avatar for frezz

Here is my code what is my problem. I need a window to open up that says ok or cancel. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang = "en" dir="ltr"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859- 1" /> <title>Exit Row Requirements</title> </head> <body> <script type="text/javascript"> /* …

Member Avatar for essential
0
132
Member Avatar for Kainan54
Member Avatar for Freaky_Chris
0
169

The End.