199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for acediamond

I am a first year IT student cramming my last assignments in before the monday afternoon deadline. I am battling with a problem that looks like this: I have to create a program using the case statements to choose a winner from rock, paper, scissors and count the wins,losses,ties to …

Member Avatar for VernonDozier
0
268
Member Avatar for fishwater00

[code] #include ”functions.h” typedef struct { int x, int y, int z; }Model; int main() { Model PARA[100]; PARA=malloc(sizeof(struct Model)); myfunction(int A, int B, int C, PARA); return: } [/code] In another file, I define “myfunction”: [code] void myfunction(int a, int b, int c, Model *para) { a=b=c=10 ; /*can …

Member Avatar for fishwater00
0
106
Member Avatar for kavithabhaskar

Hi I have a prob with my code. This way I get to see all the fields in table1 in the grid view but they hold no values! :( if u can help me make changes in this code..it will great! Imports System.Data.oledb Public Class Form1 Dim con As OleDbConnection …

Member Avatar for tuse
0
905
Member Avatar for amit1701

hi everybody, these two codes returns pointer to an object declared and defined within the function. yet both of them prints the correct value of the variable c in main(the values of variable c should have been destroyed when the call is over.). the first code gives the warning. but …

Member Avatar for Jishnu
0
130
Member Avatar for Dajak

Hi, i got a program that is using the Me.Visible = False and i need a hotkey. The problem is the &YourHotKeyhere name on a button dont work when the form is not visible. MVH Dajak

Member Avatar for selvaganapathy
0
80
Member Avatar for x_calibur

Hi, I'm having a problem understanding this thing. Suppose I have a function that returns a generic value. Inside I have "try" and "catch" statements for exceptions. Now once those exceptions have been detected, what and I mean in the name of Jesus butt-hole is my function suppose to return? …

Member Avatar for Alex Edwards
0
117
Member Avatar for knight fyre

I'm trying to create a client/server setup that allows two clients to communicate with each other. The problem is that when I run the application the the message does not go to the send client, only to the server. Here is the source code. Class MorseServer [CODE=java]import javax.swing.JTextArea; import javax.swing.JFrame; …

Member Avatar for Jishnu
0
232
Member Avatar for ruchika beddy

hey,Frnds I Have tried the Fill. Code,But the Foll. Code returns the no. of charcters of the File,But i want the File Size on Disk in KB. Can u Plz help me out. Imports System Imports System.IO Dim filelength As Long = 0 Dim objfile As New FileInfo("D:\Documents and Settings\Administrator\Desktop\URLs[1].txt") …

Member Avatar for Jx_Man
0
631
Member Avatar for rubendoliveira

Hi everyone, Don't know for sure if this is the right place to post the question, but it goes: I'm starting a JSP project and I'm having some difficulties with Tomcat/Java configuration. I'm using: - apache-tomcat-6.0.16 - java_ee_sdk-5_05-windows Directory where the code is located: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\lw\ Directory …

Member Avatar for jwenting
0
93
Member Avatar for KJBB

I create an array of 16 text boxes, etc in code. I need to detect which one is clicked. I have created an event handler for each that points to the same handler routine for all 16 for(int box = 0; box < 16; box ++) { txtArray[box].Click += new …

Member Avatar for KJBB
0
293
Member Avatar for Ellisande

Back with another question concerning my RPG. I had the idea to do a multi-dimensional array to represent a map, with each element in the array being it's own square, Depending on where you are, you can move in any of the 4 directions, unless you are on an edge. …

Member Avatar for Ellisande
0
253
Member Avatar for harrence

Hi, my first post. I'm trying to gather attendance records between two dates the user selects. I have two tables 'attendance' and 'artists_details' which I'm hoping I've successfully joined. The field I'm working on is just above the commented one 'ethnicity=maori'. I get no errors, however whatever dates I choose …

Member Avatar for harrence
0
98
Member Avatar for ibe123

Below is my problem... I think section 1-3 are okay, but I am having problems with sections 4-7, Any help would be great. I also need to load these from a file... I just loaded the array by initializing the values as I thought I could start there check my …

Member Avatar for joshmo
0
122
Member Avatar for henpecked1

This one actually tells me visual studio has a problem and needs to close this code. I'm sure it's in the insert/write section, but I'm not sure what I did wrong. I'll post the rather simple cpp below it. [code] #include <iostream> using namespace std; template <class T> class list …

Member Avatar for henpecked1
0
135
Member Avatar for tirso

In my forms I have a tab control containing two pages, in tabpage1 (list view) tabpage2 (gridview) and a several buttons. my problem now is how to know that if the user hit a button then locate the active control or tabpage eaither tabpage1 or tabpage2. I intent that the …

Member Avatar for tirso
0
98
Member Avatar for selvaganapathy

Hi Friends, I've chosen my mini project as Voice Recognition. basically i dont have any idea about voice recognition except Microsoft Speech SDK. It is well for english language, but i dont know how to use this for my language (Tamil - South Indian Language). Is this can be applicable …

Member Avatar for Jx_Man
0
135
Member Avatar for henpecked1

If you grab this code and run it, you'll see what I mean. The second half doesn't run, and when I can get it to run, it's all completely wrong. I'm trying, but I'm tired and just want to get it done...lol. The encrypt and decrypt are a separate cpp …

Member Avatar for henpecked1
0
112
Member Avatar for Dajak

Hi Everybody, Im making a kind of notepad in VB 2008. But the problem is ive maked an Form whith a trackbar and a Buttton, its supposed that the trackbar should be the opacity value. The trackbar is changed to rigth to left, It comes no errors it just wont …

Member Avatar for Jx_Man
0
229
Member Avatar for Black Magic

Hey, my dad was checking the "lotto" results so that inspired me to make a little program of my own, i accomplished that just got a problem.. [CODE=C++]#include <iostream> using namespace std; int main() { srand(time(NULL)); unsigned int lotteryBall; for(int i = 0; i <=7; ++i) { lotteryBall = rand() …

Member Avatar for VernonDozier
0
183
Member Avatar for Kadence

Can getc()/putc()/fgetc()/fputc() be used to read/write chars and floats rather than ints only from binary files? If so, how?

Member Avatar for Kadence
0
230
Member Avatar for karthick01

Hi , Im very new to shell scripting. In our office we use both Linux and Windows platform. We have internet connectivity. The gateway is 192.168.1.1 There is no monitoring tool for us. Im using a Linux machine with fedora 8. I wish to monitor that gateway. I want to …

Member Avatar for eggi
0
135
Member Avatar for jbooth952

I have a VB6 app that uses access 2007 for the database tables. I packaged it with the package and deployment wizard and installed it on a Windows XP home edition machine that does not have any MS Office apps. My program could not open and read the database. What …

Member Avatar for jbooth952
0
153
Member Avatar for Ellisande

I'm having this weird issue with a text based RPG I'm trying to create. I'm fairly new to C++, so I thought having a project that I can work on and expand as I learn more would be a good way to put what I have been reading about into …

Member Avatar for Ellisande
0
127
Member Avatar for anuragatiiith

hey guys ..im new to javascript .. i hav a validation function which alerts by showin error ..bt wen der is no error i want to continue to my next form ..ie a html page ..i tried to check on error bt stil its nt redirectin .. . waitin for …

Member Avatar for anuragatiiith
0
121
Member Avatar for SteveDB

Morning all. Hope everyone has great weekend. Once I get done posting this I'll be digging yet another hole for my spinkler system, and hopefully finishing off my drip system for more backyard. Ok.... Onto my issue. After a week of struggle to find out why I kept getting errors, …

Member Avatar for SteveDB
0
833
Member Avatar for henpecked1

If this is the original class: [code] class StorageBin { public: StorageBin(); ~StorageBin(); void PutInBin( int Item, int Location); int ReturnFromBin (int Location); bool FindInBin(int Item); void DisplayBin(); private: int *pBin; int NumberInBin; int BinSize; }; [/code] Would this be the correct conversion to make it a template? [code] Template …

Member Avatar for Alex Edwards
0
241
Member Avatar for wcmport

This is the code I've written for a homework assignment - however in the footer for Cases B & D I have no idea what I should have for coding to get the correct count - any help/comments is greatly appreciated! /* as long as actual birthday has occurred life …

Member Avatar for VernonDozier
0
116
Member Avatar for QuirkyCindy

Hi all, Could someone help me with the source code to implement a search feature using servlet (JSP/JSF/Java method)??? Based on the examples below:- (Search by Name, Dept and DOB) Employee Table Id Name Dept DOB Date Search By Name, Dept, DOB Id Name Dept DOB Date 10 Judy BBB …

Member Avatar for QuirkyCindy
0
108
Member Avatar for joequincy

I'm having one heck of a time trying to match a tag. It looks right to me (and checks out in all of the Regex Tester webapps I've tried) but does not work when I put it to use. The following is the code (with site address and name replaced …

Member Avatar for digital-ether
0
225
Member Avatar for mustafaneguib

help please once again... my login page was working just fine when one morning it just stopped to function. now i have tried to fix it, buy changing some of the logic and also recreating the database. now the point i have reached is that when the user enters his …

Member Avatar for nav33n
0
111
Member Avatar for Frenchstar

Hi, i am stuckon this particular assignment. I will appreciate it if you guyz help me out on these problems.............. 1. Write two functions Max( ) and Min( ) where • max() returns the maximum of two integers • min() returns the minimum of two integers • Each function takes …

Member Avatar for Jishnu
0
101
Member Avatar for robbie_j0

Hi everyone, I have written an application to communicate with an Access database. Everything works fine when i compile it. I can run the compiled .exe file on the pc which has VB 6 installed but when i transfer to a pc that does not have a copy of VB …

Member Avatar for Jishnu
0
890
Member Avatar for mgt

I'm new to Javascript and found some code on the internet that's supposed to create some nested select boxes. Here is the code: [code=html]<html> <head>Some testing</head> <script type="text/javascript" //src="http://trac.mochikit.com/browser/mochikit/trunk/packed/MochiKit/MochiKit.js?rev=1256&format=raw"></script> <script type="text/javascript"> /* <![CDATA[ */ // An array of the currently visible selects var level_selects = new Array(); connect(window, 'onload', function …

Member Avatar for digital-ether
0
1K
Member Avatar for dave_nithis

Hi all, I am in the process of creating a web page.The page consists of a form where it will ask the users to give the input values(all values in integers).Those values should be passed and the values should be calculated. I have the wsdl file from the client.I need …

Member Avatar for digital-ether
0
108
Member Avatar for awi123

Hi i just wanted to ask whether we cud use #include<string> and declare a data type called 'string' eg. string ch;? and where is "using namespace std" used?

Member Avatar for Ancient Dragon
0
86
Member Avatar for henpecked1

When I'm opening a file, is it the file that is text or binary or is it the stream that can be text or binary? Also, when I close a file is that when the stream object is destroyed?

Member Avatar for Ancient Dragon
0
128
Member Avatar for Foo_with_a_floo

GREEDY COUPLE A party game has the fourteen party guests sitting in a circle on chairs numbered, in a clockwise direction, one to fourteen. A cup of beverage is passed from person to person around the circle in a clockwise direction, starting with the person sitting on chair number one. …

Member Avatar for joshmo
0
218
Member Avatar for Gaurav arora

Hi all, I m using C# from Quite some time. I m facing a problem regarding my project. The problem is When the user clicks on the close button on any form it displays the messagebox saying Do u really want to quit or not?. This MessageBox contains two buttons …

Member Avatar for JerryShaw
0
111
Member Avatar for dlayante

I have this Insert Statement code in C# window application.... String MyString = @"INSERT INTO tblUsers(userID, Name, Position) VALUES('a','b','c')"; how if I would like to give values from a textbox: //Please correct this code because it is not working.... String MyString = @"INSERT INTO tblUsers(userID, Name, Position) VALUES('"txId"','"txtUser"','"txtPosition"')"; I need …

Member Avatar for JerryShaw
0
87
Member Avatar for Siten0308

Hello, I have successfully added a wav file or audio file to my program, the problem is, i sent an email to my friend of the exe application but the wav file does not come with, how do i accomplish this if the wav file does not compile with the …

Member Avatar for selvaganapathy
0
207
Member Avatar for apuamy

I have developed a package using Access as database and serial port programming. After converting into a package form, i want user to add record in a database (in office Xp then convert into Access 97 and connect with the same form. Also i can able to add sub menu …

Member Avatar for Jishnu
0
69
Member Avatar for caprisan06

Hi, I want to write the below javascript code into my JSP page directly...Can you please help? JSP code... [code=JSP]<span class="mini"> <html:link href="#" styleClass="bouton" onclick="return submit_form_with_parameters('delegationForm', 'delegation', 'noInit=Y');"> <bean:message key="rh2u.deleg.label.etape0.label.chercher" /> </html:link> </span>[/code] JavaScript code... [code]function submit_form_with_parameters(strFormName, strAction, parameters){ objForm = eval("document." + strFormName); objForm.action = strAction + ".do?" + …

Member Avatar for caprisan06
0
5K
Member Avatar for Alex Edwards

[code=c++] #include <cstdlib> #include <iostream> /** Test Class for learning template-metaprogramming */ using namespace std; template<int N> //General case for a number class ShowValues { public: static inline void show() { cout << "Start: " << N << endl; ShowValues< (N > 1) ? (N - 1): 1>::show(); cout << …

Member Avatar for vijayan121
0
129
Member Avatar for kvdd

Hello all, What I want is to divide a string in timeformat, lets say 27:30. How can I do that? Eventually I can use SQL for it, because the string comes from the database. Thanks before!

Member Avatar for kvdd
0
1K
Member Avatar for dougy83

Hello, Does anyone know how to use _popen in windows xp sp3 (console application) to allow writing to a process? I've tried using _popen to read from a process. This works as expected. When I try _popen with write access, the process starts, but no commands are interpreted. My code …

Member Avatar for dougy83
0
277
Member Avatar for darkMatter2008

I'm having a problem comparing floats, given the values below, I'm getting the wrong results when running this piece of code let distAppart = 4.76837158203e-007 let factor = 0.01 [CODE] if distAppart < factor and distAppart > -factor: print 'this should not print with the given values.... But it does …

Member Avatar for darkMatter2008
0
85
Member Avatar for gyanu

We have built a code to compile C program from text area built in PHP. We have tried all the commands that could be used to compile the program, for example exec(), system() and even the shell_exec() commands. The problem is still that we are not getting the output. We …

Member Avatar for nav33n
0
88
Member Avatar for blondie.simon

Hello I'm writing my first ever VB program. I'm using 2 combo boxes to allow the user to select 2 different pieces of information. Is there any way that I can make my program automaticaly open the first combo box up at startup so the user can easily see what …

Member Avatar for issac.pena
0
293
Member Avatar for rje7

[code] #include<iostream> using namespace std; class welcome{ public: welcome(){ cout<<"Constructor"; } }; int main(){ welcome c; return 0; } [/code] for the above code i get the following errors wen i try to compile using GCC in PCLinux minime version. cannot figure out if there is an error in my …

Member Avatar for rje7
0
122
Member Avatar for bonzi

Hello! Please I need your help on this part. I've just developed a vb6 program and ms sql express as backend. I setup the ms sql express in a pc working as a server (windows xp). And i also installed the vb6 program on the same pc. I setup also …

Member Avatar for bonzi
0
207

The End.