132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for C41R0

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 …

Software Development java xml
Member Avatar for C41R0
0
271
Member Avatar for k2k

[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
Member Avatar for k2k
0
79
Member Avatar for SilentlyShaken

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++
Member Avatar for jesseb07
0
93
Member Avatar for thijscream

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
Member Avatar for thijscream
0
2K
Member Avatar for zhouj

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++
Member Avatar for Ancient Dragon
0
173
Member Avatar for ruchika beddy

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 …

Software Development listview vb.net
Member Avatar for ruchika beddy
0
130
Member Avatar for vw_eng

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
Member Avatar for selvaganapathy
0
111
Member Avatar for NervousWreck

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++
Member Avatar for NervousWreck
0
108
Member Avatar for QuartzZapphyre

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
Member Avatar for ssharish2005
0
97
Member Avatar for joshuabraham

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
Member Avatar for jlm699
0
159
Member Avatar for programmingnoob

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
Member Avatar for jlm699
0
116
Member Avatar for zzmgd6

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 …

Software Development api c c# c++
Member Avatar for vijayan121
0
2K
Member Avatar for uth

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
Member Avatar for sgul
0
282
Member Avatar for kdw3

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 …

Software Development sql vb.net
Member Avatar for kdw3
0
97
Member Avatar for chiragwebmyne

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#
Member Avatar for camilojvarona
0
182
Member Avatar for mancode1007

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
Member Avatar for ssharish2005
0
118
Member Avatar for Didiera

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 …

Software Development algorithm oracle perl
Member Avatar for Didiera
0
758
Member Avatar for d4n0wnz

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
Member Avatar for rapperhuj
0
175
Member Avatar for programmingnoob

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
Member Avatar for Alex Edwards
0
130
Member Avatar for sohel08

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++
Member Avatar for titaniumdecoy
0
69
Member Avatar for Agni

Hi Guys.. I need to know how to debug the 'main' of an exe using dbx. i cant put a 'sleep' and recompile it. For example in windows using visual .Net i can do something like >devenv /debugexe xyz.exe This will bring up the exe in debugmode. i need the …

Software Development c++
Member Avatar for Agni
0
124
Member Avatar for sniper1983

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
Member Avatar for sniper1983
0
95
Member Avatar for v.godhe

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
Member Avatar for ash05
0
420
Member Avatar for kavithabhaskar

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
Member Avatar for matmox
0
171
Member Avatar for nidhsek

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
Member Avatar for nidhsek
0
109
Member Avatar for brain

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

Software Development algorithm c++
Member Avatar for brain
0
102
Member Avatar for Shilpa Jain

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
Member Avatar for Shilpa Jain
0
103
Member Avatar for hawisme000

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
Member Avatar for hawisme000
0
87
Member Avatar for TheBeast32

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
Member Avatar for TheBeast32
0
222
Member Avatar for vsha041

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++
Member Avatar for ssharish2005
0
110
Member Avatar for Acidburn

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
Member Avatar for ssharish2005
0
168
Member Avatar for rob24

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 …

Software Development java video
Member Avatar for bloody_ninja
0
136
Member Avatar for titaniumdecoy

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++
Member Avatar for Narue
0
150
Member Avatar for tweak

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
Member Avatar for tweak
0
101
Member Avatar for gexecuter

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
Member Avatar for gexecuter
0
76
Member Avatar for VernonDozier

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++
Member Avatar for VernonDozier
0
292
Member Avatar for HLA91

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 …

Software Development java ubuntu
Member Avatar for peter_budo
0
187
Member Avatar for nicoletonyf

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
Member Avatar for Ancient Dragon
0
379
Member Avatar for Waseemn

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
Member Avatar for Ezzaral
0
125
Member Avatar for flash121

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
Member Avatar for flash121
0
114
Member Avatar for tzushky

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
Member Avatar for woooee
0
87
Member Avatar for gregorynoob

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++
Member Avatar for gregorynoob
0
126
Member Avatar for pkollmyr

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
Member Avatar for pkollmyr
0
182
Member Avatar for shwetha_cs26

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
Member Avatar for Ezzaral
0
173
Member Avatar for amuarica

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
Member Avatar for HammerAway
0
466
Member Avatar for diasmvds

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
Member Avatar for Ezzaral
0
133
Member Avatar for Jennifer84

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++
Member Avatar for Jennifer84
0
83
Member Avatar for 13L4D3

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 …

Software Development c++ ios
Member Avatar for 13L4D3
0
184
Member Avatar for Rahin

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++
Member Avatar for Salem
0
232
Member Avatar for Bill Purkins

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
Member Avatar for Bill Purkins
0
82

The End.