199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for davesmith437

Hi all, this is what I've built: A dynamically built form which selects the questions depending on the section of the form it's in. The problem: Each form input is called `answer[]` passing the selected value to an update query $updateSQL = sprintf("UPDATE tblsite SET sitetypeid=%s, pctid=%s, contactname=%s, address=%s, postcode=%s, …

Member Avatar for davesmith437
0
223
Member Avatar for nikki05

Hi, I am able to delete the data from database. My Problem is how to delete a file from the folder that is linked to the database using c#, asp.net. Below is my code snippet for your reference. I would greatly appreciate your help/suggestion. Thank you. protected void lnkdelete_Click(object sender, …

Member Avatar for Mitja Bonca
0
318
Member Avatar for toluwanimibosun

could you help write a c++ program da allows 10 players to play the game of dice and displaying the winner with highest score

Member Avatar for Lucaci Andrew
0
115
Member Avatar for poloblue

Good Afternoon, I'm having trouble with loops that deal with enumeration. So far I have this code #include <iostream> #include <fstream> #include <string> #include <cstring> #include <cmath> #include <cstdlib> #include <iomanip> using namespace std; int main( ) { //enumerate type definition enum weekDays {Monday, Tuesday, Wednesday, Thursday, Friday, Saturday,Sunday}; //variable …

Member Avatar for Lucaci Andrew
0
302
Member Avatar for hatebin

hello ! I'm working on a Registry page for my webSite in ASP and I'm trying to get results of a prcedure from my database which is checking if there is any duplicates of loginNames or emails when there is inserting to Dbase. The problem is I can't finde any …

Member Avatar for poojavb
0
200
Member Avatar for dualzNZ

Hi all I have recently watched a tutorial series from PHPACADEMY called the advert rotation script series. I have found a small problem, the problem is that if any of the adverts have expired then the rest will not show. does anyone have any solutions for this issue, that if …

Member Avatar for dualzNZ
0
6K
Member Avatar for triumphost

Why does this say shaddowing? If I change my member X and Y to `_X, _Y` then when I access my class via the dot operator, it shows FOUR values.. Current Class: class Point { public: int X, Y; Point(int X, int Y); ~Point(); }; Point::Point(int X, int Y) : …

Member Avatar for triumphost
0
127
Member Avatar for priyadarshana

Hello, I am working on desktop application. I had created number of dynamic textbox and label and I want to save that data on clicking the save button. If any question, if you did not get my point clear than please ask. Its urgent. Please Help!!! Please give me suggestion …

Member Avatar for CurtisUN
0
606
Member Avatar for Stuugie

I would like to invoke a click on a link from a link that is generated by an HTML query. I am attempting to program an application that queries a website and am getting hung up where I download the .csv that is loaded by the website. Here is the …

Member Avatar for Stuugie
0
274
Member Avatar for JE821

So the program makes an inventory from a cvs file. The cvs file consists of dvds and books. here is the code: #include "StdAfx.h" #define _CRTDBG_MAP_ALLOC //for memory checking #include <iostream> #include <stdlib.h> #include <crtdbg.h> #include <iomanip> #include <fstream> #include <string.h> #pragma warning(disable: 4996 4018) using namespace std; #define COPYSTR(TARGET, …

Member Avatar for JE821
0
402
Member Avatar for triumphost

I'm trying to figure out why I should convert all my unsigned ints/shorts to size_t. I'm doing the things below but I'm not sure which one to use and which type to iterator my for-loop with: unsigned short Size() { return vector.size(); } int Size() { return vector.size(); } unsigned …

Member Avatar for triumphost
0
204
Member Avatar for idomarko

hey! i need a quick answer.... how can i move the letters so that they will start from right to left and ***not*** from left to right? i writing in hebrew and i looks weird if it start from left to write! for example: that how it should start: שלום …

Member Avatar for ChrisPadgham
0
319
Member Avatar for hwoarang69

i get erros here: Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\a_upload\zoom.php on line 48 <?php $visitors = 0; $handle = opendir(session_save_path()); while(($file = readdir($handle)) != FALSE) { if($file != "."&&$file !="..") { if(ereg("^sess",$file)) $visitors++; } } echo "there are $visitors online"; ?> here is my full code if you need …

Member Avatar for hwoarang69
0
279
Member Avatar for harsh01ajmera

How can i check or see the print preview of datagridview where my file is an access file and pls give me sample code.

Member Avatar for CurtisUN
0
216
Member Avatar for SolTec

Is there a way by naming convention say for example to clear all textboxes with a "txt" name prefix in a form that has multiple textboxes? Or, am I going to have to name each textbox individually and use either "" or string.empty? Thank you in advance for any and …

Member Avatar for Pie46
0
9K
Member Avatar for abrarsyed
Member Avatar for Trentacle
0
225
Member Avatar for Diamonddrake

A couple of months ago I had wanted to keep a form active as long as it was visible, I couldn't find any help with this, a couple of forums led me into the dirt, as everything they suggested failed. I decided against the feature, but not before I found …

Member Avatar for chrisrmead
0
3K
Member Avatar for valestrom

I can't figure out how to convert my int value back to a string for use in a textbox. I already pulled it out converted it to int, did the equation now I just want to flip it back to display in a textbox. private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) …

Member Avatar for valestrom
0
3K
Member Avatar for pythonbegginer

I have a text file named "multipoles.txt", i took a screen shot of it ( [url]http://img193.imageshack.us/i/textf.jpg/[/url]) so i can explain myself better. Ok so I basically want to go in the file and get the data from the third column below the text that says Electronic Charge Electrons. The numbers …

Member Avatar for snippsat
0
6K
Member Avatar for sanket044

SELECT sum(GoodsRcpt.PurchQty) FROM GoodsRcpt where GoodsRcpt.GlsClr=" WHITE"; SELECT count(Prescriptions.SrNo)/2 FROM Prescriptions where Prescriptions.GlsClr=" WHITE"; SELECT sum(GlassDamage.DamageQty) FROM GlassDamage where GlassDamage.GlsClr=" WHITE"; Combine above three query and the equetion should be like, (result of query1) - ( result of query 2 + result of query 3) its urgent... Thank you....

Member Avatar for sanket044
0
110
Member Avatar for hwoarang69

i am only display 10 images on this page but it takes like 4sec to load. which is alot, i should take like 1 or 2 sec to load. any thoughts? i also tired joining sql <?php include("include/header.php"); //check, if user is loged in or not if(isset($_SESSION['username'])) /*** user is …

Member Avatar for almostbob
0
111
Member Avatar for malsmit2014

package furniture; import java.io.*; import java.util.*; public class Program3 { public static void main(String[] args) { //array of 10 Furniture object references String[] furniture = new String[10]; String filename = "furnitureData.txt"; Scanner input = null; try{ input = new Scanner(new File(filename)); }//end try catch(FileNotFoundException e){ System.err.println(e); System.exit(1); }//end catch }//end …

Member Avatar for DavidKroukamp
0
307
Member Avatar for tudorH

Hi, So this is my first time creating a web service and I am a bit stuck. This is the code I have used for my web service: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Data; using System.Data.SqlClient; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] …

Member Avatar for advisor999
0
245
Member Avatar for shibu2all

i am unable to understand the code. can anyone please explain. printf("%d",i & 1) wat is the &1?? int i; for(i=0;i<10;++i) printf("%d",i &1);

Member Avatar for shibu2all
0
116
Member Avatar for XodoX

How many lines will the following codes print out, and why? main() { fork(); printf ("Hello!\n") fork(); printf("Good Bye!\n"); } // main What's the fork() doing here? Does it change the number of lines that will be output? > > The purpose of fork() system call is to create a …

Member Avatar for Lucaci Andrew
0
261
Member Avatar for coolbeanbob

I know .NET is a Microsoft framework. I currently use Visual Studio 2008 for C++ programming in school. Am I using .NET? What is .NET? More specifically, is C++ a .NET framework by default? Does it just relate to the class libraries?

Member Avatar for nmaillet
0
100
Member Avatar for Rouf mir

I want to know the use of command-ine arguments in a program.Also can anyone tell me ,if the command-line arguments can be invoked in windkows systems or only in the command-oriented systems?Please help........

Member Avatar for Oxiegen
0
181
Member Avatar for nmaillet

I'm trying to create some custom styles/control templates for WPF. The only control that seems to be giving be any issues (so far) is the ScrollViewer: <Style x:Key="{x:Type ScrollViewer}" TargetType="ScrollViewer"> <Setter Property="OverridesDefaultStyle" Value="True"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ScrollViewer"> <Border Background="#404040"> <Border BorderBrush="#808080" BorderThickness="1" Margin="4"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="Auto"/> …

0
156
Member Avatar for triumphost

Currently I'm reading Multi-String values from the registry. These strings are double null terminated and single null delimiters are between each one. So below I have the following where these are declared as so: std::string KeyToRead, Result; DWORD KeyType. Now I'm returning an std::string aka Result. So I iterated my …

Member Avatar for triumphost
0
465
Member Avatar for schlulol

Hi, I've been working on a c++ game of connect 4. It uses a multidimensional array, and I have a function that is capable of checking if someone has won. However, ai is really bugging me. I've tried to do some research on this minimax thing, but I couldn't find …

Member Avatar for m4ster_r0shi
0
316
Member Avatar for srinath reddy

hello, can anyone help me. my blog home page is not getting crawled by the google adsense crawlers. it is showing crawl errors for my home page. can anyone help me in this issue. my blog is [www.codershunt.com](http://www.codershunt.com)

Member Avatar for JorgeM
0
163
Member Avatar for androtheos

I have a console application that I need to run a stored procedure in but I'm getting this error: a t S y s t e m . D a t a . S q l C l i e n t . S q l C o n n …

Member Avatar for Momerath
0
294
Member Avatar for lanyusea

I wrote two functions like that int absolute(int a) { return (a < 0) ? -a:a;} int absolute(int &a) { return (a = (a < 0) ? -a:a;} The two function have the same name and the same type, When I do like that: int main() { int a = …

Member Avatar for PrimePackster
0
172
Member Avatar for Rouf mir

Please help me in the matter of invoking the command_line arguments and using them in the arguments in the main program.i have done it as follows...now i dont know how to pass arguments using c++ and how to access them in the main program.Please help as soon as possible #include<stdio.h> …

Member Avatar for WaltP
0
103
Member Avatar for Niner710

I am trying to use the mechanize module to automate a task on the web. I am able to get the first form to submit correctly. After I submit the first form I would like to take the data from the second website(or form) I am taken to(after I enter …

Member Avatar for Lucaci Andrew
0
677
Member Avatar for khuzdaar

I have studied functions, pointers, recursive(I suck at it though), file handling(slightly), loops and a bit of data structures. My final project of my semester is due very soon. I chose othello. Before I was able to succesfully make hangman. Now, this is my first time that I am trying …

Member Avatar for faraz ahmad
0
1K
Member Avatar for lewashby

I'M just trying to work my way through the book "Head First SQL" but I can't seem to get it installed. I just need the simple DOS like pompt MySQL program to learn on. Here's what I'M getting when I try and install it. mysql-server-5.5-winx64:6 - Looking for valid template …

Member Avatar for waltersenekal
0
306
Member Avatar for Lomholdt

Hello. I recently finished my 1. semester in Computer Science, and got a good fundamental idea on programming in Python. Our exam assignment whas to create a game where we had to smash robots by clicking around with the mouse. The GUI was provided by our instructor. Now we newer …

Member Avatar for Lucaci Andrew
0
268
Member Avatar for GlenRogers

I need to search a Maps keys based on user input. So in a text field the user may type "M",then hit a button marked "search" this will bring up all keys that begin with M. Mike Molly Michael Michelle Marvin If they type "Mi" it will bring up Michael …

Member Avatar for JamesCherrill
0
112
Member Avatar for nquadr

# Excel VBA Lookup Help # Hi I am having trouble with my VBA Lookup function. I have created 2 workbooks which I have instantiated to wbOld and wbNew. I am taking a column from wbOld and comparing with a range in wbNew. I want it to return the second …

Member Avatar for nquadr
0
126
Member Avatar for divsok

How can I write document.write() functions inside a struts form. Although I give the id of each element in a javascript file, above js functions always write outside of the form. I need to add a line above of the s:textarea which is come from the javascript. How can I …

Member Avatar for Airshow
0
245
Member Avatar for SaaDwTk

Can someone help me to build a Function or Sub using HTTPRequest that makes a multipart post using that info? [CODE]-----------------------------23281168279961 Content-Disposition: form-data; name="ACAO" -----------------------------23281168279961 Content-Disposition: form-data; name="suppressValidation" true -----------------------------23281168279961 Content-Disposition: form-data; name="suppressErrors" true -----------------------------23281168279961 Content-Disposition: form-data; name="unidade" br.fumec.sinef.geral.bean.Unidade[codigounidade=1] -----------------------------23281168279961 Content-Disposition: form-data; name="curso" br.fumec.sinef.geral.bean.Curso[codigocurso=3106] -----------------------------23281168279961 Content-Disposition: form-data; name="epoca" br.fumec.sinef.geral.bean.Epoca[codigoepoca=2223] -----------------------------23281168279961-- …

Member Avatar for ARdeveloper
0
348
Member Avatar for sanju456

[COLOR=DarkSlateBlue]Hi all, Problem: Send mail is configured in my system and now i want to write a shell script using which i can send mail to my rediffmail account. Its little urgent & i will be very thankful if someone send me the code. regards, Sanjeev Kumar(sanju456@rediffmail.com)[/COLOR]

Member Avatar for sftranna
0
2K
Member Avatar for softnewdevel1

i am trying to write a C program to do the following: i have a file which has x, y coordinates given as two columns. now the program has to take the first x,y pair i.e. from the first line and check a database of roughly 10,000 data files which …

Member Avatar for Sokurenko
0
122
Member Avatar for Mayank Mathur

what command to use if i want to use both "from:" & "To:" field in same e-mail in Linux mail() supports subject , not "from" Sendmail() supports "from", not "subject" regards Mayank

Member Avatar for sftranna
0
625
Member Avatar for pandeysk_13

**hello all, i am creating a programme for my institute which helps in their administrative process. i am using visual studio(basic) 2010. which is connected with ms access database (abcdata.accdb) the database is having table called session with columns sessionID,sessioncode,sessionname. * sessionID data = 1,2,3,4 * sessioncode data = 13,14,15,16 …

Member Avatar for pandeysk_13
0
194
Member Avatar for muhammad ismail

I am working on Admin panel of Asp.Net Site.As usual first task in this case is of User Management.I dont know how to assign different roles to different users. i am using SQL SERVER 2005 on the back end. i dont know that either i create users from back end …

Member Avatar for Maryprogza
0
172
Member Avatar for hyung101

Can someone help me with a short program that calculates age, the user will input their birthday and the program displays the age..

Member Avatar for poojavb
0
3K
Member Avatar for jovillanuev

Hi Guys, My requirements: How do I get the overall average for the transaction given for every month. My Query: This is the last part of my CTE Query ) Select Partno ,SUM(Case When TransMOnth='January' Then Usage2 else 0 End) As Jan ,SUM(Case When TransMOnth='February' Then Usage2 else 0 End) …

Member Avatar for urtrivedi
0
130
Member Avatar for Goomba79

Hello, I am new to asp.net i have had some experience making windows in vb.net (VS2010) I am trying to get my web to query a database then I want to display some of the returned data. the code I have is.. Imports System.Data.OleDb Partial Class Demos_Iain Inherits System.Web.UI.Page Protected …

Member Avatar for poojavb
0
160

The End.