199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tushar Dutt

I am developing a software using vb.net and sql server as database.It takes name of my computer as a connection string.when i load this software on other computers it searches the name of my system.how can i define a connection string that automatically takes the name of system on which …

Member Avatar for Oxiegen
0
155
Member Avatar for josolanes

Hi, I'm writing a "Date" class and it's fully functioning, including the output manipulators, but the issue I have is when creating a class the has a "Date" instance in it. It, then, doesn't compile because it says there are multiple definitions of the manipulator functions. I'll lay out, below, …

Member Avatar for josolanes
0
102
Member Avatar for Akatosh

Ok following the suggestion from another user I have switched over to a GroupBagLayout. Following the java tutorial in hindsight this seems easier. But alas, I have ran into a problem which does not make any sense to me. See screenshot: [url]http://img189.imageshack.us/img189/1060/groupbaglayout.png[/url] I have started from a top down approach …

Member Avatar for Akatosh
0
107
Member Avatar for judge6

Hi all. I have a web application which upon page load, creates a number of buttons on the page. For each button which is created, i add a handler for the click event. Inside the click event code for the button, i identify the ID of the sender. I then …

Member Avatar for judge6
0
136
Member Avatar for Allison2009

Hello Everyone, We have a website driven by Zen Cart. There is a serious issue, which we find it extremely difficult to resolve. The issue is - We have a Registration Page. It has so many mandatory fields, like Telephone No. and Date of Birth. But users are able to …

Member Avatar for Allison2009
0
146
Member Avatar for tgreer

I'm having a problem with a dynamic LinkButton. For a result returned from a database query, I create two LinkButtons, dynamically. One is "Update" and the other is "Delete". I store Update or Delete in the .CommandName property. I store the identity value (the primary key) of the database record …

Member Avatar for bhavu4u
0
463
Member Avatar for lyn.vita

Hi all, I'm trying to write the Hufmann code to encode a given file & give me the compression ratio. but when I run this programme, I'm getting segmentation fault. Can you please help me with correcting it ? [CODE] /*************************/ /*************************/ // HUFMANN.C /*************************/ /*************************/ #include<stdio.h> #include<stdlib.h> #include<input.h> #define …

Member Avatar for Adak
0
140
Member Avatar for mucoool

i'm having a problem in executing a batch file from my c++ code i've included all the necesary headers like dos.h,process.h,stdlib.h code: system(c:\new\ram.bat); there is no error in the program but the batch file does not get executed..... please help ................

Member Avatar for thomas_naveen
0
206
Member Avatar for emilio

hi i'm trying to run an exe file on the client side using the following code: [CODE=javascript]var oShell = new ActiveXObject("Shell.Application"); var prog = "C:\\Program Files\\Microsoft Office\\Office12\\Excel.exe"; oShell.ShellExecute(prog,"","","open","1");[/CODE] when i run the code it fails with "Access denied" error which i cannot resolve. i modified my ie (8) settings to …

Member Avatar for emilio
0
183
Member Avatar for gaya88

can we declare a array as, int arre[x]; and assign the value of x as,x=5; but error is coming "constant expression required." Any help? i wanted to input series of marks,first you should enter how many subjects(if 5 subs,x=5) then you can enter 5 marks.

Member Avatar for thomas_naveen
0
174
Member Avatar for jacksparao
Member Avatar for ahmedyes

hi every one I really need help with this and how to do it =The motel has 12 rooms numbered 1 to 12, and each handles a maximum of 4 guests. Assume all rooms begin empty. Provide a user-friendly interactive menu that allows the following transactions: B – Book room(s) …

Member Avatar for thomas_naveen
0
167
Member Avatar for ashab27

hi, I have date in this format December 2 2009 December 2 2009 December 2 2009 and i want to insert it in my table in mysql .I m inserting this with the help of perl means i m doing my program in perl .ook at my program [code=perl]#!/usr/bin/perl use …

Member Avatar for urtrivedi
0
180
Member Avatar for alyssajones

Hey people, I don'r know much about PHP so I think you can help me on this one. I have a email form and the action says: [CODE]<form id="contato" method="post" action="[COLOR="Red"]contact.php[/COLOR]">[/CODE] The php is placed as follows: [CODE]<?php $to = "conde.taly@gmail.com"; $subject = "Site Contact" ; $email = $_REQUEST['email'] ; …

Member Avatar for diafol
0
231
Member Avatar for andy38

Hi,Using Vb net (2005) in Win Forms, in my app. I have many Win Forms one off them is "SetupOption" this need to be shown at least once at the first time I run the app and never ever after unless I need to change some settings,. then my question: …

Member Avatar for Chris147
0
131
Member Avatar for rumpleteaser33

Hi, I'm writing my first application in VB and need some help with my Access database. I have 2 problems; the first one is the most important, the second I would just be very grateful for any help/advice. Firstly, I need help updating a record from my database. I have …

Member Avatar for kevinnrobert
0
158
Member Avatar for ilkeamasya

