199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for AbuShokry

Hey everybody, I have multiple buttons on a form, I need to make them all have the same click event, which displays the name of the sender button. I knew that in order to make them have the same event handler, I should make there delegates refer to the same …

Member Avatar for JerryShaw
0
224
Member Avatar for flash121

Hello, I'm sorry if this has been asked before, but I didn't seem to find any answers. I'm trying to write a function that would delete a specified number from a singly linked list. This is what i've got so far, but it's not working: [code=c++] void remove(list*& start, int …

Member Avatar for Laiq Ahmed
0
700
Member Avatar for jitupatil_2007

hi friends i have created a code which searches for the particular word from two different files and creates a new file with the records in it but i am not able to search digits from the string the code of mine goes here: [code] StreamReader sr = new StreamReader(@"C:\Documents …

Member Avatar for JerryShaw
0
119
Member Avatar for nurulshidanoni

I have this data 1 2 3 4 5 6 7 8 9 10 0 1 0 9 0 0 5 0 0 3 How to count rowwhich have value only? Which the answers is only 4 column which have value? something like this I do. [code=C++] a[i]=total; total=a[i]+temp; myfile<<"\t"<<total<<setw(5); …

Member Avatar for Laiq Ahmed
0
193
Member Avatar for shuban

DateTime.UtcNow gets the system date and time, so I was wondering if there is any function to extract only the syetem time and not the date. If not just in case any one knows how to do that... plz revert back... Thanks in earnest...

Member Avatar for Reinard
0
97
Member Avatar for pb_sudhir

I had exported a table containing jpeg images in a ms access database to mysql using myodbc. The images were stored as mediumblob type in mysql. I now want to display the images stored in mysql as mediumblobs using php but am unable to do it. can anyone suggest the …

Member Avatar for pb_sudhir
0
163
Member Avatar for piyush_soni

I have a structure in which there are three float variables, and in a bigger program, I'm using an array of these structure objects. Now, I thought that each time in a loop when I was using values of these structures, I was creating a new copy of those objects …

Member Avatar for piyush_soni
0
199
Member Avatar for fallen_prisoner

I wrote this a little while ago... I know i need to add a file check so overwrite does not occur but I am interested in learning to write clearer and less amatuer code. Any serious note would help... this program creates a file with an input name, saves text, …

Member Avatar for Laiq Ahmed
0
111
Member Avatar for shers

Hi all, I have created a VB Script file that runs when the user logs in, and writes the username and date & time to a log file. The vbs file as well as the log file is a network location that contains more than 3 users. I would like …

Member Avatar for shers
0
74
Member Avatar for electromania

Hi Guys, I'm trying to read a while with the following formate 1999 43558047 2000 59068567 2001 67098709 ......................... ........................... I'm not sure how many records are in the file. Now I want to read this file using struct mystruct { double x; //this would be first column double y;//this …

Member Avatar for Ancient Dragon
0
98
Member Avatar for Ice_Dragon

In an attempt to improve my coding skills, I decided to program a very simple DOS calculator. However, when i try and compile the program, I am presented with with following: [CODE]------ Build started: Project: Basic Calculator, Configuration: Debug Win32 ------ Compiling... Basic Calculator.cpp c:\documents and settings\my documents\visual studio 2008\projects\basic …

Member Avatar for Ice_Dragon
0
142
Member Avatar for Nessie

Hi all The string_in function below is intended to take two string pointers as arguments and if the first is contained in the second, return the address at which the contained string begins. [CODE=C]#include <stdio.h> #include <string.h> #define TEST "This ain't a drill" char * string_in (char * str1, char …

Member Avatar for Nessie
0
116
Member Avatar for festigeo

hey im real sorry about this but none of the forums ive looked at help me much. basicly ive created a database for usernames and passwords and i want to make vb check the database for passwords and usernames. im usine vb6.0 if any one could just tell me the …

Member Avatar for debasisdas
0
86
Member Avatar for nemag

i want code by visual basic 5 (search code for db by access connect with vb5) because i made one but search only give me one result on(( first one only)) for example -- after i enterd data in db and then i want search for any filed such i …

Member Avatar for debasisdas
0
107
Member Avatar for pancgom

Hi, I am very new to php still trying to find my way around it, i got this code which will pull everything off my database and display in one endless table across the page is there a way i can split it and display. [CODE=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar for nav33n
0
93
Member Avatar for octavia

Hi all, Could anyone please check my sample code because I can't see the final result? Private Sub Form1_Load() Call AnyNumberArguments Call AnyNumberArguments(1) Call AnyNumberArguments(2, 3) Call AnyNumberArguments(4, 5, 6) Call AnyNumberArguments(7, 8, 9, 10, 11, 12) End Sub Private Sub AnyNumberArguments(ParamArray x() As Variant) Dim y As Integer Print …

Member Avatar for choudhuryshouvi
0
371
Member Avatar for blantry

Perhaps someone can help me... I'm trying to figure out how to transfer Access data to Word documents so that the data for each contact will transfer with a command. Does anyone know how to do this?

Member Avatar for choudhuryshouvi
0
150
Member Avatar for ayk-retail

I have a major problem. I need to write a program using linked lists that will display... A B C D E F and then... F E D C B A without using a tail pointer. When I run the program, it displays the first set of letters but crashes …

Member Avatar for Laiq Ahmed
0
397
Member Avatar for aan@ucsc

I have a problem installing .net on my machine.It gives the error massage:Install security updates and I don't have facilities to download security updates.Is there a compiler for c# free of charge ,can enyone post a link.

Member Avatar for aan@ucsc
0
144
Member Avatar for code12

Hi guys! I have started writing a program for phonebook which will add, delete, search, display and sort the information of a person. information will include firstname, lastname & phonenumber. now I was testing the first part of the program which adds a contact. but my loop is not doing …

Member Avatar for VernonDozier
0
244
Member Avatar for Galaxiaunit

I am new to C++ I recently been trying to write an Game data base in C++ but I succesed in nothing though the Code seem to be all right it always shows me error messages this is the Source Code i created for this program: [CODE] #include<iostream.h> #include<conio.h> #define …

Member Avatar for Traicey
0
574
Member Avatar for VernonDozier

This came up in another thread. I gave some advice that I'm not longer sure of. Rather than hijacking that thread, I figured I'd start my own. I advised against using the == in that thread. The context was this: [code=cplusplus] string subChoice =""; getline(cin,subChoice); if (subChoice == "100") { …

Member Avatar for VernonDozier
0
926
Member Avatar for WonderWomen204

I need help with an assignment I am working on. Here is the assignment: count all the even numbers between X and Y, where X and Y are entered by the user. Do not include X and Y. EXAMPLE 1: Please enter an integer: 0 Please enter another integer: 10 …

Member Avatar for WonderWomen204
0
121
Member Avatar for kreyd

Im very well a beginner and I cant quiet grasp classes. I found that this topic is all over forums and I have decided to give it a whirl and I am stuck. Here is what needs to be done. You should create a class called ComplexNumber. This class will …

Member Avatar for kreyd
0
187
Member Avatar for jimJohnson

I know it has to do something with my main and around the "how many classes" but my program runs without any errors or warnings but blows up so I was wanting to know if someone could take a look at it..... I know I havent worked on the gpa …

Member Avatar for BlackJavaBean
0
442
Member Avatar for sbv

Hi i am fetching value from a table and assigning to data grid. one of column contains date and time, which is not showing me complete value in data grid. When i test it using msg box on click. msg box prompts right value. here the msg box has input …

Member Avatar for sbv
0
140
Member Avatar for ahjiefreak

Hi, I have the following file input:- [CODE] 542 4795 61 543 4795 61 544 0 0 545 292 2 546 292 2 547 0 0 548 0 0 549 0 0 550 111 4 551 0 0 552 0 0 553 4614 63 554 4614 63 555 0 0 …

Member Avatar for eggi
0
153
Member Avatar for bramprakash1989

this program is inorder to split a string like krishnamoorthy into krishna & moorthy by splitting it at m i tried the following coding.the compiler pointed out an error saying that for cannot be expanded inline.what shud i do to rectify the error?this [code=cplusplus] #include<iostream.h> #include<string.h> #include<conio.h> class string { …

Member Avatar for Lerner
0
145
Member Avatar for demroth

I thought I had posted this earlier but... I am working on a sorting problem using counting sort but am getting a crash when I run the program. I have fixed some of the problems but I am still missing something. I just need a extra pair of eyes to …

Member Avatar for Ancient Dragon
0
130
Member Avatar for Jennifer84

I wonder something about this code that read(ifstream) a .txt file. In my file I have these 2 lines: [B]Hello,1000,Yes,walker How,2000,No,walker[/B] So with my code I use getline with a delimiter to put these 4 different strings/int to variables. The code works fine for the 2 first, wich is "Hello" …

Member Avatar for Ancient Dragon
0
206
Member Avatar for arun.gerrard

ive been writing a c++ program to make a quiz but i couldn't figure out about how u can put a timer. the timer should actually countdown from 20 to 1 and once the time is over it has 2 move on to the next question and no points should …

Member Avatar for Ancient Dragon
0
106
Member Avatar for dallaseve

[QUOTE]Hi, I have an assignment where I need to take a string and display it in reverse order and then convert anything in upper case to lower case and vis versa. I have the first piece of the code, but I'm not sure where to begin with the second piece. …

Member Avatar for dallaseve
0
105
Member Avatar for redmage

I'm getting the following error on run Parse error: syntax error, unexpected T_VARIABLE in /www/99k.org/g/a/t/gatewayarcanum/htdocs/process.php on line 2 the code i'm using is [code=php]<? php $name = $_POST['name']; $email = $_POST['email']; $how_found = $_POST['how_found']; $comments = $_POST['comments']; mail("psidonwav@gmail.com", "Contact Form Submission", "Name: $name /n E-mail: $email /n How Found: $how_found …

Member Avatar for redmage
0
59
Member Avatar for knight fyre

When is it better to use random-access ? When is it not? When is it better to use sequential-access? When is it not? So far I'm only sure to use random access in a situation where I'm dealing with a fixed number of records. For example a record of rooms …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for mussa187

Okay I need to be able to limit the input parameter to one!!! Example Enter a number 1 fine!! Enter a number 1 2 No good!! Help please!!!

Member Avatar for Ancient Dragon
0
113
Member Avatar for farkasember

HI! I need help! please somebody help me! I need program Sudoku in language C or C++, but I can't programming. please send me source code thanks very much! this program is very important for me, because I need this in school

Member Avatar for VernonDozier
0
71
Member Avatar for a1eio

Hi, I'm wondering how your supposed to find out a widget's width in tkinter.. Little example code to explain (doesnt do anything at all) [code=python] class CustomWidget(Tkinter.Frame): def __init__(self, master, **kw): apply(Tkinter.Frame.__init__, (self, master), kw) self.masterWidth = # ???? Totally stuck, tried obvious things like master.width class MainWindow(Tkinter.Toplevel): def __init__(self, …

Member Avatar for a1eio
0
182
Member Avatar for baku

Count the words of each line in a file. No suppositions will be made regarding the maximum length of a line. And my not working c code: //Count the words of each line in a file. No suppositions will //be made regarding the maximum length of a line. #include<stdio.h> #include<string.h> …

Member Avatar for Majestics
0
117
Member Avatar for sukhy_1

Hello this statement below works when the date is set as 02/02/2008 but when i enter it like this 2/2/2008 it dont search the date, in the database the date is set as 2/2/2008 because i need it in that format. i want to search dates from and to like …

Member Avatar for mwasif
0
81
Member Avatar for friends_ajai

I am a student of b.tech with computer science And I am using a "JSP BASED LIBRARY MANAGEMENT SYSTEM " project which I have downloaded from a website("sourceforge.net")..But I m facing problems in using it succesfully. I have installed : a.tomcat 5.0 b.mysql5.0 c.j2sdkee1.3.1 d.jdk1.5.0 2.set all the envoirment variables …

Member Avatar for kristo_abhi
0
85
Member Avatar for Mr.Wobbles

I have a program that creates a SQL statement based upon a treeview list that the user makes. The SQL statement looks like this: [code]CREATE TABLE Test ( Test ID PRIMARY KEY, Check1 CHAR(255), Check2 MEMO, Check3 INTEGER, Check4 DOUBLE, Check5 DATETIME, Check6 BOOLEAN) VALUES (1, 'DefSML', 'DefLRG', 0, 0.0, …

Member Avatar for Kegtapper
0
677
Member Avatar for krish_kooll

i want to generate a query example: if the english question s given ->list all the details from my_table where name='smith' and age <30 it shld generate a mysql query for the question ->SELECT * FROM my_table WHERE name = 'Smith AND age < 30;

Member Avatar for blater
0
101
Member Avatar for wsn

Hi, if i had a string (Iamhere) stored in an array of characters, and i want to get just (amhere) in another array, is there a way of doing it?? I've been reading in the string functions but couldn't figure out how this is done? Thanks

Member Avatar for Aia
0
110
Member Avatar for Jennifer84

I have a GridViewControl on my Form in C++ .NET. I have put values to Rows and Columns like this: (3 columns and 5 rows) 1 a f 2 b g [B]3 c h[/B] 4 d i 5 e j What I wonder here is if I click with my …

0
69
Member Avatar for slayman89

When i compile my program i get the error "floating point exception". I do not know why this is occurring my code. I am hoping that this is the reason why nothing is being put into my outfile. if it is possible could you look at my code and give …

Member Avatar for slayman89
0
139
Member Avatar for zzmgd6

I understand how to use CreateProcess, ShellExecute(Ex), _spawn, exec methods to start a child process from a parent process. Question: Is there a way I can return values back to the parent process from the child process? For example, the child process sets an integer value and I want the …

Member Avatar for zzmgd6
0
197
Member Avatar for random7

this is some of code. I have a question. what is the meaning of '?' and ':1;' [just this part] [code=syntax] int t, dt, * cnt, tmax=0; cnt=(int*)calloc(M,sizeof(int)); ... /* Compute the mean-squared displacement using the straightforward algorithm */ fprintf(stderr,"# computing...\n");fflush(stderr); for (t=0;t<M;t++) { for (dt=1;(t+dt)<tmax;dt++) { cnt[dt]++; /* number …

Member Avatar for William Hemsworth
0
194
Member Avatar for esmeco

Hello! I have a project in which I must simulate a blog application,with users' post mangament. These are the requirements: A blog has a title and a collection of posts.The posts have the following information: -author -data -title -text Each post has a code thet is generated automatically and which …

Member Avatar for jwenting
0
103
Member Avatar for bramprakash1989

iam facing thesame problem of run page not getting displayed.can i use srand function in this program. and what is its use and syntax? [code=cplusplus] #include<iostream.h> #include<stdlib.h> int randomno(); int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { randomno(); } } i int …

Member Avatar for VernonDozier
0
262
Member Avatar for Jesi523

I have been using VB.Net for a little while now, but I just started needing to write code to put information in a SQL Server database. I have two tables that I need to add information into. I know that I have to use an Insert statement, maybe I need …

Member Avatar for Jesi523
0
164

The End.