199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
[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 + … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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="); … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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... … | |
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 … | |
Hello All, can someone tell me exactly what is done by this function? Thanks alot! | |
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 … | |
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 … | |
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! | |
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) … | |
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.*; … | |
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 … | |
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. … | |
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, … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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(); … | |
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? "); … | |
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 … | |
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, … | |
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..... | |
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 … | |
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 … | |
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. … | |
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(), … | |
Hi,I need to edit in a file without deleting all the data. Thanks |
The End.