199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for deepas

I have to insert certain data in excel to sql database on weekly basis & also has to dump a report shown in gridview control to excel so can anyone help me to import data from excel to datagrid view so that user can upload in one click.And how to …

Member Avatar for LizR
0
120
Member Avatar for tuse

Hi! I am using a code to echo a row in a database table using ajax with PHP. The code is working correctly. The ajax will send the response text as follows- [code] document.getElementById('outputText').innerHTML = httpObject.responseText; [/code] My question is how can I retrieve individual fields into separate Id's?

Member Avatar for tuse
0
176
Member Avatar for Enjoy

Hi all, I want to retrieve selected item from listbox in a jsp page and send it to a servlet. I am not able to get selected value. Can u please tell me how to get selected value. In servlet i am trying to get the selected value by using …

Member Avatar for stephen84s
0
537
Member Avatar for rtmarch

so i have been sitting here for about 2 days finishing this thing and i still have one error left and i am having a hard time fixing it 1>k:\c++\energy bill part 3\energy part 2.cpp(119) : error C2059: syntax error : ';' here is my code thanks for your help …

Member Avatar for TheBeast32
0
125
Member Avatar for c_skyscraper

Hi guys, This is me, novice programmer to Java. i have a very simple question. can i change Font of a Label? for example i have a label: Label l1 = new Label("Welcome To Java"); now what i want is to be able to change the text(Welcome to Java) to …

Member Avatar for c_skyscraper
0
95
Member Avatar for Creator07

Hello, I'm still a C beginner. I am trying to make a simple code for searching a string in a doc file. I want to search for a name in the "Employee Database", and display the employee data no,name,desgnation,reg no.,Projects worked. The template in the file is as follows: [CODE]Employee …

Member Avatar for devnar
0
109
Member Avatar for freshfitz

I am pulling info from zillow and then setting a price based on sq ft of the house. I am also using zillow to pull lat and lon to pull up a google map on the property the problem in some homes don't have sq footage and my cold fusion …

Member Avatar for freshfitz
0
172
Member Avatar for shuey79

Hey, I wanted to know how I could create custom forms in VB.NET such as: [URL="http://www.oobox.com/music/graphics/InstrumentTunerV2.gif"]http://www.oobox.com/music/graphics/InstrumentTunerV2.gif[/URL] It seems like all the programming I've done in .Net has the typical square edged forms. Is this even possible in .Net or is it some other language? Thanks

Member Avatar for waynespangler
0
117
Member Avatar for dizid

hi :icon_neutral: , I want to make a radio button checked if the form is already submitted. The form and output are on the same page. I have 2 (later more) radio buttons and i want the form to 'remember' the state of the button, e.g. insert a checked="checked" text …

Member Avatar for dizid
0
120
Member Avatar for hydrobat

Greetings. I'm a python noob and I'm stuck with some coding. Say you have a list with a number of elements, some of which are the same. For instance: mylist = ['blue', 'red', 'green', 'green', 'red', 'red'] Is there a way to return how many times each string occurs in …

Member Avatar for hydrobat
0
118
Member Avatar for knharp3

[code] #include <iostream> #include <cmath> using namespace std; int main () { float leg1, leg2, hyp; cout << "Enter one leg "; cin >> leg1; cout << "Enter one leg "; cin >> leg2; if ((leg1 < 0) || (leg2 < 0)) hyp = 0; else hyp = (sqrt((float)leg1*leg1 + …

Member Avatar for ArkM
0
139
Member Avatar for Grub

Hi, I am writting code for a Jtable. Now in this Jtable I list file files based on different attributes, including CRC Hash. Now I have a table that has 6 columns. the data Model extends the Abstract data Model. In my data Model I have two particular methods for …

Member Avatar for quuba
0
184
Member Avatar for LightSystem

Hi. Im working on a project with a relative size and Ive run into a deadlock, I need some advice in how to proceed. I have a server that creates multiple threads to handle its clients, but each thread must serve a client multiple times, here is the thread handling …

Member Avatar for LightSystem
0
89
Member Avatar for kshrini

Hi All, Can anyone upload a multilingual (English & Chinese) vb6 application? I've tried but in resource file it shows '???' for chinese strings. Regards, Shrini

Member Avatar for kshrini
0
231
Member Avatar for vatsa.devil

getting straight to the point, my program compiles fine.. it shows 0 errors and 0 warnings... but when i run my program, it just crashes.. u know the usual dialog box with buttons like send dont send and debug.. .. here's the code.. [CODE] // include the basic windows header …

Member Avatar for jbennet
0
212
Member Avatar for mrboolf

Hi all there. I was given the task to implement a Subset class with a few function. It should be structured so to contain the original set and make it possible to generate all subsets. Right now I'm focusing on the "generate all subsets" part. I've done a little searching …

Member Avatar for mrboolf
0
744
Member Avatar for IT_Techno

