132,726 Archived Topics
Remove Filter ![]() | |
when creating jar file i use following command in DOS [CODE] jar cf UIA.jar *.class *.jpg *.html *.xml *.jhm *.jar [/CODE] then i adding manifest by typing following command in DOS [CODE] jar cvfm UIA.jar mainClass.txt [/CODE] when i double click the jar file, nothing come out, i think maybe … | |
[CODE] if [ "$1"="-s" -a -n "$2" ] # if $1 is string "-s" and $2 is not null then string="$2" # then string="$2" else echo "error" exit 1 fi echo $string [/CODE] i expect: foo -not"-s" hi return "error" however,, no matter what i type after the - , … Software Development shell-scripting | |
Im making a calculator, and I can't seem to get it to restart. I know i have to use some kind of loop, but I just can't get it to work. Heres a bit of my calc just to show you. #include <iostream> #include <stdio.h> #include <math.h> #include <stdlib.h> #include … Software Development c++ | |
hi, i made a form1(FrmMain) and when i press on BtnAdvocaat form2(FrmAdvocaat) is vissable and BtnAdvocaat is disabled. now i want to make it like this: when the form2(FrmAdvocaat) is closed by BtnClose i want BtnOpen to be enabled. the code to open so far is: [code] private void button1_Click(object … Software Development delphi | |
what's the difference between the following two snippets of code? In a. B is returned; in b. B& is returned. a. class B { public: int i; }; class D { public: B fd(){B db; db.i=2; return db;} }; b. class B { public: int i; }; class D { … Software Development c++ | |
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim i As Integer Dim lvitem As ListViewItem For i = 1 To 5 lvitem = ListView1.Items.Add("1") lvitem.SubItems.Add("sonia") Next End Sub Above code add the five items in a listview with checboxes before each item. When we run … | |
Hello Mod, and anyone, I'm building a Human resources app. for my project. In an employee form i have a problem for knowing the employee age. User input the date of birth of the employee and the program calculate the employee age to the present. I don't know the syntax … Software Development visual-basic | |
This is only the second time I've used the forums. I've been learning c++ off and on for a little over two months and I am doing an exercise to calculate a person's BMI (body mass index). The compiler shows no errors or warnings but when I run the program, … Software Development c++ | |
i'm an 2nd year IT student i'm having a hard time understanding functions can anyone please explain to me in layman's terms what are functions,kinds of functionsand i would really apprieciate it if you could give me some basic function oriented program in C Software Development c | |
hi guys,when i run my program which contains the following portion of code in the mainloop Code: ( text ) [CODE] 1. clock=pygame.time.Clock() 2. while True: 3. sound1.play() 4. clock.tick(60) 5. pKeys = pygame.key.get_pressed() 6. Eves=pygame.event.get() 7. villian.face() 8. villian.hert() 9. if Eves[KEYDOWN] and pKeys[K_UP]: 10. hero.moveup() 11. if Eves[KEYUP] … Software Development python | |
Expected Output Your goal is to be able to create a python script like example.py that will: 1. Read input.bin byte by byte 2. Convert the value of each byte in input.bin into a string 3. Save the output into a file output.txt For example, given an input.bin that contains … Software Development python | |
Try to access the environment variables of a current running proces? The following is close but no cigar. Any help to go further. I know it has to do with the PROCES_PARAMETERS contained within the Process Environment Block PEB. But I am completely lost at this point. the following returns … | |
Is there anyway to create a new thread..basically create an object of a class within an existing thread and kill this existing thread so only the newly created child remains? Software Development java | |
Hi I am writing a program that will take in a CSV file and then write it to a database (MS Access). So far, i can create a table, add fields to the table and insert one record. Im inserting the pieces of data one at a time using a … | |
How to use multiple forms and UserControls in c# windows application? Where i have one toolStrip in UserControl1 (say UserControl1.cs) and onClick of ToolStripButton1 i need to open on Form1 (say Form1.cs) and Form1.cs contain only One RichTextbox control. now i need to fetch Form1.cs richtextbox control value (text) onClick … Software Development c# | |
Anyone please help me to find out ...where is the error because this program will continue untill the user enter 0 the program will terminate ...but i stuck at here please help... [ICODE]#include<stdio.h> struct student{ int id_no; char name; int average; int main() { struct student stud1; do{ printf("Enter Index … Software Development c | |
Hi i'm trying to write a decryption code to process encrypted files. I have the error below whenever I try to initialise an cypher object of type Crypt::CBC and supplying 'Blowfish' as decryption algorithm, I get the following [QUOTE]C:\>decrypt.pl Couldn't load Crypt::Blowfish: Can't locate loadable object for module Crypt::Bl owfish … | |
Hi, I am taking a course that is Java based over the summer and the prerequisite class which I took a year ago was in c++ and has recently been switched over to java. So now the class expects me to have a good background in java but there is … Software Development java | |
here's what to do: Imagine that you are part of a team creating a role-playing game. As a Support Programmer, you have been tasked by your Project Lead with creating the classes needed for player combat. For the first prototype, you will have to be able to create an attack() … Software Development c++ java-netbeans | |
I think I might be having trouble understanding variable initialization again, but thanks for the help. Also, if there is an operator for raising to powers, not scientific notation, I would appreciate hearing about it since I can't seem to find it in the index Software Development c++ | |
Hi, I would like to know how to get the width of a textstring and/or how to substring a string to a given width (not length), if possible. The reason is that i use a multicolumn listbox and should know how to cut of the length of the strings so … Software Development vb.net | |
I have some data that I want to store in the DB2 9. Should I store this data as XML schema or relational schema? Software Development xml | |
Friends: I have a question.. now..in my form I have 4 checkboxes and I have a click button..the idea is when any one or 2 or 3 or all 4 checkboxes are checked, a SQL statement should be executed and the results should be displayed in a datagridview. now..i have … Software Development dataset open-source vb.net | |
I am new to C#. I have been working on a C# console project. I sent a request to a server and get a very lengthy response string (html format). I want to extract and get some information from this string. If I use javascript I know how to fetch. … Software Development javascript | |
Hello, Would anybody suggest any STL algorithm that works on two ranges applying a predicate. For example I would like to have the difference of two maps values. Thanks in advance | |
Hi all, I am searching and fetching the data in a form based on the name entered in the text field. When the submit button is clicked, another form is displayed containing all the fetched data.Right now the functionality works only for the name entered in the textbox. I want … Software Development open-source visual-basic | |
can any1 here pls help me on how to make a data tree? i dont know where to start.. tried to google.. but i cant understand it pls help me with the basics.. and how to connect on a database thx 2 in advance.. Software Development visual-basic | |
Could anyone tell me if there is a function like the InputBox() function in Visual basic? I have googled it and come up with nothing. Thanks. Software Development c++ visual-basic | |
Hi, I am trying to run this code, but after the program runs, it is never asking me to enter something, instead, it just finishes. [CODE] #include <iostream> #include <string> using namespace std; int main () { string str; cout << "Please enter full name: "; getline (cin,str); cout << … Software Development c++ | |
Hey guys, Most embedded devices suc as the Amtel boards seen to require C / C++ programming, why don't they support Java? Is it question of performance? Or am I overlooking something? Software Development java | |
Alright. Usaly in the tool bar, there is the java symbol and it says java is running. Well my dad went on a spaz and Closed that. So now if I try to enter a chat room or watch a video (Not all videos) its just a blank field, nothing … | |
Is there a difference, in terms of performance, between the two loops below? (myvec is type [icode]std::vector<int>[/icode].) [CODE]std::vector<int>::const_iterator pos; for (int i = 0; i < N; i++) { pos = myvec.begin(); // do something with pos }[/CODE] [CODE]for (int i = 0; i < N; i++) { std::vector<int>::const_iterator pos … Software Development c++ | |
I started this hangman game as a suggestion for beginners but now I am stuck. The code runs with out any errors but I need some way to put a certain amount of turns that the user can have but I am not sure how I could add this to … Software Development python | |
![]() | So my teacher gave me a really hard test involving arrays in pascal but unfortunately he never showed us how to take data from arrays and use it, so what i need is just some examples in how to take the data from 2d arrays and use for example in … Software Development pascal ![]() |
I'm trying to get my hands around Forms Painting in Visual C++, so I've created a Form, and on that Form I have added a Panel called cityPanel. I'd like to paint a green rectangle on it. I double clicked cityPanel, which resulted in Visual C++ creating this new function: … Software Development c++ | |
Hey all I started learning java and I installed it on my Desktop(XP) and it was fine I could run the programs I made it was all good. When I came round to installing java on my laptop running Ubuntu I followed the guide here [URL="http://www.wikihow.com/Install-Java-on-Linux"]http://www.wikihow.com/Install-Java-on-Linux[/URL] I I followed the … | |
Hello there, I just installed Visual Studio.net 2003 last week. When I try to start my program, the console appear and close as soon as the program ends. What is the setting to keep the console open, so I can see if my program works? Thanks Nicole Software Development c++ visual-studio | |
Hello All, Now please do not laugh at me, I am trying my best here. As you all know, I am taking a Java programming introductory course at the local city college, and the instructor has mentioned that any program that contains code that he did not discuss in class … Software Development java | |
Hello, I am wondering if it's possible to hide/show components on a form, depending on which radio button is selected. For example lets say i have two radio buttons (in a buttongroup) and two buttons. When i select the first radio button i want the first button to show, and … Software Development java | |
Hello hello, I am writing to you because I am having trouble obtaining something: I know it should be doable, but can't seem to make an example. I need to be able to run scripts from another central script. And as i' ve been reading, apparently they mustn't be imported … Software Development python | |
Okay, so i got the volume I of Sedgewick's Algorithms in C++ and I'm pretty much lost in the first chapter. I understand all the given examples and such things but the exercises seem impossible. I'm still just starting highschool and the math used there aren't that easy and the … Software Development c++ | |
I hae been trying to run some arguments in the cmd through java and it isn't giving me any errors. I know it is opening cmd and it executes the last argument to create the file. The only problem is that the output is not writed into the file. If … Software Development java | |
public class pan extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); Color col1=jc.getColor(); g.setColor(col1); g.drawRect( 30,30,800,600);//600 = width 400 = height for(int i=30;i<=620; i=i+20) { g.drawLine(30,i,830,i); //for Horizontal lines change only y value (both shud be same) and x shud be 0 } g.setColor(Color.white); for( Integer i=10;i<=620; i=i+20) { … Software Development java | |
I'am trying to develop a notification program to notify user on my network that their computer have a worm . The program that I want to develop a can monitor port 135 on windows OS . The system will monitor port 135 on one computer and see wheter there is … Software Development visual-basic | |
Hi all, I'm developing a drawing tool using Java. This will support drawing diagrams ( basically electrical components in a network ). As the drawing panel ,i have uesd a JPanel within JScrollPane so that user can scroll their diagram. The origin of my drawing panel is the top-left corner … Software Development java | |
I have a problem to understand what I am doing wrong with this code. I have the string Line123. What I want to do is to make the output of this string to look like: "Number1> Number2 Hello Number1> Number2" So what I did is to take all blancspaces away … Software Development c++ | |
Well i am a starter in programming and need ur help. M using older version of borland c++ for programming. M trying to make a program which adds users login and password information and also verifies the correct login and password by accessing the contents of those files. but there … | |
Hi, As per the documentation.each thread has its own ACE_Log_Msg instance.On debugging I found that sometimes two threads have the same ACE_Log_Msg instance.Bcoz of this inconsistency my application crashes . Please let me know whats the actual prob. Software Development c++ | |
Hi, I am new to VB 2008 and am trying to add a tableadapter to my app. I get as far as creating the tableadapter but when I try to add a column to the table I get an error message TABLE DOES NOT EXIST. Thanks in advance, Bill P. Software Development vb.net |
The End.