43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for steven8579

when i print the items in my listboxes it just keeps going and when it gets to the end of the page, it justs cuts off the rest. how do i get it to go to the next page. This is the code i have [CODE] private void docPrint_PrintPage(object sender, …

Software Development printer
Member Avatar for kvprajapati
0
211
Member Avatar for manish250

hello all i m writing a script in which i am trying to set classpath using this export CLASSPATH=$CLASSPATH:/usr/java and then i run the script But nothing is added in the bash_profile

Software Development shell-scripting
Member Avatar for griswolf
0
809
Member Avatar for _neo_

I have string like: 'par1=val1,par2=val2,par3="some text, again some text, again some text",par4="some text",par5=val5' I have to split it to parts like: par1=val1 par2=val2 par3="some text, again some text, again some text" par4="some text" par5=val5' I use this code: [CODE] a = 'par1=val1,par2=val2,par3="some text1, again some text2, again some text3",par4="some text",par5=val5'.split(',') …

Software Development python
Member Avatar for Gribouillis
0
10K
Member Avatar for thelostboy

Hi all, I am currently studying for my degree in software development and have just started using java. In an effort to get ahead of the game I have bought some books on c++ and can happily report I have ubderstood everything up until the part about bitwise opertaors I …

Software Development c c# c++
Member Avatar for thelostboy
0
146
Member Avatar for wewehalim

Hi, i am developing a software using microsoft visual studio basic 2010. I used a datagridviewcontrol to display a list of data from product table. What I want to do (actually i am not sure how to do it, or is there a way to do it), when i choose …

Software Development vb.net visual-basic visual-studio
Member Avatar for wewehalim
0
166
Member Avatar for bangor_boy

What is a better way to write the code, [CODE] public void showFeelings(int howManyGoals) { switch (howManyGoals) { case 0: System.out.println("Oh dear, not very good"); break; case 1: System.out.println("Oh dear, not very good"); break; case 2: System.out.println("Oh dear, not very good"); break; case 3: System.out.println("Ive seen donkeys shoot better"); break; …

Software Development java programming-construct
Member Avatar for JKP()
0
183
Member Avatar for gerard4143

I have a simple question about objects and exception handling. What happens to an object after its thrown? Does the implementation take of cleaning up that object or should I be aware of any situations that may require extra care...I've read this from - Inside The C++ Object Model by …

Software Development c++
Member Avatar for gerard4143
0
129
Member Avatar for MasterGberry

Getting this error code, is there something about std::remove() that I am not understanding here? 1>AoE2Wide.cpp(337): error C2664: 'strcpy' : cannot convert parameter 1 from 'std::string' to 'char *' I tried using '=' instead of strcpy() too, no luck. [CODE] class Item { public: int Pos; int ReferenceValue; std::string Type; …

Software Development c++
Member Avatar for MasterGberry
0
221
Member Avatar for vbx_wx

I am getting this error when compiling in Eclipse Indigo in windows: [code] mingw32-make all 'Building file: ../src/testing.cpp' 'Invoking: GCC C++ Compiler' g++ -I"c:\MinGW\lib\gcc\mingw32\4.5.0\include\c++\tr1\" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testing.d" -MT"src/testing.d" -o "src/testing.o" "../src/testing.cpp" g++: no input files mingw32-make: *** [src/testing.o] Error 1 [/code] Can someone help me …

Software Development c++
Member Avatar for vbx_wx
0
123
Member Avatar for dotancohen

I have a Form that throws this when I close it: "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." This seems to be the offending code, running in a child thread: [code=c#] this.Invoke(new someDelegate(someMethod)); [/code] I figured that if I could capture …

Software Development
Member Avatar for dotancohen
0
98
Member Avatar for Hoff123

Hi, this is my first post. I am making my first real text based adventure game in python and I've got an error: unbound method Main() must be called with Game instance as first argument (got nothing instead) But I am no where nere finsihed on the game as of …

Software Development python
Member Avatar for Hoff123
0
110
Member Avatar for bangor_boy

[CODE] private JButton[] buttons; private static final Character firstChar = 'A'; private static final Character lastChar = 'D'; /** Creates a new instance of ButtonPanel */ public ButtonPanel() { buttons = new JButton[4]; setLayout(new GridLayout(2,2)); Character label = firstChar; for (JButton b: buttons) { b = new JButton("" + label); …

Software Development java
Member Avatar for jon.kiparsky
0
173
Member Avatar for cavpollo

HI there, I'm trying to create Drop Down Lists dynamically. Two thing before we start: 1. Im working on a ContentPanel that is inside a master page 2. I cant add anything to the .aspx directly, so all the code must be inside the .aspx.cs This is my code: [CODE] …

Software Development client-server
Member Avatar for cavpollo
0
340
Member Avatar for Lord_Migit

So i have a weird problem that isnt exactly an error, its just something im not understanding. i have the following peice of code and the functions it calls. What happens is when the indicated line is run, i get an output telling me the 2nd constructor has been called, …

Software Development c++ storage
Member Avatar for Lord_Migit
0
185
Member Avatar for Mr.BunyRabit

Plain and simple, yet i have no idea how to do it.. Make a datagridview like you never used it.

Software Development
Member Avatar for Mr.BunyRabit
0
135
Member Avatar for divineelite

How do I return the data in the last node from the RemoveTail function? Currently I have something like below.This is a basic doubly linked list. [CODE]class List; class Node { Node* next; Node* prev; void* data; public: Link( void* pData ) : next( 0 ), prev( 0 ), data( …

Software Development c++ linked-list
Member Avatar for divineelite
0
185
Member Avatar for weloki

I'm working on scraping HTML pages and transforming the selected content from them into XML and I've been seeing a few errors here and there thrown by the Saxon XSLT parser: WARN [2011-01-07 14:44:35 EST] (SaxonTranslator#429473) improper java log: XPTY0004: A sequence of more than one item is not allowed …

Software Development regex xml
Member Avatar for iceandrews
0
842
Member Avatar for Neversleepin

Hi, i'm trying to copy all txt files from a directory into one file to another directory. But i have the following error: "FileStreamsTest: java.io.FileNotFoundException: . (Accès refused)"" My txt files are located in the project folder of NetBeans. here is my code: [CODE]package FileStreamTest; import java.io.*; class FileStreamsTest { …

Software Development file-system java java-netbeans
Member Avatar for bibiki
0
1K
Member Avatar for moroccanplaya

[CODE] while (choice != QUIT) { choice = get_menu_choice(); if (choice == 1) { while(1)//while loop that i want to break out of { puts("please give your archive a name and a path:\n"); scanf("%s", &archive_name); if( create_pointer = fopen(archive_name, "r") != NULL) { printf("file already exists\n"); continue; } else { …

Software Development c
Member Avatar for sbesch
0
86
Member Avatar for shack99

Hey again, I'm having another problem unfortunately. We were asked to create a tree that has binary tree properties as well as max heap property. (take A(7),C(8) and B(3) ; the tree should be so that the it should alphabetically represent a binary tree and numerically represent a heap) I …

Software Development java queue
Member Avatar for jon.kiparsky
0
13K
Member Avatar for MasterGberry

This is the weirdest bug I have gotten yet. Its late, and I can't figure out why this is not working....I thought I had the constructor set up right. I am sorry that I am asking for so much help, but I have learned a LOT in these past few …

Software Development c++
Member Avatar for MasterGberry
0
573
Member Avatar for ajst

Hi guys, I've been looking into reflection and was wondering if anyone had any good tutorials or a good use for it. I understand how it works but can't think of an example of when it would actually be used. A website with a task that needs reflection to solve …

Software Development java
Member Avatar for ajst
0
155
Member Avatar for DoctorGiraffe

Hello, so i'm having problem with Regex. I'm trying to use to put names in a checkboxlist. But the page where i want the names from have to be accesed by login in on the website. But the regex doesnt read from the VB WebBrowser it reads from... the internet(?) …

Software Development html-css vb.net web-browser
Member Avatar for DoctorGiraffe
0
632
Member Avatar for asterix15

i know that the prototype of putchar() is: int putchar(int ch); eventhough its return type is int why does it print ch in character format instead of printing it as its ascii equivalent?

Software Development c
Member Avatar for anirudh33
0
135
Member Avatar for noel9

pl help i m getting insert into error [CODE] Private Sub Addbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Addbtn.Click Dim mycmd1 As OleDbCommand Dim sqlq1 As String Try If Addbtn.Text = "Add" Then Idtxt.Text = Me.max + 1 clear() Addbtn.Text = "Save" Else sqlq1 = "Insert into Member …

Software Development vb.net
Member Avatar for noel9
0
121
Member Avatar for waldchr

Hi I am writing a 2D game that only uses the arrow keys for input. I have done a search on this site fro ways to get input from the arrow keys and have come up with many solutions. However all of them use the getch() function. Normally this would …

Software Development c++
Member Avatar for Cosmin871
0
638
Member Avatar for james6754

Hi..... [CODE] private void button1_Click(object sender, EventArgs e) { Decimal[] mydecimal = new Decimal[10]; for (int i = 0; i < mydecimal.Length; i++) { mydecimal[i] += i; } foreach (Decimal mydec in mydecimal) { int count = 0; MessageBox.Show("I am button "+ Convert.ToInt32(count)+" in mydecimal"); count += count + 1; …

Software Development
Member Avatar for james6754
0
128
Member Avatar for moroccanplaya

i want to know how to check if the file already exists before creating the file? [CODE] puts("please enter a file name to create:\n"); scanf("%s", &file_name); create_pointer = fopen( file_name, "ab"); if( create_pointer == NULL) //create file// else { //file already exist// how would you check if the file already …

Software Development c file-system
Member Avatar for WaltP
0
269
Member Avatar for juniper2009

Dear All First of all I wish you a very happy new year. I have been trying to understand the depreciation matters. As you can see in the codes below, There are 3 handleEvent methods used as pressbutton action , radio button selection action and dropdown list selection action. Now …

Software Development java java-swing
Member Avatar for masijade
0
160
Member Avatar for deconstruction

Anyone know how to make the return key used in a text box trigger an event?

Software Development vb.net
Member Avatar for deconstruction
0
154
Member Avatar for cirno

Hi, I have this question about how to retrieve a column with DateTime from MySQL as String and put the data in a textbox. :| So I've been using something like this... [CODE]Private Function check_ResitDate_ResitNumber() Dim SQLquery As String Dim rrnRD As OdbcDataReader Dim DiTi As DateTime SQLquery = "SELECT …

Software Development mysql vb.net
Member Avatar for cirno
0
3K
Member Avatar for NoviceChrilill

HI, I have now for more than 24 hours tried to figure out how I return the index number of the second smallest integer in an unsorted array. Some how, I do not get the index number returned, can any one see what I´m missing? As the program runs now, …

Software Development java
Member Avatar for unique72
0
591
Member Avatar for JJHT7439

I was just playing around in python trying to get a basic sort of linked list working. I was able to make a simple linked list using an article I read online that looks like this: [CODE] class node: def __init__(self, value = None, next = None): self.value = value …

Software Development linked-list python
Member Avatar for JJHT7439
0
149
Member Avatar for MasterGberry

I have heard there is a C++ split function, but I have not yet found anything to help me work with what I have. I have the following: [CODE]001E3897 1024 HV regread set [rootPos: 0001CBE7, offset 1862832 ][/CODE] I need to be able to take this and split it into …

Software Development c c# c++
Member Avatar for MasterGberry
0
2K
Member Avatar for integer*09

Any idea how to check if a text file is still being opened by another program?? I wanted to write to the file after the other program had finished its task and closed the text file. As i know two programs cant open the same file at the same time.

Software Development c++ file-system
Member Avatar for enriquezrene_ap
0
154
Member Avatar for DoctorGiraffe

So i have several tabs, and i close them all using a button with:[CODE]TabControl1.Controls.Remove(TabControl1.SelectedTab)[/CODE] But I have been trying to figure out how to make sure the main tab doesnt close. What can i do to make sure the main tab can't shut down, when closing tabs with the above …

Software Development vb.net
Member Avatar for DoctorGiraffe
0
118
Member Avatar for MasterGberry

SO i have a function that returns a call to another function which returns a class, and I am getting a compiler error... AoE2Wide.cpp(179): error C3073: 'AoE2Wide::Patch' : ref class does not have a user-defined copy constructor [CODE]return FindPatchForExe(fileSize, exeMd5, exeFilename);[/CODE] Here is the definition i made for the class …

Software Development c++
Member Avatar for MasterGberry
0
1K
Member Avatar for Mr.BunyRabit

Hey there i have a bit of a problem. You know when on the internet theres Ten million topics about the thing you struggle with but not oNE of them works? Well.. thats exactly whats happening now. i have a datagridview i set up, and i can delete/edit it all …

Software Development
Member Avatar for Mr.BunyRabit
0
167
Member Avatar for Arbus

can somebody explain me about parameters in initgraph in c++ graphics???

Software Development c c# c++
Member Avatar for mrnutty
0
64
Member Avatar for Joey_Brown

Hello Is it possible to somehow place another string inside a string ? Example: char array1[4]= "!!!" char array2[5]="joey" //Replace e with array1 Output : jo!!!ey Thank you for any kind of input

Software Development c c# c++
Member Avatar for Joey_Brown
0
90
Member Avatar for Frederick2

Is there a way to pre-specify a specific string buffer size for the underlying buffer to which repeated concatenations are going to be made in a loop with the purpose of eliminating time wasting re-allocations and block movements of characters from one buffer to another? I have tried the string::reserve() …

Software Development c++
Member Avatar for Frederick2
0
356
Member Avatar for Akill10

Hi, I've been thinking about this for a while. What is the best way to design a program? What I don't understand is how people think of which classes etc. they will use and what they are called. For example, in a program which simulates the card game BlackJack. How/why …

Software Development c++
Member Avatar for Akill10
0
121
Member Avatar for java666

Hi, I need help with an assignment for a class I'm taking. The assignment requirements are as follows: 1.Carefully study the class structure in Products.java. Here is Products.java: [CODE]abstract class Product { protected float price; // return the price of a particular product abstract float price(); } class ComputerPart extends …

Software Development apple data-structure java printer
Member Avatar for java666
0
805
Member Avatar for hanvyj

I am trying to refer to the class a nested class is 'in'... The 'this' keyword refers to the nested class, so I need something like super.this (except not at all like that) :/ I think the code below describes what I am trying to do: [CODE]public class Nest { …

Software Development java
Member Avatar for hanvyj
0
102
Member Avatar for Nivass

Hi, How to improve the quality of the image when zoomed. Thanks in advance...

Software Development image
Member Avatar for buyoh
0
123
Member Avatar for Janu Sam

Hi I am new to Java. I am trying to develop a tool in which I am trying to download a file from a link. When I go to that link using my java program, IE is opened and its default File Download window is showing. But I need to …

Software Development file-system java
Member Avatar for Janu Sam
0
270
Member Avatar for Nivass

HI, I have loaded the image in the picture box. I have clicked with mouse at a point on the image and get the pixel value for that point (using e.x and e.y). now i zoom the image. How to get the pixel of the same point in zoomed position …

Software Development image
Member Avatar for Nivass
0
2K
Member Avatar for Nivass

Hi, 1.. loaded the jpg to picture box (in Size mode as Zoomed). 2. I drawn a rectangle on the picture box and taken the coordinate. 3. opens the jpg in paint and observed the coordinate (where i drawn rectangle on the picture box). when i compare the rectangle coordinate(x …

Software Development
Member Avatar for Nivass
0
108
Member Avatar for zetologos

What is the difference between makin an ArrayList these two difference ways? i know the method will be the same and both will essentially do the same thing. but why two ways to initializing arraylist? [CODE] ArrayList<String> list = new ArrayList<String>(); List<String> myList = new ArrayList<String>(); [/CODE]

Software Development java
Member Avatar for masijade
0
104
Member Avatar for alonewolf23

[CODE] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int odd(int nValue) { nValue= nValue -1; return nValue; } int main() { int nValue; cout << "Enter a Positive Number: "; cin >> nValue; while ((nValue>2) && (nValue % 2 == 0)) { nValue = nValue -2; cout << …

Software Development c++
Member Avatar for Red Goose
0
139

The End.