199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ctsmith84

I have created an application that uses Microsoft.Office.Interop for Excel. I'm trying to implement both an OpenFileDialog and a SaveFileDialog. I got the OpenFileDialog to work, but I have run into a wall on the SaveFileDialog. Because when I get to the SaveFileDialog box, it lets me pick the location, …

Member Avatar for CsharpChico
0
609
Member Avatar for Tweekler

Hi, I just started a C++ class and I'm already having troubles with some parts. The instructions are as follows: "Create a C++ console applications to compile the following statistics on a list of integers: • minimum value; • maximum value; • median value; • arithmetic mean; • variance (population …

Member Avatar for m4ster_r0shi
0
132
Member Avatar for sandeepparekh9
Member Avatar for CsharpChico
0
278
Member Avatar for ag_17

This is a problem in a programming contest but I am stuck at it for the past two days Here is a link to the problem : [URL="http://www.techgig.com/codecontest_detail.php?type=advanced"]http://www.techgig.com/codecontest_detail.php?type=advanced[/URL] [CODE]void DrowningVillage(int gridSize,int villageHeights[][10],int origin[]) { int i=0,j,k=0,x=origin[1],y=origin[0],z=0,output1[100],Heights[10][10]; for(i=0;i<gridSize+2;i++) for(j=0;j<gridSize+2;j++) Heights[i][j]=1000; //For removing garbage values and for later comparisons for(i=0;i<gridSize;i++) for(j=0;j<gridSize;j++) Heights[i+1][j+1]=villageHeights[i][j]; …

Member Avatar for alwaysLearning0
0
152
Member Avatar for CeeGee

This is my program, but it is giving me an error stating a Operator '*' cannot be applied to operands of type 'double[]' and 'double'. Can some one tell me how to fix this program. The Chart-A-While phone company provides service to six codes and charges the following per minute …

Member Avatar for ddanbe
0
706
Member Avatar for TedMosby

I'm new to VB.net and am looking for some advice. To start with I need to develop something that I can import 3 different csv files into and then once I've created a query then return my results in a datagrid view. I'm not sure where to start with how …

Member Avatar for TedMosby
0
133
Member Avatar for dilequeno

I have created a program that reads data from a file and stores it into a vector. The data looks something like the following: 48.698635 -0.000000 0.000019 1.000000 -0.004386 0.002192 // Step 1 48.583797 0.114838 0.100000 1.099997 -0.005061 0.001945 //Step 2 48.457909 0.125888 0.100000 1.199994 -0.005854 0.001883 //Step 3 ect... …

Member Avatar for L7Sqr
0
886
Member Avatar for naveentj

Hello, I have a very weird problem. I have been using ReadFile() for reading data from a device connected to the PC over USB. As the data to be read is received in chunks of 64 bytes, always, ReadFile() is called with 64 bytes to read. However, when i have …

Member Avatar for Salem
0
171
Member Avatar for shaya4207

Hi guys/gals, I have a menu with a div displaying onmouseover, and hiding onmouseout, it works great except in IE if I click on the [ICODE]<select>[/ICODE] tag, it triggers the mouseout event, interestingly enough the same does not happen when I click on a text field.. Code Example: [CODE] <ul> …

Member Avatar for shaya4207
0
202
Member Avatar for Dannis86

I've got a website: [url]http://funnymash.com[/url] (this is not advertising). I need to add some cool features, like: When the photo who wins gets a green light and the other that loses gets a red light, how am I going to do this? Also I want to make it possible to …

Member Avatar for cfwebdeveloper
0
132
Member Avatar for Evesy

Hi, This is probably in the wrong place but I've looked everywhere for help, and nothing yet. I have a game save for an indie game, and I'm trying to edit the amount of coins I have. The method I have tried hasn't worked and I'm unsure why. Here was …

Member Avatar for roswell1329
0
196
Member Avatar for Cake2011

I have been racking my brain for days now and cannot get the button to work with my tell a friend script. <form> <input type="button" value="Close Window" onClick="window.close()"> </form> I'm trying to add it to my web site [snipped] Any help or guidance would be appreciated. Thanks Cake

Member Avatar for twiss
0
290
Member Avatar for andrewtrench

