132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for user45949219

I've got a program that is designed to access a nested list and then print values from a certain column in each sublist. My problem being, I don't know how to edit this to provide more freedom with what values I wish to print out. This is how it looks …

Software Development python
Member Avatar for TrustyTony
0
195
Member Avatar for bibiki

hey there, I have two classes with a one-to-many relationship. For ilustration: public class Customer { Business business; Date created; } public class Business { } Now, when I do the following: new StringBuilder().append("SELECT business FROM ").append(Customer.class.getName()) it works perfectly fine. However, when I include filtering based on created field …

Software Development java
Member Avatar for bibiki
0
142
Member Avatar for marram

need help to create log in form in visual studio , need some basic assistance

Software Development visual-basic visual-studio
Member Avatar for waqassilat
0
156
Member Avatar for john.gale.92102

I am getting error: A document processed by the JRC engine cannot be opened in the C++ stack when I try to load a Crystal Report in the Visual Studio 2012 development environment I have seen a number of solutions to this that involved the deployed program, but I am …

Software Development file-stream pdf vb.net visual-studio
Member Avatar for Begginnerdev
0
260
Member Avatar for G_S

Hello I am a little confused. I had always thought that a class can have objects from other clases as attributes. My teacher recently told me that this is not true... so I am confused now: if one of the attributes of my class is a String, would that be …

Software Development java
Member Avatar for G_S
0
196
Member Avatar for ayoob22

without nested loops i need a program that prints the set of numbers between any two numbers ??? help me plz

Software Development c++
Member Avatar for DavidB
0
234
Member Avatar for pendo826

Hey my doubly linked list remove duplictes function will only work when the players in the list are together as in position 1 and 2 or 3 and 4. Otherwise if there not together it will delete the two players. For example, if i have luis suarez at position 1 …

Software Development c++ linked-list
Member Avatar for Liuqahs15
0
216
Member Avatar for ziphyx

Hello, im making a calculator for a school project with visual basic using microsoft visual studio 2010. I´m using a textbox and a label to calculate my results but I´d rather have everything in 1 textbox, or richtextbox. I searched on the internet and I found I could use microsoft …

Software Development vb.net visual-basic visual-studio
Member Avatar for Mr.M
0
1K
Member Avatar for MasterHacker110

I made this very simple applet just for fun but it doesn't work: package applet; import java.awt.*; public class Applet extends java.applet.Applet { public void init() { } public void paint(Graphics g) { g.drawOval(0, 0, 250, 100); g.setColor(Color.RED); g.drawString("First Applet", 10, 50); } } And heres my HTML code: <html> …

Software Development java
Member Avatar for JamesCherrill
0
186
Member Avatar for chdboy

I have Class called ConnectionDB and in this class I have Main method and another function in the class ConnectionDB,That is private static Connection DBConnectionstring() In this function I have Connection URL ,Drivers inside this function . I want this function to be used in another class (GUILogin) with main …

Software Development java
Member Avatar for chdboy
0
207
Member Avatar for Ismatus3

