132,726 Archived Topics
Remove Filter ![]() | |
My query is . I want java code to convert RGB image (jpg) into grayscale then i want to convert pixel of grayscale image i.e. if pixel is other than black conver it into white. if it is black then only it remain black. | |
Hello all, Im using below code to change the command button icon at run time. When the form is loaded button's icon will be showing but again icon will disappear when focus is changed to other controls on the form. Icon will be shown whenever focus is on that button. … Software Development visual-basic | |
I would like to know if is possible to click on every single cell in a listView seperately, like in a datagridview? If I set a full row selection to false I am only able to select the cell in the 1st column. The point or this thread is, that … Software Development listview | |
1. I have few data in "MyData.txt" : 9 7 4 4 6 5 9 1 3 4 7 6 5 4 1 4 8 6 4 8 5 I only can copy the data into the code like this : [CODE] #include <iostream> #include <fstream> using namespace std; int … Software Development c++ | |
Hi, I Have a CString (MFC) which contains the following three conditions separated as follows. Message=("Condition1|Condition2|Condition3") I am trying to extract the three conditions from the CString and use them to perform other operations. However I cant seem to find the right built-in function. Could someone please advise on what … Software Development c++ | |
Please help, my Prog is compiling fine but when run it give me [CODE]Exception in thread "main" java.lang.NullPointerException[/CODE] with the following: 1) at PatientReg.displaySQLErrors(PatientReg.java:424) [CODE] private void displaySQLErrors(SQLException e) { errorText.append("SQLException: " + e.getMessage() + "\n"); errorText.append("SQLState: " + e.getSQLState() + "\n"); errorText.append("VendorError: " + e.getErrorCode() + "\n"); } [/CODE] … Software Development java | |
hello; can U plz explain this Q for me, i do not know how to solve it ? Rational fractions are of the form a / b, where a and b are integers and b ≠ 0. In this assignment, by "fractions" we mean rational fractions. Suppose a / b … Software Development c++ | |
Hi there guys... Been working all week for the database connection of VC# with SQLite. I got an error everytime i try to open the database... No matter how i tried the [B]SQLiteConnection.Open()[/B] command still returns an error... I installed the required ADO.NET and the required SQLite Database... [I] here's … Software Development c# open-source sqlite visual-studio | |
I'm thinking about writing a small command line directory management program in Python. The most basic functionality I want is to be able to compare the the files in a directory and sub-directory, and if there are any duplicates then delete the lower most duplicate. I all ready have a … Software Development python | |
ok so i am trying to put a menu function on the server side of a server client talk program. i would like to know if i am doing this correctly. i am also receiving a error that displays this... [code=c] serve.c: In function âstr_echoâ: serve.c:48: error: âairlineâ undeclared (first … Software Development c client-server | |
Hi, I am using Dev-C++ 4.9.9.2 with g++ compiler. I recently made a DLL in c++ that shows a window using Windows API. I discovered that the text shown inside are large and bold, which aren't looking very good. I want to change this, so I used the following code … Software Development api c++ windows-api | |
lets say i want to make a function that accepts a single argument that is supposed to be a number. lets say the function displays the range between 0 and the argument. Normally I'd do something like this: [CODE] def range_display(integer): set = [] for num in range(0, integer): range_list … Software Development python | |
I want to create a DBMS application using c. For this purpose i need to know how to store data in different databases i.e. SQL, Oracle or MS Access. It is ok if the data can be stored in the form of files but then the security of that files … | |
I'm trying to figure out how to use a bubble sort in a array of names. since the names are type string, I can't figure out how to alter the bubble sort to do this. all the examples I find online deal with numbers instead of strings. So how do … Software Development c++ | |
Hey there guys, I am having a problem with with my ReadFile constructor. First of all the class that I am placing the constructor in is in a different package. I have imported the package to the class that I am placing the constructor But I still get an error … Software Development java java-swing | |
Hello, I need help with this problem I came across. What I have is this: [code] char answers[5][4] = {{'1','2','3','4'},{'10','0','3','0'},{'1','0','0','0'},{'1','2','3','4'},{'1','0','0','4'}}; [/code] However, this code does [B]not[/B] accept 2 digits..only one. This irks me, and I was wondering if there was a way to add 2 digits. [COLOR="Red"]Note: I am going … Software Development c++ | |
Dear Experts I have two textboxes I want textbox1 to accept any character except 0 (zero) When user enter 0 then it must not go to next control I want textbox2 only accpet character "Y" or "N" Please help Software Development vb.net | |
I need to produce a program that would process/read a magnetic stripe card within a windows kiosk environment and would prefer doing this in C or C++. Could someone suggest pointers/recommendations about where one should start? Software Development c++ | |
![]() | Hello All, I am desperate for help. I have spent the last 2 days staring at this code and not getting anywhere (please see attached project files). The project requires a number sequence to be output as a text file. Starting number is input by user (number is in sequence … Software Development perl ![]() |
plz any help in this code in assembly by emulator8086 [B] the code about[/B] a classroom has 25 students their numbers and grades in the microprocessor course are stored in the memory .it is required to rearrang them in descending order according to their grades. the inputs are two tables … Software Development assembly | |
Hi guys, I'm trying to instantiate an object on a new thread, but when I do this I found the form or the splashScreen object not showing. When I directly call the method which instantiate the object it showing. Why this happening??? here the code for better grasping. The following … Software Development | |
OK before I fumble around any more and end up needing to change everything again...I was wondering if someone would be kind enough to have a discussion with me about a networked solution. Right now what I have is an Access database with forms that manage the data...this is great, … Software Development client-server publishing | |
Had a moment to sit down and plow through a chapter, and as usual, wound up stuck. My compiler is giving me a string of [inlinecode]undefined reference to SALES::[all my function names][/inlinecode] in my main function. It's entirely possible that there are problems within the function definitions, but right now … Software Development c++ | |
Hi. I have this assignment and have absolutely hit a wall here. I will give the assignment details, then say what the issue is: Consider a collection of songs in an MP3 library where each song is characterized by artistName, songTitle, album, playTime (in seconds), musicCategory, and albumProducer – hence, … Software Development c++ | |
well kind of... I want to check to for updates on a webpage/website but only refresh if it finds a change from the page currently loaded in the webbrowser control on the form. More or less refresh in the background and only actually display the refresh if it finds a … Software Development | |
hi can you help me make a program that convert decimal to binary,octal & hexadecimal, binary to decimal, octal & hexa, octal to decimal, binary & hexa and hexa to decimal, binary & octal? That's our project in logic design. thanks in advance... Software Development c++ | |
hi :D! i had this idea were i wanted to create a program that starts an action by a user command on a different pc or any web device like a mobile phone or an i phone. i thought of the idea of hosting a web site that had just … Software Development web-browser | |
Hello everyone, i'm fresh new here, and i already have a question regarding...well, C#. I've made a Forms Application in which the user submits an image (bmp,png,jpg or gif), and the image suffers some byte-level modifications (obviously, i'm using the LockBits() method). Now, after the modifications are done, the user … | |
hello I am trying to create an robot and I have been having a problem parsing the full string from the conf. As example the IRCServer, botnick, botname parameter does not contain the all the data. as the output shows: [code=output] ##################### # Ablaze Bot # ##################### Loading conf file: … Software Development c | |
I use [url=http://www.en.wampserver.com/]WAMP[/url] to develop my PHP/MySQL applications locally before moving them to a production server. I want to start teaching myself Python and wish to add Python to my installation. I have downloaded and installed Python 2.5 and also installed mod_python. Unfortunately getting Apache to recognize that Python is … Software Development apache python web-server windows-server | |
HI everyone, I am new the world of C and am having some problems with a class assignment. Can anyone help? [CODE] #include <stdio.h> #include <math.h> #include <string.h> #define Max_sites 10 /* maximum number of sites allowed */ typedef struct { int site_id_num[4]; /* id number of the site */ … Software Development c data-structure | |
I made this code: [CODE]import random wish = "j" max_multiplications = 10 while wish == "j": multi = 0 right_answer = 0 while max_multiplications != multi: randomint1 = random.randint(1, 10) randomint2 = random.randint(1, 10) print randomint1, "*", randomint2, "=" ik = float(raw_input ("Insert your answer ")) multi += 1 answer … Software Development python | |
using Windows 7 and calling: [CODE]OpenFileDialog LogoLoad = new OpenFileDialog(); LogoLoad.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); LogoLoad.Filter = "Image Files|*.jpg;*.gif;*.bmp;*.png;*.jpeg|All Files|*.*"; LogoLoad.Title = "Load Dealer Logo"; LogoLoad.FilterIndex = 1; LogoLoad.RestoreDirectory = true; if (LogoLoad.ShowDialog() == DialogResult.OK) { filenname = Path.GetFileName(LogoLoad.FileName); path = Path.GetDirectoryName(LogoLoad.FileName); extension = Path.GetExtension(LogoLoad.FileName);[/CODE] Problem is picturebox1.ImageLocation comes up as Null … Software Development | |
Hey guys, I'm trying to design a custom control to extend a datagridview. The customer control is basically made up of two datagridviews, one will host the extra features, the second will offer all the usual methods/events of a regular datagridview. What i want to know is, can i automatically … Software Development | |
Hi, I have a program that finds out if people are "compatible". The problem I have is that Java seems to be blatantly telling me that 130-130 is greater than 25 [CODE]public boolean checkMatch(Female other){ if (this.getA()<26&&other.getA()-this.getA()>1){ return false; }else if(this.getH()-other.getH()>25||this.getH()-other.getH()<-25){ return false; }else if(this.getP().equals(other.getP())&&this.getS().equals(other.getS())&&this.getD().equals(other.getD())){ return true; }else{ return false; … Software Development java | |
I have been teaching myself python for several months and have started working on an rpg project. Right now I am trying to code an armor class for a basic character. I am not sure if my approach is even a correct way to go about implementing this class. The … Software Development python | |
Hi experts, I am a student working on a project for my company. I work using Microsoft Visual Studio 2005. Language is vb.net. I also work using windows application. I have a form(EmailContacts) which contains a datagridview and a button to add the data to a textbox of another form. … Software Development dataset open-source vb.net visual-studio | |
Hope I chose the correct forum. I have a dataset object with one table that comes to me from a common custom component's GetDS method. I need to pass XML to another process (chunked as byte array). I have it all working but the XML is missing some attributes that … | |
hi , I have my python code but I couldn't solve it. here my sample loop: [CODE= python]import os import sys whileloop = True while(whileloop): initial_drive = "C:\\" inputline = input(initial_drive) <<< PROBLEM... if inputline == "exit": whileloop = False elif inputline == "about": print("no input") elif inputline == "": … Software Development python | |
write a program that prompts the user to input three number.the program should then output the numbers in ascending order. Software Development c++ | |
I am trying to send a command to the external command line (cmd.exe) from the Windows form application that I'm writing in VB.NET (using VS2008). I can only access the external program thru the command line (its not my program) and I must do so from a form app. I … Software Development vb.net | |
Hi i am wondering if its possible to do the following,say i have 2 integer pointers containing numbers,and i want to add them together to a third integer pointer,is this possible? Software Development c++ | |
Can you please tell me why i can't run this sample test program?? [CODE]from PyQt4 import QtGui class testui(QtGui.QTabWidget): def __init__(self,parent=None): QtGui.QTabWidget.__init__(self) def test(self): QtGui.QMessageBox.warning(self,"Hello","This is a test message") def frun(objec): time.sleep(8) print('hello') objec.test() app=QtGui.QApplication(sys.argv) obj=testui() obj.show() threading.Thread(target=frun,args=(obj,)).start() app.exec_()[/CODE] But in real i want to receive messages from the threads … Software Development python | |
I have written code to use the automatic CD-Burn routine inside WinXP and above. But I cannot start the CD Writing Wizard by python code. Has anybody any idea how to do it? This is my code so far: [CODE]#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys import … Software Development microsoft-windows python | |
Okay, I am in the middle of creating a rather large console RPG. It'll include ability to equip armor, weapons, interacting with NPC's, battles, saving/loading characters, etc. I don't want to save all of my classes and functions in the same file, for easier readability. I have a few questions: … Software Development python | |
Hi everyone. I'm new to Python and programming in general. I'm currently reading [URL="http://www.dickbaldwin.com/tocpyth.htm"]this[/URL] tutorial. In the scripts section he mentions "setting the path" and that it needs to be done in order for scripts to work. How do I set the path in Windows XP? Thanks! Software Development python | |
How can I put a progress bar inside this code: (I was trying to use PerformStep method for counting rows in data table, and put this code, but no luck: [URL="How can I put a progress bar inside this code: (I was trying to use PerformStep method for counting rows … | |
HI All, I am not able to run a jar file in UNIX. I have a shell script which is throwing this error. [CODE]Exception in thread "main" java.lang.NoClassDefFoundError: dao/Demoface[/CODE] classpath no issues as i am executing all files in the same directory named scripts folder whch has all jars files … Software Development shell-scripting unix | |
I have one big picturebox of the house plan. for the sake of example, assume it is 1600 * 1200 pixels. And on the most top and left of that house plan (position top 0 and left 0), I have another small picturebox of desk (let's say, 30* 30 pixels). … Software Development visual-basic | |
This is one of the two action listeners I have for two text fields. The exceptions to ensure the proper datatypes used is working. And the exception to make sure that int pos is within the array's range is working. The problem I am having is getting the out of … Software Development java |
The End.