132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kashn

Is it possible? Like bringing a drawn image in the paint for JApplets? Is there any way to set a order of whats on the most top? Because I'm using a JTextArea, and have it do setText on the JTextArea while inside paint(Graphics g) and having it draw the image …

Software Development java
Member Avatar for kashn
0
64
Member Avatar for Curtain51

I'm having a bit of trouble with this one, the goal of this program is to enter in 1 to 5 numbers, with a maximum of 5, into a vector and then popping as many numbers as the user wants until the vector contains nothing. My problem is that I …

Software Development c++
Member Avatar for Curtain51
0
127
Member Avatar for kashn

Hi, Is there a way to format a string into a paragraph format? The closest thing I got was entering the string into a JTextArea, but the only problem with this is that the words get split in between its characters making it almost seem like two different words.... - …

Software Development java
Member Avatar for kashn
0
272
Member Avatar for sharkattack85

[code=cpp]#include <iostream> using namespace std; int main() { int length; length = 7; cout << "The length is " << length; return 0; } [/code] When i run the program, it outputs everything but the screen comes on real fast and then closes and i cant get it to stay …

Software Development c++
Member Avatar for siddhant3s
0
247
Member Avatar for mahela007

Occasionally I need to make files in certain folder using python. To minimize the clutter which such files might cause I would like to make them hidden. It's pretty easy to do this using windows explorer but I have to do it manually for every file which my script creates. …

Software Development python
Member Avatar for mahela007
0
12K
Member Avatar for Craig2231

Hi guys, hope your all well, Ok, a few days ago, my VB EE 2008 has gone strange. What happened was the program crashed and i had to force close it. So i simply re-opened the program. Now i cannot get access to my property box. Also, there are never …

Software Development vb.net
Member Avatar for kvprajapati
0
140
Member Avatar for Cliffs0fdover

