132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
how to find my visual studio license key? Software Development visual-studio | |
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 | |
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 … | |
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 | |
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, … | |
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 … | |
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++ | |
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; … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
HI How I generate Meassage once my array is full? Thanks Tank50 Software Development | |
[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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
[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 | |
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 | |
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 … | |
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 = … Software Development client-server visual-basic windows-server | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
hi guys, i want to read windows mobile registry from windows application, the device is connected via activesync. any ideas? Software Development | |
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 | |
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? … | |
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 |
The End.