Our homework is to compare N circles with each other if they are intersecting or containing.My C file for that is : [CODE]int N=0 , i=0, j, a=0, max=0; float circle[MAX] [3] ; float durum1, durum2, durum3; float intersection[MAX], containment[MAX]; printf("Please enter the number of circles you want to compare …

Member Avatar for ilkeamasya
0
91
Member Avatar for mrcniceguy

i have a comment system of which member can insert smileys which commenting to something )))that works well...Now i want the smileys to be desplayed in a small popup window like the one i have attached in screenshot..and dont know how to make it possible... i just believe that it …

Member Avatar for mrcniceguy
0
70
Member Avatar for kut KK

hello guys... can you help me to find coding for grading system for my new assingment...( grade n grade point) grade A= 4.00 A- = 3.70 B+ = 3.50 B = 3.00 B- = 2.67 C+ =2.50 C = 2.00 C- = 1.67 D+ = 1.33 D = 1.00 E …

Member Avatar for Nick Evan
0
130
Member Avatar for timbomo

#include <iostream> #include <ctime> #include <cstdlib> using namespace std; i am having trouble putting functions in int main(). can someone show me how??? i want to put these function def. in int main() [CODE]int score_num(int& ns1,int& ns2,int& ns3, int& ns4, int& ns5, int& n6, char& gam_answ); int roll_hold(int roll, int …

Member Avatar for mattjbond
0
414
Member Avatar for hassancool

1). Well I am using a PhpBB forum.... Everything is working fine but I have a little question that where should I paste the php META TAG refresh code so that its not annoying for users!!! 2). My second question is that "is there any advantage of META TAG refresh …

Member Avatar for saiprem
0
93
Member Avatar for stanleymakori

can somebody give me code that retrieve data from from same column which have same name e.g surname,store it in dataset and then navigate through it on form using odbc.

0
39
Member Avatar for mcastu

hi i want to know that how can i search the entire database at once.... i have code with which i can only search from a single table but i want that search should be performed on entire database.... i m using php+mysql....... help me out...

Member Avatar for mcastu
0
203
Member Avatar for D4n1sD

Hello, I am really sorry for posting this here but I couldn't find anything simular to the net. I need to insert datetime values into my mysql db and in particular the current time second and minute value and than I want to call this value and do a $current_time-$mysql_time …

Member Avatar for BzzBee
0
112
Member Avatar for bokz06

i think i have converted my application to an applet..... it use to read lines from a .txt file i have on my hard drive but now i want it to read a .txt file from a URL: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.JButton.*; import javax.swing.event.ListSelectionEvent; import java.net.*; import java.io.*; …

Member Avatar for HoRn
0
171
Member Avatar for lastlight

Hello again, Whenever I run a certain .exe in my CGI script, it opens the process but does not bring up the application. I am forced to close it out through task manager. Both exec & system have the same result. I created an autoit script to run the .exe …

Member Avatar for vitana
0
125
Member Avatar for RobotFX

Hi! Does anybody know of a [U]script capable to read feeds and store them in static files[/U]? Also, if possible, to [U]create an index of these files, too, so visitors on the website can find them easily by date or name,[/U] for example? What I'm trying to do is to …

Member Avatar for BzzBee
0
344
Member Avatar for srilakshmitr7

I want to upload videos from my site into youtube. I worked on examples provided in oogle but i got strucked by auythentication process where it is saying invalid parameters in youtube page. Can anyone solve this problem.

Member Avatar for BzzBee
0
59
Member Avatar for jasneg16

im using <stdio.h> and <conio.h> only is there any solution so I can randomize result? I want to make a fortune cookie that randomize the reading. i am not familiar with iostream and stdlib thanks

Member Avatar for WaltP
0
147
Member Avatar for jazzy_24

firstly here is the code i'm working on in visual studio [CODE]#include "stdafx.h" #include <iostream> #include <string> using namespace std; struct Car { string r_number,make_of_car,model_of_car; int mileage; int age_of_car; }; void main () { int i,num; Car *car1; cout << "Please enter the number of cars: "; cin >> num; …

Member Avatar for pinsickle
0
125
Member Avatar for PSP1202

Hey all I'm new C++ and am having a little trouble with a simple program. The program calculates the square root of a number the user inputs. When I input -1 or any negative it comes up as 1.#ind. Ideally when the user types -1 i want -1 to come …

Member Avatar for Banfa
0
317
Member Avatar for ratchy

So I have been asked to write a template class for a binary tree (easy) the hard part is that the nodes have to be written into a file and read in the same exact positions they were in when they were stored. I looked at the array solution with …

Member Avatar for ratchy
0
259
Member Avatar for some

Hello everyone, Currently, I am trying to make a smaller version of the famous Eliza bot. I have written a program that can understand and put out replies, but if I want to make it bigger then the code will be thousands and thousands of lines long. And all on …

Member Avatar for Banfa
0
209
Member Avatar for MTW1989

[CODE] #include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> #include <conio.h> #include <stdio.h> using namespace std; void printintromessage (); void getUserInput (char& Y); void calculations (const int& numofgamesinseries, const int& numofplayersonteam, int& i, int& j, int& k, int& l, char& Y); void PrintMax (const int& numofgamesinseries, const int& numofplayersonteam, int& …

