43,549 Solved Topics
Remove Filter ![]() | |
Hi all I run into a problem and I'm asking for you help again. I have a IF statement which is checking each row in the data table (for a match) and ELSE statement with commands which are executed if the If statement is not satisfied. Now I would like … Software Development vb.net | |
I am making an ATM machine and trying to get my accounts from a .csv file to an ArrayList and am having all sorts of issues. Can I get help? It is giving me problems on line 52 of the class where I read and put the items into Arraylist. … Software Development java java-swing | |
Hello Im trying the ini4j library but I seem to be having problems writing a Unicode file (no problems reading I believe) Is this a Java issue or ini4j? Thank you Software Development java | |
Basically, i'm doing an exercise that requires me to decrypt some numbers in an array, which will then read out something about "THEO", i've written my code out in this way, and it compiles fine, but it's having a problem when i run it, i'm getting a problem with my … Software Development java | |
i have a file of the form [CODE](9430, 3656) (9147, 14355) (133, 14393) (7917, 9513) (3719, 12775)[/CODE] lets say i need to store it as a hash.such that 9430=>3656 and so on.I tried using split but it takes whitespaces for right hand values.How can i do it the better way? Software Development perl | |
I have a hash %d,i want the top five valued keys.I did the following wich worked but is there anything more effecient? [ICODE]@p=(reverse sort{$d{$a}<=>$d{$b}} keys%d)[0..4];[/ICODE] Software Development perl | |
I need to save pictures in my database, my database is MSSQL as of now, my code for getting the picture is this: Private Sub browsepic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browsepic.Click With dialogpic 'Open File Dialog sa toolbox .InitialDirectory = "C:\Users\CAMILLE\Pictures" .Filter = "JPG Files|*.jpg|PNG Files|*.png|GIF … | |
Hello people. Im having a problem in my coding. I am doing a username and password application (sumtthing like a password keeper). So I have created the interface and i integrated vb 2008 with sql server 2008. So the adding of account and password all went fine. I have applied … Software Development client-server vb.net visual-basic | |
hi everyone,i am just a beginner in python,i am going through "head first programming" and saw about the [B][COLOR="red"]pygem[/COLOR] [/B],but iam unable to install pygem....i already downloaded [B][COLOR="red"]pygame-1.9.1release.win32-py2.5[/COLOR][/B] from pygem site,but at the time of running the set up i am getting a error that it is not compatible with … Software Development python | |
hi, does anyone know how it would be possible to change my code so that the circles drawn by the applet are resized as the applet screen size is changed? [CODE] import java.awt.Graphics; import javax.swing.JApplet; import java.awt.Color; @SuppressWarnings("serial") public class OvalApp extends JApplet { private int width, height, x=10, y=10; … Software Development java java-swing | |
Hello :) i intend to make a game in c# that will contain information of 10,000 people i dont familiar with db yet but i guess from a little reading that the best way is to use ADO.NET sql library... the game is not on the internet, it will be … | |
// ws is an object variable of worksheet // systype is a string variable Range r = (Range)ws.Cells[2, 2]; systype = r.Value2.ToString(); how can I combine these two lines into one single line ? Please help .... Software Development microsoft-office | |
Hello, So I have started to learn java from scratch, and I love it, any time spare I try to create programs (nothing complex yet) The last one I have done is the game Pontoon, blackjack or 21, many names. It works to how I would like it to, but … Software Development java | |
i have a form in which their is a two text boxes text box1=username text box2=password when i execute then i have to enter the username and password when i cancel the execution it will close every thing ok But i need the same username which has been used at … Software Development vb.net | |
I'm building a C # application on Visual.NET. Now, After packing program to deployment. When users use the program, if have internet connection, the program will automatically send mail notification to me. To do that I do like? Thanks! Software Development email | |
A bit of confusion what to do I have a form1 in that their is a button by name "login" by clicking on the button "login" the form2 will be shown in a form2 their is username and password text boxes and two button one is "ok" and another one … Software Development vb.net | |
I am a beginner in java. I wrote the following code in netbeans. [ICODE] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sanfile; import java.io.*; /** * * @author santak */ public class SanFile { /** * @param … Software Development file-system java java-netbeans | |
Hello guys, I am new to vb programming. Can anyone tell me how to access command button of one form onto another? I have one mdiParent form on which i have command button "PRINT" and "Add New Client", I want to disable Print button, when i clicked on "Add New … Software Development gui microsoft-access visual-basic | |
I am currently trying to create a list of skills and each list of skills generates 3 to 10 skills to put in the list and then randomly generates the skills that it places in that list. But I don't want skills repeating,meaning if I have 8 skills going in … Software Development c++ | |
hi ... i want to send mms from pc. and using jmmslib .....but here i have problem in jwap conection with mobile phone .... it timeout error .... how to make connection using Jwap ....?? what should else i need to get this ....? what steps should i do ..... … Software Development java | |
Yo guys! How's it going? To give you a quick gist of my goals : I want to allow the user to enter a bunch of criteria for a book (title, author, etc) so I made a structure. Then I store that structure in an array so they can enter … Software Development c++ data-structure | |
Hi everyone, I am trying to write a shell script in which my variables take their values from a text file. The text file looks like the following: [CODE][0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] One can say it is a large file so what I need to do is to write: [CODE]variabledin = [0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] In … Software Development file-system shell-scripting | |
![]() | Hi, I'm creating a program and a feature i wish to include is for customer orders to be printed out. I've got this code below which will add in the relevant data and create the text file, but when i come to print it will include the standard &f header … Software Development printer visual-basic ![]() |
Hello there java gang. I've written a program which basically checks the dates that i have written for the program in question and then validates it against a set of rules, using arrays to ensure that what a user enters is valid. So for example, you can have 1,(day) 5,(month), … Software Development java | |
Hello, I just started learning this wonderful language! but I m facing some difficulties, which I would like to share, and hope for some help from you guys. Yesterday while learning I created a program which gets the screen resolution of desktop and displays the form in top-center of screen. … Software Development | |
today i was learning about jagged arrays.So i wrote the following code, i wanted to use foreach loop with it, but i am getting following error: Cannot convert type 'int[]' to 'int' on line 31. The code is as follows:[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ArraysExplained { … Software Development | |
[CODE] #include<iostream.h> #include<stdio.h> #include<fstream.h> #include<string.h> class qa { char question[35]; char option[4][20]; int ans; //correct option no (eg 0 1 2 3) public: void getques() { gets(question); cout<<endl; } void getopts() {cin>>option[0]>>option[1]>>option[2]>>option[3]; } void getans() { cin>>ans; } }; void main() { int n; qa q; fstream file1; file1.open("questions.dat",ios::out); cout<<"\n … | |
Hi I have a JTable applet that implements querys with MySQL, and i have a couple of classes in my program. I made it using ECLIPSE, and when i run it using this code: <body> <applet code="AconsultaMysql.class" archive="mysql-connector-java-5.1.17-bin.jar" width="900" height="300"> </applet> </body> </html> It is in a package called webconsultas … Software Development java | |
This is for an extra credit assignment for class. Requirements I am having trouble with: 1. User enters number specifying numbers of integers 2. User enters integers 3. program will read them and parse. ---------------------------------------------------------- Here is a sample input and what the program should do: How many numbers: 5 … Software Development c | |
I have inherited the standard panel control to create a panel having custom border color. The problem is, while the panel is on a form and any other form is moved across it, it paints hapazard lines of the same color as the panel custom border color, all throughout background … Software Development asp.net vb.net visual-studio | |
I have a readonly datagridview that is bound to a datasource. It has two columns. Now I want the first column to have no cell borderstyle; and the second one to have 'All' (i.e. all sides of the cell shall have a border) as cell borderstyle. Before binding the datagridview … Software Development asp.net vb.net visual-studio | |
Can someone help me on perl script for "how to sort flat file on third field & stored sorted output in the output flat file"? In this example - I have input file with unique key column (third field)& I want sorted output get stored in the output file. e.g. … Software Development file-system perl | |
Hey I was wondering how I could write a binary file in Java with code in C++ using the reinterpret_cast function. If I remember the line correctly (not currently at work) it was: [CODE] file.write=reinterpret_cast<char *(&x)>,sizeof x; [/CODE] with x being a variable. How can I do that in Java? … Software Development c++ file-system ide java | |
Hi everyone, I'm doing a little experiment on Java loops.. I came across these infinite loops and they never wanted to stop .... Could anyone explain these loops to me, please. Thanks in advance. [CODE] for (int a=0;a <= 5; a++){ int c; int b= 6; for( c=0; c <= … Software Development java | |
Hi Guys, In my appplication Backgroundworker throw an error exception has been thrown by the target of an invocation. Any idea how i can resolve this thread. Software Development vb.net | |
Hi, I want to save the gridview values of one form while leaving that particular form using VB.NET. I did this in case of textbox and combobox values by using Savesetting and getsetting property. Thanks if any help... Software Development vb.net | |
This program is suppose to be a very easy code of a simple time machine. I have it all layed out and working, but the out put it not computing correctly.. I know it is something easy, but i have been staring at this code for a bit now, so … Software Development c++ | |
yet again i have become very confused on this program. This program is suppose to have the user be able to put numbers in from a keyboard or they have the choose of choosing a file with numbers in it. the program is suppose to acknowledge all the numbers in … Software Development c++ | |
Good day everyone, I need to print data using if-elif statement. I when I run this code like this, everything went well [CODE] if row['username'] == 'mutago': print " okay" sys.exit(0) else: print "wrong" [/CODE] OKAY now i want to include elseif statement to print another data but it returns … Software Development python | |
I've been looking for an app that could find a specific open window on the desktop and 'lock' it so can't be re-sized or moved (most likely by using the title bar value/property). Having had no luck, I was wondering if this can be done in c++? I used to … Software Development c++ | |
Hi, was wondering if it is possible to use openfiledialog to find a file and then use streamreader to read the text and use it in a variable? Got this so far but it comes up with this error: "Object reference not set to an instance of an object." the … Software Development | |
All, How do you specify a target framework version for the csc.exe c# compiler via command-line? I need to force csc.exe to compile for .NET Framework 2.0. I can target .NET 2.0 from VS, but VS is not an option in this case. I must work from the command line. … Software Development c# | |
![]() | I just started on SPOJ. It tests by redirecting standard input and output to files. Is there a way to do that directly from the terminal instead of modifying the program. Software Development c++ http-protocol ![]() |
I am trying to copy the contents of a folder into another folder in another drive using XCOPY. Here is code I have now but it isn't working and I figure xcopy would be the easier way to go because MOVETO and CopyDirectory haven't been working because its copying files … Software Development file-system vb.net | |
I need know what is the size of a address of one variable, in other words, how much bytes I need to store the address of a variable (in compilation time). Unhappily not is possible use sizeof in define pre-processors, like this: [CODE] #define ADDRESS_SIZE sizeof(void *) [/CODE] So, I … Software Development c | |
I am preparing a Business Management System, in which the user enters the details of purchase and sale, where item number identifies the stock availability. Suppose i purchased item1 as Business Stock, it was not in the stock, it is updated in table 4. But if it exists, i gave … Software Development open-source visual-basic | |
hello everybody , good day , i just need to insert an image : "BosqueTK.jpg" in a speciale place in my window Tkinter using .place(x= , y= ) , for this i created a frame f2 placed like : [CODE]f2.place(x=130 , y=213) [/CODE] , and want to insert in it … | |
Hello guys, I am new to programming. I've recently started working on vb6. Guys, can you tell me what are .dll files and what is the use of them??? Software Development visual-basic | |
Hey guys, I am trying to find .NET Framework Configuration Tool which used to be in the control panel for older versions such as .Net Framework 2.0. I just noticed that it is not there anymore, and mscorcfg.msc is also missing from the machine. I googled on it and one … Software Development asp.net assembly vb.net visual-studio | |
Guys I have an homework activity creating a simple calculator and I encountered some errors in my code can someone help me out of this activity or revised my code. My code have not finish yet and still thinking how my calculator works or what code to be in functionality. … Software Development java |
The End.