hi every one i have c# project every time i need to install my project at any computer i need to install crystal report and dotnet framework 2.0 at that computer before . that cost alot of effort and time is thier any way to include the dotnet framework inside …

Member Avatar for LizR
0
119
Member Avatar for latour1972

can someone help me for this cuz I dont know what to do [code=c] #include<stdio.h> #include<math.h> /**RLC Circuit**/ void main() { float v, r, l, c, f, i; long double Xc, Xl, Z, Vr, Vc, Vl; const double pi=3.1415926535; printf("Enter v="); scanf("%d",&v); printf("Enter r="); scanf("%d",&r); printf("Enter l="); scanf("%d",&l); printf("Enter c="); …

Member Avatar for Creator07
0
2K
Member Avatar for b007

Hi, I just add a GridView with Edit option. I connected it to DataSource. Now, one field is a date, so I convert it's column to a template and added in the editItem template an ajax calendar extender which connected to the Texbox and works by clicking a button which …

Member Avatar for b007
0
152
Member Avatar for sumitbaks

Hi All, I have created a setup project for a WPF application using VS 2008. Now if reinstall the same version again the default settings are not overwriting the user made settings. Suppose my project while installation creates an xml file. The user can change that file. However if I …

Member Avatar for LizR
0
145
Member Avatar for cristinel

Hello, I have a problem creating a template class with copy ctor and cast operator to class of base template (using gcc 4.2). The program compiles if only one of them is defined but is not compiling if both (copy ctor and cast operator) are defined. The compiler error is …

Member Avatar for cristinel
0
186
Member Avatar for karthi_selva

Hi, i created run time treeview. i do't know how to collects the datas from that treeview. please send the syntax to me. i am searched in google but i m not get any relevant information. Regards, Karthikeyan S

Member Avatar for LizR
0
96
Member Avatar for IrishUpstart

So I got this question where we are given a data (txt) file. We need to read it into an array, then report the first, fifth, and last entries of that file. Here is the code that I have thus far. It's reading the first, but the other two are …

Member Avatar for devnar
0
93
Member Avatar for Dell XPS

i have made a tic-tac-toe game for my HTC touch and it runs pretty well. now i only need to figure out a way to add it in the pda's games(so that i can have it on start menu) instead of opening the explorer to find the exe each time... …

Member Avatar for Dell XPS
0
105
Member Avatar for Stefano Mtangoo

