43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mavs123

Create a program with this problem using the “Observer pattern”, STRICTLY When a Message is sent to a Mailing List, the Mailing List sends a copy of the Message to every Inbox that has subscribed to the List. When an Inbox receives a message, it displays this notification: New Message …

Software Development java
Member Avatar for mavs123
0
127
Member Avatar for raghujosh

I am trying to connect to SQL SERVER 2008 using a JDBC connection. I have read some older posts on this topic(SQL server 2000, SQL server 2005) and I feel there may be some minor variations and so am posting on this forum. I am running win XP with SP …

Software Development java sql
Member Avatar for raghujosh
0
496
Member Avatar for Zinderin

I'm trying to learn about statics ... let's say in the code below, I just need these 30 dogs to be available throughout my program. What am I doing wrong here? It builds fine, but I'm getting the runtime error at line 15: [B][COLOR="Red"]An unhandled exception of type System.NullReferenceException occurred …

Software Development
Member Avatar for Lusiphur
0
149
Member Avatar for jagan605

Iam using ubuntu 10.04 LTS.I have a problem in including graphics.h in the g++ compiler I am using.I have nearly tried all the possible solutions given while i googled about it. Please help me .I am a beginner to programming.

Software Development c++ ubuntu
Member Avatar for jagan605
0
317
Member Avatar for Hardz

I am using this code in C# as shown below, to view the students first name. studentsBindingSource.filter = "[First Name] like '%" + txtFirstName.text + "%'"; This code is very useful and working well. If i input at a textbox for example, a letter [M] or abbreviations, all the students …

Software Development c#
Member Avatar for Hardz
0
368
Member Avatar for penguin22

Can anyone tell me where my error is I can't seem to find it.. Thanks, Penguin Code Snippet [code=c#]"UPDATE AddressEntry SET Cell = '" + txtCell.Text + "', Home = '" + txtHome.Text + "', Work = '" + txtWork.Text + "', Name = '" + txtName.Text + "', Address …

Software Development
Member Avatar for penguin22
0
155
Member Avatar for ThrasherK

I need to write a function that sorts a two-dimensional array using this header: [CODE]void sort(int m[][2], int numberOfRows)[/CODE] my code is supposed to primarily sort the rows and secondarily sort the columns. The program is supposed to take ten points entered by the user and sort them. I cannot …

Software Development c++
Member Avatar for ThrasherK
0
188
Member Avatar for everard

I'm creating a logfile interpreter program that consists of two editboxes. The first editbox contains the original logfile code, and the second editbox contains the equivalent code of the first editbox in user-readable format. All I want to do now is, everytime I select or highlight a specific code in …

Software Development c++
Member Avatar for Trepach
0
2K
Member Avatar for ThrustinDuffman

Hello everyone! Im new to programming and Im working on an assignment but I keep running into trouble. My assignment is to make a trivia game and although I have made pretty good progress, I am stuck on one particular part. The part I am stuck at is I am …

Software Development c++
Member Avatar for ThrustinDuffman
0
167
Member Avatar for empyrean

I have two list boxes in two different forms.. I load the data in to second list box using first list box...both have exactly same values.. but in first list box user selects multiple selections and i wanted to show them in second listbox as selected.. i have the following …

Software Development
Member Avatar for Geekitygeek
0
3K
Member Avatar for GAME

Hello, I was wondering if there was a way to cascade the windows any where on a form like in the middle or near the top left hand corner. I dont want the windows to cascade in the top left. I can provide a pic if needed.

Software Development
Member Avatar for nick.crane
0
157
Member Avatar for empyrean

Hello everyone..i am newbie in C# programming.. i have two different forms..Form 1 and Form 2. Users will select multiple items in form 1. i wanted to duplicate the listbox in form 1 to form 2. please suggest how to do..

Software Development
Member Avatar for empyrean
0
85
Member Avatar for Medalgod

OK, basically I want to test if the shift key is pressed. The method i've tried (unsuccessfully) is [CODE] private bool shiftPressed = false; private void CheckKeys(object sender, KeyPressEventArgs e) { //If enter is pressed and shift isn't //This allows for line breaks in a message by pressing shift & …