Hi. I have a problem that I am tearing my hair out to solve. I am trying to transfer tens of thousands of records into a sqlite db using the script below. The script seems to run okay and I can see the db growing as it runs to some …

Member Avatar for andrewtrench
0
2K
Member Avatar for dannny_00

So I have a program scenario for a postman who carries out an experiment: 1. He has mailboxes numbered 1-150 all of which are 'closed' 2. Starting with mailbox 2, he 'opens' all even-numbered mailboxes, leaving all others 'closed' 3. Next, beginning with mailbox 3,goes on to 'open' every third …

Member Avatar for jon.kiparsky
0
136
Member Avatar for trivax

i m using gettext() method in getting text from the form and pass it to the sql query to record in the mysql database. when i don't enter any string for textfield (for eg: phone no.) , i get sql exception error.. here is my sql query in the code.. …

Member Avatar for Ezzaral
0
898
Member Avatar for Jsplinter

How do I invoke the int operator < instead of the int* operator < ? [CODE] vector<int*> pVec; std::sort(pVec.begin(),pVec.end(), /*????*/); [/CODE]

Member Avatar for Jsplinter
0
5K
Member Avatar for thecoolman5

hi, i have this code: [CODE]#include <iostream> #include <fstream> #include<cstdio> #include<cstdlib> using namespace std; int main (char argc) { for(;;) { fstream myfile; myfile.open("example.txt"); cout << "1: Write" << endl; cout << "2: Read" << endl; int n1; cin >> n1; if(n1 == 1) { string n2; getline(cin,n2); myfile << …

Member Avatar for raptr_dflo
0
2K
Member Avatar for prabhjitsw

Hi again,Guys.Here's my problrm. In [B]Appointments.php[/B] ,In the [B]Sector Drop down list[/B] when i select a sector,through AJAX i have selected the list of hospitals for the sector using [B]fun1()[/B] and displayed it back here in [B]appointsment.php[/B].Now that's ok. But when i try to acess the hospital select lists value …

Member Avatar for ko ko
0
157
Member Avatar for rickyfre

