132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fpsasm

Hello All, I have been developing a website that has a secure area. At the beginning of the secure page I wrote a scriptlet to check whether the user is logged in. I want to take this scriplet and put it in a javabean. Could any of you guys suggest …

Software Development http-protocol java session
Member Avatar for fpsasm
0
269
Member Avatar for Commando123

hello guys, can anyone help me with this plz?? i have a datagrid view that is bound to a database, and the is a checkbox that is also bound to a flg in this database. i want to put some conditions on checking or unchecking this flg. what event do …

Software Development vb.net
Member Avatar for Commando123
0
200
Member Avatar for caven.chunyen_1

Hi Daniweb, I've been using perl for Regex recently and I want to know is it possible to create an Excel Movie Library with the movie poster, the name of that file and a hyperlink of that clip is attached to the poster. Any help is appreciated. thanks.

Software Development perl regex
Member Avatar for 2teez
0
117
Member Avatar for sanket044

hey i am having three columns "fname", "mname", "lname" in one table... i want to take each column's DISTINCT value without relating fields in one query.. i mean distinct of "fname" in first column, distinct of "mname" in second column and distinct of "lname" in third column can anyone help …

Software Development sql vb.net
Member Avatar for M.Waqas Aslam
0
136
Member Avatar for prancode

Hi, I'm trying to export data from excel sheet to my grid, I'm using the foll code, but I get an error at DataGridView1.Rows.Add(), saying rows cannot be added programmatically. Private Sub btnexport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexport.Click Dim xlsApp As Microsoft.Office.Interop.Excel.Application Dim xlsbook As Microsoft.Office.Interop.Excel.Workbook …

Software Development finance microsoft-office vb.net
Member Avatar for M.Waqas Aslam
0
163
Member Avatar for david.marduk.7

whenever i try to run my program it always has this error "In function mainrift" "syntax error at the end input" can someone help me. void mainrift() { int days = 1, choice = 0, gil = 20000, debt = 50000; int depgil = 0, phoenixdown1 = 0, elixiressence1 = …

Software Development c
Member Avatar for WaltP
0
458
Member Avatar for jumboora

Hi, I want to read source directory and copy each file to the destination by skipping after each file based on interval value i.e., if i set the value of interval 2, then it should skip two files everytime. For Example: If there are 5 files in a directory, 1.txt, …

Software Development
Member Avatar for jumboora
0
165
Member Avatar for tareywolf

I like so many others seek out code snippets from time to time to provide some functionality. Most are easy to incorporate. But I have not yet figured out how to use a function, like below. How does one call something like this in another program? Private Function Search(path As …

Software Development vb.net
Member Avatar for tareywolf
0
80
Member Avatar for rev_ollie

Hi, I have been looking at a few tasks I want to do using a MySQL DB and Python. Therefor I'm spending some time looking at the MySQLdb module for Python and how I can use it. I've worked out a few bits but I want to be able to …

Software Development mysql python
Member Avatar for rev_ollie
0
8K
Member Avatar for 2concussions

hello, hello! im probably being really dumb again, but i can't get java to run keyPressed() when i press a key. do i need to initialize the keylistener somewhere? any input is appreciated!(even if it's not help) import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JPanel; import …

Software Development java java-swing
Member Avatar for NormR1
0
308
Member Avatar for kuchi

We are getting trouble when reading the data like ("â¦", "dóñez", etc) from a data file and storing into oracle DB, these are special characters and they must read and write into database as they are. These following areas where we are getting the problems: 1) when we use split() …

Software Development oracle python
Member Avatar for kuchi
0
143
Member Avatar for shanki himanshu

i am using strrev function and also included the header file string.h but i am getting the compile error **‘strrev’ was not declared in this scope**. what else is required?

Software Development c
Member Avatar for WaltP
0
2K
Member Avatar for 2concussions