Hello , When i call a window from the main one , how to hide this one , after calling the second , and define it as a main window , this is the code of the two windows : def InterfaceDeps(): global interf1 interf1 = Toplevel() interf1.geometry("500x400") interf1.title(' Base …

Software Development python
Member Avatar for Ismatus3
0
139
Member Avatar for preet4fun

The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets--box, sideline, premium, and general admission. After each game, data is stored in a file in the following form: ticketPrice numberOfTicketsSold ... Sample data …

Software Development c++
Member Avatar for NathanOliver
0
2K
Member Avatar for nik701a

Hello ! I've been building a simple designer which accepts source code in c and parses c keywords to display appropriate symbols. I've finished designing all the shapes. I've got a textbox to accept input. I would like to parse the entered c code. How would I parse a C …

Software Development asp.net c#
Member Avatar for ddanbe
0
1K
Member Avatar for cshrikanth

Dear all, In the function below, how should the array of arrays data structure be defined and used? void foo(int option) { int i =0; char Colstr[3][15] = {"Red","Blue","Green"}; char Volstr[7][15] = {"1","2","3","3.5","4","4.5","5"}; char Sndstr[4][15] = {"lo","med","hi","vhi"}; int numSTrings[2] = {3,7,4}; char *arrayOfarrays[] = {Colstr,Volstr,Sndstr}; // How should this be …

Software Development c data-structure
Member Avatar for cshrikanth
0
139
Member Avatar for bhallarahul

hello I have a xml like this: <book> <Publication> myPublication0</Publication> <Publication> myPublication<bookName> my book</bookName></Publication> <Publication> myPublication1</Publication> <Publication> myPublication2<bookName> my book2</bookName>asd</Publication> </book> and i want to read through java program and want output like myPublication0 myPublication<bookName> my book</bookName> myPublication1 myPublication2<bookName> my book2</bookName>asd please tell how to get given output

Software Development java xml
Member Avatar for stultuske
0
181
Member Avatar for joseph.lyons.754

Hey Guys, So I was doin a tutorial and I incorporated it into my code and it works for the most part. The program gives you a list of town names you pick one and hit search. All good so far then the program goes into the database and pulls …

Software Development java mysql sql
Member Avatar for joseph.lyons.754
0
284
Member Avatar for nik701a

**Window1.xaml** <Canvas x:Name="mycanvas"> <Button Width="100" Height="50" Canvas.Left="350" Canvas.Top="50" Click="Button_Click">Click to Display</Button> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="470" Name="cc1" Template="{StaticResource DesignerItemTemplate}"> <Grid x:Name="g1"> <Ellipse Fill="LightGray" Stroke="Black" Stretch="Fill" Name="myElli" IsHitTestVisible="False"/> <TextBlock VerticalAlignment="Center" TextAlignment="Center" Height="61.96" Margin="10,35.02,10,33.02">Simple Ellipse</TextBlock> </Grid> </ContentControl> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="150" Template="{StaticResource DesignerItemTemplate}"> <Grid> <Path Fill="LightGray" Stroke="Black" Name="myPath" Data="M 0,5 5,0 …

Software Development asp.net
Member Avatar for nik701a
0
3K
Member Avatar for ManthanB

Few years back i developed a project in VS 2003.Today in that project i was trying to add a new report. however after adding the report page, i am getting an error prompt that is Failed to open Document with the title of Crystal Reports Activex Designer. Also VS is …

Software Development
Member Avatar for ManthanB
0
224
Member Avatar for ralph.d.abernathy.1

Hello everyone! So I wrote a program that simulates a dice game, almost like the game of Craps. I want to turn this normal console app into a dialogue based MFC. So I would create a button labeled "Roll" and the window would show two die being rolled. Here is …

Software Development c++ gaming
Member Avatar for ktsangop
0
455
Member Avatar for yyzdslr

I need help with 2d arrays i've posted the problem here [Click Here](http://www.java-forums.org/new-java/71879-please-help-me-im-almost-there.html) (i've posted the problem on java-forums as well) Could someone please tell me what i'm doing wrong or how i could fix this? Thanks!

Software Development java
Member Avatar for JamesCherrill
0
313
Member Avatar for xanawa

Hi, I encrypted two strings and returns example "euHK5s9h30Q=" then I am trying to convert the string given to GUID Guid tokenGuid = new Guid(encryptionString); and i is giving me ***Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).*** error how can i resolve it please?

Software Development
Member Avatar for Ketsuekiame
0
265
Member Avatar for annitaz

#ifndef LOTTO_H #define LOTTO_H #include <QWidget> #include <QLabel> #include <QTextEdit> #include <QPushButton> #include <QGridLayout> class lotto : public QWidget { Q_OBJECT private: //widget data members QLabel* numbersLabel; QTextEdit* numEdit; QPushButton* lotusButton; public slots: int generateLotteryNumbers (); void displayNumbers(); public: lotto(); }; #endif // LOTTO_H #include "lotto.h" #include <stdlib.h> #include <time.h> …

Software Development c++ gui
Member Avatar for tinstaafl
0
335
Member Avatar for fatalaccidents

Hello all, I'm having trouble writing a spell checker as my recursive function isn't returning what I would like it to. It is meant to chop off the ends of words likes "baker" to bake and check against a predined dictionary. I used recursion for words like "baker's". I have …

Software Development java
Member Avatar for bguild
0
180
Member Avatar for skbluecollars

str1=new String(data,0,data.Length()) why the zero is used in the string function please explain me the what this line says???

Software Development java
Member Avatar for JamesCherrill
0
127
Member Avatar for old_apache

i have 2 files, one file created on Windows and another was made on Ubuntu, i want to use this command: comm -12 file1 file2 how do i do that?

Software Development shell-scripting ubuntu
Member Avatar for old_apache
0
186
Member Avatar for in_xx

