199,132 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vaibhavd

I have included following webservice in my project [url]http://www.webservicex.net/CurrencyConvertor.asmx[/url] There i got a function as ConversionRate() which takes parameters as follws [code] double Rate; CurrencyConvertor ccs = new CurrencyConvertor(); Rate= ccs.ConversionRate(Currency.USD, Currency.INR); lblResult.text=Rate.toString(); [/code] It works fine but, My application contains 2 textboxes where i want to manually show the …

Member Avatar for vaibhavd
0
144
Member Avatar for dominique7

Dear programming cracks! I set up a website and thought an email form would be nice, but I thought it would be easier to get it right! I got it quite ok with the easy example below which I found at: [url]http://www.freewebmasterhelp.com/tutorials/php/6[/url] [CODE]<? function checkOK($field) { if (eregi("\r",$field) || eregi("\n",$field)){ …

Member Avatar for dominique7
0
166
Member Avatar for SCass2010

Hi, I'm current working on a project that allows the user to store customer and job details. At the min, I have a form to view and add customer records, but also edit/delete etc. customer records. I also have a form to add a particular job type. I'm working on …

Member Avatar for SCass2010
0
130
Member Avatar for Robot1199

i am new to java programming and not good enough. we are required to make one class which creates and manages connection to database instead of all my servlet. i cud come up wtih the following code. please assist in what i have done wrong .thanks My connection file. [CODE]/** …

Member Avatar for javaAddict
0
120
Member Avatar for abglong

hello i'm newbie here. i'm finish to develop a registration system using vb 2008 exp edition. so, i want to connect my standalone system with LAN network. i want to access database from other computer and be use in my system. i'm use crosscable to connect with 2 computer. before …

Member Avatar for abglong
0
226
Member Avatar for StrikeFreedom

Hi I've been trying to make pagination for my search results and I have this problem: The first page displays ok but when the max result per page is achieved like $max_results = 2 and it reached 2 the links for the other pages shows but when clicked on it …

Member Avatar for blanche3
0
171
Member Avatar for pavel.pavel

Hi guys, I am doing an exercise we got in school and I am stucked at the point when I think everything is correct, but obviously is not :-). Target: Make a very simple pascal program, which opens a text file with three variables(name, sex, salary) and returns the highest …

Member Avatar for FlamingClaw
0
367
Member Avatar for PhiberOptik

Hey guys, I have two JPanels for my game, one jpanel shows my character, informational text and the other shows the map which is made up of a tileset. Is there anyway I can show the map behind the character and information without merging the two java files? the Map …

Member Avatar for cale.macdonald
0
852
Member Avatar for SchoolBoy

I am writing a program for school where the user inputs their age into a String which is then converted to an integer. When a value that cannot be converted to an int is input, an exception is thrown. I have written the code for this, but I am not …

Member Avatar for SchoolBoy
0
84
Member Avatar for rookanga

I am having trouble trying to finish this program, What I am suppose to do is make a loop program that should ask the user for the employees number, gross pay, state tax, federal tax, and FICA withholdings. The loop will terminate when 0 is entered for the employee number. …

Member Avatar for Fbody
0
389
Member Avatar for TimeFractal

Hello, I need to simulate a stream which behaves exactly like a ostringstream, except when handling objects of type color. What is the best way to do this? [code] user.display() << color() << "Name: " << color(color::Red) << setw(10) << left << str_name << endl << color() << "Date: " …

Member Avatar for TimeFractal
0
2K
Member Avatar for Chjo

ok so i have a problem: ldap_bind without SSL works just fine but when i switch to SSL it doesn't bind. The simple code im testing this with looks like this [CODE] <?php // LDAP variables $ldaphost = "ldaps://myserver.com"; // your ldap servers $ldapport = 636; // your ldap server's …

Member Avatar for jstrain@gpc.edu
0
320
Member Avatar for PDB1982

I am able to have checked menu items show the variables that I need to show, but they don't uncheck themselves unless I go back and click them. I want to have only one checkmark on a country at a time...is there any way? I've tried if...elseif , but that …

Member Avatar for L0u3
0
838
Member Avatar for bakwanyana

[code]#include <stdio.h> #include <time.h> #include <cstring> #include <iostream> #include <fstream> #include <sstream> using namespace std; int main () { ofstream file; stringstream ss; time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); char g[30]; char buffer[10]; itoa(timeinfo->tm_mday,buffer,10); strcat(g,buffer); strcat(g,"-"); itoa(timeinfo->tm_mon+1,buffer,10); strcat(g,buffer); strcat(g,"-"); itoa(timeinfo->tm_year+1900,buffer,10); …

Member Avatar for Ancient Dragon
0
213
Member Avatar for albertkao

After clicking the checkbox, I like to get the value of the checkbox submitted. Why the following page always get the value "20" for checkboxChoice and checkboxvalue no matter which checkbox I clicked? Please help. [CODE] <tr> <td> <div class='fg1'> <input type="checkbox" name="checkboxChoice" value="20" checked onclick="submit()"> Choice </div> <input type="hidden" …

Member Avatar for Airshow
0
121
Member Avatar for smokin745

Ok i have a mthod that writes data to a file and throws an exception [CODE] import java.io.*; public void writeBook()throws IOException { String filename = JOptionPane.showInputDialog("Please enter a file name to add the book details in."); FileWriter outputFile = new FileWriter(filename); BufferedWriter outputBuffer = new BufferedWriter(outputFile); PrintWriter printStream = …

Member Avatar for masijade
0
86
Member Avatar for selvasoft

please any one help me i want display images from mysql database to my web page... i have no clear idea about that please help me.. i want script that will upload file and also display files in date vise. And also i want display my images like my attachment. …

Member Avatar for muralibobby2015
0
102
Member Avatar for tom23

In need a simple code that will check if proccesname is running, and if it does it terminate the c++ exefile, but if it dont it will continue to the code i want to run, can this be done? please somone help me out only thing i need to complete …

Member Avatar for tom23
0
116
Member Avatar for dawsonz

Hi, I currently have a dataGridView which is populated with data. However, I now need to be able to add or edit the data in that dataGridView and the changes then update my SQL database. My code for the dataGridView [code] private void main_Load(object sender, EventArgs e) { //create the …

Member Avatar for kvprajapati
0
147
Member Avatar for ercdill

Hello, I'm very new to VB, I have a small problem. I'm simply trying to allow the user to change the ForeColor of some calculated totals that appear in Read-only text boxes using the Color Dialog box. I'm not sure what I'm doing wrong, any help would be appreciated. [CODE]Private …

Member Avatar for L0u3
0
198
Member Avatar for jamal87

hey guys.am working on a program. i have a timer and want it to countdown to zero when the button is clicked any ideas i'd appreciate.cheers.

Member Avatar for L0u3
0
76
Member Avatar for ravi0703

Hi, I want to display the less characters in table. In the database the field datatype for description is TEXT. So for example, when i insert more then 500 charaters in that field. When i fetch that description field in the table(front-end) it is increasing the table size as per …

Member Avatar for logonchristy
0
128
Member Avatar for habib_parisa

Dear All, I am a C code to calculate prices in stock market. I pass a two dimensional array to a function as [CODE] #define DIM 3000 void grid(double tree[][DIM]); int main(){ double tree[DIM][DIM]; grid(tree ); return 0; } void grid(double tree[DIM][DIM]){ /* and do sutff on tree * } …

Member Avatar for Ancient Dragon
0
144
Member Avatar for alexRivera

i'm currently taking c++ courses in my college and have been noticing that i'm having trouble grasping the fundamentals of programming or even understanding the concepts that are being taught. the courses are taught with no textbook whatsoever so going back for references leaves me with my lecture notes and …

Member Avatar for alexRivera
0
100
Member Avatar for Egypt Pharaoh

why when increase floating number with floating number catch error as [CODE] for(double i=0; i<10;i+=0.1) System.out.println(i); [/CODE] the out put is 0.0 0.1 0.2 0.300004 ....ect but the logicaly output is 0.1 0.2 0.3 ....ect

Member Avatar for kvass
0
113
Member Avatar for nitin2010

Hi, When I call a method(present in external DLL) through [B]reflection [/B]which having [B]no parameters[/B] and [B]void return[/B] ,it get called fine but in same DLL when I call a method which have [B]no parameters[/B] but [B]return type Datatable[/B] then I got the [B]'TargetInvocation'[/B] exception. Can anybody help me ?

Member Avatar for nitin2010
0
182
Member Avatar for drewangel

hi, i want to solve 3 equations, which has 3 unknowns like this: a x1^2 + bx1 + c = y1 a x2^2 + bx2 + c = y2 a x3^2 + bx3 + c = y3 can anybody suggest mw how can i do it in C? i tried …

Member Avatar for ninjasmith
0
3K
Member Avatar for bluebird

Hi everybody I am a beginner of j2me programming. I am reading a book regarding J2ME programming and that book is ok for me. But when I came across j2me programms of my friend, they are very complex for me although I know the basic things. For example, I thought …

Member Avatar for peter_budo
0
109
Member Avatar for RassKass

Hi, I would like to perform a validation check on a field (Employee/Staff Number) there should not be duplicate entries in this field so i would like for a check to be performed when the next field is clicked then a msg displayed saying "Staff Number already exists" Any sample …

Member Avatar for omoridi
0
108
Member Avatar for IT21

hey im in the middle of creating a little program that allows a user to search and if in admin mode can delete and add a new record to the database i have my search part working fine i have made the query using the dataset.xsd query builder i used …

Member Avatar for IT21
0
120
Member Avatar for vvashishta

dear all I am trying to send a mail using Web.Mail in vb.net. It is working fine but when I try to attach the file using Upload File Control of asp.net, event is not getting fired on which the function is getting called to send mail.. sending the code too. …

Member Avatar for vvashishta
0
282
Member Avatar for holard

Hiya, Discoverer admin/desktop. There is this issue we do have in my place of work. We use a the tool called discover admin /desktop. The discoverer desktop is only accessible till 4:59pm exactly when it is 5:00pm it doesn't work and immediately it is 6:00pm it start working again. I …

Member Avatar for jwenting
0
83
Member Avatar for pjawili18

Hello, I'm writing a c++ code that reads a wav file and stores read values to a 1D array of integers. After doing some manipulation, I am able to write the values of the array to a new output wav. I use libsndfile library to do the reading and writing …

Member Avatar for Cesko82
0
479
Member Avatar for Stefano Mtangoo

Hi, I need to make application that will act as server and have clients. computers with client will get permission to go to internet or not via server. Only permission to go but they will connect directly on net (not a firewall). Its some sort of internet cafe management depending …

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for malinik

Hi, Hope the stated 2 snippets are logically same. But I am getting error for the second code snippet. Generally the ternary operator statement is similar to a if else statement. regarding the second code snippet, where by the continue keyword is used in the ternary opertor statement. It throws …

Member Avatar for malinik
0
117
Member Avatar for P.manidas

Dear Sir/Madam I have a program where I have used a small form as Input / Message Box in place of VB’s InputBox / MsgBox in a click event procedure i.e CmdSave_Click(). Though the code lines are executing in that procedure at a time, the global variable GblBox is not …

Member Avatar for P.manidas
0
309
Member Avatar for k1robert

I am trying to consume a web service using VS2008. The code below works in VS2005 but not VS2008 I, suspecting it's to do with WCF. Please can someone help me to solve the puzzle? 'Old code that works [CODE] Dim o As New MyWebService.Name Dim pr As New System.Net.WebProxy("100.0.1.1", …

Member Avatar for k1robert
0
924
Member Avatar for sarithak

hi frnds.. i am using while loop for getting more records..in this having [B]div[/B]..i need to change div name dynamically...but right now i cant do that code...plz change the below code..... [CODE] <DIV id="div_MoviePicRate" name="div_MoviePicRate" class="text2_grey" align="left">&nbsp; <IMG alt="I Agree, Your life Sucks" src="images/up.png" style="cursor:pointer" border="0" onclick="javascript:TF_RateThumb(<?php echo $p_id; ?>,<?php …

Member Avatar for i-hate-blue
0
136
Member Avatar for KPooja

Hello all, I am using IE. I have dropdown list with <select><option></option></select> on which i cannot provide custom tooltip on hover, because <option> will not support onmouseover event. so i am now supposed to create one custom dropdownlist [B]not using <select><option></option></select>.[/B] may be using combination of <table> and <textbox> on …

Member Avatar for KPooja
0
160
Member Avatar for hitro456

hi everyone, is there any way that I can programatically tell the user weather he/she is successfully connected to the database(SQL Server 2005). or connection failed. Code is written in C#. [code] string Connectionstring = "...."; sqlConnection con = new sqlConnection(Conncetionstring); con.Open(); [/code] how I can check programatically weather con.Open() …

Member Avatar for Renukavani
0
109
Member Avatar for lisles

I want to echo a message before redirecting.the message gets displayed but it disappears very soon.is it possible to increase the time of display before redirect.this is my code [code=php] if($result) {echo "Data has been edited"; redirect('edit.php'); } else { echo "<p>cannot update your data<p>"; } function redirect($loc){ echo "Reset …

Member Avatar for OS_dev
0
2K
Member Avatar for davegball

Hi I have two python lists. list1 is a \n delimited web proxy log file. list2 is a list of domain names. I want to cycle through the list of domain names and for every log file entry check if the domain name exists anywhere in the log entry. If …

Member Avatar for davegball
0
176
Member Avatar for Silent_Friend

Hiz.... Can anyone help me in getting a code for reading a file in C language and counting different characters in it and then make a histogram based on the obtained results....................................plz help :)

Member Avatar for abhimanipal
0
143
Member Avatar for ahp@aol.in

hi all, plz explain me. in following code[code] int main() { int arr[5] = {1,2,3,4,5}; printf("\n *arr = %d", *arr); printf("\n *arr = %d", *(++arr)); return 0; } [/code] why printf("\n *arr = %d", *(++arr)); this line giving error: '++ needs l-value'

Member Avatar for ahp@aol.in
0
128
Member Avatar for bs.sowmya

Hi, I have developed a web setup project that uses custom dialogs. I have developed a custom dialog using orca and have successfully been able to add the dialog created. But when i try to install its gives me the following error:- The installer has encountered an unexpected error installing …

Member Avatar for kvprajapati
0
266
Member Avatar for lionaneesh

Hello/Hi, I m new to this pool of C. I wass just reading a book named "C TUTOR" this book is gr8.. but i cannot understand the subscripts of 2D arrays... I find them pretty hard.. Plz tell me wat exactly the below programme mean of suggest me some simple …

Member Avatar for WaltP
0
287
Member Avatar for mrpenknife

Hi, I am developing a website which will allow users to click the <RUN> button to execute some reports. These reports are public functions inside a DLL created earlier, and function takes around a few minutes to a few hours to finish. Should I use the Asynchronous HTTP Handler to …

Member Avatar for kvprajapati
0
80
Member Avatar for OS_dev

I would like to be able to change the "wrap" attribute for a textarea with javascript. That is unless you can provide a cross browser solution in css2, giving me the ability to just modify the css attributes. Thank you in advance.

Member Avatar for OS_dev
0
266
Member Avatar for Web_Sailor

Hi, I am trying to compare 2 vectors to remove any kind of overlap. I have written a simple program but it gives a segmentation fault once I increase / decrease number of vector elements in both. Is there a better way of doing this. Especially suppose one of the …

Member Avatar for Web_Sailor
0
177
Member Avatar for ETP

Rational fractions are of the form a/b, where a and b are integers and b≠0. Suppose a / b and c / d are fractions. Arithmetic operations on fractions are defined by the following rules: a/b + c/d = (ad + bc) / bd a/b – c/d = (ad – …

Member Avatar for WaltP
0
160

The End.