OK geniuses! I have to use python 2.4 and 2.5 here and my programs ideally work with both versions. This area of code was working in 2.4 and 2.5 versions until replacing my computer. Python did not get ported over so I reloaded with new downloads from the web. (both …

Member Avatar for rickyfre
0
399
Member Avatar for Ignatius88

[CODE]<script type="text/javascript"> function insertPreference() { var row = document.getElementById('voteTable').rows[0]; var cell = row.cells; var id = cell[0].innerHTML; var title = cell[1].innerHTML; alert(id); alert(title); } </script> <table id="voteTable" border="1"> <tr> <td id="id">3</td> <td id="title">This is an example of storing the table value into a database.</td> <td id="vote"> <input type="radio" name="yesorno" value="true" …

Member Avatar for twiss
0
2K
Member Avatar for ajst

Hi I have an app for Android phones. It is working as intended but when I receive a phone call the app is minimised(but still running) and I have to open the app again. I was wondering how do I make it so after the phone call it restores my …

Member Avatar for ajst
0
188
Member Avatar for Vern247

The following code is for a standalone applet that calculates a shipping rate based on a selected shipping method. Normally, the program would read the total price of purchases from the website but for the sake of this exercise, the user will enter the price on the applet. [CODE=java]import java.awt.*; …

Member Avatar for Vern247
0
168
Member Avatar for aspkiddy

Hi, I have some difficulty with my 'select' In my select/menu, I display all the options come from a table (table_db_email) in my database In this table ([B]tb_code_prmtn11_email[/B]) I have two field : [B]fld_email_id fld_name_email[/B] It works here is a code [CODE]<select name="email_adress_menu" id="email_adress_menu" class="valid" onchange="submit()"> <?php echo "<option selected=\"selected\" …

0
103
Member Avatar for Lygris

So I've been trying to convert CSV files to XLS. However, this line of code keeps giving me problems: [CODE] oExcel.SaveAs FileName:=FilePath_XLS(TableName), FileFormat:=xlNormal[/CODE] The FilePath_XLS returns correctly... I just can't figure out what's going wrong but it will not execute..

Member Avatar for Lygris
0
62
Member Avatar for abhi10kumar

How two AJAX functions can be called on an event of a control? I am using check box, on checked/unchecked I want to populate combobox and want to show records in a DIV.. Please give complete code ..

Member Avatar for ko ko
0
95
Member Avatar for liora

Hi! good morning! I am writing a program, that uses interaction between 5 processes(using signals), I am trying to use in one of them- gets command to get a command from the user. And it seems that gets isn't working.. Maybe one of the other processes interrupts the work of …

Member Avatar for Ancient Dragon
0
100
Member Avatar for anandunics

Hi All, I am new to XML,XSLT. I have been assigned to task of Generating HTML pages based on the XML file & the condition is No Hardcoding of Nodes and other details. My XML file is of the below struct: Node inside Nodes , and those nodes would contain …

Member Avatar for anandunics
0
1K
Member Avatar for whin_lopez

Hi im new to sql server 2005 and i have a big problem. i want to delete a record having the same name and surname Here is my table named Students StudID FirstName LastName 1 Erwin Lopez 2 Archie Lopez 3 Lobanz Lopez 4 Erwin Lopez 5 Chie Lopez 6 …

Member Avatar for BitBlt
0
190
Member Avatar for vishalrane

I am getting this error when i try to connect to the server... Hot to rectify it... "This version of Microsoft SQL server Management Studio Express can only be used to connect to SQL Server 2000 and SQL Server 2005 servers. (Microsoft.SqlServer.Express.ConnectionDlg)

Member Avatar for Netcode
0
114
Member Avatar for newcoder310

Guys, I want to get good at servlets and JSP .... please tell me what all I should do to achieve this ..... I know that theory alone wouldnt help me .. so what kind of stuff do i need to practice ..... and where can i find them Thanks

Member Avatar for newcoder310
0
65
Member Avatar for BattlingMaxo

Just wanted to tell some of you that are struggling with programming there is an alternative, Blender game engine. It's easy and fun to use. No coding required. One of te great advantages is speed, a 3d game can be made in hours or days. you don't need to compile …

Member Avatar for BattlingMaxo
0
233
Member Avatar for Mujahid158

Hello, I'm using Google Maps to show houses listings on the Google map. I'm also using AJAX to allow user to customize search parameters. Map is showing fine but the houses listings on the map is not working. Moreover, I'm getting the following pop up error; [url]http://imageshack.us/photo/my-images/857/screenshotpll.png/[/url] I'm also sharing …

Member Avatar for pritaeas
0
221
Member Avatar for zachattack05

Still working to figure this stuff out :) My question is, is it possible to set a combination of columns with a unique constraint? For example: [CODE] ColumnA | ColumnB ----------------- Value1 | Value2 <- OK Value1 | Value1 <- OK Value2 | Value1 <- OK Value2 | Value2 <- …

Member Avatar for zachattack05
0
105
Member Avatar for patrickm129

Hi all! I'm a new to PHP and I embarked on a making a small store. One part of this involves making a form to add new products, and tables for categories. But I am getting this error: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' on line …

Member Avatar for rotten69
0
2K
Member Avatar for stan_l

I am trying my first PHP CLI using cURL, and simply want to complete a login to an HTTPS site. The site HTML is simple: [CODE]<body> <div class='plain-header'> <img src='/images/logo.jpg' /> </div> <div class='login-form'> <form method='post'> <table> <tr> <td class='fieldname'>Username:</td> <td> <input name='login' type='text' /> </td> </tr> <tr> <td class='fieldname'>Password:</td> …

Member Avatar for pritaeas
0
159
Member Avatar for Shantanu88d

I want to find frequency of all words in a given string. I wrote this code, but it is not giving correct output. Plz help [CODE] <?php //string here $wordsArray = "Hello world hello world this is hello world"; //echo($wordsArray); //function here $startPosForWord; $endPosForWord; $wordToMatch; $word; $scannedWords; $occurance = 0; …

Member Avatar for edwinhermann
0
3K
Member Avatar for haimz
Member Avatar for edwinhermann
0
98
Member Avatar for perlnoob

Please Help me to extract the inner table to the outer table so that it will not have table within table because it is not good data.. thank you Raw Data [CODE]<item> <pre> <table width="100%" border="0" cellpadding="2" cellspacing="2" bgcolor="#eeeeee"> <tr> <td><p>"Gratitude for the abundance you have received is the best …

