43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sanch01r

Hey guys, I am writing an Active Directory Tool that allows my team to read data without having to access Active Directory through a remote desktop session. I am not too familiar with the TreeView control and I was wondering if there was a way to add the Active Directory …

Software Development session
Member Avatar for DdoubleD
0
1K
Member Avatar for jess99

Hello, I am a newbie and I am learning Visual Basic 2008. My homework is the following: ublic Class Form1 ' This Internet Service provider offers three subscription packages ' to its customers, plus a 20% discount in all packages ' for nonprofit organizations. ' Package A: 10 hours of …

Software Development vb.net visual-basic
Member Avatar for jess99
0
3K
Member Avatar for A_Dubbs

Hello everyone, new programmer here. In my class we have an oppurtunity to make up credit on a previous homework by modifying a program if we got any of it wrong. The problem for the progam was: Problem #4. Write a program to solve the following problem. Find a word …

Software Development python
Member Avatar for woooee
0
138
Member Avatar for scooby36

I cannot seem to get the datagrid to update with the correct data from the combobox selection the program just crashes. Do I need to bind to the combobox some how?? Any help or advise would be apreciated [CODE] Private Sub cboBarcodeInCust_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Software Development dataset vb.net
Member Avatar for TomW
0
164
Member Avatar for RejectKid

ok so i need my code to be able to have the balls on the screen detect collision and remove a ball when they collide but for some reason every time i hit the add a ball button they disappear on me. and they dont detect collision in the first …

Software Development java java-swing
Member Avatar for quuba
0
235
Member Avatar for bdesc100

I am trying to specify which variables a function should return. The purpose of this is to allow the function to return different sets of variables according to the requirements of another function, in order to make things more efficient (rather than always returning all the variables): [CODE] # Python …

Software Development python
Member Avatar for paddy3118
0
113
Member Avatar for Room101

I'm having problems using my AudioPlayer class. I have a class that calls it which simply contains the following: [CODE=java]public class Test { public void test() { AudioPlayer ap1 = new AudioPlayer(); ap1.printUsageAndExit(); ap1.main({"a.wav"}); } }[/CODE] I recieve the error on line 6, when I call [CODE=java]ap1.main({"a.wav"});[/CODE] Note: When I …

Software Development audio java
Member Avatar for Room101
0
101
Member Avatar for lrh9

I want to call another object's methods from another object, and I have no idea how. Can someone please help me? Thank you.

Software Development python
Member Avatar for lrh9
0
203
Member Avatar for SoulMazer

Hi, I'm looking for a little help with the function "getattr". Here's my code: [code=python]class MyClass: def __init__(self): trycmd = getattr(self, "cmd_testing") try: trycmd() except: print "Fail." def cmd_testing(self): print "Victory!" obj = MyClass()[/code] So, when I run this code, I get the output "Fail.". I'm not sure what I'm …

Software Development python
Member Avatar for vegaseat
1
142
Member Avatar for OldQBasicer

