43,549 Solved Topics
Remove Filter ![]() | |
I'm wondering how to start a Boolean array at 1 instead of 0. so far the only thing i can think of is: [CODE] Boolean [] x = new Boolean[12]+ 1; or Boolean [] x= new Boolean[12 + 1]; [/CODE] and the top one does not compile while the bottom … Software Development java | |
Hi, I am currently learning the Java programming language and have downloaded the latest Eclipse Platform to program with and encountered an interesting error while trying to import a folder with some of my previous work. the importing client in eclipse encountered some error about a buffer overload which i … Software Development java | |
I have a funny problem. I am trying to split a string. [code=python] DEVICE_IP = '164.178.7.30' ip = DEVICE_IP.spilt('.') print ip[0]+'-'+ip[1]+'-'+ip[2]+'-'+ip[3] [/code] The above code throws the error [code] Traceback (most recent call last): File "/home/englotk/test", line 2, in <module> ip = str(DEVICE_IP).spilt('.') AttributeError: 'str' object has no attribute 'spilt' … Software Development python | |
Hi, I'm using VB.net express edition with SQL server compact for a project and I need a little help. What I'm trying to do is; I want to set a certain column to true or false automatically based on what value another column has entered. I managed to get this … Software Development vb.net | |
I have an add/edit program I've written and I'm trying to find an example of how to test/check an Account Number that a person enters in a textbox to the database(SQL) to make sure it is unique. I've been searching and haven't had any luck. Any Advice? Thanks. Software Development vb.net | |
Hi, I seem to have a problem with an 2D arrray. I want to create an 2D AnsiString array (AnsiString array[][] ). I can compile it but i get an acces violation when i try to put value in the array. I changed the AnsiString to integers witch works fine … Software Development c++ | |
hello, is there any way to call a specific variable from a function ? see the following program. [CODE] float abc(void); float main(void) { float a,b,y,z; a=abc(); b= printf ("enter value for z"); scanf ("%f",&z); y=(a-(a*y))/(b*z); printf ("%f",y); } float abc(void) { float x,p; scanf ("%f",&x); p=x*x; return(p); }[/CODE] in … Software Development c | |
Annual Interest Rate [COLOR="Red"] Monthly Payment[/COLOR] 11.00 [COLOR="Red"]952.32[/COLOR] 11.25 [COLOR="Red"] 971.26[/COLOR] 11.50 [COLOR="Red"]990.29[/COLOR] 11.75 [COLOR="Red"]1009.41[/COLOR] 12.00 [COLOR="Red"]1028.61[/COLOR] I've done the hard part and completed the project, but I can't figure out how to get my program to output in two columns like above. Since this site doesn't take spacing, black … Software Development java | |
I have a problem to re declare a List<String^>. The first line compiles fine but I get this error on the second line: [B]'operator =' function is unavailable in 'System::Collections::Generic::List<T>'[/B] I dont know what could be wrong here ? [code] List<String^> Lines = gcnew List<String^>(); Lines = gcnew List<String^>(); [/code] Software Development c++ | |
Hi, I would like to add some scripting support to my .NET-application (I usually code in VB.NET). Since VisualStudio 2008 won't let me use VSA to get scripting support, and the Windows ScriptControl crashes in 64-bit mode, I have been looking for an alternative solution to my problem. I would … | |
[CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Threading; namespace Something { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Thread recording_thread; recording_thread = new System.Threading.Thread(new ThreadStart(record_run)); recording_thread.Start(); label1.Text = "Loading"; … Software Development | |
Hi all, I am reading data from an excel spreadsheet. The column data which i am reading from my spreadsheet reads as follows: integer integer integer var char integer integer integer var char var char null integer etc..... As you can see it contains no specific data types, but just … | |
Hi All, I have big picture file (3508 x 4925) to be loaded into the picturebox. That picture is very detail, with the small writings all over it. I want to rescale into a A3 size which is around (1123 x 1590 pixel) to fit into my picturebox. I used … Software Development visual-basic | |
Hello Everyone, I'm trying to implement a Polymorphic Queue. Here is my trial: [CODE]QQueue <Request *> requests; while(...) { QString line = QString::fromUtf8(client->readLine()).trimmed(); if(...)){ Request *request=new Request(); request->tcpMessage=line.toUtf8(); request->decodeFromTcpMessage(); //this initialize variables in request using tcpMessage if(request->requestType==REQUEST_LOGIN){ LoginRequest loginRequest; request=&loginRequest; request->tcpMessage=line.toUtf8(); request->decodeFromTcpMessage(); requests.enqueue(request); } //Here pointers in "requests" do not … | |
Hi, I’m trying to use the following code in C++ on Mac OS X Snow Leopard to get the output of an external program through a pipe. [code=c++] FILE * al = popen("program program.cfg", "r"); string data; char buffer[100]; while (fgets(buffer, 100, al) != NULL) data.append(buffer); cout << "«" << … | |
i allow drag and drop a picturebox to a panel. after drag and drop i need to allow the picturebox to remain in its own position and not leaving an empty space there. how do i do about it? image.clone does not work. pls help.thank u. Software Development | |
![]() | Something that i'll probly need to know in the future or even soon. What is the proper term of calling this | thing but blinking, when you type and it shows where you are typing. And is there any java API or any java commands linked to this? thx ![]() |
[code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.text.DecimalFormat; public class Grades extends JFrame { //construct components JLabel title = new JLabel("Grades"); JTextPane textPane = new JTextPane(); int numberOfGrades = 0; double total = 0; DecimalFormat twoDigits = new DecimalFormat ("##0.00"); //initialize data in arrays int[] grades = … Software Development java java-swing | |
I recently updated to windows 7 and since then I have been having this problem. Any help appreciated. Software Development | |
I have tried to fill an array with randoms numbers between zero and nine. The code I have used so far is this. int a[40], b[40]; for (int i=0; i<39; i++) { a[i]=(0 rand() % 9); b[i]=(0 rand() % 9); } Why will this not work? Software Development c++ | |
Hi guys, I have recently decided to start doing some work using PyQt, I've been told its pretty good, however I hit a bit of a block when I installed Python 2.6 and PyQt4 only to find that every time I try to run any code that uses any PyQt … Software Development python | |
I have a class, and create 4 instances of this class as per below: [code=PYTHON]class AuctionList: def __init__(self): self.Clear_Auction_List() # Data auctionList = [] #Functions .... [/code] [code=PYTHON]currentAuctionList = AuctionList() previousCurrentAuctionList = AuctionList() finishedAuctionList = AuctionList() successfulAuctionList = AuctionList()[/code] The class has a list variable and a few functions to … Software Development python | |
I see that this problem has been posted a few times before but I cannot manage to find the bug in my program. When it runs, it does not return the values in ascending order. For example, upon entering two test values, I get 0 and 1519848. Any hints would … Software Development c++ | |
Hi, I'm writing a multi-threaded script with wxPython as a GUI toolkit. About 50% of the time, I can run my script flawlessly. The other 50% of the time, I get [U]huge[/U] errors regarding wxPython that I cannot seem to decipher; however, I think it could possibly be a problem … Software Development gui linked-list python ubuntu | |
Hi. I would like to use conky to display EPG on me desktop. I found a cool website: [URL="http://nazham.com/2009/07/26/how-to-enhance-your-linux-desktop-with-conky/"]http://nazham.com/2009/07/26/how-to-enhance-your-linux-desktop-with-conky/[/URL] and the owner, Mahzan Musa was very kind to provide his code. THANK YOU Unfortunately his html epg source is completely different from mine and the code was not so easy … Software Development python | |
Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student Worker Student_worker Write a program that asks user to input information (student, worker etc) and creates a list of persons. Give … Software Development c++ | |
Hi, i'm trying to learn some assembly, ive got a assignment from school to control a lcd screen. I've got some sample code that i mostly understand but i can't figure out what the SBI command does. Using atmega32, with avr studio 4 [CODE]sbi PortD, LCD_E[/CODE] At this point PortD … Software Development assembly hardware-swap | |
Friends I m working with RowFilter, its working good with String Data, and like statements, specially its Autometed functuallity with string data is good, just like in follwing code (it is written in Textbox "txtSearch"s TextChanged Event) [CODE] Private Sub txtSearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.TextChanged … Software Development vb.net | |
I'm a long time C programmer, but I'm only starting to learn C#, so forgive me if this is question that should be intuitively obvious. In C, I dislike 'magic numbers' in code, such as this: [CODE] var_name = 1234; /* what is the significance of this value??? */ [/CODE] … Software Development c# | |
Ok, lets see if I can expain better, unfortunately I am somewhat of a beginner. I am using Microsoft office access 2007, using Microsoft Vista, and visual studio 2008. I am writting a program that uses a GUI to show and change a Access data base. When I first tried … Software Development gui microsoft-access microsoft-office visual-studio windows-vista | |
I have found that using the Bring to front & Send to Back functions on controls created at runtime does not work. Does anyone know a way to solve this problem? any help would be appriciated. Software Development | |
Hello, I'm working on a project where I have in a form 5 to 10 buttons, everything manually added (from code) and I need to see which button was clicked on. [CODE]Button Remove = new Button(); Remove.Name = i.ToString(); Remove.Text = "Remove"; Remove.Click += new EventHandler(Remove_Clicked()); i++; void Remove_Clicked(object sender, … Software Development | |
Hello , I have tried several ideas , times and ways to do this but all fail on the site's test , could any1 give me an idea or something [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=98&page=show_problem&problem=1415"]Problem[/URL] [CODE] #include <iostream> using namespace std; long int q,n,i,point,casenr; long int marbles[10000]; int main (){ while(1==1){ cin>>n>>q;casenr++; if(n==0 && … | |
I'd like to know how to program a hex editor in python, using just tk with the main installation. (no add ons like wx or any others) if anyone can help, this would be gladly appreciated. I'm not really "good" at python yet, so please try to be detailed. (not … Software Development python | |
hi so for my project we were asked to ask the user to input a width and height for the dimensions of turtle screen. i asked for a user input then split it, and put in into a list then converted the two separate numbers into integers. so for example … Software Development python | |
[CODE]# PURPOSE: to see if a user entered number (n) is prime or not prime # # INPUT(S): a number greater than 2. (n>2) # # OUTPUT(S): prime or not prime depending on what (n) is. # # EXAMPLES:input: ;output: # input: ;output: ################################################################################ import math def prime(n): for i … Software Development python | |
Guyz I need help.. I'm a newbie in vb.net 2008..I have a form for User Account Maintenance and I want to transfer the Data of the specified Cell of the Datagridview once it's selected by clicking the mouse. How can I transfer it to textbox? Please help me. Software Development vb.net | |
I have just completed my vb.net application with ms-access as back end. Then i deploy and create it's setup. In my pc IT's Running very good. But when i copy my setup and installed on another pc it won't work... I know that it;s need .net framework. Actually The problem … Software Development vb.net | |
Hello Friends I am newbie To Vb.net. i am building an vb.net 2005 application with ms-access 2000 as back end for practice. i just want to know that suppose user entering new data to the database if this record already exist then user should know that how can i do … Software Development microsoft-access open-source vb.net | |
Alright, been trying for at least an hour. I want to be able to add functions to a JPanel Example, JPanel a = new JPanel(); a.setTransparency(color, strength); or something like that. a.myFunction(parameters) Is this even possible? I am getting sick of overiding the paint method for every panel I create … Software Development java | |
Hi there I am working in Visual Studio 2005 Pro. I have created a WinForm with access to a SQL database. On the WinForm I have two listboxes, the displays DivisionCode and the other DivisionID both having the same DataSource but different DisplayMembers. They occupy the same space on the … Software Development visual-studio | |
hi there!!! need some help here everyone's welcome to help, i am currently viewing my output in excel & i have 5 columns in it ( a, b, c, d & e) column a & b must have 3 digits, c,d & e must have 4 digits, my problem is … Software Development | |
[QUOTE]hi all...i have just started to work in visula c++ and i have to create a program to read a txt file...but as i am debugging my program, it is giving an error on line[/QUOTE] [CODE]#include<fstream.h>[/CODE] Software Development c++ | |
Hi..... I want to create controls in runtime and attach them to an already connected database.. the controls must vary e.g.Array of Strings can be used. Plz Help... Also, plz tell me how to place these controls on a panel in a orderly fashion... the panel has it's autoscroll property … Software Development vb.net | |
Hai. I have a problem regarding bill printing on roll paper. My printer is Epson LX-300+II, my roll paper is about 3" width, and is used for printing bill/invoices for the customers. The number of items varies. Whenever I finished printing the bill, the printer throws out/ejects the paper, as … | |
I just wanna be able to input 10 integer numbers, display the numbers, then be able to modify a specific number I have already entered, then display the new updated numbers again. [code] //Date: 4/6/2010 import java.io.*; public class EnterNumbers { public static void main(String[] args) throws IOException { BufferedReader … Software Development java | |
I have been looking for the answer for 7 hours. So a quick google isn't going to cap this one. I Am working on a programming notepad app with intellisense like Visual Studio. only I have run into a big issue. In Visual studio the little intellisense window is its … Software Development visual-studio | |
Hi All, I have a popup window, which shows up after double clicking an installer. This window has 3 buttons: Back, Next & cancel. Using win32api I am able to get the window handles for all three buttons. I need to find out which of the buttons is enabled or … Software Development python | |
Dumb question, but I've searched everywhere and found nothing specific: is it possible for HSB values to translate directly into a colour (eg. a hue of zero equals red) instead of passing them through an RBG conversion? Also, dumber: I'm not understanding the arrrays people are using, for example [URL="http://www.squarebox.co.uk/users/rolf/download/ColourWheel/ColourWheelApplet.java"]here[/URL] … Software Development java | |
Hi I've just started out in c++, can anyone tell me how to use pointers which hold addresses of objects ? How do you access the object fields from this type of pointer, especially strings (array of chars)... I'm using a Dev c++ 4.9.9.2 compiler.... Software Development c++ |
The End.