132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dinwal

I have a project that I am working on. This is basically an extension of that. There is this weird error (Seg fault) when I run this code. What makes this error weird is that I print the value stored in the pointer and in the next line I pass …

Software Development c
Member Avatar for dinwal
0
105
Member Avatar for Ghost

I have this code: [CODE]try { robot = new Robot(); robot.mouseMove(0,900); robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); }catch(Exception e){}[/CODE] And I want it to click the "Start" button on Windows computers. The mouse moves to the correct location, but does not click. Advice?

Software Development java
Member Avatar for Clawsy
0
190
Member Avatar for Clawsy

Hi, I want to "click" with the mouse using a Robot object like this: [code] Robot bot = new Robot(); bot.mousePress(InputEvent.BUTTON1_DOWN_MASK); bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); [/code] This results in: [B]Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Invalid combination of button flags[/B] I even delayed the process before it starts clicking to have time to release …

Software Development java
Member Avatar for Clawsy
0
2K
Member Avatar for Alex_is

anyone enlighten me? i have to find the median...below i found the mean and read the question wrong. how do calculate the median? i have my text input file which has 7 ints, 1-7, so i kno #3 will show up for median...but i dont know how to code it...pls …

Software Development java
Member Avatar for stevelg
0
406
Member Avatar for adraganov

Hi, guys. I've been reading your forum for some time. Now I need a little help again. I am trying to read a bitmap file using BITMAPFILEHEADER, BITMAPINFOHEADER and RGBQUAD in windows.h - I need RGB values or only one of them. All the info in header structures is OK. …

Software Development c file-stream file-system
Member Avatar for adraganov
0
267
Member Avatar for jas2010

I wrote a program that should before it WampServer I used from following code [CODE] System.Diagnostics.Process.Start("C:\\wamp\\wampserver.exe");[/CODE] wampServer was run but services isn't run I should do how work ?

Software Development
Member Avatar for DdoubleD
0
56
Member Avatar for gunjannigam

How to draw a circluar arc of given radius say 20 passing from two Given points. I have seen the function Arc2D.Float but can figure out how to find the required parameters for the contructor and also for QuadCurve2D cant figure out the control point.

Software Development java
Member Avatar for james chaco
0
94
Member Avatar for bamcclur

So I pretty much finished a memory management simulator, and it worked for the test cases my professor gave me, but when I added a test case it didn't work as it should have. The main issue is, the first job will start, and finish, but the wait time wont …

Software Development c++ file-stream
0
56
Member Avatar for kahaj

First off, let me be honest in saying that this is homework. I am not asking for it to be done for me, merely some help in figuring out what I have messed up. Secondly, I am not good with VB, nor do I particularly care for it, but seeing …

Software Development microsoft-office vb.net
Member Avatar for TomW
0
107
Member Avatar for bords

hello... i just want to ask for help on how to add or retrieve data in datagrid... in my case, i have my data and im just going to output it in datagrid view.... plz help me guys...

Software Development
Member Avatar for Geekitygeek
0
108
Member Avatar for redstrykr