Ok, I am pretty new to Visual Basic 2005. I am taking a course in it and we are creating a Department Store program right now. I pretty much have 90% of the program done, its just that when I try and move information as strings (name, province, postal code, …

Software Development vb.net visual-basic
Member Avatar for toko
0
142
Member Avatar for grommet2481

So im trying despritely to understand how to create a maze and find the shortest path. I would just like to first understand how to create a maze. Theres no need for it to be outputted at this stage, I just want to understand how it works. I found this …

Software Development java
Member Avatar for BestJewSinceJC
0
1K
Member Avatar for killdude69

I am helping a friend with a project in Visual Basic, it is a program that uses a SQL database. There are some rows in the database, we can review them just fine. So the SELECT quesries are fine, it is the INSERT queries that we are having problems with. …

Software Development dataset sql visual-basic
Member Avatar for vb5prgrmr
0
179
Member Avatar for Stefano Mtangoo

I was out of programming for long and now I'm just trying back to regain my knowledge on the language. I have forgotten how the ListCtrl get populated. Here is the tutorial but I cant explain the mechanism. Please help me to understand the whole process. Cheers :) [url]http://zetcode.com/wxpython/advanced/[/url]

Software Development python
Member Avatar for Stefano Mtangoo
0
101
Member Avatar for nuliknol

Hi, i have got a new question, is it possible to pop from the FPU stack and deposit to general purpose register without doing FIST to memory? Or in other words,, is there any way to do FISTP RAX or something equivalent? (i can't write to memory because of low …

Software Development assembly
Member Avatar for nuliknol
0
164
Member Avatar for hughesadam_87

I am trying to learn object oriented programming and am still shaky on the ins and outs of classes. I understand their purpose, but can't seem to grasp many simple operations when using them. The dive into python section on classes is not very helpful either, so if you know …

Software Development python
Member Avatar for vegaseat
0
414
Member Avatar for BestJewSinceJC

from Java Sun's JavaBeans tutorial: "The accessor methods for a bound property are defined in the same way as those for simple properties. However, you also need to provide the event listener registration methods forPropertyChangeListener classes and fire a PropertyChangeEvent (in the API reference documentation) event to the PropertyChangeListener objects …

Software Development api java
Member Avatar for Ezzaral
0
194
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
103
Member Avatar for oryesyes

Hello all, If I have the following code fragment: /* comment bla bla */ ....code... With a regular expression, how do I get/extract the comment inside this multi line comment block. With the comment characters? And how do I get all the multi line comment from in the entire file? …

Software Development perl
Member Avatar for KevinADC
0
105
Member Avatar for fatwhitetree

Hi im pretty much a total vb nub at the moment but im trying to learn. Anyway I've been trying to find out how i could load a random http proxy like 24.175.122.152:9090 from a txt file. I know how to load a random url but Im failing at doing …

Software Development html-css vb.net
Member Avatar for parkeyparker
0
902
Member Avatar for freelancelote

Hi, I'm starting with Java and have an issue with how to use the classpath variable and where to put certain library. This is probably pretty easy but it's got to the point of driving me crazy. Now, I'd like to have my library, let's call it "mylib", under C: …

Software Development java
Member Avatar for JamesCherrill
0
197
Member Avatar for CppFTW

Hi, why doesn't this code work: [CODE]int main() { cout << "Hi!\n"; #ifdef DEBUG cout << "I'm in debug mode!\n"; #endif return 0; }[/CODE] I am trying to make the message "I'm in debug mode!" only print when I am in debug mode for my IDE (Visual C++). But also, …

Software Development c++ ide
Member Avatar for CppFTW
0
262
Member Avatar for CppFTW

Hi, why isn't this code is copying the file a.txt correctly? [CODE]int main() { ifstream input("C://Users//Me//Desktop//a.txt"); input.seekg (0, ios::end); int length = input.tellg(); input.seekg (0, ios::beg); while(true) { char* buffer = new char[length]; input.read(buffer, length); ofstream output("C://Users//Me//Desktop//b.txt"); output.write(buffer, length); break; } return 0; }[/CODE] I attached a.txt and b.txt in …

Software Development c++ ios
Member Avatar for CppFTW
0
146
Member Avatar for lalafam

I am a student and am having trouble getting my for statement to work with an array. This is my first time here. Here is what have so far. Any tips would be greatly appreciated. [code=cpluslus] using namespace std; void main() {#include <iostream> // Emp is number of employees needed …

Software Development c++
Member Avatar for lalafam
0
120
Member Avatar for KeepGoing

Hi I'm just starting out with OOPin JAVA and thought i was getting the hang of it but i've been given an assignment and it's got me stumped. here is the code i have been given [code=java] public class FrogCalculator { private Frog operand1Frog; private Frog operand2Frog; private Frog unitsFrog; …

Software Development java oop
Member Avatar for VernonDozier
0
155
Member Avatar for DevC++4.9.9.2

hello (im using c#, visual studio 2008) I am trying to get Input/Output from a command prompt like process "scrds.exe". If i try to start the process with standardInput = true, standardOutput = true, or standardError = true. The program cannot start. after research the "scrds.exe" cant start due to …

Software Development visual-studio
Member Avatar for streetfighter
0
369
Member Avatar for Horia.Muntean

Hello.I'm working on a d20 based game system and I'm pretty new to python.What I've done so far is: create 6 random rolls with values 3-18 rollOne rollTwo rollThree etc. There are 6 stats that need theese rolls assigned statOne statTwo etc. I've done the part on how to assign …

Software Development python
Member Avatar for Horia.Muntean
0
128
Member Avatar for wislean

hi i need help with my grading program i need to do something so the menu comes up and make it work property i have no idea on my switch statement and how to delete student from list please help me [code] #include <stdio.h> void main() { int ssn[1000]; int …

Software Development c
Member Avatar for csurfer
0
165
Member Avatar for DAWNIE

Hi, i have manage to add up the points from different checkboxes but load in form. but how do i make everything to work in tab instead of working in form? below is the codes but works in form. Public Class Trial Private GCS_Value As Integer = 0 Private Sub …

Software Development vb.net
Member Avatar for Teme64
0
319
Member Avatar for gplkrsna

Hi, Is there a possibility of creating fixed length file in C and when the file is filled up with the contents to the limit of it's size then it should wrap up to include the new contents? Thanks.

Software Development c
Member Avatar for csurfer
0
100
Member Avatar for Peyton

Hi there, I'm having a problem with the code below: [CODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; void setArray( float [], const int Size ); void displayArray( const float * ); int main() { const int arraySize = 20; float array[ arraySize ]; // Initialise the array: setArray( …

Software Development c++
Member Avatar for Peyton
0
105
Member Avatar for chedderslam

I don't use XSLT very much, but need to modify our current file. Right now, we have the following statement: [CODE] <business_use> <xsl:value-of select="if (*:PersDriverInfo/*:kait_BusinessUseInd = '1') ))then 'Y' else 'N'"/> </business_use> [/CODE] I am trying to modify it to look at an additional node like this: [CODE] <business_use> <xsl:value-of …

Software Development xml
Member Avatar for cwlocke
0
102
Member Avatar for Aggresive_Mind

If You Want Something To Do, Try This Exercise... Define a human struct that has 3 fields: char name[50]; char gender[10]; int age; Try and use typedef in your program for your struct. Write a program that reads in a text file containing names, ages and gender of cartoon characters, …

Software Development c
Member Avatar for Salem
0
138
Member Avatar for Tank50

HI How I generate Meassage once my array is full? Thanks Tank50

Software Development
Member Avatar for ddanbe
0
104
Member Avatar for kaio-ken

[code=cplusplus] #include<iostream.h> #include<stdlib.h> int main(void) { char a,q; cout<<"Enter a char\n"; cin>>a; q=a; cout<<atoi(&a)<<","; cout<<atoi(&q); return 0; } [/code] ************************************* output for this code for input of (2 ,3,5): 2,22 3,33 5,55 **************************************... I think answers should be: 2,2 3,3 5,5

Software Development c++
Member Avatar for pwl
0
124
Member Avatar for jeremyg

Hi all, Sorry if its a newbie post, but I'm currently trying to finish a program that sorts a binary search tree using the quicksort method. It seems like it should work, but whenever I run it, the program stops at a certain part in the program and encounters a …

Software Development c
Member Avatar for jephthah
0
169
Member Avatar for bitki_1407

Hi All, I have created a program for calculating average of 4 numbers, however, Im getting an error as "Run Time Error 13 Type Mismatch" on the Click event of "Calculate Average" command button. The code written for the Click Event of "Calculate Average" command button goes as : Private …

Software Development c++ visual-basic
Member Avatar for lordofhell
0
4K
Member Avatar for jineesh

Somebody please help me... I printed first report properly, while printing second report (for eg sales bill) compiler shows an error message, "The process cannot access the file because it is being used by another process". The code is given below where the IOException was shown. [code=csharp] // Routine to …

Software Development file-stream
Member Avatar for serkan sendur
0
91
Member Avatar for daino

I'm rather uncertain as to how you go from making programs which churn values on the Dos screen to actual graphics. I'm not asking for a lesson on this, but I am confused as to how a c++ program creates/manipulates graphics. Is it all done through widgets or is there …

Software Development c++
Member Avatar for Prabakar
0
275
Member Avatar for tehbrozor

Hello, The situation here is I have a file and each line has a 8 digit number in it (aorkey) the file is called target.lst In another file (file.lst) there are tons of paths in each path there is an aorkey (somewhere its not always in the same place and …

Software Development debian open-source python
Member Avatar for tehbrozor
0
116
Member Avatar for adarshcu

[code=C] int main() { char *p = "hello all "; printf(p); } [/code] I thought the above code should ve showed a compile time error. but it din , any reason how it worked?

Software Development c
Member Avatar for adarshcu
0
71
Member Avatar for exzibit23

hello, im a beginner programmer in java (J2ME), is there a way on how to unobfuscate a java? and how to obfuscate it?? (J2ME)

Software Development java
Member Avatar for masijade
0
340
Member Avatar for lebron

Hi, I am very new to Perl and have no knowledge to initiate this through programming view. I am in need of help with adding a new user in UNIX using Perl programming . If you know my problem could you please assist me and share your knowledge for doing …

Software Development perl unix
Member Avatar for lebron
0
97
Member Avatar for wk123

Hi, im writting a remote host program for a school project and i keep getting Run-time error '40006': Wrong protocol or connection state for the requested transaction or request here's the code for the client: [code]Private Sub cmdConnect_Click() IpAddy = txtIP.Text Win.Close Win.RemotePort = 455 Win.RemoteHost = IpAddy Win.LocalPort = …

Member Avatar for wk123
0
144
Member Avatar for p2009_d

Hi Friends, I am writing a monte carlo program. I have made a structure which had different 20 objects like ALA[5], CYS[5], PRO[5], ARG[34] , MET[15]....and so on. [code=cplusplus] //this is defined in a global.cpp file// typedef struct libaa{ int num; char amino[4]; float chi1,chi2,chi3,chi4,phi,psi,omega; }; libaa ALA[1],CYS[4],ASP[8],GLU[15],GLN[15],PHE[5],GLY[2],HIS[8],HIE[8],ILE[7],LYS[27],LEU[5],MET[13],ASN[9],PRO[3],ARG[34],SER[3],THR[3],VAL[3],TRP[7],TYR[5]; //in my …

Software Development c++
Member Avatar for tux4life
0
103
Member Avatar for Gman36

Hi all, I am having a problem with the synchronizing the threads in the classic produce consume thread example. Below is my code for it. [CODE]public class Magpie extends Thread { private TreeHole treehole; private int number; public Magpie(TreeHole t, int number) { treehole = t; this.number = number; } …

Software Development java
Member Avatar for kvprajapati
0
114
Member Avatar for OffbeatPatriot

I've tried several times now to write my own neural network class and I think this is the closest I've gotten, the network seems to run properly but it doesn't seem to learn correctly. I'm trying to make it approximate exclusive or but it seems to be only capable of …

Software Development algorithm c++ ios queue
Member Avatar for OffbeatPatriot
0
152
Member Avatar for Swijr

I have a task where I'm transforming a response like this: [code] <Names> <Name> <First></First> <Last></Last> <Middle></Middle> </Name> <Name> <First></First> <Last></Last> <Middle></Middle> </Name> </Names> [/code] But I have to format it into nodes like this: [code] <name_first_1></name_first_1> <name_last_1></name_last_1> <name_middle_1></name_middle_1> <name_first_2></name_first_2> <name_last_2></name_last_2> <name_middle_2></name_middle_2> [/code] So I wanted to use position() to …

Software Development xml
Member Avatar for Swijr
0
96
Member Avatar for TheBattlizer

I'm trying to declare a structure definition in a header file so I can use the structure in other files, however I get the error: error C2011: 'Points' : 'struct' type redefinition from the file where the structure definition is declared. The structure is only defined in that header file. …

Software Development c++ file-system
Member Avatar for ArkM
0
2K
Member Avatar for Bikram Singh

Hi All, I am having problem regarding recordset. I am working in MS Access and VBA. I want to display records from the table(specific fields) depending upon the condition. I am very new to this and never used recordset because i am a database programmer now i have to develop. …

Software Development visual-basic
Member Avatar for Bikram Singh
0
101
Member Avatar for serkan sendur

hi guys, i want to read windows mobile registry from windows application, the device is connected via activesync. any ideas?

Software Development
Member Avatar for Ramy Mahrous
0
74
Member Avatar for grisha83

My method is not working for some reason, even though i have done in exactly the same way the books showed. Could you please take a look at it and let me know what went wrong? Thank you P.S. I tried to use DEBUG technique and it seems that the …

Software Development java
Member Avatar for grisha83
0
78
Member Avatar for nuliknol

Hi, how many 64 bit registers can I use inside intel i7 cpu for storage purposes to feed them later into XMM registers? I currently use XMM0-15, MM0-8, R8-15 only. I know i can use RAX,RBX,RCX, RDX and eight registers inside the FPU (ST0-ST8), but what others can I use? …

Software Development assembly storage
Member Avatar for Evenbit
0
345
Member Avatar for mj85

Hi could someone tell me how to pass a dynamic matrix to a function? Or where I have gone wrong? Thanks for the help! for example: [CODE]void main() { int R,C; /* r=rows, c=columns/* double *A; /* A is the matrix/* /* I dynamically allocate my matrix (not too sure …

Software Development c
Member Avatar for jephthah
0
166

The End.