Software Development
Member Avatar for Geekitygeek
0
155
Member Avatar for majestic0110

Hi, I have written a C# dll and I have a SQL Db that has three columns (username, password, role). The role element is a class of user eg admin, user; each role needs a different login completion event. The login form I am using is an ASP.net web page …

Software Development asp asp.net sql
Member Avatar for khusiaaaan
0
244
Member Avatar for Garrett2011

take two following classes: [CODE=c++] class Test1{ public: Test1()=default; Test1(char in1,char in2):char1(in1),char2(in2){} char char1; char char2; }; class Test2{ public: Test2()=default; Test2(char in1,char in2):char1(in1),char2(in2){} private: char char1; char char2; };[/CODE] I know in c++0x both of these classes are considered as POD types and we can initialize objects of them …

Software Development c++
Member Avatar for Garrett2011
0
292
Member Avatar for Garrett2011

take two following classes and their constructors as samples: [CODE=c++] class One{ public: One(int a,int b):adad1(a),adad2(b){} private: int adad1; int adad2; }; class Two{ public: Two(int input[]){ for (int i=0;i<10;i++) araye[i]=input[i]; } private: int araye[10]; };[/CODE] considering objects with static storage duration, I think first constructor can be applied during …

Software Development c++ oop seo
Member Avatar for Garrett2011
0
403
Member Avatar for Tommymac501

This code worked fine under 2.6: [CODE]f = open("v20100515.csv",'rt') r = csv.reader(f) try: r.next() # skip the header record for row in r: n = 1 for col in row: print str(n) + ": " + col n += 1 ......[/CODE] But since I upgraded to 3.1, I modified it …

Software Development python
Member Avatar for Tommymac501
0
2K
Member Avatar for jacg4

Hello everyone My request is the following: Do anyone know about a collapsible panel that can be used on a windows forms project? Thanks for any answer

Software Development c# visual-studio
Member Avatar for jacg4
0
119
Member Avatar for nahmartin

Quick help please I am writing some data to a file but I do not know the information required in the third line until after the file is completed is there a way to point the ofstream back to the beginning of the file so that i can edit it …

Software Development c++
Member Avatar for mike_2000_17
0
433
Member Avatar for coroll

Hi!, when im trying to execute following code.i get this error.can any one help me to make it correct. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source) at SelectApp.main(SelectApp.java:18) this is my …

Software Development java microsoft-access
Member Avatar for java_programmer
0
199
Member Avatar for emps

Ok, this has got me banging my head against a wall. I have a structure defined in a header file. It get initialized in my "main.cpp" file, then later in a separate file "readconfig.cpp" it gets accessed to store information. I haven't been able to get it to compile except …

Software Development c++
Member Avatar for emps
0
1K
Member Avatar for neo.mn

Hi i m developing a payroll and attendance project in C# with MS SQL server 2005. currently i am facing a problem with one of my class. i can not understand the problem. now i would like to send my full code and database by email to anyone of your …

Software Development
Member Avatar for Geekitygeek
0
108
Member Avatar for MARKAND911

I want to add Combobox in a column of Datagridview in window Application using C#.net. How can i Do this.

Software Development
Member Avatar for Lusiphur
0
74
Member Avatar for ThrasherK

I am new to programming but when I took my class on Visual Basic it seemed so easy and I learned it so fast. It seemed like a giant puzzle. Now I am taking a introduction course to C++ and I cannot seem to grasp the material at all. When …

Software Development c++ puzzle visual-basic
Member Avatar for Fbody
0
677
Member Avatar for Garrett2011

Is there a macro that can get a text as input like "abc" and then extract characters in that text and generate a code using them, something like "{'a','b','c'}" ? thanks.

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