Hi All, For long now have tried to get Python bindings and none is there. jlgm suggested me to try ctypes and I dived in. But there are few examples on using ctypes for new bees like me. I tried to take lame_enc.dll (The file made me to learn ctypes …

Member Avatar for Stefano Mtangoo
0
888
Member Avatar for Stefano Mtangoo

Hello All, can someone tell me exactly what is done by this function? Thanks alot!

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for bradbobak

This is my example code: [code] #include <vector> std::vector<int> v; int main(int, char **) { std::vector<int>::const_reverse_iterator iter = v.rbegin(); if (iter != v.rbegin()) // or v.rend(), whatever, just problematic { } } [/code] Is this supposed to compile correctly? Using g++ 4.2.4 it does. Using [quote]sbox-i686-linux-gcc (GCC) 3.4.4 (release) (CodeSourcery …

Member Avatar for bradbobak
0
125
Member Avatar for Trekker182

I'm a little confused on umasking. The way I was shown to do it manually is to take whatever number the umask is, say 123, turn that into binary for the permissions. 001010011 flip the bits 110101100 and then take away executability 110100100 thus I get rw-r--r-- but when I …

Member Avatar for eggi
0
162
Member Avatar for littlestone

Some of my source files include the following code. [code] #ifndef AAAAAAAAAAAA #define AAAAAAAAAAAA #if !defined(__lint) && !defined(_lint) XXXXXXXXXXXXXXXXXXXXXXXXX; #endif #endif [/code] I want to delete line1, 2, 6. So, Could somebody tell me how to do it? thank you in advance!

Member Avatar for eggi
0
143
Member Avatar for Superstar288

hey everyone im making an gui in C++ which needs to retrieve windows registrys such as windows version etc. however im stuck on some code i was hoping for some help please. [CODE] void GetSystemInformation(void) { float fprocessor; HKEY hKey; DWORD processorspeed; DWORD datasize; RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Hardware\\Description\\System\\CentralProcessor\\0",0, KEY_QUERY_VALUE,&hKey); RegQueryValueEx(hKey,("~MHz"),NULL,NULL,(LPBYTE)&processorspeed,&datasize); fprocessor=float(processorspeed); if (fprocessor>1000) …

Member Avatar for dougy83
0
160
Member Avatar for efus

Hi. I am working on a project where I convert postfix notation to infix and evaluateing it. This includes building an evaluations tree (binary tree). I get how to create nodes, but how do I get the whole tree? This is the code I have so far: [code=java] import java.util.*; …

Member Avatar for quuba
0
112
Member Avatar for nanna

Hi, I need to show stars equal to the each number of an array. I think I need another for statement. I`ve tried, but in vain. I do not know which variables should be included in this for statement ?? the output should be : 0|****(4) 1|**(2) 2|*********(9) and so …

Member Avatar for nanna
0
1K
Member Avatar for isaackhazi

I have converted around 395 Excel survey forms to MS SQl database with that many tables. Well, I run a script to assign a primary key on all the tables on my database.First I set the column property to NOT NULL and then i assign the primary key to it. …

Member Avatar for omrsafetyo
0
148
Member Avatar for rtmarch

ok so i got my code done but my logic in my code is off and my outputs are not coming out the way they should. so the following is a notepad file which is being read into my program 1231 washington, george 300 3431 adams, john 600 5767 jefferson, …

Member Avatar for vmanes
0
118
Member Avatar for omrsafetyo

I would like to create a variable in my trigger - @DBNAME. When the trigger executes, this value should be set to the name of the database it was executed in. E.g. for the master database the value of @DBNAME would be master. How would I go about figuring out …

Member Avatar for omrsafetyo
0
133
Member Avatar for JCasso

Hi, I am programming a pos terminal by using C Programming language. I cannot use strtod() or atof (since it just calls strtod in it). Any advices on converting string to double without using these functions? Thanks in advance.

Member Avatar for ArkM
0
1K
Member Avatar for dewhickey

I have code to propagate a drop down list that displays people's names. The problem is that the first name and last name are separate fields in the database, and I can only get the drop down list to display one of them. Here's my code: [code=php]<?php $result = mysql_query("SELECT …

Member Avatar for dewhickey
0
123
Member Avatar for rooparaj

I am facing problem in asp.net. Problem is : Session objects is not working properly.in the sense some times it will work some times not(getting empty). Plz Can anyone help me in this . Its very urgent !!!!!! Eg: In web.config - In <Sessionstate timeout=30>,but before 30 minutes only its …

Member Avatar for johnly
0
334
Member Avatar for ebiz

Hi. I currently have set up a GUI to have buttons on, linking to all my other classes. I am wondering how I would put the date and time at the bottom of the JFrame/JPanel. How would I do this, and will I put it within my GUI class, or …

Member Avatar for peter_budo
0
3K
Member Avatar for serleon

Privet/hello/salut/halo/hola! I have the following code: [code=c] #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; using namespace Finder; int main() { ifstream in( "1.dat" ); Event *P = new Event( sphere ); double px, py, pz; while( in>>px>>py>>pz ) { P->AddParticleRaw( px, py, pz ); } in.close(); …

Member Avatar for StuXYZ
0
403
Member Avatar for OutOfReach

Hey all, I am a C beginner. My problem with my code is that I get a segfault. Here's my code [CODE=C] #include <stdio.h> struct studentInfo { int totalClasses; float GPA; char studentName[41]; }; main() { int numOfStudents, i; printf("How many students would you like to take account of? "); …

Member Avatar for OutOfReach
0
120
Member Avatar for Stefano Mtangoo

Hello All, I was trying to make dll to play with ctypes in python. I'm not good at C++ and I studied it lightly looong ago and only familiar with very simple thing. After search the net I found smo instructions but when I try to Build (with CodeBlocks), I …

Member Avatar for Stefano Mtangoo
0
366
Member Avatar for Dick Kennedy

I'M running a site on PHP 5.2.6, Apache 2.2.9 (shared hosting). Most of the site uses a CMS (MODx) but I have one section using home-rolled scripts. I have a file that gets included into these that checks user status by looking for the MODx session vars. On one script, …

Member Avatar for Dick Kennedy
0
118
Member Avatar for mails4vijay

i need to execute one insert query and two update query, in one single button click. how can i start write code in vb.net windows application.....

Member Avatar for Jx_Man
0
122
Member Avatar for nedsnurb

hi guys just a query basically I have created the following program, which takes a word then shows the position of a certain character. Now what I need to do is then print out each characters position in the array: so for example T E S T 0 1 2 …

Member Avatar for Lerner
0
84
Member Avatar for tori10

the program that im having problems reads in a txt file sums both arrays of data, puts the sums into some equations and out puts the results in a txt file. [CODE]#include <iostream> // include all headers needed here #include <cmath> #include <cstring> #include <cctype> #include <fstream> #include <cstdlib> using …

Member Avatar for tori10
0
164
Member Avatar for dseto200

How do I get python to pick a random word? Do I have to link it with a dictionary? If so how do you do that. Exercise from Python Programming for the absolute beginner Create a game where computer picks a random word and player has to guess the word. …

Member Avatar for woooee
0
2K
Member Avatar for serkan sendur
Member Avatar for Fractilion

There's two different things I'm trying to figure out how to do with Python. First, when I want my program to go through a function, which then moves on to another function..... so say I start with main(). I have variables A and B. I go on to function Do_This(), …

Member Avatar for bvdet
0
111
Member Avatar for nouryn
Member Avatar for Ezzaral
0
165

The End.