Hi, I am creating a GUI using wxPython. The first window involves making a box with attributes such as title (Big Font Text, results from a file that i will be reading in, want an arrow that changes position depending on results. So think of it like a progress bar. …

Software Development gui python
Member Avatar for in_xx
0
159
Member Avatar for clouds_n_things

I'm working on re-writing a 2 decade old python program, but I'm hitting a 'resource busy' error when executing. Does anybody have any ideas? The program is below, and the output is below that. Thanks! from scapy.all import * import optparse print "\n--Example format is -s (controller IP: 172.0.0.0), -S(spoof …

Software Development python queue
0
123
Member Avatar for maham saba

Please help me. I have a problem with this program. what will be the code of the following output? 3 6 9 12 15 18 21 24 27 30

Software Development c c++
Member Avatar for old_apache
0
140
Member Avatar for taekiewzz

[DataObjectMethod(DataObjectMethodType.Insert, true)] [System.Web.Services.WebMethod(TransactionOption = TransactionOption.Supported)] [AutoComplete] public int addVehCategoryType(byte[] VEHIMAGE) { SqlParameter[] cmdParm ={ new SqlParameter("@VEHIMAGE", VEHIMAGE), }; return SQLHelper.ExecuteQueryReturnInt(0, constr, "[VEH_VEHICLECATEGORY_ADDVEHICLECATEGORY]", cmdParm, true); } <asp:FileUpload id="fuCategoryVehImage" runat="server" Width="220px" CssClass="input" Enabled='<%# Bind("VEHIMAGE") %>'></asp:FileUpload> I have a web services methods like this, so how would i gonna do inserting images through …

Software Development image
Member Avatar for taekiewzz
0
263
Member Avatar for srina

Hello, How do I load items from a txt file into listbox?

Software Development vb.net
Member Avatar for srina
0
138
Member Avatar for Ali Musa

I have developed delhpi software sql database invlove now want to convert it into web application hwo plz help me iam new in this .

Software Development pascal sql
Member Avatar for OASys1
0
231
Member Avatar for old_apache

i got a string var=96.33% from 120 how do i get 96.33 from $var?

Software Development shell-scripting
Member Avatar for old_apache
0
242
Member Avatar for Papa_Don

Hi group, I recognize the today, most people navigate from control to control within a form with their mouse. However some old school people may want to use a "enter" key or a up, down, left or right arrow. I'm curious to know if these kinds of events (if that's …

Software Development vb.net visual-basic
Member Avatar for Maligui
0
568
Member Avatar for renis.kureshi.7

i have a application in which i have taken 12 forms in my project. i have 5 questions in each 10 pages, and then i wanted to display the user's selection in the form12. whether he had checked the checkbox. and also display the wrong answer of our checked checkbox …

Software Development vb.net
Member Avatar for Maligui
0
166
Member Avatar for TempoGnome

Hi! I've been making this game for fun and have run into a few problems, a friend recommended me to ask you guys for help. I have three problems: 1. The player doesn't recongnize when it's not on a platform and because of this it won't fall down. I've narrowed …

Software Development python
Member Avatar for zjtpjs4
0
352
Member Avatar for christopher.north.520125

Ok, literally my first day of learning Python. I am working my own way through Python Programming for the Absolute Beginner and am encountering my first glitch. I downloaded 3.3.1 and am just starting to play around. When I run my program in the Python Shell it works as it …

Software Development python
Member Avatar for vegaseat
0
116
Member Avatar for ConfusedLearner

I am getting an error saying function does not take 2 arugment. Dont know how to fix this. Please help. #include <iostream> #include <cmath> using namespace std; void set_sides(int,int,int&); int main() { int Area, Volume; cout << "Surface Area and Volume of a Cubic Prism. " << endl << "Please …

Software Development c c# c++
Member Avatar for NathanOliver
0
217
Member Avatar for jellybean21

Hi Guys, I urgently need help with this python project I'm really stuck with it, finding it very confusing at this stage. If anyone could offer me any help I'd really appreciate it!! Heres the question- Data mining is the process of sorting through large amounts of data and picking …

Software Development finance python
Member Avatar for TrustyTony
0
234
Member Avatar for macphill

how do add the total of items in listview column and display the result in a text box

Software Development listview vb.net
Member Avatar for Reverend Jim
0
242
Member Avatar for game06

in enemy bullet class i am creating two different kind of bullets. 'animationFire' and animationFire2. Enemy Bullet class public void paint(Graphics g) { g.drawImage(animationFire.getSprite(), (int)(x),(int)(y), width, height, null); g.drawImage(animationFire2.getSprite(), (int)(x),(int)(y-30), width, height, null); g.drawImage(animationFire2.getSprite(), (int)(x),(int)(y+35), width, height, null); } In Enemy Class i am shooting the bullets. i am doing …

Software Development java oop
Member Avatar for game06
0
141
Member Avatar for shanki himanshu

there is function : int median(int a[], int b[]) { } how do i find the number of elements in a and b? i am doing sizeof(a)/sizeof(int) but it does not give right results. P.S. i need to submit the function only in online compiler so i dont know what …

Software Development c++
Member Avatar for shanki himanshu
0
380
Member Avatar for IsaacMessi10

I want to make a tab control that looks like this: ![6f8bc46c110356e34b73f3992d388de2](/attachments/large/3/6f8bc46c110356e34b73f3992d388de2.png "6f8bc46c110356e34b73f3992d388de2") Does anybody know how to this? I've searched all over the internet yet nothing really worked. Current Tab: ![9db2836000c6705c1e74ca8d818f3186](/attachments/large/3/9db2836000c6705c1e74ca8d818f3186.png "9db2836000c6705c1e74ca8d818f3186") 'Offline' Tab: ![c8393eabeab3324cf45c45d3caab472b](/attachments/large/3/c8393eabeab3324cf45c45d3caab472b.png "c8393eabeab3324cf45c45d3caab472b") Thanks :)

Software Development vb.net
Member Avatar for tinstaafl
0
582
Member Avatar for IsaacMessi10

Public Class Close Inherits Windows.Forms.Button Public Sub New() Me.Size = New System.Drawing.Point(25, 25) Me.FlatStyle = Windows.Forms.FlatStyle.Flat Me.BackgroundImage = My.Resources.CloseNormal Me.BackgroundImageLayout = Windows.Forms.ImageLayout.Stretch Me.BackColor = Drawing.Color.Transparent Me.Font = New System.Drawing.Font("Calibri", 10, Drawing.FontStyle.Regular, Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.ForeColor = Drawing.Color.Black Me.FlatAppearance.BorderColor = Drawing.Color.DeepSkyBlue Me.FlatAppearance.MouseDownBackColor = Drawing.Color.Transparent Me.FlatAppearance.MouseOverBackColor = Drawing.Color.Transparent Me.FlatAppearance.BorderSize = 0 End …

Software Development vb.net
Member Avatar for tinstaafl
0
214
Member Avatar for kyle.mace.35

Alright so I have a problem with EventQueue and Event. In Event my second constructor gets an error saying expected initializer. If anyone can point me in the right direction to what is wrong that would be great. Now if i comment that out i get an error with EventQueue …

Software Development c++
Member Avatar for kyle.mace.35
0
161
Member Avatar for tony75

Hi I have 4 files in directory on my desktop? My question is 1.How can I display for each file only the name, the size and the date in this order? 2. How can I display all files sorted accorded their name? #!/usr/bin/perl use strict; use warnings; my $dir = …

Software Development perl
Member Avatar for tony75
0
4K
Member Avatar for dinesh012

hi i trying to update some information with a picture to the database but it display followin error message "Syntax Error in Update Statement" this is my code plz any one can help me? i'm a beginner learning VB.net Try Dim fsreader As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.Read) Dim breader As …

Software Development vb.net
Member Avatar for PatMoe
0
235
Member Avatar for adrian9989

I am trying to write a server-client application for file transfer: the client written in Java and the server written in C++. Unfortunately I have the following error: "java.net.SocketException: Connection reset by peer: socket write error". Here is my code for client: import java.io.*; import java.net.Socket; public class Proba_binar public …

Software Development c++ java peer-to-peer
Member Avatar for ktsangop
0
2K
Member Avatar for lucky banda

drawing multi-colored warms on a vb form.an individual warm will consist of number of segments and segment will be a line of certain width and colour

Software Development vb.net
Member Avatar for Begginnerdev
0
91
Member Avatar for AmrMohammed

Greetings I want to know what is the difference between passing an agrument by reference as a constant and making the function itself a constant. A constant argument means that the function cannot modify it anyway and any attempt to do so, will report an error from the compiler what …

Software Development c++
Member Avatar for deceptikon
0
161
Member Avatar for Aven.Seven

Greetings guys i'm stuck in this problem for 2 days now can you guy tell me the problem? here's the code If errorMsgLbl.Text = "Password match" Then sqlCmd = New SqlCommand("INSERT INTO registered_cust_tbl([customer_fname], [customer_lname], [customer_DoB], [customer_Contact], [customer_Email], " & _ " [customer_Address], [customer_Gender], [customer_Ailments], [customer_Username], [customer_Password], " & _ " …

Software Development vb.net
Member Avatar for Hazuan Nazri
0
219

The End.