I want to use more than one form in my project and be able to code a button or something that will do that. I tried this on Form1 and it worked. [CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Goes from this …

Software Development vb.net
Member Avatar for OldQBasicer
0
336
Member Avatar for simpatar

Alright, this is how my newest program looks like: [CODE]import math def main(): print('This program finds the real solutions to a quadratic') print s = float(input('Please enter the coefficients (a,b,c): ')) a, b, c = s.split(',') discRoot = float(math.sqrt(b * b - 4 * a * c)) root1 = (-b …

Software Development python
Member Avatar for vegaseat
0
82
Member Avatar for jeffreyjs

Hi, I am currently developing a cafe ordering and payment system which i encounter some calculation issue... i need a formula which is able to calculate the total price in this scenario, If Customer A order 5 items of different prices and Customer B order 9 items of different price, …

Software Development java
Member Avatar for Jaiam
0
182
Member Avatar for ddanbe

Hi, Why do I only see appearing a red rectangle after 1 sec with the following code, and not a blue one and after a sec a red. Just used a new forms app with a panel control added and the following code: [CODE=c#]using System.Drawing; using System.Threading; using System.Windows.Forms; namespace …

Software Development
Member Avatar for Diamonddrake
0
291
Member Avatar for number87

ok so I am trying to read in a file. Do some string checking. And output the counters. But somehow I think something is wrong with my strcmp. And I do not know where is the problem. Everything compiles fine too. [code] #include <iostream> #include <fstream> #include <cstring> #include <iomanip> …

Software Development c++
Member Avatar for Ancient Dragon
0
133
Member Avatar for snakay

Hi, I'm having problem when I read more then one datareaders in row. The second one always get exception. I know this is one of the favourite topics of ADO.NET, but could not solve my problem no matter what I do. I use a class to prepare my datareader. If …

Software Development
Member Avatar for snakay
0
114
Member Avatar for freelancelote

I'd appreciate if somebody could have a look at this code and tell me where the problem is. The program is meant to take a .txt file and split it in three different files: one with words of 1 to 4 letters, one with words of 5 to 7 and …

Software Development java
Member Avatar for Agni
0
2K
Member Avatar for isuruj

I need to copy a file to my machine from a remote machine. Are there any ant targets to do that?

Software Development java
Member Avatar for isuruj
-1
115
Member Avatar for Israelsimba

i have been using adodc for searching for a client's details using the client number, but it would give me inexpected errors and bomb out of my programme. i have then resorted to searching using sql. the following code gives me this error::: [I][U]no value given for one or more …

Software Development open-source visual-basic
Member Avatar for AndreRet
0
147
Member Avatar for UKmason

***************************************************** Write a program that will get some input from the user about a visit to an oil change service. The program will calculate the bill for the services requested. Prompt the user to input whether or not they want each of the services. You can assume the input will …

Software Development c++
Member Avatar for alg
0
121
Member Avatar for geg13

I would like help with making a program 'type' out the text as the program is running i.e. not having the entire line appear at once but letter by letter.

Software Development c++
Member Avatar for geg13
0
117
Member Avatar for gsingh2011

This is my python script: [url]http://gsingh.pastebin.com/mc602006[/url] This is my setup.py file for py2exe: [url]http://gsingh.pastebin.com/m70a19449[/url] When I go to command prompt and run the .py file with the command, email.py message It works fine, it sends me an email with the message, which is what it's supposed to do. When I …

Software Development python
Member Avatar for snippsat
0
664
Member Avatar for luskbo

I have a program that creates a struct. It also has a class that creates a pointer to an array of structs that is created. I'm having trouble accessing the elements of the structs in the array, with the pointer. Below is a sample of the code. Struct definition in …

Software Development c++
Member Avatar for luskbo
0
127
Member Avatar for alexcarrero

Please, I need some help with my hw. I have to create a program that stores the scores for a football team. I need to record the score by quarter for each of the 20 games. I have to initialize all games to 0. Then, the user is asked to …

Software Development c++
Member Avatar for alexcarrero
0
83
Member Avatar for Epi23

Ok, so I am trying to write a program that will solve simple math and physics problems, and am trying to use strings and words more, so my question is: is it possible to use a char in an if statement? I'm new to this so yeah. Here is what …

Software Development c++
Member Avatar for Epi23
0
6K
Member Avatar for Shinedevil

Ok, I know I'm probably programing in some kind of archaic way for C++ but my knowledge base is rather limited. I'm having problems with my input not being identified correctly (or however you would say it, rusty is me) [code]cin>>StatsChange; if (StatsChange == "Strength" or "strength" or "str" or …

Software Development c++
Member Avatar for Shinedevil
0
140
Member Avatar for thebluestar

here is my code [CODE=C] #include<stdio.h> #include<conio.h> #include<string.h> int main() { char A1[100], A2[100],c[100]; int n1,n2,i,j; printf("Enter string A1:\n"); gets(A1); printf("Enter string A2:\n"); gets(A2); n1=strlen(A1); printf("%d ",n1); n2=strlen(A2); printf("%d ",n2); char *p1=A1, *p2=A2, *p; p=(char*)malloc((n1+n2)*sizeof(char)); for(i=0;i<n1; i++) { *(p+i) = *(p1+i); } for(i=0; i<n2; i++) { *(p+n1+i)=*(p2+i); } int k2=strlen(p); …

Software Development c
Member Avatar for thebluestar
0
204
Member Avatar for geg13

How would i go about making a program wait before printing the next line? Keep in mind that i would like the next line to print automatically after a few seconds. Also if at all possible i would like to know how to make the text act like it is …

Software Development c++
Member Avatar for Clinton Portis
0
97
Member Avatar for kathmartir

I have a problem with the dispose method. . .I got 3 java files with a class name: MainProgram.java MainPanel.java PageOne.java The MainProgram java extends JFrame. The MainPanel.java extends JPanel. The PageOne.java extends JFrame. The MainPanel.java is where all the actions and etc. are being set. The MainProgram.java calls the …

Software Development java
Member Avatar for FriQenstein
0
5K
Member Avatar for ki72

For example I ask the user to enter a 4 digits integer number. For example the user enter 4875. I want to display odd digits (7 5) and even digits (4 8). By Extract each digit of the number using integer division and store the results in separate variables. for …

Software Development java
Member Avatar for Grn Xtrm
0
116
Member Avatar for VIPER5646

Hi I have a Datagrid with column(1) showing the date. The dates are being Displayed as 01-13-2009 (mm-dd-yy). That's how it is saved in the DB. I wouls like it to be displayed in the Datagrid in the following format Jan-13-2009. Can anyone help? Thank you

Software Development vb.net
Member Avatar for VIPER5646
0
107
Member Avatar for raigs

N00B. I cannot seem to get this right. [CODE]#include <iostream> #include <cstdlib> using namespace std; int main(void) { system(("sendmail -options" + EMAIL_TEXT)); return 0; }[/CODE]

Software Development c++
Member Avatar for mikiurban
0
211
Member Avatar for dans@dis.wa.gov

Hi everyone, I'm a javascript/actionscript/java/ruby developer who's been given a project that must be done in Sharepoint. One of the tasks of the project is I have to write a console application that replicates data from the secure sharepoint site and pushes it out to a public site in a …

Software Development actionscript regex ruby sharepoint
Member Avatar for sknake
0
202
Member Avatar for kustrle

I have composed a Windows Forms Application with few Check Boxes and Install button on it as well. Now I just made a code for Install button's Event Handler which run application when button is clicked. Code is following, and was just made for test if everything works as supposed …

Software Development c++
Member Avatar for kustrle
0
119
Member Avatar for ki72

Java Code I don't know how to show odd or even digits from an integer number. For example I ask the user to enter a 4 digits integer number. For example the user enter 4875. I want to display odd digits (7 5) and even digits (4 8). By Extract …

Software Development java
Member Avatar for peter_budo
0
155
Member Avatar for ashwini jadhav

hi, i am new in programming. i know that c++ used in development of games.so,i want to also some simple games to develop.please give some question for developing game? thank's

Software Development c c# c++
Member Avatar for ashwini jadhav
0
93
Member Avatar for ddanbe

Hello everyone! I know how to use a Timer class: [CODE=C#]static void Main(string[] args) { System.Timers.Timer MyTimer = new System.Timers.Timer(); MyTimer.Elapsed += new System.Timers.ElapsedEventHandler(MyTimer_Elapsed); MyTimer.Interval = 2000; MyTimer.Enabled = true; //etc. } static void MyTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { //do something every 2 seconds }[/CODE] What I like to do …

Software Development c#
Member Avatar for ddanbe
0
2K
Member Avatar for blsnls

I am having problems figuring out what I did wrong to my highest, lowest and average for grades entered by a user. I searched for help but have not found any. Any hint in what I did wrong would be greatly appreciated. [code] #include <iostream> #include <iomanip> using namespace std; …

Software Development c++
Member Avatar for blsnls
0
116
Member Avatar for tlj333

I read the guidelines on posting homework questions and I think this one is within the rules. A little background, currently taking my first computer program class, its an online class (big mistake), it's very hard to get feedback or assistance. I have been ripping my hair out trying to …

Software Development python
Member Avatar for tlj333
0
194
Member Avatar for necrolin

If I have 2 classes a) class Business b) class Customer I want the Business class to be able to store a dynamic list of it's customers. So I thought the easiest way to do this would be to use a vector. [code] class Business { vector<Customer> customers; public: Business(); …

Software Development c++
Member Avatar for necrolin
0
203
Member Avatar for rmsagar

In my file, I have lines similar to this <Log LogID="633198520" LogLevel="Normal" Date="10/01/09 19:18" Type="Error" Source="Mentor" Text="Failed to process the request." /> When the line is read, if it is converted as field value pair I thought it will be easy to take required field. Please advise how this can …

Software Development file-system python
Member Avatar for rmsagar
0
119
Member Avatar for xonxon

[code] import java.util.*; public class course { static Scanner sc=new Scanner(System.in); public static void main(String[]args) { String name,students,addStudent; int numberOfStudents; String courseName,getName,getStudents; int getnumberOfStudents; Course course1=new Course("C++"); Course course2=new Course("Java"); course1.addStudent("Peter"); course1.addStudent("Brian"); course1.addStudent("Anne"); course2.addStudent("Peter"); course1.addStudent("Steve"); System.out.println("Num of student in course1:"+course1.getnumberOfStudents()); String[]students=course1.getStudents(); for (int i = 0; i < course1.getNumberOfStudents(); i++) …

Software Development java
Member Avatar for Grn Xtrm
0
108
Member Avatar for soffie

Need to make a random size (x = rows, y = columns) matrix which is filled with random numbers (only 0 or 1). So, if I don't know the size of the matrix, I use dynamic array. So far I have made this far, but obviously it isn't quite correct... …

Software Development c++ matrix-multiplication
Member Avatar for soffie
0
2K
Member Avatar for kat12

Hey, I'm brand new to Python and I'm sorry if my code/question is sloppy and ridiculous. I had to make a snowman for homework, but now I have to make the entire snowman move 6 times wherever the user clicks. I used this at first, but it obviously only moves …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for xonxon

[code] this is the simple program that i write import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JFrame; import java.awt.FlowLayout; public class ShowFlowLayout extends JFrame { public ShowFlowLayout() { setLayout(new FlowLayout(FlowLayout.LEFT,10,20)); add(new JLabel("firstname")); add(new JTextField(10)); add(new JLabel("MI")); add(new JTextField(10)); add(new JLabel("Lastname")); } public static void main(String[] args) { JFrame frame=new JFrame("ShowFlowLayout"); frame.setSize(400,500); frame.setLocationRelativeTo(null); …

Software Development gui java java-swing
Member Avatar for xonxon
0
106
Member Avatar for Creator07

Hello guys, I am doing a small C/C++ program(mainly for use in my father's work - Includes a batch processing inside a folder which is repetitive). I just need to find the number of files in a folder(not necessarily of a single filetype). What I thought was using [ICODE]system("dir > …

Software Development c
Member Avatar for varnesh_kp
0
297
Member Avatar for benkyma

I've got an open connection with a stream reader pulling data in to my system and storing in a database. Everything works great, except occasionally the stream from the remote server stops and this makes my program crash. How can I catch this situation when it occurs, and maybe attempt …

Software Development
Member Avatar for benkyma
0
327
Member Avatar for python.noob

though i'm calling pr() function in the subclass after calling the get_details() function(which assigns value to name) it doesn't print the current value of name. My question is if i want to print the value of name in the subclass what should i do???? I've tried in many ways using …

Software Development python
Member Avatar for AutoPython
0
220
Member Avatar for Rezant

I have been attempting to write an auto-login code for some websites that I frequent, but one of the website's forms has an odd submit button. Instead of being the usual button that you can call by it's Id it's instead a link. I was actually wondering if I could …

Software Development xml
Member Avatar for kabuchanga
0
618
Member Avatar for SecurExpert

Hi Guys, I am using sql in and am stuck. after "selecting * from table", how do i store whatever I have obtained from my database in a variable, for display? Thanks.

Software Development vb.net
Member Avatar for SecurExpert
0
108
Member Avatar for peekamalts

I am not an IT student however, a student of Healt and Human services and this IT class is an elective. I do not know any thing about programming but I am struggling to get through this class I read the text and disiffer some things. But as for the …

Software Development c++
Member Avatar for jasvir
-1
335

The End.