43,549 Solved Topics
Remove Filter ![]() | |
I know that windows has the #include <windows.h> Header but what does linux have and does it pay to program for linux, I mean like if i program for microsoft ofcourse ill get paid but are there linux "companys" that will also pay good? Reason why i ask is becuase … | |
Im having a lot of trouble trying to figure out something that seems like it would be easy. For my final project I have to create a GUI application. I got it set up and working where when you click the button it will display some text depending on what … | |
Hi, this is part of an assignment question and probably something I should know. I have 2 classes. I have a method in one class that creates an instance of the other class and sets one of its attributes to a certain value. The class that has its attribute set … Software Development java | |
My application has a lot of buttons on it, and in order to create a skin for my application, I've been just creating a lot of images in my working directory and loading them all into my application as ImageIcons. I like working with ImageIcons, but not working with a … | |
I would like to keep on checking a JTextField until the field equals ten digits. When the JTextField equals ten digits then an event will happen. I want to do this without a button. Here is what i tried to do: JTextField get = new JTextField(10); String a; public className(String … Software Development java | |
i am using WebBroswer object in Vs2010 but it doesnt display some of scripts like flowplayer. i tried in internet explorer its ok. i think i cant use all features came with ie How can i update webbrowser to solve this problem? i cant see it in vb. cant work … Software Development vb.net | |
Hi all, I have a very large file so I want to dynamically allocate the memory of a 2d array and then fill it up with the file inputs. Before i used malloc to make the 2d array, everything worked fine (I was using a practice small .txt). However, i … Software Development c | |
First, i'm new to C and trying to teach it to myself so be gentle. All i'm trying to do is malloc a block of memory so that i can store a few strings. These strings are to be pointed at by an array of pointers so that as i … Software Development c | |
Hi! How can I insert commas in numbers. For example, number is 123456789 , now I want that after inserting commas it should become 12,34,56,789.... how can i do this....... Software Development | |
Hi, I need help to make a perl program work. I have two files - file 1 and file 2. The contents of File2 is to be searched with the contents of file 1. File2: 2 tab-delimited columns XM:1120002 complex-solution MM:0999111 blue-green solution UX:1020022 activity unknown, (simple/complex?) File1:(one column of … Software Development file-system perl | |
class Mixer { Mixer() {} Mixer(Mixer m) { m1 = m; } Mixer m1; public static void main(String args[]) { Mixer m2 = new Mixer(); Mixer m3 = new Mixer(m2); m3.go(); Mixer m4 = m3.m1; m4.go(); Mixer m5 = m2.m1; m5.go(); } void go() { System.out.println("hi"); } } The answer … Software Development java | |
Private Sub PrintDocument3_PrintPage(sender As Object, e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument3.PrintPage Dim PrintFont As New Font("Arial", 18) Dim LineHeight As Single = PrintFont.GetHeight + 2 Dim Horizontal As Single = 100 Dim Vertical As Single = e.MarginBounds.Top Dim PrintLine As String = "This is a Chapter 4 Testing" Static pageCount As … Software Development vb.net | |
Hello, I am such a rookie when it comes to C#. I have created a class with a list. I am needing to read an xml file into this from inside the class. Then I am needing to manipulate this list from inside the class as well. I have everything … | |
I am learning to using STL, and I'm currently on vectors. I have seen a lot of examples and practiced a lot on my own using built in types, but I'm finding very difficult storing objects that I create my self in a vector. Everything works fine when I add … Software Development c++ | |
I have created a JFrame with two JPanes (mainPanel and secondPanel)in it. I am trying to update the first JPane (mainPanel) with a JPane that is returned by another class of the project. How can I do that? Thank you. Software Development java | |
I have a question about a better way to do this as what I've written seems clunky. I'm trying to generate 2 variables here that will be used as the date in a BETWEEN clause in MySQL. In order to get the proper construction (YYYYMMDD) I am converting to a … Software Development python | |
i did a program in xp and when i m trying to open this program in win7 it gives an error i think i should convert this program to win7 but i dont know how to do is there any way to do it? thx for answers Software Development vb.net | |
hi, i'm trying to do some appointment book so i decided to use MonthCalendar control and date changed event for choose the date i tried dataset.table.rows.find() function on other tables which have int primary key and it works its finds my row/s i need but when i tried this func. … | |
been trying to google it for a while now but didnt help using the " "... anyway i need to do a recursive search inside a sub tree of the file system. given a folder A , I need to go through all of its sub folders. so far the … Software Development c++ | |
I have made 2 classes; Customer and Repair. I have a map<String, Customer>(customerDetails). Customer objects hold a map<String, Repair>(repairs). My GUI has 2 JTextAreas, notes and results. In notes ou type some notes and when you choose save the notes appear in results and a new Repair is created with … | |
I have a form that consists of only a TableLayoutPanel (which fills the entire form) containing a vertical stack of buttons. The resulting app is used in conjunction with another app. What I would like is to have the vb app do something when the mouse enters the form. Unfortunately, … Software Development vb.net | |
I have created a JToolBar and I added 3 JButtons inside it. Is there any way I can increase the horizontal space between the buttons?(Now they seem like they're stacked together) Thank you. Software Development java | |
I have created a form and I added a JFileChooser on it. When I start the form , the JFileChooser appears when the form loads. I gave used netbeans fileChooser tutorial.(http://netbeans.org/kb/docs/java/gui-filechooser.html) Any ideas? Thank you. Software Development gui java java-netbeans | |
Hey broskis! I've only taken one class in introductory programming and my internship wants me to organize some excel data (it's in txt now). We never went over files in my c programming class so I'm struggling with this code a bit. For practicing purposes my text looks like this. … Software Development c file-system | |
Hi, I have 2 ddl, ddlCountry and ddlState, on selecting ddlCountry, the ddlState IS updated based on the chosen country BUT... when I select ddlState, the selected item in ddlState is not being masked as selected, thus I can't get the selected value. Here is the code: <asp:DropDownList ID="ddlReceiverCountry" runat="server" … | |
Ok, first post. Ive tried to avoid asking for help when i've had problems before and usually managed to solve things on my own but on this, i'm just going round in circles. I'm trying to teach myself basic directx9 and so far I made a program that takes a … | |
Im having a bit of trouble converting the delphi code below into c++, i'm sure I need to use a Switch statement but I seem to be getting it wrong. Basically, I have 6 panels mounted on a larger Panel, each caption will contain a random number. A button then … | |
I'm having a huge problem trying to learn how to export classes from a DLL. I can do some functions just fine but the classes are mangled :S I've tried from .def file, I've used extern "C" but when I did, it threw errors and won't export the class at … Software Development c++ | |
This is my code: //VariableArguments3.java public class VariableArguments3 { static void test(String s,int ...v) { System.out.println("length:"+v.length+" String:" +s); for(int x:v) System.out.println("x="+x); } static void test(String s,double ...d) { System.out.println("length:"+d.length+" String:" +s); for(double x:d) System.out.println("x="+x); } } and //VariableArguments3.java public class VariableArguments3Test { public static void main(String args[]) { VariableArguments3.test("harshal",33,43,34,23,24); VariableArguments3.test("hosha",43,442); … Software Development java | |
I'm Creating a class that I want to call a recursive function within it. However, the complier says i cant declare a function within a method, I was wondering how I could Recursively call that function, in the method, or how to recursively call that method, with out declaring the … | |
in our college we have a repeated C aptitude question... which goes like this.... [code] int i=5 printf("%d %d %d", i--,i,i++) [/code] and the answer given to us was 5,6,5.... when asked it was said that the compiler evaluates printf from right to left...... can somebody throw some light on … Software Development c | |
This is my code: //VariableArguments1.java public class VariableArguments1 { static void test(int ...v) { System.out.println("length:"+v.length); for(int x:v) { System.out.println("x="+x); } } } and //VariableArguments1Test.java public class VariableArguments1Test { public static void main(String args[]) { test(33,43,34,23,24); test(43,442); test(); } } Following are the errors i am getting: VariableArguments1Test.java:5: cannot find symbol … Software Development java | |
Hi,I'm writing a Java/Android application which consumes web services(these web services are written in .Net) from a certain URL.My problem is that some web services return to my application objects which are defined in .NET.Is there anyway my application can manipulate those objects? | |
I've read that C# compiler's name is csc.exe I have MonoDevelop3 And can't find a file with that name. Also can find nothing which looks like a compiler in MonoDevelop's directories. The documentations didn't help too. Could you help? Thanks | |
Anyone has any idea why this error is happening? The weird thing is that this page works in one server but not in another. Parameter is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about … Software Development file-stream vb.net visual-basic | |
class Program { static int localVariable = 0; static int PropertyOne { get { return localVariable; } } static void set_PropertyOne(int newValue) { localVariable = newValue; } static void Main(string[] args) { } } **Error: already defines a member called 'set_PropertyOne' with the same parameter type** please give me reason … Software Development | |
I installed Apache Tomcat 7.0.28 in my JBuilder6. I use JDK 1.6.0_32 (jre6). I can get http://localhost:8080/ page. However, when I tried to run my JSP file, I encountered following error: org.apache.catalina.startup.Bootstrap start -config "C:\Documents and Settings\user\jbproject\whoznextdoor\conf\server8080.xml" -nonaming Jun 23, 2012 8:22:47 AM org.apache.catalina.startup.Bootstrap main WARNING: Bootstrap: command "-nonaming" does … | |
Hi Everyone, I am programming an ordering site in VB.Net and ASP.Net. I start with the main ordering form and the idea is that the user will select a subject from the drop down list and then click a button to retrieve all modules associated with that subject in a … Software Development vb.net | |
I want to consume a WCF service with DataContracts from my Android app, and I'm using Eclipse as my IDE. In .NET when I add a service reference I automatically get metadata and automatically-generated code for calling that service. Is there a way to do so in Java/Android/Eclipse? I wouldn't … | |
hi guys i need to develop an application and to do so i need to import in my project some web references.Does anybody has any idea how i can do that in eclipe(juno version) Software Development java | |
I have: 39H4-GTT7-LGLN And I'm trying to find every possible combination of sets. Basically each section is scrambled within itself. So there's only 16 combinations for each section. Example the first section I wrote it out as: 39H4 394H 349H 34H9 49H3 4H93 493H 4H39 9H34 934H 943H 9H43 H493 … Software Development c++ | |
Here when I execute the program, the output I'm getting on all the tries is 342 (naturally first 34 prints together then 2 seconds later 2 prints). My doubts is that is the order of start() [x.start() followed by y.start()] important in order of execution? Shouldn't the output be 234? … Software Development java | |
Hi, i'm using the following cmd to remove all lib files ending with .a find . -name "*.a" -exec rm -rf {} \; I have a file which i dont want to delete , say test.a, I just want to know how to make rm not delete test.a, but delete … Software Development shell-scripting | |
When I plug in the USB joystick, I'll have to go to the control panel and select game controllers. I click on the properties and a pop-up is displayed. On the top left hand corner of it, there's this small square 'picture' with a plus sign at the middle indicating … | |
Hello all. I have a question on searching a List(Of CLass). I am not sure how it is labeled List<OF T> or List(Of Class) However you label it here is the Class EXT Public Class EXT Implements IComparable Private m_extension As String Private m_exe As String Private m_description As String … | |
Good Afternoon, I'm reviewing structs, but don't get the concept very well. Assume the following structure declaration is given struct Rectangle { int length; int width; }; write a function that returns a Rectangle structure. The function should store the user's input in the members of the structure before returning. … Software Development c++ | |
I've got an XML file that looks like this: <routingTable> <router> <id>1</id> <ip>1.1.1.1</ip> <nexthop>1.1.1.2</nexthop> </router> <router> <id>2</id> <ip>2.2.2.1</ip> <nexthop>2.2.2.2</nexthop> </router> </routingTable> With possibly more than two router entries as time goes on. What I would like to do, is take each router instance and throw it into a dictionary. This … | |
First i introduce what is my assignment doing. I'm doing a Ordering System of Donuts which getting customer order product and quantities, and the System will calculate the FINAL PAYMENT after discount. Problem: Now i have a customer order and added into shoppingCart (ListBox), and inside the listbox will display … Software Development vb.net |
The End.