Suppose we have following two classes: [CODE=c++] class Temp{ public: char a; char b; }; class Final{ private: int a; char b; char c; public: Final(Temp in):b(in.a),c(in.b){} //rest of implementation };[/CODE] can we initialize an object of the Final class with following syntax in upcoming c++0x standard: [CODE=c++] Final obj(Temp{'a','b'});[/CODE]

Software Development c++ oop
Member Avatar for mike_2000_17
0
257
Member Avatar for bleedi

Hi, I'm studying C++ at the university and came across a problem in my exercises. Basically I'm trying to retrieve an integer from an object via its getter method. The object is stored in a vector. Here's the main.cpp part: [CODE] vector<Client> vektori; ... vektori.push_back(Client(account, firstName, lastName, balance)); ... vector<Client>::const_iterator …

Software Development c++
Member Avatar for bleedi
1
184
Member Avatar for Maya Pawar

Hi , I have textbox. When i type number with floating point(12.5) and leave focus on that textbox ,yhis textbox contains only 12. Why it is????? I want to do calculations with value of textbox so my calculations will wrong. Plz help me. Thanks in advance. Plz help me..........

Software Development vb.net
Member Avatar for finito
0
273
Member Avatar for starlight849

Hello guys and gals. As always any help is much appreciated. I am at a dilema. I am filling a datagridview with very lengthy results. Roughly 60k rows on average. I am filling them via an oracle database using a table adapter. The records then have a filter placed on …

Software Development dataset oracle vb.net
Member Avatar for Oxiegen
0
240
Member Avatar for MrBlack

When i run the second form it occurs a error "The Process cannot access the file C:\user\Maxs\Desktop\xml\Student.soap because it is being used by another process" Can anybody fix this Form1 Creating soap file [CODE] using System.IO; using Students;// Student DLL file using System.Runtime.Serialization.Formatters.Soap; namespace TestAps { public partial class Form1 …

Software Development xml
Member Avatar for MrBlack
0
128
Member Avatar for arsenal_fan

I am watching lectures on C++ from the stanford online courses website. I have a slight problem in understanding how memory is allocated for a string in C++. Basically when you declare a vector the constructor is called and memory is allocated for the array arr, numUsed and numAllocated are …

Software Development c++
Member Avatar for arsenal_fan
0
170
Member Avatar for Web_Sailor

Hi gurus's :cool: I have got an actionListner in my code. The problem is that when I try to set my JLabel as true it does not work and does not show up in the GUI ? :@ [CODE]Button.addActionListener( new ActionListner(){ public void actionPerformed(ActionEvent e){ label.setVisible(true); myFunction() //here's some timeconsuming …

Software Development gui java
Member Avatar for Web_Sailor
0
3K
Member Avatar for Hardz

I am using treeview with checkboxes in each node as shown below: +[]Main []Child1 []Child2 I have an indicator from form1 which is checkbox1 and checkbox2 that is uses to control the checkboxes of child1 and 2. If checkbox1 is true automatically child1 will be true, and if checkbox2 is …

Software Development
Member Avatar for Hardz
0
358
Member Avatar for Archenemie

I have recently tried installing cherrypy to no avail, and it got me wondering, is there a way to build websites using the wxpython toolkit? if somebody knows the answer and could point me in the right direction it would be a massive help

Software Development python
Member Avatar for ryuurei
0
105
Member Avatar for Tommymac501

Ok, back to differences between 2.x and 3.x... I have the following code to convert the sort key to a float: [CODE]def sort_key_func(row): return float(row[76][0:5]) [/CODE] which (under 2.x) returned the value of the field in the current row in position 76 for a lengthof 5. It was called like …

Software Development python
Member Avatar for Tommymac501
0
102
Member Avatar for omGac0W

So this is part of the code in one of my functions, and whenever I enter either yes, no, or something else, no matter what the response the do loop will loop again. I don't think my "if(response == "yes")" is working. Help please? :D [CODE] char response[10]; int answer; …

Software Development c
Member Avatar for ryuurei
0
7K
Member Avatar for rogue005

I am doing a project using Java swing in Netbeans and I am using their in-built GUI generator thing. I have created a socket in one frame and i need to use the same object in another frame. these frames are present in the same package but are different classes. …

Software Development gui java java-netbeans java-swing
Member Avatar for Ezzaral
0
3K
Member Avatar for ThrasherK

I have a problem with code I am writing. I am supposed to count the instances of each specific digit that the user inputs. I am supposed to output blank digit appears blank time(s). I figured out how to get the numbers to go to different indexes in the array …

Software Development c++
Member Avatar for ThrasherK
0
212
Member Avatar for TheComputerGuy

I have to convert 2D into 2 of Diamonds. I can not use if statements. If the person enters 10C then it prints out 10 of clubs. I've contemplated trying taking the string length, taking the position end of the string and using the D,C,S,H in the switch statements But …

Software Development java
Member Avatar for TheComputerGuy
0
179
Member Avatar for pawan_sharma777

I write this program to cheak user name and password enter by the use is same then the user is able to login, for this i declare a pointer array to store some user name and password (like sin up by user),and then the user enter her user name and …

Software Development c
Member Avatar for Ancient Dragon
0
160
Member Avatar for leverin4

Is it possible to rewrite the following VB.NET code in VB6? [CODE]Dim Names(,) As String = New String(,) {{"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, {"UserName", "RealName"}, …

Software Development vb.net visual-basic
Member Avatar for leverin4
0
168
Member Avatar for c++learner

Hello, I'm simply trying to keep track of how many times a space is encounteed in a string and then print the number of times to the console. Can someone please examine and give me a tip on what is wrong? Thank you! [CODE] #include <iostream> using namespace std; int …

Software Development c++
Member Avatar for c++learner
0
184
Member Avatar for Lux Fero

Hello World, [INDENT][/INDENT]Can anybody help me to create a windows applcation with turbo c. Am newbe in turbo c and I learned to make c programmes very well, but I Am facing a lot of problems since I moved to windows applications and i can't understant why turbo c doesn't …

Software Development c
Member Avatar for Lux Fero
0
146
Member Avatar for spowel4

If I have the following line in a bash script, it works fine: [CODE]CoDescDate=$(awk -F"\t" '{print $22}' $1)[/CODE] If I embed the above line in a function that is within the same bash script, the script seems to hang at the point of invoking the function. [CODE]pay_ending_date () { CoDescDate=$(awk …

Software Development shell-scripting
Member Avatar for spowel4
0
150
Member Avatar for kooia

Hi everyone, I want to copy the output of a program with another program so I can write it to a file. I'm running Ubuntu Linux, and I'm trying to see what my system is like with hwinfo. The list is too long, though, so I need to put it …

Software Development c++ ubuntu
Member Avatar for kooia
0
124
Member Avatar for Tweed

I have a form that creates a row of checkboxes depending on the type of analysis the user wants to perform on the incoming file. I need to be able to determine if the checkbox is "checked" but I don't know how to do that when the controls are created …

Software Development vb.net
Member Avatar for Tweed
0
1K
Member Avatar for sabareesh

// function declaration char* operator LPCTSTR(); // defenition char* String::operator LPCTSTR() { char* szArry = NULL; szArry[1024]; reurn(szArry); } how we can create a LPCTSTR string class member function in c++

Software Development c++
Member Avatar for Ancient Dragon
0
238
Member Avatar for KhairilSyahrin

is there a way to take data from msflexgrid and put it into a ready made excel file(meaning some boxes in excel is already filled)? And it is put into some specific place in the Excel template. Data from MSFlexGrid-->Excel Template. Thank you.

Software Development visual-basic
Member Avatar for AndreRet
0
135
Member Avatar for ermercado

hi, using the sample xml below: <hdr> <sect role="para" label="1234"> <legref>asdf</legref> <cite role="com">abc</cite> <cite role="rg">RTY 08</cite> <cite role="rg">SDF 05</cite> <othertag>some textdata here <cite role="rg">SXF 05</cite> </othertag> </sect> <sect role="para" label="2345"> <cite role="com">xyz</cite> <cite role="rg">WER 10</cite> <cite role="rg">TRS 10</cite> <cite role="rg">WER 10</cite> <legref>qwert</legref> </sect> </hdr> need to extract the label attribute …

Software Development xml
Member Avatar for ermercado
0
793
Member Avatar for pankajagar2002

Hello, i am using the digester to parse my xml into objects. I am getting the following error. could anyone pleaee help me to solve the problem . java.lang.IllegalArgumentException: No bean specified at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:874) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:460) at org.apache.commons.digester.BeanPropertySetterRule.end(BeanPropertySetterRule.java:189) at org.apache.commons.digester.Digester.endElement(Digester.java:1332) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at …

Software Development apache java xml
Member Avatar for pankajagar2002
0
867

The End.