132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for AngelicOne

This is my app.config [CODE]<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="radicalGuard" value="Data Source = MICHAEL-PC\SQLEXPRESS; Initial Catalog = radicalGuardDB; Integrated Security = True" /> </appSettings> </configuration>[/CODE] And this is my connection string [CODE]SqlConnection con = new SqlConnection(ConfigurationSettings.AppSettings["radicalGuard"].ToString());[/CODE] Whenever I try to debug, it says "object reference not set to …

Software Development sql xml
Member Avatar for AngelicOne
0
210
Member Avatar for danattheville

I am trying to write a program that will allow a user to use a button to toggle the color or the text in a text box between blue and green. Any ideas? Here is what I have so far: [Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) …

Software Development visual-basic
Member Avatar for danattheville
0
146
Member Avatar for zy_430l

hi, im a newbie in using vb2008 and mysql server 5.1. i tried creating a dataset using the myodbc driver 5.1 (which im sure is correctly typed in because that is the exact same connection string i used for data manipulation within my app. now, im stuck. i cannot generate …

Software Development dataset vb.net
Member Avatar for tomason
0
623
Member Avatar for montalbano80

I am having some trouble with my Java program. I completed a PoolVolume class project and am trying to add a login and password page before the PoolVolume class starts. I completed the login and password script but can not get the login page to access the next class page. …

Software Development java java-swing
Member Avatar for montalbano80
0
193
Member Avatar for Mr.UNOwen

How do I prevent holding when reading stdin? I'm creating a program with glut that uses the terminal for input and using fscanf() is holding up the process. How can I check the stream before calling fscanf()?

Software Development c++
Member Avatar for Mr.UNOwen
0
101
Member Avatar for AngelicOne

My textbox is set to read-only, but I need to disable the focus on a textbox. There's an error that a read-only textbox could not lost focus. Is there any other way to get a white backcolor that has a particular width? I tried to do it with textbox and …

Software Development
Member Avatar for AngelicOne
0
252
Member Avatar for ezekiel13

I got a big problem in using crystal report in vb.net 2005 im creating a sales and inventory system for softdrinks dealer so i need to create a receipt for every cash or credit transaction of a client but i dont have any idea how to use crystal report. Im …

Software Development vb.net
Member Avatar for ezekiel13
0
192
Member Avatar for AngelicOne

Instead of changing my 15 textboxes manually, I would like to do it automatically, maybe doing a foreach loop? I don't know what do you call it but this kind of method is usually done when clearing textboxes and controls that is instead of putting a .clear() to all textbox, …

Software Development
Member Avatar for AngelicOne
0
103
Member Avatar for tuse

In a shell script, I want to 'spool' (record) the shell prompt & command typed alongwith its output into a file. eg: In the script, if I give a 'ls' command, the file should contain: [CODE] <<root@server ~>>$ ls a b c.txt <<root@server ~>>$ [/CODE] i.e. the command as if …

Software Development shell-scripting unix
Member Avatar for shibblez
0
2K
Member Avatar for JDSkywalker

I have 2 types of datagrid combobox columns. One where the value member is an integer (ID) and another where the value member is a string(Shortname). The display member (Longname) in both are strings. The one with the string value member works fine. The one with the integer displays the …

Software Development
Member Avatar for Mitja Bonca
0
659
Member Avatar for TheOnlyNemesis

I have got further into my program and am at the last hurdle, i am using String.split to split InetAddress IP using getInetAddress. so IP is storing the host name and ip address which is split by a /. I am trying to split the string using string.split but when …

Software Development java
Member Avatar for ztini
0
142
Member Avatar for RobBobSmith

I'm having trouble reading in values from a file. I know how to get all of the values in the file, but I only need some of them. This is my code (a snippet) so far. [CODE] ifstream myStream( file ); // file is the file name . while (true) …

Software Development c c# c++ file-system
Member Avatar for jonsca
0
201
Member Avatar for stimp80

I'm working on a Windows Forms application created in Visual Studio 2010. Working with 2 different forms, I have a ComboBox on the first form that is databound to the client table of my database. Also on the first form is a link-label that opens the second form without closing …

Software Development visual-studio
Member Avatar for stimp80
0
331
Member Avatar for Nickod777

Got a code failiure. I tried making a code that does this. Grade calculator. Assume max points are 300. make the user submit 3 numbers between 0-100 and have them added together and divided by 300 to get a decimal to the possible nearest Hundredth or whole number. 3 numbers …

Software Development c++
Member Avatar for Ezzaral
0
196
Member Avatar for cousinoer5

I'm taking an advanced C++ class now, and everything up to now has been pretty simple (mostly review stuff), but now we got to binary file io and it's kicking my butt. This program is supposed to read from a file called "Hardware.dat" (or create it if it doesn't exist), …

Software Development c++ ios
Member Avatar for cousinoer5
0
485
Member Avatar for reemhatim

long seats; long no_of_guests; long fact=1; cout<<"Enter the number of seats nn"; cin>>seats; cout<<"nnEnter the number of guestsnn"; cin>>no_of_guests; for(int i=0;i<seats;i++) { fact*=no_of_guests; no_of_guests--; } cout<<"the possible combinations : "<<fact<<"nn"; this code has run successfully but there is a something that I couldn't get first this program will run this …

Software Development c++
Member Avatar for Momerath
0
86
Member Avatar for Tellalca

Hey; I am trying to keep a data file but I'm getting confused with the sizeof(char) = 2 bytes. I understand that it is a unicode char but why does class BinaryReader's function ReadChars(int count) function just increases the streams position by count bytes ? If that is not clear …

Software Development file-stream
Member Avatar for Momerath
0
191
Member Avatar for Dasharnb777

Hi, I have a matrix. And I need to get 1D arrays from my matrix. For example, I have follow matrix: 123 456 789 So it looks like 3 [B]arrays[/B]: 147, 258, 369. But I got "Index out of range exception" in this code: [CODE] int[] b = new int[n]; …

Software Development matrix-multiplication
Member Avatar for Dasharnb777
0
135
Member Avatar for frank33

In my code I am trying to draw/define a line but despite my best efforts I cannot make it appear as thick as I would like. To be more exact I cannot do that INSIDE A GROUP BOX, although outside that box the definition is exactly as required. The full …

Software Development puzzle vb.net
Member Avatar for frank33
0
192
Member Avatar for musikluver4

How do you allow an action to be performed when a user selects a specific item on a Choice() component? For example: If a user selects a specific item on the Choice() component, I want a JTextField() to be set to .setVisible(true) and appear. Anyone?

Software Development java
Member Avatar for musikluver4
0
85
Member Avatar for WildBamaBoy

I'm doing a client and server program and I am having issues getting my computer's local IP address. [ICODE]Dns.GetHostAddresses(Dns.GetHostName());[/ICODE] returns 2 addresses for me. My computer is behind a router with 2 others on the network. The code returns 192.168.1.2 (I know this is my computer), and 192.168.56.1 (I have …

Software Development client-server dns
Member Avatar for WildBamaBoy
0
1K
Member Avatar for JaviP

Hello, I am new to C++ programming. I need to do this problem for a class but I'm a bit stuck, it's giving me many errors, could anyone point out what the problem is please? This is the problem: A country club, which currently charges $2,500 per year for membership, …

Software Development c++
Member Avatar for JaviP
0
623
Member Avatar for Neversleepin

Hi, i'm trying to copy and paste 12 last modified files from a folder to another one. my code is working but it gets every files in the folder with any dates. any help will be appreciated. Thank you very much [CODE]import java.io.*; import java.text.*; import java.util.*; class FileFilterDateIntervalUtils implements …

Software Development java
Member Avatar for Neversleepin
0
248
Member Avatar for addlou

Write a method called newTest(String input) that accepts one input. Input is a string stored as a variable called input and returns nothing back. Method should test to see if the string’s first and last characters are the same and should disregard case. Use a string method that converts to …

Software Development java
Member Avatar for mKorbel
0
163
Member Avatar for spencer.kindt

I'm in a beginner Java class at school and I'm having a hard time getting this to work. Most of our problems require JOptionPane and for or while loops and if statements and those kinds of things... For #6, I'm thinking about using a while loop and a for loop …

Software Development java
Member Avatar for spencer.kindt
0
181
Member Avatar for TheAgent1982

I am newbie in programing, and learning it... I need to know how do i make that program: Examples will help... I need to use UDP communication to connect to server by client and search, at server,for the longest directory, get the longest directory path and number of deepest level, …

Software Development c++ client-server gui
Member Avatar for TheAgent1982
0
261
Member Avatar for sipchen

In reference to this post [url]http://www.daniweb.com/forums/thread43763.html[/url] I have another more specific question about passing data between forms in VB.net I have a form with over 50 variables that I need to access on a second form and if i followed the method above, my form 2 will end up way …

Software Development vb.net
Member Avatar for Mariandi
0
2K
Member Avatar for annndrey

Hi all! I have a question about PyQT4. How can I get an index of current cell, in which the cursor is whitout clicking on it? According to official documentation of QT there are only signals that send current index when you click on it. But if you just enter …

Software Development python qt
Member Avatar for annndrey
0
275
Member Avatar for alex55

on line 32 how would i go about inputting a file name to be called by my function which im using a const char pointer for the file name line 33) error C2664: 'calculationOutput' : cannot convert parameter 1 from 'char' to 'const char *' [CODE]#include<iostream> #include<fstream> #include<string> #include<iomanip> using …

Software Development c++
Member Avatar for jonsca
0
109
Member Avatar for oliminator123

Hi, new here but would appreciate some sort of help. I have to create a program that takes 20 random strings from a string array of 40 words I made, and store them into a new string array called second. Directions: -create random # generator -generate random # between 0 …

Software Development java
Member Avatar for oliminator123
0
816
Member Avatar for priyamehta

Hello, I am new to programming and I have to write a program to perform a fast search on address book. The address book records are in csv file and contains 4 fields - first name, last name, phone number and company name. My problems are - 1. How do …

Software Development data-structure java seo
Member Avatar for priyamehta
0
323
Member Avatar for alex55

how would i go about doing the std output to a file for this line? to be more clear i want it to append to the file not overwrite because i run the function multiple times outputting to the same file [CODE]std::outFile << "The area with the highest average temperature …

Software Development c++
Member Avatar for alex55
0
136
Member Avatar for addlou

I need help showing me where I went wrong. Given problem is. Print to System.out a new string composed of every alternate character in sentence starting with the first. Use a loop to go through a string and retrieve characters from alternate index positions. Append these characters to another string …

Software Development java programming-construct
Member Avatar for addlou
0
4K
Member Avatar for niranjan889

Sir, i have done this code but an error is coming...... [B]the function getline should have a prototype undefined symbol 'string' [/B] what shoul i do? I am compiling this code in turbo c++ compiler..... [CODE]#include<string.h> #include<iostream.h> #include<conio.h> using namespace std; int main() { string number; string name; cout << …

Software Development c++
Member Avatar for VernonDozier
0
93
Member Avatar for Muhammadlodhi

Hi .. i want to print this pattern of number using loops . if input is 5 then output should be ... 155555 224444 333333 444422 555551 i have solved 1 22 333 4444 55555 but another reflection is not coming in my mind ... and making me confuse need …

Software Development c++
Member Avatar for Muhammadlodhi
0
109
Member Avatar for aaronmk2

I am putting 20 objects in an array then I am using a bubble sort (not the most efficient, I know) to organize the set from highest to lowest. I am wondering if there is a way to do this without using sets (mutators)? Code is below. using System; using …

Software Development
Member Avatar for aaronmk2
0
96
Member Avatar for -acir-

[ICODE] here's my code below and i cant seem to find out how to return to public static void main after selecting yes in the dialog box. this cud be a very damn question however i get confuse about how to resolve this. thanks. by the way, this program is …

Software Development algorithm java java-swing
Member Avatar for -acir-
0
886
Member Avatar for james6754

Ok..I am asking a similar sort of question... If I have a Form...I then take the values of of textboxes(user entered) and pass them in to the constructor of the class and set the attributes to the values passed in to the constructor. I know I can create objects myself …

Software Development
Member Avatar for james6754
0
93
Member Avatar for judithSampathwa

hi there i have a database called employee and in that there is a table called EmpDetails and in that there is column namely firstname awhat i want to do is to return all the first names in the database. i am using the 3 tier architecture. from the dbcommection …

Software Development asp.net sql
Member Avatar for Mitja Bonca
0
324
Member Avatar for villalandron

Hello! I am trying to finish this Recursive multiplication program and I am stuck. What I need to do is write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of x times y. I used this program from the …

Software Development java java-swing
Member Avatar for jon.kiparsky
0
184
Member Avatar for Python_nooby

Hi, I was hoping to create an application where the user can open a file from their hard drive (using the askopenfile dialogue from tkFileDialog) and it would display information such as file name / size. I managed to get everything working correctly except for displaying the information. I tried …

Software Development file-system hard-drive python
Member Avatar for slate
0
887
Member Avatar for TheOnlyNemesis

Hey, i am struggling with this program, i have tried everything i can think of but it still says missing return statement on public String processInput(String theInput){ [CODE]package clientserverassignment; import java.net.*; import java.io.*; public class Protocol1 { private static final int WAITING = 0; private static final int SENTTOS = …

Software Development java
Member Avatar for jon.kiparsky
0
214
Member Avatar for davidmhollis

I am running a batch file using msxsl to take an input xml file like below <ns1:invoicedata> <data1>1</data1> <data2>2</data2> </ns1:invoicedata> I need to copy this original output and replace the values with the input file values <ns2:invoiceoutput> <data3>3</data3> <data4>4</data4> <data5>5</data5> </ns2:invoiceoutput> so that it ends up with the following data …

Software Development file-system xml
Member Avatar for davidmhollis
0
246
Member Avatar for manju11

hello, I am new in perl..i am just trying to connect perl with mysql database. for this i installed xampp server in my system..and now perl,apache and mysql are running on my system. i also check server by running cgi program on it.. evrything is right.but i dont know why …

Software Development apache mysql perl
Member Avatar for mitchems
0
231
Member Avatar for nagmvs

Below i attached an attachment. This is an Interview question.Can u people please help me ?? Thanks, Nagesh.

Software Development
Member Avatar for Ezzaral
0
119
Member Avatar for sjones1025

Hi there, I am somewhat new to Python and I am writing a test that passes in URLs. I want to have a loop that will pass in different parameters. I cannot get past the error "TypeError: float argument required, not str" What am I doing wrong? [CODE]url3 = "http://standardsService/Standards.svc/Standards()?$filter=Authority%20eq%20'%s'&$inlinecount=allpages" …

Software Development python
Member Avatar for sjones1025
0
106
Member Avatar for Martje

I have been trying to capture the enter key in a windows.net textbox but i have no idea how to do it, i googled searched but the only examples i find are visualbasic and c# ones and when i try to do thesame thing in c++ in doesnt work. I …

Software Development c++
Member Avatar for Martje
0
469
Member Avatar for baldwindc

I am taking a data structures class and we are using the standard gcc compiler on a unix system. This is fine and I have no troubles using it, but I would like to begin using an IDE for my labs. I am trying Visual Studio 2010 Professional with my …

Software Development c ide microsoft unix visual-studio
Member Avatar for baldwindc
0
242
Member Avatar for AngelicOne

I thought by setting up the custom format of date time picker to |MM/dd/yy hh:mm tt" would work, but the selection doesn't change from date picker only! I need an object that I can be able to choose both date and time.

Software Development
Member Avatar for AngelicOne
0
93
Member Avatar for roswell67

Hello guys, I need help to divert an application's traffic to a different IP (localhost for example). I heard that this can be added by making the application support sock5? maybe am wrong.. but I just need to divert an application's traffic to my local proxy server. Scheme: iExplorer -> …

Member Avatar for roswell67
0
527

The End.