132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for spunkywacko

I have an array with 100 elements. How can copy only 10 element to a new array? [CODE]string[] NewArray = (string[])MyArray.Clone();[/CODE] Thank you.

Software Development
Member Avatar for spunkywacko
0
91
Member Avatar for manugm_1987

Hello I have an dll which is added at runtime using assembly.loadfrom(). Now how to call a particular method within dll at runtime on button click .The dll name is trial.dll and the dll contains one method called demo() which just display a messagebox on call. How can i invoke …

Software Development assembly
Member Avatar for manugm_1987
0
199
Member Avatar for AngelicOne

I need to make a copy of my already made form instead of adding new. I tend to do this by copy/paste the controls and manually setting the location. Is there any other way to do this?

Software Development
Member Avatar for Momerath
0
77
Member Avatar for buzmay

Hi guys I am quite new to java, and been trying to make a fibonacci number program just to learn more. However I have search the web seen examples and more and I still cant get run this code, there seems to be something wrong with> int N = Integer.parseInt(args …

Software Development java
Member Avatar for masijade
0
119
Member Avatar for captor

Hi All, I have a problem. I need to write a shell script to change the password. The user may want to change his own password by this script. He will have to provide the required 3 parameters i.e. old password, new password and retype new password as arguments in …

Software Development shell-scripting
Member Avatar for milanshentu
0
2K
Member Avatar for horserider

How can i extract Target Path of Existing Shortcuts on the desktop.

Software Development vb.net
Member Avatar for codeorder
0
308
Member Avatar for wijithapaw

hi all.. Im using visual studio 2005. I want to import log4cxx.dll to my project. if you know how to do this please reply to this thread thank you wijitha

Software Development c++ visual-studio
Member Avatar for sgollapu
0
1K
Member Avatar for Mykd

Hi I get the following errors when I changed something - I don't know what, but these occur now. Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError at sun.awt.Win32GraphicsConfig.getBounds(Native Method) at sun.awt.Win32GraphicsConfig.getBounds(Win32GraphicsConfig.java:240) at java.awt.Window.init(Window.java:368) at java.awt.Window.<init>(Window.java:407) at java.awt.Frame.<init>(Frame.java:402) at java.awt.Frame.<init>(Frame.java:367) at javax.swing.JFrame.<init>(JFrame.java:163) at ExitJoke.<init>(ExitJoke.java:22) at ExitJoke.<init>(ExitJoke.java:43) <-- Keeps repeating itself over and over …

Software Development java java-swing
Member Avatar for Dev Ubhare
0
202
Member Avatar for Utsav Chokshi

Question:How many main() in one C program is possible? Answer:(a)Exactly one or (b)More than one If answer is b than write easiest program having two main()s...

Software Development c
Member Avatar for nezachem
0
244
Member Avatar for Frostyyy

I am working on a function, which is suppose to read the size of the binary file and read the data flags. The output is suppose to look something like The dataFlags are: 1 0 1 The size of the file is: 40. I got my code running, but doesn't …

Software Development c++ ios
Member Avatar for jonsca
0
125
Member Avatar for androidz

hi guys im making a button which is print im still learning on how to do or use crystal report in vb6 to print a specific record based on what the user will input on the textbox or flexgrid anyone can help me on this?im eager to learn about this.i …

Software Development display visual-basic
Member Avatar for androidz
0
192
Member Avatar for churva_churva

[CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; public class EmployeeEntry extends JFrame implements ActionListener, KeyListener,ItemListener { JTextField id, last,first,mi,age,branch,hours,pay,items,rate; JRadioButton male,female; JComboBox emptype; JButton add,delete, back; JPanel p1,p2,p3,p4,p5,p6,p7; JPanel p1_1,p1_2, p2_1,p2_2, p3_1,p4_1, p4_2,p5_1,p5_2,p6_1,p6_2,p7_1; JLabel labelMessage; EmployeeList emplist=new EmployeeList(); Employee empH=new HourlyEmployee(); Employee empP=new PieceWorker(); Employee [] employee; String …

Software Development gui java java-swing
Member Avatar for churva_churva
0
766
Member Avatar for anthonyjpv

I created a console program in jcreator (java) which asks the user to enter a number in string and converts that string value into char array and then converts each char array into an integer which I also stored each as an array and then adds all the value from …

Software Development java
Member Avatar for ztini
0
117
Member Avatar for rx21825

Hi. I am a python newbie seeking some help in working with a file containing rows and columns. I have a file, that ideally contains an equal number of rows and columns. The first row is a tab separated header row and the first column is a label row. The …

Software Development python
Member Avatar for rx21825
0
205
Member Avatar for SuperFurryToad

I need some help figuring out how to parse an XML file in VB.net so I can find a particular node and write the contents into a database. Basically all the data in the XML node below needs to be read into an object. The file contains hundreds of these …

Software Development vb.net xml
Member Avatar for el_vala
0
2K
Member Avatar for lianpiau

Hello expert, I had a problem in C# datagridview. I want display last month data or ?days only when form load. I know use SQL query. But the problem is at datetime and string. my idea is today date - 30 days. [CODE]private void OT_Load(object sender, EventArgs e) { ConnectionStringSettings …

Software Development c c# c++ dataset display
Member Avatar for lianpiau
0
1K
Member Avatar for atticusr5

I feel bad for asking all the questions about the STL list, and thanks to those who have been helping me learn. I have a question now about inserting again, except this time I want to insert an extra data point into a tempList. I have commented out the code …

Software Development c++ ios linked-list peer-to-peer
Member Avatar for GDICommander
0
187
Member Avatar for kutuup

I have a Tree class that holds pointers to Player objects. Here is the code: [code=c++] #pragma once #include "Player.h" class Tree { private: public: Player* root; Tree(void); ~Tree(void); void DisplayInOrder(Player* localRoot) { if (localRoot != 0) { DisplayInOrder(localRoot->leftChild); localRoot->Display(); DisplayInOrder(localRoot->rightChild); } } Player* Find(const Player* key) { Player * …

Software Development c++ data-structure
Member Avatar for kutuup
0
122
Member Avatar for Zjarek

I was researching this topic for a some time, but I can't find definite answer (and I don't hope to find it there). Is it feasible to do heavy computations using C++? I mean specially computations on large multidimensional arrays. C++ has mechanisms which can help writing quite clean optimised …

Software Development c++
Member Avatar for mike_2000_17
0
208
Member Avatar for maikens

Hi all, I am tryiing to figure out how to tokenize a string consisting of words in alphabetical order, all crammed together with no delimiters. I can't for the life of me see how this could be done without analyzing the string beforehand and hard coding a delimiter in. Example …

Software Development c++
Member Avatar for pseudorandom21
0
237
Member Avatar for Alice1990

what is wrong with the ifstream and ofstream? I had try again and again and the info shown run to infinity. :( I tried a lot of times ady, will be glad if anyone can help, thank you :) Sorry if its looks messy, still learning all the way. [CODE] …

Software Development c++ file-stream open-source
Member Avatar for Ancient Dragon
0
185
Member Avatar for Oppression

Hello there. I have a working method here, called rotateRight() that takes an array and shifts all the elements to the right, except the last one that is placed at the start I have debugged the method, and the method works fine. However the changes are not being reflected in …

Software Development java
Member Avatar for ztini
0
113
Member Avatar for Taimoor Rana

Hello Guys, I'm trying to learn how to use the GridBagLayout manager... but when I write it like the following: [B]JPanel panel = new JPanel(new GridBagLayout());[/B], Java tells me the following: [U]cannot find symbol symbol: constructor JPanel(gridbaglayout.GridBagLayout) location: class.javax.swing.JPanel.[/U] When this didn't work, I tried type casting [B]JPanel panel = …

Software Development java java-swing oracle
Member Avatar for Taimoor Rana
0
534
Member Avatar for kutuup

Hi, I'm trying to run a program I have coded that has the following setup: There is a tree containing "player" objects. Each "player" object has a linked list containing "weapon" objects. Each "weapon" object has a stack containing "round" objects. I need to set it up so that of …

Software Development c++ linked-list
Member Avatar for kutuup
0
219
Member Avatar for FrancisLazo

Hi there guys I can't seem to get the logic on how to put the total price of tickets bought in a movie reservation program. For example, a ticket price is sold for $2 and a customer reserved more than one seat, the price should add all the tickets bought …

Software Development c++
Member Avatar for FrancisLazo
0
118
Member Avatar for jmcorpse

This is what I am suppose to do: Write a program that maintains a high score table of five entries, where each entry is made up of a player's name and score. The table should store the entries in order, from highest score to lowest. Your program should initialize the …

Software Development c++
Member Avatar for triumphost
0
183
Member Avatar for C#Jonathan

Hi, as explained in the title I'm having a problem storing data to an array of IEnumerables: The source code is as follows:- [CODE] internal static IEnumerable<ReportDriverMovements> CreateReportDriverMovements(IEnumerable<DataScansTran> iEnumDST ) { List<ReportDriverMovements> iEnumReportDriverMovements = new List<ReportDriverMovements>(); st2DataContext dc = new st2DataContext(); try { //Get lists of individual driver movements by …

Software Development
Member Avatar for Momerath
0
151
Member Avatar for Abdel_eid

Hello All , i urgently need to know how to store Arabic data in database , when i create a DB create database system; create table customer( name varchar(100)); i can't store the name in Arabic what can i do..? thanks alot

Software Development java
Member Avatar for Abdel_eid
0
152
Member Avatar for neptunethought

Hi , I am facing with a bizzare situation here .The problem is when I write my own program , I can debug it .But when there are two or more programmers and if I am one of them , I cant program or debug the program .I feel scared …

Software Development career
Member Avatar for Chellam2
0
147
Member Avatar for Phinocio

My code [code]public class BattleSystem { public static void main (String[] args) { String choice; System.out.print("What would you like to do? "); Scanner input = new Scanner(System.in); choice = input.nextLine(); System.out.println(choice); if(choice == "1"){ createChar g = new createChar(); g.charCreateHandler(); g.charStatsHandler(); g.closeFile(); } else{ System.out.println("More choices coming soon!"); } } …

Software Development java
Member Avatar for Mattox
0
106
Member Avatar for Thropian

I made a little python code that makes a ball bounce around the screen. Every time you left click it makes another ball. when you right click it clears the screen but you can't spawn more balls afterward... any help (python, tkinter) [CODE]from Tkinter import * import time import base_translate …

Software Development python tkinter
Member Avatar for Thropian
0
1K
Member Avatar for ajinkya112

Hey guys, I need a code that would delete the row from not only from grid view but also from the table. I am able to delete the row from grid view but its not getting deleted from table. Any suggestions on how to do it. Regards Ajinya

Software Development
Member Avatar for prvnkmr194
0
4K
Member Avatar for ntrncx

as always since i am not student i study for hobby from a book, i dont ask for code or tell me the answer only for advices to help me understand better things its the first steps of a moving knight in a chessboard,i had to make it move randomly …

Software Development c++
0
85
Member Avatar for Splam Bub

Hello DaniWeb! I'm trying to return an array of strings from a function but I'm not sure how to do so. I've done the prerequisite Googling and have found people on this discussion board recommending to return char** which, it is said, can then be converted back into 2d array …

Software Development c
Member Avatar for Splam Bub
0
157
Member Avatar for Progr4mmer

In my program when i close the save file chooser it opens another one ??? heres the code [CODE] import javax.swing.*; import javax.swing.filechooser.FileNameExtensionFilter; import java.awt.*; import java.awt.event.*; import java.io.*; public class JB extends JPanel implements ActionListener{ protected JTextArea textArea; public JB() { setLayout(new BorderLayout()); JTextArea textArea = new JTextArea(); textArea.setFont(new …

Software Development java java-swing
Member Avatar for Progr4mmer
0
140
Member Avatar for BirdaoGwra

Hi, It is my code: [CODE]mylist = [['fiss','giss'], ['e','h'], ['d','u'], ['c','t'], ['b','o'], ['a','z']] for alist in mylist: g = ' '.join(alist) print g f = open("write.txt", "w") f.write(g) f.close()[/CODE] How will I write all the words in the txt file. it is only writing the last line of the file. …

Software Development python
Member Avatar for Tommymac501
0
139
Member Avatar for bestex

hi, can i ask how do i insert my records from my textbox to specific column name of my table [CODE]IsConnected("Insert into products values(" & _ Me.TextBox1.Text & ",'" & _ Me.TextBox2.Text & "','" & _ Me.TextBox3.Text & "','" & _ Me.TextBox4.Text & "','" & _ Me.TextBox5.Text & "','" & …

Software Development vb.net
Member Avatar for Tommymac501
0
115
Member Avatar for zxzniczxz

using c++ and SubRoutine. Problem1: Design a function-oriented program that computes the total of the squares from 1 to n which n is supplied by a user. ex. 12345=1+4+9+16+25=55 Problem2:Design a function-oriented program that computes the factorial value of an input N by a user ..Display the computed factorial value …

Software Development c++
Member Avatar for hag++
0
149
Member Avatar for lgonzo

learning to use string and iterators, and i am having trouble when i try to replace a string in my vector with a new one my trouble is starting when trying to replace a string( towards end of code) i get error with line myIterator = vectorGameList.push_back("teris"); idk, how i …

Software Development c++
Member Avatar for lgonzo
0
171
Member Avatar for Progr4mmer

I am currently using eclipse but thinking of NetBeans because of gui. I don't want to download it yet because i dont want to have unused programs on my computer. so should i download it for gui?

Software Development ide java java-netbeans
Member Avatar for Progr4mmer
0
137
Member Avatar for CMAUK

Hi, im fairly new to Java, learning as I go on. I have gotten to the stage that I need to read specific lines from a text file that has already been created. Lets say my text document has 30 lines, and I only want to read what is in …

Software Development file-system java
Member Avatar for Ezzaral
0
465
Member Avatar for xxxferraxxx

I need help for background music i have the code but its not constant (continual) Here's my code : [CODE]My.Computer.Audio.Play(My.Resources.NAME OF FILE, audioplaymode.background)[/CODE] I need the constant (continual) code please.. Thanks in advance

Software Development audio html-css vb.net
Member Avatar for xxxferraxxx
0
364
Member Avatar for melmakrani

Could somebody help me please?! I'm trying to include math.h in a simple program an it doesn't work. I got following errormessage:"fatal error C1083: Cannot open include file: 'math': No such file or directory". I've checked if math.h is in the include directorie of visualC++, and it is. Here is …

Software Development c++ open-source
Member Avatar for bbman
0
1K
Member Avatar for vineeshvs

[CODE]double a,b; printf("%f",a^b);[/CODE] error occurs as shown in heading. any alternative method?

Software Development c
Member Avatar for vineeshvs
0
310
Member Avatar for McvR

Hello all, At this moment I am stuck at a point in my project on positioning a control. This is a textbox that must be positioned 20 points under a table. The table and textbox are positioned in a tabcontrol what is positioned in a panel... logic? don't know but …

Software Development
Member Avatar for ddanbe
0
181
Member Avatar for bergqvistjl

Hi, what would be a easy way of taking chars from the BEGINNING of a string, and placing them in another variable, ensuring that they are removed from the original string, ideally at the same time? basically, say i have 2 strings, string1 and string2. string1 contains "helloworld" string2 is …

Software Development c
Member Avatar for WaltP
0
147
Member Avatar for nadleeh

if i have a list kinda like this "name" bobby "endname" "age" 34 "endage" "name" susie "endname" "age" 53 "endage" how would i sort through it ignoring the stuff in "" and copying just the names and ages into arrays. ive been using strtok and if statements but that doesnt …

Software Development c
Member Avatar for Adak
0
137
Member Avatar for Fudgey

Hi Everyone, I am having some trouble with the libmysql.dll file in Delphi 7. When I try to connect to a database with the dbexpress MySQL driver, i get the error "Unable to load libmysql.dll". I have tried the following to resolve my problem: [LIST] [*]installing different versions of MySQL …

Software Development delphi mysql pascal
Member Avatar for Simon180
0
503
Member Avatar for lochnessmonster

WriteProcessMemory(processHandle, address, name.c_str(),sizeof(name.c_str()),NULL) | | is this third argument valid for this function? if not how would i make my std::string return the start address of a c string??

Software Development c++
Member Avatar for Narue
0
102
Member Avatar for Progr4mmer

i need to access the current text of a JTextField from another method but i get an error here is the code [CODE]public Calc(){ JTextField textBox1, textBox2; setLayout(new FlowLayout()); textBox1 = new JTextField(" Time "); textBox2 = new JTextField(" Exp "); JLabel lRate = new JLabel("Rate"); JButton calc = new …

Software Development java
Member Avatar for Progr4mmer
0
225

The End.