199,114 Archived Topics
Remove Filter ![]() | |
Hello. Currently i am creating a small application that works around packets. The packets are sent every 600ms. Now my quesition is this: Currently i have this (An example) [code="syntax"] public class Example { private int exampleInt = 0; public void setExample(int i) { exampleInt = i; } public void … | |
import javax.swing.*; import javax.swing.event.*; import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; import java.awt.geom.*; class proj extends JFrame implements ChangeListener ,Runnable,ActionListener //main class { // Declarations public int bottom; public Thread t; int padding = 4; JFrame f; JTabbedPane jt ,jt1; JPanel jp,jp1,jp2,jp3,jp4; JButton j,j1,j2; JLabel lab,lab1; JComboBox jcb,jcb1; //public … | |
I am trying to create a program that generates random passwords using the characters A-Z and the numbers 0-9. It will also have an input of what you want the length of the password to be. What I don't know how to do is to create a method to choose … | |
Hi, I retrieve all students from database with adding submit buttons along with them. For example; when i click on 3rd student’s submit button, it gives me information of last retrieved student. How can solve this problem? Note : All action is in same page. Thanks [code] <?php while ($myArray … | |
Hi frnds....... This is kishore.. i need to develope Controlpanel Webhosting.... So,plz tell me... freedownload source code urls for CP WEBHOSTING... Thanking You | |
The below program works fine for a input file that has only one line. but goes to an infinite loop for a multiline file. Kindly suggest. [code][COLOR="Red"] #include<iostream.h> #include<conio.h> #include<fstream.h> void main() { char data[10000]; int i=0; ifstream ofile("c:\\temp\\welcome.txt"); cout<<"File opened\n"; // clrscr(); ofile.seekg(-1,ios::end); while(1) { if(ofile.tellg()==-1) break; i++; ofile.get(data[i]); … | |
i have two text boxes with two date pickers. One text box and date picker for start date and another two for end date. First the values of two text boxes are current date.If we select a particular date using date picker the value will be changed corresponding to that. … | |
i am dynamically adding text box in gridview.now i enter a value in textbox and i want to compare this value with another textbox value in the client side through javascripe .can i do it. Pls help. | |
Hi, I have a textbox control in Footer Template within datagrid. I need to validate the textbox using client side javascript. When trying it, i got an error that the control not exist. I think the datagrid sets some unique id to the textbox at runtime. Please help me how … | |
The code below gives me "Warning: Wrong parameter count for mssql_bind() in" [CODE] $action="L"; $M_ExhibitionID=$_REQUEST[M_ExhibitionID]; $areaid=1; $LngCode="el"; $sproc=mssql_init( "sp_php" ); mssql_bind($sproc,"@action",$action,SQLCHAR,false,false); mssql_bind($sproc,"@M_ExhibitionID",$M_ExhibitionID,SQLINT4,false,false); mssql_bind($sproc,"@areaid",$areaid,SQLINT4,false,false); mssql_bind($sproc,"@lang",$LngCode,SQLVARCHAR,false,false); $GET_EXHIBITS=mssql_bind($sproc); [/CODE] what is my wrong? | |
Hi, I have textboxes and combos in a form with submit and clear button. When i submit all values in textboxes and combos remain same. How can i clear them when i click on clear button. Or reload the page? Thanks | |
Hey. The title displays the error and i was just wondering how i could fix it. Thanks! [CODE=C++]#include "resource.h" IDR_MYMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Stuff" BEGIN MENUITEM "&Go", ID_STUFF_GO MENUITEM "G&o somewhere else", 0, GRAYED END END IDI_MYICON ICON "menu_one.ico" [/CODE] | |
I am not sure how to prevent the padded characters within a string array from printing. The user inputs the information in function enterRecords() and then prints in outputLine(ostream &output, const Tools &record ) function. I am having issues with outputline when I try to print to screen and then … | |
I'm trying to find the moving average of 20 numbers at a time, being read from a list. This moving average then needs to be inserted into the list. Here is my code: [code]inplis = file(r'table.csv','r').readlines() outp = file(r'avg_volume.csv','w') import math emptyList = [] totalVolume = 0 counter = 0 … | |
Alright, I am currently creating a page that allows for the user to see a basic directory of user phone numbers and gives of variables. The issue I am having is that I have a link so that if you want all the users information you can click on it … | |
Hi, ive generated files from a text file to a checklist box. now i want to delete some of it, example i have anna on the first check box and when i check it and click on the delete command the name anna will be removed from the checklist box … | |
Hello guys! I am working with an PHP page that will generate an excel file. The flow is all transaction made should be generated in an excel file. Also if there is another transation, the new information will be appended in the same excel file. I have work on this … | |
Hi: i am new to C++.. can u help me write a simple program in C++ to take an input of words and just return them in the reverse order..just the words alone not the characters.. thanks Kavitha. | |
anybody have a browser compatible html entity decoding function? | |
I'm having problems creating an array with a dynamic size using new. Here is the relevant code: [CODE] enum LandCondition { Bad, Good }; //... int IMG_WIDTH, IMG_HEIGHT; LandCondition* land; //... land = new LandCondition[IMG_WIDTH][IMG_HEIGHT];//causes errors [/CODE] The errors VC++ gives me are: error C2540: non-constant expression as array bound … | |
I am having 2 main issues with this function: 1) For some reason my while loop is working but not correctly. If the user enters 0 rather than the while loop terminating and proceeding to the next line of code in the main function, the program begins to repeat infinite … | |
I hope I am in the right place. My Purchase Order Form has worked well for me until recently a spammer has started sending me stuff. I would like to make some changes to make it harder for them to use. I created the form with form maker pro. Part … | |
Hello, I am attempting to use RegisterClientScriptBlock and it is not seeming to work. Can someone take a look at my code? Here is my C# (which I have in my PageLoad) [CODE]var videoLoadScript = " var so = new SWFObject('player.swf','mpl','955',' 540','9');"; videoLoadScript += "so.addParam('allowscriptaccess','always');"; videoLoadScript += "so.addParam('allowfullscreen','true');"; videoLoadScript += … | |
Hi, I need to know this urgently. My friends like to use my software on their computers, and after they set it up with the setup wizard, when they run the actual program, half of them get an error on their computers saying 'The application has failed to start because … | |
Hi guys I don't request any code help, just want to know how they make windows with themes like this: [url]http://www.codeproject.com/KB/library/PrettyWinApiClass/DevStudioSmall.jpg[/url] or like office 2007 Do they do it with winapi, directx, .net or is it possible for all of em' And ehm, another question: does winapi have a future? … | |
Hi everybody! I wrote for my company one little test application: Frame , Pmw.NoteBook and few buttons. and one main button 'Start' under NoteBook which starts process depend on name of Pmw.NoteBook... everything is fine , the problem is each of the processes run ~10 min and all this time: … | |
How to get url images in picture box/image box using Visual Basic 6.0 dekstop application? Plz Help me..... | |
I am creating a form that will have numerous labels in it, enough so that it will go beyond the length of the form and screen size. How can I set a scroll bar to work with the form and also, I can't extend the form itself far enough to … | |
Hello I'm new to PHP, here's what I'm haveing trouble with. I'm using php to display a gallery in a directory and delete the images, but I get an error when I try to use the delete button and I don't know why or how to fix it, can anyone … | |
Hi... I have a sql 2005 database called KN_online.. I have a stored procedure called Account_Login [code] USE [KN_online] GO /****** Object: StoredProcedure [dbo].[ACCOUNT_LOGIN] Script Date: 07/16/2008 01:01:34 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO create PROCEDURE [dbo].[ACCOUNT_LOGIN] @AccountID varchar(21), @Password varchar(13), @nRet smallint OUTPUT AS DECLARE @Nation … | |
how do I display a random word from an array of six words | |
i am new to java and i was trying to solve a program, a) i wanted to print marks scored by 3 students in 3 subjects. b) i wanted to get the total marks scored by each student and find out the highest total marks scored. c)I also want to … | |
hi , Can someone help me with a program if possible .. I have similar files with file name like prog1.in , prog2.in .... progr100.in which has some 47 rows of data in a txt format (almost same files ). I have another file name file1.txt having 100 rows just … | |
Hi all and thanks for reading. I have a simple script that works in IE and Safari, but not FF. Basically when I click a button I want an image to appear dynamically via JS. This is what i've got (watered down) [code] **JS function called Contact** var loadingImg = … | |
Hello I need to get data from a database and write the db dump to a server as txt file any ideas? | |
hai i have an application running on AIX 5.2 in C++ when iam trying to execute the application, everything is going fine, but on exit its getting core dumped, and the stack trace is as shown below Illegal instruction (illegal opcode) in . at 0x0 ($t1) warning: Unable to access … | |
I have here the the cpp file named as clock [code=cplusplus] #include <iostream> #include <fstream> #include <string> using namespace std; #include <cstdlib> int main() { // ofstream constructor opens file ofstream outClientFile("clients.dat", ios::out); if(!outClientFile) { cerr << "File could not be opened" << endl; exit(1); } cout << "Enter the … | |
Hello, this type of structures are confusing. I hav been working with C for a while but this subtlety is yet unknown. I have come accross such a structure in a program where suposedly it will be used for FIFO management: [CODE=C] typedef struct FIFO_TAG{ struct FIFO_TAG *NextElement; }FIFO; [/CODE] … | |
Hello, If I have a table like this where i have the year and the month, how can a get something like 2008 3 after a select? - I mean the maximum month for the maximum year? Thank you. [CODE] year month 2006 1 2007 1 2006 2 2007 2 … | |
[SIZE=3]hi every one i need to use animation bar(label) in the vb.net and desplay information connecting with sqlserver 2000 please advice and tell me how thank you[/SIZE] | |
Hi! It's really a silly question, but i've tried many ways to do it and it's still worthless.... :( I have a form: [code]<form action="jobapp.php" method="POST" name="app"> Please, enter your name: <input type="text" name="applicant" /><br /> Please, enter your telephone number: <input type="text" name="telephone" /><br /> Please, enter your e-mail … | |
Hi, I have spent hundreds of hours fixing errors with my phpauction GPL V2.51 script I bought. A lot have been cosmetic but this one is causing onscreen errors and making the page extremely slow to load. To cut a long story short, if the thumbnail image a customer is … | |
how do I extract the arguments using getopt Usage: test.py -P abc -S def -G xyz How do I extract the values abc, def and xyz? | |
Hi all, [code=php] $selcount = "SELECT * FROM autoalto_mail as a1, autoalto_contractor_sentitems as a2 where a1.flag=a2.flag='1' " ; [/code] | |
Hi all, I have created an inbox......which will show list of values...... if some new data added in inbox......it will be the last in the inbox table. i want the new entries should appear first. can u help me out........... | |
I have the following code and am trying to get a range of data in an xl file and put into an array, so I can then analyse it. The array says it is not empty, but how can I see the data as the app fails if I try … | |
lets say for some reason you needed to draw a very small image and plot each pixel indivudually with code using directx. Is this possible and pick out that pixels colour and everything or do you need to use a supported format like a .bmp or something. all help is … | |
Hi there, If someone is able to help me out, I will be forever grateful! All I am getting from the code is: Resource id #3 The SQL works sweet and is returning the correct result.. [URL="http://www.adslgeek.com/ispsearch.php"]http://www.adslgeek.com/ispsearch.php[/URL] [code=php] //IMPORT ISP DETAILS $sql="SELECT `ISPName` FROM `isps` WHERE `ID` = 4"; $result … | |
Hi all, I have created inbox, sent and Trash......now The deleted items in inbox is going to trash,,,,i mean i written the query only concerned with inbox......but now i want the deleted items of sent should also go to trash...... how can i write that query........... I have written like … |
The End.