i am just trying to populate this array with some information. i have no idea why, but i am getting: java.lang.ArrayIndexOutOfBoundsException: 0 im probably just stupid 0_o... but, here is my code: private boolean populated = false; private int blockList[][] = {}; public void update(){ if(populated == false){ int a …

Software Development java
Member Avatar for NormR1
0
298
Member Avatar for ezekel

Is it possible to hide the text of button during run-time?.

Software Development
Member Avatar for ezekel
0
69
Member Avatar for brian71289

Hi, I have a simple question On my page I have two text boxes, a button and a label. I have a database DB_rental which contains a table TB_credentials (empID, username, password) User enters the username and password in the textboxes and clicks the button. The application should check the …

Software Development open-source
Member Avatar for brian71289
0
127
Member Avatar for maurices5000

public int CalculateProduct(int num1, int num2) Requires a return type of int. However, in main, when CalculateProduct is called, no variable is assigned to accept the int being returned. I don't understand why. Thanks! using System; delegate void NotifyCalculation(int x, int y, int result); class Calculator { NotifyCalculation calcListener; public …

Software Development printer
Member Avatar for maurices5000
0
232
Member Avatar for debbie.chen.946

**I'm supposed to do a hangman project for my CSC class. I have the code here and it works when I type all the words into a word list, but I can't import the words from my file: words_dos.txt into a wordlist. Can someone please help me?** import random HANGMANPICS …

Software Development python
Member Avatar for woooee
0
237
Member Avatar for hhilo2002

Hi all, class A { public: A(); ~A(); } class B { public: B(); ~B(); private: A *a; ->declares a pointer to class A object A a; -> holds the class A object } Whats the difference between the 2 type of declaration of a class A instance? Are there …

Software Development c++
Member Avatar for neithan
0
195
Member Avatar for frnds2vivek

When I tried registering the system32 dll using regsvr32, I came across this error : "**p2sodbc.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.**" Help out guyz...

Software Development visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for stillmarooned

Hi all I hope some one copld help me with this. I have a datareport works fine as it is I have a report textbox txtsex I have 2 labels Pregnancy and Children If txtsex is Male the 2 labels captions should be "" My present code below gives me …

Software Development visual-basic
Member Avatar for AndreRet
0
205
Member Avatar for deepthought

Hi All, I have managed to get my program working now using UDP to send a message to a sensor and get a reply.The last major issue i am having is the data i recieve back. data, addr = sock.recvfrom(782) # buffer size is 782 bytes This is my line …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for serkan sendur

i created a custom installer for my mobile application, the problem is if device is not connected to cradle it tries to install the application next time the device is connected. i dont want it to happen, i want to check if device is connected to cradle. help please. come …

Software Development
Member Avatar for irwanhassan
0
803
Member Avatar for coolikedat99

I am trying to create a program that converts a fahrenheit number to a celsius number, and convert a celsius number to a fahrenheit number. It takes user input and decides which sub-program to run depending on which letter is entered. Once it decides this, it asks for the number …

Software Development c c# c++
Member Avatar for NathanOliver
0
298
Member Avatar for Satya1994

Which is the best compiler for C++ development for latest versions of OS like the 64 bit windows? The DEV C++ compiler is a good option but I find it problematic for file handling. Visual C++ is also a good alternative but I couldnt find any command for compiling and …

Software Development c++
Member Avatar for DavidB
0
295
Member Avatar for np complete

I'm coding a encryption program where I need to generate random prime. I wrote this code for(i=3; i<10000000; i=i+2 ) { for(j=2; j <= sqrt(i); j++ ) { if(!(i%j)) break; } if (j>sqrt(i)) { cout<<i << " "; } } This tests a number till is square root. Its good …

Software Development algorithm c++ encryption
Member Avatar for TrustyTony
0
243
Member Avatar for Thornx1

I am currently in school for video game design. I plann to make a mmorpg and although I will be creating the company I plann to do much of the work involved. I have noticed lots of mmorpgs have bots running non stop flooding the game and making gameplay annoying …

Software Development c c# c++ gaming
Member Avatar for WaltP
0
231
Member Avatar for LD Company

Hello! It's me again. I making a library software and I using DataBase. When I remove any record from database and then click save i got a error message: **Update requires a valid DeleteCommand when passed DataRow collection with deleted rows.** , and one line of code with yellow background: …

Software Development vb.net
Member Avatar for LD Company
0
208
Member Avatar for Gus_19

I'm trying to have my winform check for changes in textboxes, combo boxes and masked textboxes. I've found a way for one textbox, but how can I do this for all of the textboxes as well as ones on other tabpages? Private Sub Textbox_Textchanged(ByVal sender As System.Object, ByVal e As …

Software Development vb.net
Member Avatar for Reverend Jim
0
165
Member Avatar for crL0000

hi im not very good in english .. XD im trying to make a simple text editor that can open and save.. i have a problem in my save code here is the code: JFileChooser jfc = new JFileChooser(); jfc.showSaveDialog(jMenuItem1); File f = jfc.getSelectedFile(); try { FileWriter fr = new …

Software Development java
Member Avatar for NormR1
0
109
Member Avatar for LD Company

Hello. I working on my Library software and I using database for my project. When i click save icon I save my record and when I close program and open it again, database is empty. All my records always gone! But when i create new project again and make new …

Software Development vb.net
Member Avatar for Netcode
0
177
Member Avatar for ronnel09

Good day ma'am/sir, i just wanna ask how to add color in a just specific word? because i tried this one printf("You chose"); textcolor(RED); printf("RED"); but still the whole output is colored red. please help, THANKS!

Software Development c
Member Avatar for ronnel09
0
131
Member Avatar for f4fjks

Hey All! I have created a database application which read and write data in Ms Access. It works well on my computer but when i try to install the same application via installer package to another computer, and run it, it gives me error that i dont have the database. …

Member Avatar for Maligui
0
176
Member Avatar for rajhans

Hello , I have a 2D array. It has two columns. I have to find the top 3 elements of the second column and return the corresponding elements of the first column. for example say the 2 D array is as follows: 1 0.33 2 0.4 3 0.6 4 0.2 …

Software Development java
Member Avatar for JamesCherrill
0
163
Member Avatar for milindchawre

This program displays decimal,hexadecimal & character equivalents int main(void) { int i = 0; for(i = 0; i < 255; i++) printf("Dec-%3d hex-%02x Char-%c\n", i, i, i); return 0; }

Software Development c
Member Avatar for DrunkenCoffin
0
165
Member Avatar for kovacsakos

How can I find the differences between two matrix? I should find the diverse numbers. Thanks in advance for your help!

Software Development c
Member Avatar for WaltP
0
127
Member Avatar for sigridish

hi all! i have two combo box in my program one has the subteam for example if you click the 1st combo box, the items would be A1 A2 A3 A4 A5 what i want to happen is that if i chose A1 only the members of team A1 would …

Software Development vb.net
Member Avatar for Dili1234
0
623
Member Avatar for ahmed.alsalihi.3

Hi, Im stuck, Im trying to make a program that asks the user for a decimal number and then it converts it to a binary number. Im assuming I need a "remainder = string % 2" or something along these lines but Im not really sure where to start. anyhelp …

Software Development c++
Member Avatar for WaltP
0
259
Member Avatar for SANJAY26

Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick frmDisplayLockerInfo.Show() frmDisplayLockerInfo.TextBox2.ReadOnly = False frmDisplayLockerInfo.TextBox3.ReadOnly = False frmDisplayLockerInfo.TextBox4.ReadOnly = False frmDisplayLockerInfo.TextBox5.ReadOnly = False frmDisplayLockerInfo.TextBox6.ReadOnly = False frmDisplayLockerInfo.TextBox7.ReadOnly = False frmDisplayLockerInfo.TextBox8.ReadOnly = False frmDisplayLockerInfo.TextBox9.ReadOnly = False frmDisplayLockerInfo.TextBox10.ReadOnly = False frmDisplayLockerInfo.TextBox11.ReadOnly = False frmDisplayLockerInfo.TextBox12.ReadOnly = False frmDisplayLockerInfo.TextBox13.ReadOnly = False frmDisplayLockerInfo.TextBox15.ReadOnly …

Software Development dataset vb.net
Member Avatar for ChrisPadgham
0
220
Member Avatar for Rasool Ahmed

Hi guys, as you know we can get a value from array by giving an index: int x[10]; int i; for(i=0; i<10; i++) x[i]=i; print(x[1]); // output is: 1 but how can I change this code to this: int x[10]; int i; x['a']=0; x['b']=1; x['c']=2; . . . x['z']=23; print(x['c']); …

Software Development c++
Member Avatar for Rasool Ahmed
0
287
Member Avatar for srikanth2321

Hello, I'm using images to show a sequence. For this I'm using image list and the code is Graphics g = this.panel2.CreateGraphics(); ImageList photoList = new ImageList(); photoList.TransparentColor = Color.Blue; photoList.ColorDepth = ColorDepth.Depth32Bit; photoList.ImageSize = new Size(40, 40); Graphics g1 = this.panel2.CreateGraphics(); Pen green = new Pen(Color.Green, 1); int j …

Software Development assembly
Member Avatar for joseph.a.mineo
0
147
Member Avatar for Vish0203

I have a little problem related to the white spaces in my program. Well, the actual program I'm trying to make is something else. so this program is just to check whether the text is properly broken or not. The problem I'm facing is, for the first word in my …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
122
Member Avatar for milon.mahapatra

i have to read a verilog file in c ..how will be the code in general?

Software Development c
Member Avatar for milon.mahapatra
0
237
Member Avatar for matiasrad

Hi, is there a way to get the FTP Welcome banner (not the welcome message, but the banner)? What I'm trying to do is to discover several AXIS security cameras over a network using FTP. When I try to FTP into a camera using cmd.exe, the camera answers like: C:\>ftp …

Software Development vb.net
Member Avatar for Reverend Jim
0
252
Member Avatar for EulavValue

Hello all, Currently I am trying to create a program that prompts the user to select a file via JFileChooser, and then continues to use that file to gather information for objects. I have no problem selecting the file from JFileChooser, but I do have a problem reading the correct …

Software Development file-system java
Member Avatar for Taywin
0
157
Member Avatar for MeSam0804

hi, I am recently very curious to know how I can make a connection between two computers which are not in a local network. I googled a lot but there are always solutions for local IPs Now I know that I should make a server and a client to send …

Software Development client-server lan-wan vb.net
Member Avatar for MeSam0804
0
1K
Member Avatar for megdan

Hi, Please i want my application to display the autogenerated ID in a messagebox after an insert has taken place and this autogenertaed id is a GUID form. Please help, i have tried @@identity and select_identity() but it wont display any value. Heres how my code is from d insert …

Software Development display
Member Avatar for Momerath
0
218
Member Avatar for jtodd

Hey guys! I am recieving this error on the code posted below: "Operator '&&' cannot be applied to operands of type 'int' and 'int'. I do not understand why this is not working. is there a workaround or a better way I should be doing this. Thanks in advance! C2, …

Software Development
Member Avatar for jtodd
0
1K
Member Avatar for empror9

hello, i'm writing a code for non-preemptive shortest job first, everything is okay except to select the first process arrived in the queue. here is my code. #include<iostream> using namespace std; struct process{ int processId; int burstTime; int arrivalTime; }; int main(){ int numberOfProcesses; //number of process cout <<"please enter …

Software Development c++ queue
Member Avatar for empror9
0
749
Member Avatar for I_m_rude

main() { char s[19]; strcpy(s,"\0"); if(s==NULL) printf("daniweb\n"); else printf("nitin\n"); return 0; } Can anyone tell me what is expected o/p of this and why ? help! thanks in advance.

Software Development c
Member Avatar for I_m_rude
0
140
Member Avatar for lahidzi

Hii.. I am doing project in java and i want to convert it to c#.is it any option available? Thank you..

Software Development c# java
Member Avatar for lahidzi
0
54

The End.