43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pirateninja1111

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
Member Avatar for masijade
0
137
Member Avatar for Nickair

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
0
91
Member Avatar for vsagarmb

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
Member Avatar for jice
0
2K
Member Avatar for InS@NiTy

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
Member Avatar for InS@NiTy
0
90
Member Avatar for jcb0806

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
Member Avatar for crazyhorse09
0
151
Member Avatar for elexender

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++
Member Avatar for elexender
0
219
Member Avatar for Xufyan

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
Member Avatar for Xufyan
0
110
Member Avatar for Amurka

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
Member Avatar for alisneaky
0
2K
Member Avatar for Lukezzz

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++
Member Avatar for Lukezzz
0
149
Member Avatar for J-P

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 …

Software Development vb.net vbscript
Member Avatar for J-P
0
744
Member Avatar for adino2

[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
0
51
Member Avatar for judge6

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 …

Software Development dataset vb.net
Member Avatar for judge6
0
175
Member Avatar for neosonic

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
Member Avatar for vb5prgrmr
0
322
Member Avatar for metdos

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 …

Software Development c++ queue
Member Avatar for metdos
0
291
Member Avatar for class11a

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 << "«" << …

Software Development c c# c++ os-x
Member Avatar for class11a
0
202
Member Avatar for lishannx

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
Member Avatar for lishannx
0
4K
Member Avatar for Illidanek

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

Software Development api java
Member Avatar for Illidanek
0
101
Member Avatar for KSUliz

[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
Member Avatar for moutanna
0
175
Member Avatar for lotrsimp12345

I recently updated to windows 7 and since then I have been having this problem. Any help appreciated.

Software Development
Member Avatar for lotrsimp12345
0
462
Member Avatar for jprogram

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++
Member Avatar for craig_ka
0
117
Member Avatar for lmnopt

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
Member Avatar for lmnopt
0
1K
Member Avatar for gorbulas

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
Member Avatar for gorbulas
0
4K
Member Avatar for DawnDenise

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++
Member Avatar for DawnDenise
0
209
Member Avatar for SoulMazer

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
Member Avatar for SoulMazer
0
833
Member Avatar for ultravox

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
Member Avatar for ultravox
0
172
Member Avatar for 2koolguy

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++
Member Avatar for 2koolguy
0
202
Member Avatar for Dwarrel

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
Member Avatar for Dwarrel
0
3K
Member Avatar for digitalsindhx

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
Member Avatar for Oxiegen
0
1K
Member Avatar for Bugz

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#
Member Avatar for Bugz
0
215
Member Avatar for BC3

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 …

Member Avatar for BC3
0
162
Member Avatar for toko

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
Member Avatar for jmosquera1987
0
1K
Member Avatar for Omar123

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
Member Avatar for Sodabread
0
204
Member Avatar for Robert1995

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 && …

Software Development c c# c++
Member Avatar for Robert1995
0
129
Member Avatar for Tcll

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
Member Avatar for Tcll
0
1K
Member Avatar for jjrrmm

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
Member Avatar for vegaseat
0
179
Member Avatar for kjock002

[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
Member Avatar for vegaseat
0
185
Member Avatar for Lee21

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
Member Avatar for Lee21
0
460
Member Avatar for ameyanatu

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
Member Avatar for ameyanatu
0
102
Member Avatar for ameyanatu

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
Member Avatar for ameyanatu
0
114
Member Avatar for Virux

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
Member Avatar for Virux
0
93
Member Avatar for Excalibur69

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
Member Avatar for Excalibur69
0
258
Member Avatar for sjn21682

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
Member Avatar for sjn21682
0
118
Member Avatar for techstu

[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++
Member Avatar for techstu
0
85
Member Avatar for Arunabh Nag

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
Member Avatar for amrebinnaz
0
765
Member Avatar for acidking001

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 …

Software Development printer vb.net
Member Avatar for acidking001
0
2K
Member Avatar for musikluver4

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
Member Avatar for musikluver4
0
217
Member Avatar for Diamonddrake

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
Member Avatar for Diamonddrake
0
2K
Member Avatar for dilbert_here00

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
Member Avatar for dilbert_here00
0
186
Member Avatar for idlackage

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
Member Avatar for idlackage
0
97
Member Avatar for deanus

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++
Member Avatar for deanus
0
107

The End.