Member Avatar for pinsickle
0
133
Member Avatar for ari200429

I am trying to create a telephone word generator that ask for seven digit number in a textbox and displays every possible seven letter word combination corresponding to that number when user clicks generate words button. My generate click button is not working once click [code] Public Numbers(7, 3) As …

Member Avatar for apegram
0
578
Member Avatar for DSalas91

Hi everyone. Im new in C++, actually im doing my first project, and i have a few questions, if you guys could help me it would be awesome. :) In a method i have to create a .txt file, It have a parameter indicating the number of the file. But …

Member Avatar for DSalas91
0
187
Member Avatar for spursfan2110

Hi all! So our T.A. gave us a function to use in our programming assignment as follows: [code=php] struct node *delete_from_list(struct node *list, int examnum) { struct node *cur, *prev; for (cur = list, prev = NULL; cur != NULL && cur->examNumber != examnum; prev = cur, cur =cur ->next) …

Member Avatar for spursfan2110
0
2K
Member Avatar for nathan_hastings

Does anyone know if there is a way of getting javascript to wait until I have pressed ok on an alert before it runs the next line of code? The site I am developing is in PHP but I have made this function to bring up a message box: function …

Member Avatar for Airshow
0
140
Member Avatar for spawn2004

hi everyone, i am having a difficulty with a C# program. The program thing i don't know how to do is one button that have to draw a text to an image. I have two forms. The first one have three buttons Open File, Edit Text and Save Image It's …

Member Avatar for Diamonddrake
0
157
Member Avatar for Akatosh

Alright I'm trying to design a GroupLayout but running into troubles and lots of confusion...I have read the java tutorial on them and I'm still at a lost. Here is a makeshift design I painted: [url]http://img268.imageshack.us/img268/2757/grouplayout.png[/url] The thing that is stumping me is how do I go about stretching the …

Member Avatar for Akatosh
0
92
Member Avatar for BestJewSinceJC

I'm trying to write my own system calls. I have a .c file where I'm putting the system calls. My system calls use a struct, so I have declared a global variable that is an array of my struct. Lets just call it [CODE] //Stuff is the name of the …

Member Avatar for BestJewSinceJC
0
96
Member Avatar for jrw89

Hi all, I am trying to get an object to be aware of its own changes e.g. have it execute one of its functions but only when a variable has been changed from outside the object. Google gave me lots of references to XMLHttpRequest.onreadystatechange and this resource at MSDN: [URL="http://msdn.microsoft.com/en-us/library/ms536957%28VS.85%29.aspx"]http://msdn.microsoft.com/en-us/library/ms536957%28VS.85%29.aspx[/URL]. …

Member Avatar for jrw89
0
187
Member Avatar for senormateo2011

Hi everyone. I am new to this website and I could use some major help. Basically, I am taking AP Computer Science and my teacher has no idea what he is doing. The school thinks that since he can do web design and adobe teaching, he can do java programming. …

Member Avatar for senormateo2011
0
739
Member Avatar for mathew_johnny

Hi, I v got a tough challenge to solve please help me find its solution. Have code but no corresponding higher language code. Code displays 8 top records made by any users in a particular game, i have to modify it in such a way that it prints 10 records. …

0
242
Member Avatar for javarook

I need to find the smallest index in an array, my math must be wrong because i am finding the smallest number not the smallest index. can someone check my smallestIndex method and give me some help? for example: if i put in these four numbers, 2 3 0 1, …

Member Avatar for kvass
0
3K
Member Avatar for NOLK

Hello all, I've been looking at various c# timing functions but can't seem to find the right one. The closest one I seem to have found is stopwatch function, that only measures the time it takes to complete a command. What i'm after is a stopwatch function that only measures …

Member Avatar for NOLK
0
123
Member Avatar for tuffenuff

I have file which is having large data in it. and there are some repeated rows. Basic idea here is : Sort data, remove duplicates based on first field and then print the whole.... I have tried teh following but no help.. [CODE]#!/bin/sh if [ $# -ne 1 ] then …

Member Avatar for tuffenuff
0
502
Member Avatar for timbomo

can someone show me an example of how you would initiate a variable and how you would fix a undeclaired identifiers. i am a visual learner so thats why i ask for an example.

Member Avatar for Jiwe
0
135
Member Avatar for caffeine

I have a bunch of code that looks like: [CODE] // Local block scope { ostringstream ostr; ostr.fixed; ostr.precision(2); ostr.width(20); ostr << foo->bar[trno]; SafeArrayPut2D( retArray, 3, i, (void *) ostr.str().c_str() ); } { ostringstream ostr; ostr.fixed; ostr.precision(4); ostr.width(22); ostr << foo->foobar[trno]; SafeArrayPut2D( retArray, 4, i, (void *) ostr.str().c_str() ); } …

Member Avatar for dusktreader
0
179
Member Avatar for jrlynch1

Hello all! I'm working on setting up a program to go about some files in a directory, do with them what I need, then delete. So, I started with the unfamiliar part for me, as the rest I am sure will be easy as pie. I tried to just write …

Member Avatar for jrlynch1
0
87

The End.