199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alex_

Hi, i want to do a listener and this is what i have at the moment: [code] class MyListener extends MouseInputAdapter implements KeyListener{ @Override public void mousePressed(MouseEvent e) { if(e.getButton()==1){ out.println("MSE press "+e.BUTTON1_MASK); }else if (e.getButton()==2){ out.println("MSE press "+e.BUTTON2_MASK); }else if (e.getButton()==3){ out.println("MSE press "+e.BUTTON3_MASK); } } @Override public void …

Member Avatar for Alex_
0
164
Member Avatar for seena_srini

Hi I'm devolping a project in which backend is ms access and front end is vb 6.0. For security reasons i made the ms access as password protected. when i tried to connect the vb and access, the following message is displayed. How to handle it? Please help me.. [IMG]http://i48.tinypic.com/ddyge0.jpg[/IMG]

Member Avatar for bhrain
0
1K
Member Avatar for charmed94

I have used Resource Hacker to extract all the files from an .exe so I could translate the menus right (translating in the program shows me wrong characters). Now I want to compile these files into an .exe file. How can I do that? Thank you in advance.

Member Avatar for charmed94
0
108
Member Avatar for muthulazmi

import MySQLdb db = MySQLdb.connect(host = "localhost",user = "root",passwd = " ",db = "TESTDB" ) cursor = db.cursor() sql = """CREATE TABLE CRAWLER ( FIRST_NAME CHAR(20) NOT NULL, LAST_NAME CHAR(20), AGE INT, SEX CHAR(1), INCOME FLOAT )""" cursor.execute(sql) db.close() when i execute this code there is an error occure like …

Member Avatar for muthulazmi
0
91
Member Avatar for Zagga

Hi folks, I have a tiny blog script that is just for personal use. It works fine. I was wondering if it was possible to post entries to this blog via email so I started looking at email parsers. The ones available for purchase are far too overpriced for my …

Member Avatar for Zagga
0
138
Member Avatar for trelek2

Hi! I'm writing a Java simulation of a physical system. I wrote the whole simulation without any problems and later decided to add very simple GUI to paint the current sate of the system after each iteration. This is where the first problem occurred. After creating my JFrame and JPanel …

Member Avatar for trelek2
0
200
Member Avatar for mihir.p

We are planning to make a commercial GUI based software (for both desktop and mobile) targeting individual users. We plan to have good web 2.0 like rich application features (Google like dynamic auto suggest, drag and drop, browser based look and feel etc) and lot of user controls (trees, grids, …

Member Avatar for ~s.o.s~
0
171
Member Avatar for Niner710

I have a function called read() that interacts with some hardware and sometimes it returns the value very quickly and other times it could be very slow. I would like to have a timeout associated with my function read() so that if it takes over maybe a second then the …

Member Avatar for nbaztec
0
2K
Member Avatar for Virangya

hello, Im creating a registration page and i want to keep the user entered data after a generation of an error message. form and the validations are in separate pages and validations belongs to a class. html form <form id="frmregister" name="frmregister" method="get" action=""> <tr> <td><label>First Name </label></td> <td colspan="2"><input name="txtfname" …

Member Avatar for Virangya
0
151
Member Avatar for prem2

Hi daniweb team, I am new to Servlet concepts can any one tell why peoples use doGet and doPost method in the Same program.And What is the difference between doGet and doPost method. Thank you, With Regards, Prem.

Member Avatar for prem2
0
100
Member Avatar for muthulazmi

how to install the msqldb package and where to place it in python? then when i compile the code there is an error like no module named MySQLdb.... pls clarify this....

Member Avatar for muthulazmi
0
106
Member Avatar for ttboy04

Hello, I am getting "non-static variable friends cannot be referenced from a static context" error msg when I complie this program. If I create TreeSet inside the Names method body there is no errors when compiling and it works but that is not how I want it work. Could someone …

Member Avatar for ttboy04
0
150
Member Avatar for Hawkpath

Hello All! I ran across a bit of code that I wanted to try. In this code it had a line reading, "[COLOR="Red"]orig = POINT()[/COLOR]" When I tried to run I got this error: [COLOR="red"]NameError: name 'POINT' is not defined[/COLOR]. This led me to believe that I didn't have the …

Member Avatar for Beat_Slayer
0
126
Member Avatar for vuki27

I have been using Borland Turbo C++ 3.0 to get started with C/C++. I am making a graphics application and this error has come up. I know that my code is too big but I cannot cut it down and I need to add more features. Can someone please tell …

Member Avatar for mitrmkar
0
171
Member Avatar for bimal_nayak

Hi, I am new to PHP. I am facing a problem while adding data to the MySql Database . I have 2 forms .I have inserted some data to the databse but but after getting the data from form i have to calculate the data , but when i am …

Member Avatar for Zagga
0
80
Member Avatar for loveforfire33

Hey guys, i want to check if reader.read has a null value, however im struggling to do this.. any ideas? [code] <%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.Data.SqlClient; using System.Data; using System.IO; using System.Collections.Specialized; public class Handler : IHttpHandler { public string GetConnectionString() { //Gets Connection …

Member Avatar for finito
0
294
Member Avatar for jhudson0219

I am currently using AppServ to display my PHP code. I am having a problem of the content of the body not displaying however. Here is the code that I am using: <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> When I try …

Member Avatar for jhudson0219
0
127
Member Avatar for elvis1

Hi guys I am willing to know how to match a website s title using regex. Many thanks in advance

Member Avatar for elvis1
0
91
Member Avatar for personx1212

hi , i have been searching for a way to modify .exe files using python, to make changes to the exe (inject user code), i found examples using other languages, but how can i do this using python? i know it is possible to alter the exe file because i …

Member Avatar for personx1212
0
93
Member Avatar for iamcreasy

I am trying to grab some data after opening a text file with append flag. I am using the following code...but nothing is being printed and program execution is progressing forward. Can anyone point me my mistake... [CODE] fstream outStream("test.txt", ios::app);string testID; cout << "Enter Teacher ID - "; cin …

Member Avatar for iamcreasy
0
341
Member Avatar for bbman

Hey, I have the code: [CODE] Form1(void) { array<Label ^>^ labels = gcnew array<Label ^>(itemCount); InitializeComponent(); for (int i = 0; i < itemCount; i++) { labels[i] = (gcnew Label()); labels[i]->Tag = (int)i; labels[i]->Location = Point(1, (i + 1) * 50); labels[i]->Size = System::Drawing::Size(250, 50); this->Controls->Add(labels[i]); } } [/CODE] This …

Member Avatar for bbman
0
325
Member Avatar for azegurb

hi all, in my web there is a menu named Custom DNS for what reason mw use custom dns record can anyone help me Thanks in advance

Member Avatar for azegurb
0
85
Member Avatar for YasaminKh

Hi Everyone, I'm working in with a file and somewhere in it I'm reading a number that i know it's starting and endig position n the file and then i store it in an string*. But at the end I need to convert this string to the int value. I …

Member Avatar for nbaztec
0
185
Member Avatar for NathanOliver

He all I am currently working a on a problem to convert the entire contents of an STL container into a string. For example if I had this: [code=c++] int foo[] = {1, 2, 3, 4, 5}; vector<int> bar(foo, foo + 5); [/code] I would like to convert [icode]bar[/icode] into …

Member Avatar for Bench
0
127
Member Avatar for sfuo

So far I have written a program that draws text to the screen and I am able to change the font type but I am unable to change the font size. Here are the 3 main parts of my code that I think you need to see. Font structure: [CODE]typedef …

Member Avatar for sfuo
0
336
Member Avatar for romyboy2k9

Hi, I'm having trouble with my program,here is one of the error code: Error 1 error LNK2019: unresolved external symbol "public: __thiscall linkedListType<int>::linkedListType<int>(void)" (??0?$linkedListType@H@@QAE@XZ) referenced in function "public: __thiscall linkedQueueType<int>::linkedQueueType<int>(void)" (??0?$linkedQueueType@H@@QAE@XZ) main.obj Mesina_Wk5Assignment The following are the codes to my program [CODE] // linkedList.h file #ifndef H_LinkedList #define H_LinkedList #include …

Member Avatar for jonsca
0
293
Member Avatar for djenoe
Member Avatar for PixelatedKarma

Hey guys and gals; I've been chipping away at some code today and tried to run my program I am getting the error: Parse error: syntax error, unexpected '&' in........on line 68 [CODE] $stmt = $dbh->prepare("SELECT username, password FROM client WHERE username = :username AND password = :password"); [B] &stmt->bindParam(':username', …

Member Avatar for PixelatedKarma
0
116
Member Avatar for avarionist

I am trying create a button that when clicked prints hello world in the text box above it. however im a complete noob on winforms. I normally just make console programs any tutorials on winforms ? with C++?

Member Avatar for avarionist
0
174
Member Avatar for vddmanikanta

Sairam all, Linux Man pages say > "LinuxThreads currently does not support process-shared > semaphores, thus!sem_init! always returns with error !ENOSYS! if > |pshared| is not zero." > > I have a shared memory area I need to lock(using semaphore). Is there a Linux preferred > method to share semaphores …

Member Avatar for ihedz
0
127
Member Avatar for Arpy Giri

hello i am working on this application where i need to import 60k+ user data and insert into different table. i have made a C# application which selects the database and inserts from a text file.like [CODE]insert into dbo.dbname ([user_name],[u_id]) values (a,b)[/CODE] but this apps hangs for 60K+ data so …

Member Avatar for Arpy Giri
0
218
Member Avatar for Hawking

Hi imagine that I have serie (progression) like Ai=2Ai-2 - 3Ai-1 for i>=2 (i-2 and i-1 are lower indexes) A0= 2.5 A1= 1.2 I need a program which counts and write into the field values from 0-19 and after the program frint sum of these values to screen. Thank you …

Member Avatar for kings_mitra
0
105
Member Avatar for heavens_cloud

I've been working on getting a SQL DB to return records through an ADODB.Connection object and have had zero luck getting it to work in VB6. Whereas I created an ASP form using VBS to produce the exact same functionality with no issues. In VB6, I've included the following references: …

Member Avatar for vb5prgrmr
0
545
Member Avatar for levsha

Could somebody please direct me? Why the code is not working? Let's say I have two scripts: mypage.php and mypage2.php. mypage.php: [CODE]<?php // this starts the session session_start(); // this sets variables in the session $_SESSION['color']='red'; $_SESSION['size']='small'; $_SESSION['shape']='round'; print "Done"; ?>[/CODE] Works as expected, outputs "Done". mypage2.php: [CODE]<?php // this …

Member Avatar for Grantism
0
207
Member Avatar for nmges

I am just done a program on the vb 2008 express, and do the same program on the vwd 2008 express, but as you knew, the codes on vb 2008 express and on the vwd 2008 express are different, I want to know as sample [CODE] Dim strsql As New …

Member Avatar for nmges
0
96
Member Avatar for QWaz

Hey, I am having trouble with some code I am using. I have used this same code on a different site but it doesnt seem to work now on this site. I am trying to insert something into my database. however I keep getting this error: SQLSTATE[42000]: Syntax error or …

Member Avatar for cwarn23
0
146
Member Avatar for Victor C.

I was creating this code and I hit a brick wall. Maybe because I have been doing this code for 5 hours and I am burnt out. I just need help to get it working please. Here is the code [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; public class …

Member Avatar for NormR1
0
195
Member Avatar for SJP99

sorry if this is the wrong section, but what is the difference between a normal OS and a server OS?

Member Avatar for SJP99
0
124
Member Avatar for wiluo

Hello, I am trying to write a program in python to test the reading speed to a file, apparently,after the file is created, it's automatically in the cache and read() method will grab the data from the cache thus result in a much faster reading speed, how should i directly …

Member Avatar for jcao219
0
4K
Member Avatar for vivi288

Hey guys, I was hoping someone could help me out here again. I've seen people pulling entries from multiple MySQL tables by using the JOIN clause, but I can't seem to get it to work with what I am trying to do. I have 3 tables which I wish to …

Member Avatar for vivi288
0
83
Member Avatar for andyg55

Hi, I'm trying to create a 2d array that will fill itself up with numbers i have in a text file. My text file looks like this: 1 5 4 2 6 3 3 9 4 4 1 8 5 2 2 So, I want to create an array with …

Member Avatar for tagazin
0
2K
Member Avatar for CanYouHandstand

Hello All I’m trying to hook the mouse scroll wheel using SetWindowsHookEx with WH_MOUSE_LL. The callback function I am using operates correctly, and identifies when the mouse wheel is scrolled. However I am unsure of how to identify which direction the mouse has been scrolled. My code so far: [CODE] …

Member Avatar for CanYouHandstand
0
2K
Member Avatar for speedy gonzalos

I am trying to create an Inventory/Stock Control system as a windows application using vb.net with an Access database. This is my first time trying to use vb.net and im having difficulty making the application interactive. I am unable to update records to the database from the front end. I …

Member Avatar for tariq182
0
186
Member Avatar for iwanttolearnc

[CODE]<?php $file = 'GPSserial.txt' or die('could not open file!'); $handle = @fopen($file, "r") or die("could not open file!"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); $GPSstr = $buffer; $GPSarray = explode(',', $GPSstr); if ( $GPSarray[0] == '$GPGGA'){ echo 'congrats'; } else{ // move to the next line …

Member Avatar for iwanttolearnc
0
161
Member Avatar for abbyo

I'm a newbie at java and I need help in coming up with the correct answer for this JOption java program. I enter in 2k, 30fps, 4min, 0seconds, and I should get 10.6842041GB (16.02630615GB total space needed). Please let me know if you have any advice on how I could …

Member Avatar for abbyo
0
146
Member Avatar for zixizx

Hello im a new member to this forum so if this is in the wrong place im very sorry. any way i have been developing a piece of software that reads from a .txt file soo far i have got it working but only on my pc eg "c:\documents and …

Member Avatar for zixizx
0
141
Member Avatar for smi ensi

hi! I have prbleme is that how can apache recieve email and how I can add session it mean that the person can not add or delete or do any evenement before he login . [CODE] <?PHP session_start(); include("connexion.php"); if (isset($_POST['login'])and isset($_POST['password'])) { extract($_POST); if (empty($login) or empty($password)) { echo …

Member Avatar for smi ensi
0
124
Member Avatar for Odubz

Hi Im still quite new when using MS SQL but I have a pretty good understanding of it. -I am using Crystal Reports to retrieve and manipulate data from my database. -I am creating small tables for certain data. -This data is selected from a constantly updating table. So i …

Member Avatar for tesuji
0
236
Member Avatar for God Coder123

if i were to create a program which required the user to enter multiple values, but i do not no how many. How would i go about anticipating the input. For instance if the user were permitted to input any amount of numbers and i wanted to add all the …

Member Avatar for jonsca
0
106
Member Avatar for KAY111

Hi I started a thread earlier back and I thought my problem had been solved but now new errors have popped up Here are the errors I'm getting: bfs.cc: In function 'void greedyMatch()': bfs.cc:9: error: expected primary-expression before 'for' bfs.cc:9: error: expected `)' before 'for' bfs.cc:9: error: 'bfs_ee' was not …

Member Avatar for Taywin
0
2K

The End.