Member Avatar for k_manimuthu
0
141
Member Avatar for Rsby

Hi, i moved my site to a new server yesterday and my booking form is not working since then. I have html pages with a form action button as below; <form action="http://mydomain.com/tour_form.php" method="post" style="margin:0 0 0 0;"> <br> <input name="tn" type="hidden" value="product name"> <input type="submit" class="book" value="book now"> </form> and …

Member Avatar for urtrivedi
0
163
Member Avatar for winecoding

My program includes a code segment as following: [CODE]for (int j1 =0; j1<2;j1++) { for (int j2 =0; j2<2;j2++) { System.out.println("j1="+j1+"j2="+j2+" "+temp1.get(j1)+"----"+temp2.get(j2)); if (temp1.get(j1)==temp2.get(j2)) { System.out.println("find match"); } } }[/CODE] The program prints out sth like j1=0j2=0 7698380----7698380 the difference is 0 j1=0j2=1 7698380----7726365 the difference is -27985 j1=1j2=0 7726365----7698380 …

Member Avatar for JamesCherrill
0
177
Member Avatar for vedmack

Hi I'll describe the following scenario: I got a table with td's and each of the got onchange and onclick when i change value of a td and click on other td i get the onchange event(of the first td) being fired and then the onclick (of the other td) …

Member Avatar for Airshow
0
100
Member Avatar for Choucas35

Same problem but with a file !! I have a file on a web site read by an applet. This file is now "corrupted". The applet can't read, the editor of this fiel can't read ! I use serialversionids for my own classes but I don't subclass all the classes …

Member Avatar for JamesCherrill
0
135
Member Avatar for Slavrix

hey ive mostley got this working however im not sure if im reading the binary file correctly because for some reason its playing up, anyone able to give it a look over ? also i know in my sort function, there is an issue with the comparing of the values …

Member Avatar for Slavrix
0
110
Member Avatar for apanimesh061

I am trying to install SOL Server 2008 but, I have not yet been able to get Windows Powershell that is compatible with Windows Vista Ultimate ...... Please help !!

Member Avatar for sandeepparekh9
0
94
Member Avatar for bhagawatshinde

Hi all, I am generating a html report displaying the records. In that report their are 10 rows and 4 columns. In 4th column i am adding the button. Now i want to use button click event i.e onclick() . 1) how i call the javascript function/Javascript. 2) how can …

Member Avatar for bhagawatshinde
0
618
Member Avatar for katharnakh

hi, why explicit cast is *not* required here? [icode]static Float f3 = new Float(5.5); //causes compile-time error b'se, by default floating-point literal type is double[/icode] but requires here, [icode]//static Short sh1 = new Short((short)12); static Short sh1 = new Short(12); //causes compile-time error b'se, by default integer literal type is …

Member Avatar for naveenreddygine
0
165
Member Avatar for @Kui

Hi. I have a datagridview on a form that displays values generated in a for loop when a user presses a button. Here's the code. [CODE] Dim i as Integer Dim Period as double Dim rate as double Dim interest as Double Dim amount as double Dim payments as Double …

Member Avatar for winkler
0
112
Member Avatar for somon

Hi everyone; I need some help Im want to write a WIndows service C# app which will check some urls and choose the one with the lowest ping (the one with high data transfer speed) stream data from that server, and alse check all other servers and write in log …

Member Avatar for jfarrugia
0
389
Member Avatar for UtaChan

Let;s say I declare [CODE]arr db 1,2,3[/CODE] How do I know arr's size afterwards? is there a command for it? I know there is something about arr-$ or something that I can declare in the ds segment but I think it works for strings only...

Member Avatar for UtaChan
0
8K
Member Avatar for RobotFX

Hello Is there a way to disable the php error logs per directory, if it is enabled globally?! I have this htaccess but it seems not to work: [CODE]<IfModule mod_php5.c> php_value display_errors 0 php_value allow_url_fopen 0 php_flag display_startup_errors off php_flag html_errors off php_value docref_root 0 php_value docref_ext 0 php_flag log_errors …

Member Avatar for RobotFX
0
173

The End.