I made an Electronic Dictionary for a college project and it's around 85-90% done. The two final issues I'm having is to figure out how to get a count on each individual word ( there are over 1000 words ), keep track of each of them, and display them ( …

Software Development
Member Avatar for Geekitygeek
0
108
Member Avatar for ahmedlibrian

Hi guys, Anybody can help me out with this. I have made a DLL with VB.net. Under project settings i have marked checked 2 things 1. Register for COM interop 2. Make assembly COM visible When i build project its done successfully. Now i take DLL file from project location …

Software Development assembly vb.net
Member Avatar for kvprajapati
0
525
Member Avatar for pardeep3dec

Can anyone please send me the ebook for VB.NET 2005. Thank you

Software Development vb.net
Member Avatar for kvprajapati
0
87
Member Avatar for bgavran3

Okay, I have a simple problem. I want to print the value of N twice and then increase it (this is just a chunk of a bigger program, ie the one in which it makes sense to do that), however, the output is "1 0". [CODE] #include "stdafx.h" #include <iostream> …

Software Development c++
Member Avatar for amrith92
0
140
Member Avatar for rzhaley

im supposed to write a code that you prompt to enter 10 different grades then drop the minimum value, while computing the average of the remaining 9. I'm getting infinity as the answer when I run the program so I know my min is messed up, somewhere but i cant …

Software Development mathematics
Member Avatar for Geekitygeek
0
233
Member Avatar for Byrne86

Iv made conways game of life, but I want the user to be able to select a pre defined pattern or for them to be able to choose different shaped brushes then draw with that brush. Aswell, when I use the radio buttons to change the size, the program goes …

Software Development
Member Avatar for Geekitygeek
0
227
Member Avatar for godsgift2dagame

Hey guys, I was wondering how I'd go about returning a "list" of strings inside a member function. I'm assuming an array would have to be created, but I'm not sure...I've tried looking it up but anything with "string" Google'd leads to the string class. Please, I'd really prefer not …

Software Development c++
Member Avatar for jonsca
0
165
Member Avatar for lotrsimp12345

i get a stack error [CODE] template <class KT, class DT> void my_bst<KT,DT>::show_bst_structure() const { my_bst_node<KT,DT>* b=root; show_bst_structure(b,0); } template <class KT, class DT> void my_bst<KT,DT>::show_bst_structure(my_bst_node<KT,DT>*& p, int level) const { int i; if ( root == NULL ) { for ( i = 0; i < level; i++ ) …

Software Development c++
Member Avatar for lotrsimp12345
0
93
Member Avatar for P00dle

I've found this online(Can't remember where) and I thought it might be usefull to other people as well:[CODE]package org.kodejava.example.text; import java.util.List; import java.util.ArrayList; import java.util.Locale; import java.util.Collections; import java.text.Collator; public class StringShortWithCollator { public static void main(String[] args) { List<String> fruits = new ArrayList<String>(); fruits.add("Guava"); fruits.add("Banana"); fruits.add("Orange"); fruits.add("Mango"); fruits.add("Apple"); // …

Software Development apple java
0
65
Member Avatar for questionary

Hi. Is there any way to develop app (WinForms) which will fill out textboxes of web app(Asp.net) with standard data. For example I have in my web application 10 textboxes which have to be filled with cureent date. I do not want to fill every single textbox. What functionality do …

Software Development asp.net web-browser
Member Avatar for questionary
0
88
Member Avatar for ngnt4

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TravelExpenses extends JPanel { private JTextField days; //declaring textfields and labels private JTextField lodging; private JTextField airfare; private JTextField taxiCost; private JTextField miles; private JTextField rental; private JTextField seminarFees; private JTextField parkingFees; private JLabel daysL; private JLabel lodgingL; private JLabel airfareL; private …

Software Development gui java java-swing
Member Avatar for ngnt4
0
114
Member Avatar for phpbeginners

Hi all, I want to convert 1 to 000001 in Visual Basic 6 example: 1 = 000001 2 = 000002 thanks

Software Development visual-basic
Member Avatar for phpbeginners
0
63
Member Avatar for GadiK

Hi. I'm writing a function for a project that has many authors. I thought it would be nice if there was a tool (VS add-in) that would enable me to insert a comment in the form of a flow chart so that I wouldn't have to write a lot of …

Software Development c++ visual-studio
Member Avatar for GadiK
0
100
Member Avatar for ngoelnoi

Hi, I am facing a problem in JTextPane. Actually we are creating a editor like application in Java Swing. In JtextPane we type the matter and set some metter as heading1, heading2 so on as user required and some matter as simple story. My problem is that how can we …

Software Development java java-swing
Member Avatar for ngoelnoi
0
104
Member Avatar for sselwyn

Hello! I am supposed to write a recursive method for my assignment in my class but I'm not sure what is wrong with the code I wrote. The method should print all of the letters of the alphabet up to (including) the parameter value. Some examples of what it's supposed …

Software Development java
Member Avatar for sselwyn
0
85
Member Avatar for yoshi14

I am halfway through writing a program to calculate training times, and best exp to health ratios for any game which I can use it in but i have run into an error. I am having a problem loading a form from when a menustrip item is clicked in Visual …

Software Development c++
Member Avatar for yoshi14
0
143
Member Avatar for lotrsimp12345

Here's what I have so far [CODE] template <class KT, class DT> void my_bst<KT,DT>::show_bst_structure(my_bst_node<KT,DT>*& p) const { my_bst_node<KT,DT>* le=NULL; my_bst_node<KT,DT>* ri=NULL; //empty tree if(p==NULL) { cout<<"tree is empty\n"; } else { //print node key cout<<p->data<<endl; if(p->left!=NULL&&p->right!=NULL) { show_bst_structure(p->left); } else if(p->left!=NULL) { cout<<"enter left\n"; le=p->left; show_bst_structure(le); } else if(p->right!=NULL) { …

Software Development c++
Member Avatar for lotrsimp12345
0
105
Member Avatar for ejazmusavi

i have a c# project with a table "Pics". it has two columns R_no(int) Picto(OLE). How i can store images if different formats in this table and retrieve it to show in a picture box. plz help me to solve this my code is as below [code=c#] string q2 = …

Software Development image
Member Avatar for sknake
0
365
Member Avatar for xonxon

[code] The following code lists the nodes in a binary tree in two different orders: preorder:C,B,A,E,D,F,H postorder:A,B,D,H,F,E,C Draw the binary tree. The answer is : C / \ B E / / \ A D F / H so, my question is how should i think or is there any …

Software Development c++
Member Avatar for mrnutty
0
142
Member Avatar for ceileyg

Hey all - yes, this is another thread asking for some homework help, but I've got a solid start, just looking for some fresh ideas. Anyways, the task is to create a java clock class and access/use it from a driver. I saw something similar on here, but not quite …

Software Development java oop
Member Avatar for masijade
0
5K
Member Avatar for P00dle

I need to write a combination of String and Images to a file. The catch is that I have to write some String, then the Image, then more String again. Does anyone have any ideas how to do this? Should I use BufferedImage?

Software Development java
Member Avatar for P00dle
0
82
Member Avatar for kool005

Hi, I need to create an adjacency list for a weighted graph. The input is given from a text file. I have created an array assigning each index a vertex. Now i have to link that array with a linked list. For example, vertex 'a' showing all the vertices that …

Software Development java linked-list
Member Avatar for kool005
0
69
Member Avatar for rrvs331

So I made this coin flipping program. It generates a random number between 1 and 2, and checks to see how many "flips" it would take for it to get 15 flips in a row. However, every time I run it, I get the same number, 13505, every single time! …

Software Development c++
Member Avatar for rrvs331
0
233
Member Avatar for nychick

I have to write a palindrome test function, I'm thinking of creating two arrays. One is inserted by the user which then populates the second array in reverse. Is this the right direction to go? Thx

Software Development c++
Member Avatar for mrnutty
0
96
Member Avatar for rhodge09

has anyone made a craps game just using PERL scripting?

Software Development perl
Member Avatar for rhodge09
0
305
Member Avatar for Dom83

Hey, I have been struggling with a problem on a project Im working on. I have 3 ints, day, month, year and I want to put them into a string I use for another function to search through a file. so lets say day = 20 month = 11 year …

Software Development c++
Member Avatar for Dom83
0
112
Member Avatar for donths

[QUOTE] Please! need help in removing (or set the element value to 0) one element of an array based on the string value that is passed to the remove method. The array contains string names read from a file. I don't know if I should post the entire code on …

Software Development java
Member Avatar for donths
0
105
Member Avatar for Jaydenn

Hello, I have made two textboxes and a button, you type into the second textbox and it's content gets displayed on the first texbox when you click the button, and also creates a new line so I can type as much as I want without it clearing. I want to …

Software Development
Member Avatar for Jaydenn
0
151
Member Avatar for BobRoss

Sorry, the thread title should read "File paths with spaces" Hello everyone. I am finalizing this little shift cipher program that reads a plain text file line by line, encrypts it, and writes it to a cipher text file. I'm just having difficulty when a user enters file paths with …

Software Development c++ file-system
Member Avatar for jonsca
0
111
Member Avatar for nevets04

As The title says pretty much, auto resize and auto format are making this very hard for me to make GUI, can I turn it off?

Software Development gui java
Member Avatar for Ezzaral
0
85
Member Avatar for COKEDUDE

I have two different parts to my program. My FundRaising.java is my problem. I'm having problems with my print statements. Why are the correct numbers not showing up? I keep getting 0. System.out.println (booster1); System.out.println (booster2); I ask the question to get the numbers and I keep on getting 0 …

Software Development java perl
Member Avatar for Ezzaral
0
355
Member Avatar for asweetroxxi

hello I wrote this code and i'm having some trubble with it. When i debugg my code i get a bunch of these errors. [TEX]c:\users\roxxi\documents\visual studio 2010\projects\lab3\main.cpp(33): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion) 1> …

Software Development c++ visual-studio
Member Avatar for jonsca
0
210
Member Avatar for Phaelax

I'm using [I]javax.xml.parsers.DocumentBuilderFactory[/I] to load an XML file. The file contains paired elements like so: <A></A> <B></B> <A></A> <B></B> <A></A> <B></B> So if I did the following: [code] Element element = <root node element> NodeList nodeListA = element.getElementsByTagName("A"); NodeList nodeListB = element.getElementsByTagName("B"); [/code] Can I assume the elements are in …

Software Development java xml
Member Avatar for Phaelax
0
138
Member Avatar for rb6k

Hi, I am new to the forum but a friend of mine showed me a question he asked on here and he got quite a good response so I figured I would take a stab at asking one myself. I am currently working on an assignment where I have a …

Software Development
Member Avatar for kvprajapati
0
110
Member Avatar for carlakawill

Hi All I am trying to connect to access 07 via a windows app using msvs 05 in c#. I have the code which ive adapted from another working app but its now not working. Initialy the form should open an display the data rows in a table called events …

Software Development dataset microsoft-access open-source
Member Avatar for carlakawill
0
102
Member Avatar for Tales

How can I initialise a Datetime^ variable with current Date? I have this idea but I'm not sure: [ICODE] Datetime^ curDate = gcnew DateTime::Now; [/ICODE] Anyone?

Software Development c++
Member Avatar for Tales
0
163
Member Avatar for PDB1982

I have my coding idea laid out, but I think there is an easier way, plus I can't really get it to work, because I don't know how to accommodate for duplicated values. Here is my data: [code] Enter name of file students StudentID LastName FirstName Q1 Q2 Q3 Mid …

Software Development c++
Member Avatar for jonsca
0
118
Member Avatar for wh33lz

So here is the question and it is really stumping me because I can print the alphabet once but cant figure out how to repeat it. First create a character array that contains the 26 letters as shown here. //Easy I can copy and paste ha. [CODE]char cAlphabet[] = {'a','b','c','d','e','f', …

Software Development c++
Member Avatar for evilctofwoc
0
6K
Member Avatar for lotrsimp12345

here is my code main [CODE] #include <iostream> #include "account.h" using namespace std; int main() { account a; return 0; } [/CODE] account.h [CODE] #include <iostream> #include "Lentext.h" #include "Deltext.h" #include <string> using namespace std; class account { private: char account_Number[11]; char name[1000]; char address[1000]; char city[16]; char state[3]; char …

Software Development c++
Member Avatar for lotrsimp12345
0
138
Member Avatar for lrh9

I'm wondering if it's possible to change the border color of a tkinter entry widget border. I don't think it is, because no such option exists in relevant documentation. You can change the width, but that just results in the whitespace being recessed - creating a raised 3d border. If …

Software Development python tkinter
Member Avatar for Ene Uran
0
12K

The End.