132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kshahnazari

Im new to C# and I only want to know how to set an objects tag to a number for example button a= new button(); a.parent=this; ... a.tag=12; (but it says it must be an object and I dont want to pass an object to it , any int to …

Software Development
Member Avatar for Momerath
0
112
Member Avatar for jlillie

Hi, I have spent way to much time stuck on this with no clue how to do it. My program is a phone book directory. I'm writing a funciton that when the user enters a phone number to be deleted the program will delete that corresponding entries info. So it …

Software Development c++
Member Avatar for jlillie
0
182
Member Avatar for _eclipse

Hi guys I need some help writing a program where I store information from a textfile into a parallel array. I need to be able to do a multiplication sum with the amount,and an if statement. Here is the textfile James 550 Quinton 410 Liam 120 Taylor 600 Jake 270 …

Software Development java
Member Avatar for _eclipse
0
168
Member Avatar for saarthak pande
Member Avatar for Ancient Dragon
0
54
Member Avatar for alex2356

I am very new to xslt and the like, and was looking for a xsl file to transform a junit-test xml output to something readable, with tables etc. However, when trying to apply the xsl file I get the error `Namespace 'xalan://org.apache.tools.ant.util.StringUtils' does not contain functions` (or similar, as the …

Software Development apache xml
Member Avatar for Mike Askew
0
415
Member Avatar for kwesiaryee

Please can anyone help me with a simple sample on how to populate JCombobox with data(mysql etc) using Java persistence (JPA). I am quite new to this component so I desperately need help with this.

Software Development java
Member Avatar for radhakrishna.p
0
336
Member Avatar for oldezwe

Ideally my program should work like this... Upon button click a random message (out of 3 messages) is appended to a text area(or pane, etc). One message should display blue, one green and one red. Currently I am using JTextPane. I have figured out how to append text easily but …

Software Development java
Member Avatar for JamesCherrill
0
326
Member Avatar for AnkitGuru

Hi All, I am trying to create an FTP application for file transfer in LAN. I want to list all available users with their IP's and user names, so that any persone can be found and FTP can be initiated. But I'm stuck at the start as i don't now …

Software Development
Member Avatar for AnkitGuru
0
115
Member Avatar for joshl_1995

Hello Community, I want to know if there is a way to make a program that will click a button on a webbrowser but the button does not have a name (name="") or id (id="") property it just has a class (class="") property and if there is a way is …

Software Development vb.net web-browser
Member Avatar for G_Waddell
0
244
Member Avatar for riahc3

Hello I want to make a simple bat file in Windows 7 but the command (route) only works in admin mode so I would have to ask for admin premissions. How do I do this in a bat file? Thank you

Software Development shell-scripting
Member Avatar for riahc3
0
112
Member Avatar for hilalihakim

I need urgently your help. Anyone can help how to Write a Java GUI program that accepts three user inputs (use text fields) with three check boxes. The check boxes determine whether the area, circumference and/or the volume of a circle/sphere is/are calculated. If only one check box is selected, …

Software Development gui java
Member Avatar for JamesCherrill
0
632
Member Avatar for lena1990

i want to create a shell script that divide a text file to parts and take the information from each part and store it

Software Development shell-scripting
Member Avatar for Watael
0
99
Member Avatar for Echo89

Well, I have just written all of this code, and then made lots of edits, compiled and when I run it, I get STATUS_ACCESS_VIOLATION. And I can't work out where the error lies. It is a very basic Database program BTW. Here is the code: http://pastebin.com/jLktEL3C And here is the …

Software Development c++
Member Avatar for Echo89
0
861
Member Avatar for pratik65

i am making a project in vb.net 2010 with SQLEXPRESS as back end. i tried to run on my college computer but i think i may to again make full database on the college pc and then run..? is there any solution so that i dont have to make the …

Software Development vb.net
Member Avatar for john.knapp
0
233
Member Avatar for TexasJr

I made a test program to mess around with a feature I'm trying to put into my class project but I can't seem to figure out what I'm doing wrong. What I'm trying to do is to line up the numbers right of the decimal. this is my test source …

Software Development c++
Member Avatar for TexasJr
0
153
Member Avatar for zwench

I want to know if this is correct for what they are asking. If I try to put 7.5% in the `int=` spot it errors. I am a newbie who doesn't quite understand it all. The commission rate in the firstmethod will be entered as a decimal value (for example, …

Software Development java
Member Avatar for kanu.votka
0
911
Member Avatar for mdonald_101

Write A Program With A Method Name PrintFactors That Accepts An Integer As Its Parameter And Uses Fencepost Loops To Print The Factors Of That Number Separated By The Word "and"

Software Development java
Member Avatar for jalpesh_007
0
89
Member Avatar for anukavi

Hi, In Dialog based MFC code (VC++ 2012), I have two command buttons and 1 Text Box 1. Enquire 2. Start Once the user chooses ENQUIRE Button, I display msg in TextBox "Press START for the ....." In the Start Button code, I do the socket opening,accept functions etc while …

Software Development c++
Member Avatar for anukavi
0
322
Member Avatar for spacebro

Trying to make a little space exploration game, and I'm just testing some planet data stuff, and it won't work. I don't get any errors until I compile it, then I get an error message saying that "vector subscript" is out of range. main.cpp: #include <iostream> #include <conio.h> #include <string> …

Software Development c++
Member Avatar for Ancient Dragon
0
149
Member Avatar for jackshannon4

shader.vert: #version 120 varying vec3 position; varying vec3 normal; void main() { position = (vec3(gl_ModelViewMatrix*gl_Vertex)); //get the position of the vertex after translation, rotation, scaling normal = gl_NormalMatrix*gl_Normal; //get the normal direction, after translation, rotation, scaling gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; } shader.frag: #version 120 varying vec3 position; varying vec3 …

Software Development c++ opengl
Member Avatar for jackshannon4
0
175
Member Avatar for Bile

-->>Hello I hope all is well. -->>I'm trying to join or select some data from 5 tables by using the following join statement: SQL ="SELECT RegistrationTB.Christian_Name,RegistrationTB.Father_Name,RegistrationTB.Birth_Date," "BaptismTB.Date_Baptised,BaptismTB.Parish_Name,BaptismTB.Minister_Name," & _ "CommunionTB.Date_Communised,CommunionTB.Parish_Name," & _ "ConfirmationTB.LC_No,ConfirmationTB.Date_Confirmation,ConfirmationTB.Parish_Name,ConfirmationTB.Minister_Name," & _ "MarriageTB.LM_No,MarriageTB.Date_Married,MarriageTB.Parish_Name,MarriageTB.Mr_Name,MarriageTB.Mrs_Name,MarriageTB.Certificate_No,MarriageTB.Minister_Name " & _ "FROM RegistrationTB " & _ "INNER JOIN BaptismTB ON RegistrationTB.LB_No=BaptismTB.LB_No " …

Software Development visual-basic
Member Avatar for Bile
0
447
Member Avatar for Bile

-->>I hope all is well... -->>I have tried to use the package and Deployment wizard to create a setup for My application... -->>But the way My setup Icon Is (The default one) makes me feel uncomfortable,as I have an Icon alredy for my application and used it in all of …

Software Development visual-basic
Member Avatar for Bile
0
113
Member Avatar for Carpetfizz

Hello, I'm working on a text base space game, just for fun, and I've made a lot of progress. The problem I'm having right now is that sometimes, the psuedo-random is calculated out of its modulus. The way it works, as you can see in the code is that a …

Software Development c++
Member Avatar for Carpetfizz
0
148
Member Avatar for summey

I am trying to load two text files from a dialogbox into a listbox. I noticed in the dialogbox properties there is a place for multiselction but how would i pass both textboxes to an array?

Software Development vb.net
Member Avatar for summey
0
349
Member Avatar for noahjonesnoah

Hi all, Im trying to write a program that minimizes a Transition Graph (its basically combining states with similar numbers). Basically, the algorithm is to first find states with the same 'a' and 'b' inputs, combine them, remove them from the 'leftovers' list, then find states that have either 'a' …

Software Development algorithm c
Member Avatar for Adak
0
138
Member Avatar for Bile

-->>Hi all... -->>Here is what makes me be unconfortable here... -->>I was trying to develop a Progam that will help me creat a folder and make a copy of my passports -->>I managed to creat a folder but when I try to Copy the files is where I get an …

Software Development visual-basic
Member Avatar for Bile
0
188
Member Avatar for ms061210

** Please help me debug the code, I am experiencing error in this part: cmd.CommandText = "select ROUND(((date_from - date_to)/30),0) as months from rental where tenant_id = '" & Me.TextBox9.Text & "'" cmd.CommandType = CommandType.Text It says: Error while retriving record on the table.. There is already an open Data …

Software Development open-source oracle vb.net
Member Avatar for john.knapp
0
155
Member Avatar for ashley9210

Hi there, I am trying to repeat my triangle on 100px by 100px; Any help is much appreciated. Many thanks, Ashley def drawTrianglePatch(win, x, y, colour): for i in range(5): for j in range(5): if (i + j) % 2 == 0: triangle = i * 20 triangle = y …

Software Development python
Member Avatar for woooee
0
494
Member Avatar for hur1214

[CODE] #include<iostream> #include<fstream> #include<string> using namespace std; struct phonenode{ char surname[15]; char initals[4]; phonenode *next; }; phonenode *start_ptr = NULL; phonenode *crrnt_ptr; void read_txt(){ ifstream ifs("test.txt"); char surn[15]; char inital[4]; phonenode *temp1, *temp2; temp1 = new phonenode; if (ifs.fail()){ cout << "ERROR" << endl; } while(ifs.good()){ ifs>>surn>>inital; if(ifs.fail()){ break; } …

Software Development c++ linked-list
Member Avatar for kjr247
0
6K
Member Avatar for Kronolynx

Hi i gotta display 2 arrays on screen but they don't look good i was wondering how can i make it look like this: Speed 20 88 75 80 68 77 81 Focus 30 90 77 83 71 84 85 Jetta 40 94 80 85 76 91 90 Contour 50 …

Software Development display java
Member Avatar for NormR1
0
216
Member Avatar for codesforcoffee

I think this simple example might ask the question a lot more clearly. I have an input file with multiple products. There are different types of product (2 types with 2 product IDs is fine enough for this example), but the input will have many more. I only want to …

Software Development dataset programming-construct xml
Member Avatar for codesforcoffee
0
2K
Member Avatar for pratik65

i want to Autogenerate id column in my database table , my code is given below . it is not workin it is giving me Exception as "startIndex Cannot be larger than Length of string , parameter:startIndex ".how should i solve it Private Sub AutoGenerateNo() Dim no As String Try …

Software Development vb.net
Member Avatar for adam_k
0
782
Member Avatar for mattwagner

Hello, I'm very new to using VB.Net so I found it quite difficult to understand other answers that I searched for. Basically, I have an project to develop where a user can create an account, and log in with it. So far I have : Created a database in ms …

Software Development vb.net
Member Avatar for adam_k
0
7K
Member Avatar for aishapot

Sub filllist() strsql = "select * from tabletest" ListView1.Items.Clear() sqlcmd.CommandText = strsql sqlcmd.Connection = sqlconn sqldr = sqlcmd.ExecuteReader() [B] sqlda.SelectCommand = sqlcmd -- the error is pointing here and it say NullReferenceException was handled then Object reference not set to an instance of an object. How do i solve this? …

Software Development sql vb.net
Member Avatar for neeturathi
0
400
Member Avatar for pars99

Can you please help me and tell me what I am doing wrong? I have been looking at the program for two hours and need help. I keep getting this error: 'triangle' was not declared in this scope. Also, that is the only error, so I don't have anymore. Thank …

Software Development c++
Member Avatar for pars99
0
2K
Member Avatar for jprog1000

Hello Members, I have a program (from Deitel Java Solution Manual) which bounces a ball using a Java thread inside a JPanel(which is inside a JFrame). When I made a custom class for the ball, the program is not painting anything on the JPanel.I would appreciate any help. Following are …

Software Development java java-swing
Member Avatar for javaprog200
0
350
Member Avatar for sddq_bll

i Need to create a Menu Driven program ..but cant understand what it is ..some one help me out and explain me .

Software Development c++
Member Avatar for amrita111
0
273
Member Avatar for xikhari.some1behindu

I get this issue but i dont understand it completly. Found some suggestions online but seems they depend on the source code. This is my code and i get the error where the arrow is int j; float aa=0, modanum, count=0, temp; float[] mod =null; float[] fin = null; int[] …

Software Development matrix-multiplication
Member Avatar for deceptikon
0
215
Member Avatar for Vegito1991

This is my code class AddResult { private: string ar_stu_id, ar_mod1, ar_mod2, ar_mod3, ar_mark1, ar_mark2, ar_mark3; public: void addresult(); AddResult(string, string, string, string, string, string, string) { cout<<ar_stu_id <<" " << ar_mod1 <<" " << ar_mod2 <<" " << ar_mod3 <<" " << ar_mark1 <<" " << ar_mark2 <<" " …

Software Development c++ ios
Member Avatar for Vegito1991
0
125
Member Avatar for DelphiXE2User

Hi, I am in need of converting a project which is in Delphi 5 to Delphi XE2. When I run the same Delphi 5 code, in XE2 , I get some errors. In Delphi 5, we have used NMFTP component for file transfers. But here netmasters is not available. Instead, …

Software Development delphi pascal
Member Avatar for pritaeas
0
351
Member Avatar for chandnigandhi

I am making a text editor in c language.I need a help for moving characters left,right,up and down.I am using turbo c compiler and i want code for navigation and not an ascii key codes.... please help me with this as soon as possible....

Software Development c
Member Avatar for deceptikon
0
153
Member Avatar for Jbvo

I am trying to read each word from a file and put it in a pointer then send it to a vector. Here is what I have so far. I am having a hard time sending the data to a function where I will add it to a vector. Here …

Software Development c c# c++
Member Avatar for Mephesh
0
155
Member Avatar for biscayne

When trying to load csv file data into Scribus it only takes the data of the last row. I'm using ScribusGenerator.py by Ekkehard Will and my best guess is that the cause of the problem is somewhere in this part of the code: def replaceVariablesWithCsvData(self, headerRow, row, lines): # lines …

Software Development python
Member Avatar for biscayne
0
2K
Member Avatar for krystosan

what are site directories in python ? are these some special folders ?

Software Development python
Member Avatar for krystosan
0
145
Member Avatar for nore

I have a data table with query inside, then i need to sent value of data table exactly in datagridview i made before. Anyone can do this?:-/

Software Development vb.net
Member Avatar for pcs77
0
15K
Member Avatar for TimBob12

I am fairly new to Pascal and I have been attempting to write a hangman game. I am aware that there are probably so many better ways to do this than I have done but I am having some problems where the exit variable is not met because the current …

Software Development pascal
Member Avatar for pritaeas
0
282
Member Avatar for Bluescreendeath

Hi all I have been asked to calculate days in a week. I know there is not 24 hours but 23 hours 56 minutes in a siderial day. How do I express that fraction in interactive mode. For example: print 60*23/56/60*7 or something to that effect. Anyone? Glenn.

Software Development mathematics python
Member Avatar for Gribouillis
0
240
Member Avatar for LSangalli

Hey everyone. I really need help with a question in Python. I have been trying for several days to figure this out. Any help will be much appreciated! Here is the question: Body Mass Index (BMI) is a good indicator of boy fatness for most people. The formula for BMI …

Software Development python
Member Avatar for TrustyTony
0
334
Member Avatar for KRUX17

Hi, I wanted to know how I can add data to an ArrayList if the collection is not: `Private ArrayList<String> files;` and instead: `Private ArrayList<People> files`. Would the code look like this: public void addPerson(String name){ files.add(name); } or: public void addPerson(String name) { People people; // Declare an object …

Software Development java
Member Avatar for jalpesh_007
0
229
Member Avatar for junweixiong

Hello, I am making a authentication software, and this is the code for the Username panel. import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Scanner; import java.util.ArrayList; import java.io.*; public class Username { private static String username; private static char[] actualUsername; public Username () { final JFrame frame = new JFrame("Username"); …

Software Development java java-swing
Member Avatar for junweixiong
0
4K

The End.