132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anand01

Hi all, when I use break statement like following it doesn't show any error [CODE] String o="": o = o + 2; z: for(int x = 3; x < 8; x++) { if(x==4) break; if(x==6) break z; o = o + x; [/CODE] but when I interchange the label(z) position …

Software Development java
Member Avatar for anand01
0
236
Member Avatar for aerohn

I just want to know, what exactly the difference between the functions CStr() and Str()?

Software Development vb.net
Member Avatar for Pgmer
0
95
Member Avatar for rhone0809

my code: command1.CommandText = "INSERT INTO table1,table2(value1...,value2..)VALUES('" ...... "')" how to save multiple table is one query? i tried this thing but it didn't work. anyone who can help me with this please.. thanks

Software Development sql vb.net
Member Avatar for M.Waqas Aslam
0
151
Member Avatar for TheFearful

Hey guys, I am confused on how to do this code. The specifications are in the attachment. It is a word file. This is the code that I have so far. It does not work to what is asked for and I don't know where to go from here. [CODE] …

Software Development c++
Member Avatar for raptr_dflo
0
115
Member Avatar for Lingson

hi, i've tried to search any examples to understand more about how to use the urllib in python 3.1, but all the tutorials are for python 2.x i need to do just a simple thing like getting the text (as string) and manipulate it. the code in python 2.x would …

Software Development python
Member Avatar for Rocketdlib
0
2K
Member Avatar for enterpise

[CODE]package test; import java.util.*; import sun.security.krb5.internal.UDPClient; import java.net.*; public class CMD { public static void main(String[] args) throws UnknownHostException, SocketException { DatagramSocket sock = new DatagramSocket (); Scanner keyboard = new Scanner(System.in); String fisrtarg=null; // System.out.println("Enter CMD"); // fisrtarg = keyboard.nextLine(); if (args.length > 0) {//this is important if no …

Software Development java tcp-udp
Member Avatar for enterpise
0
209
Member Avatar for thecoolman5

Hi. I am just wondering how to restore a number that is in scientific notation. So, take a number that is in scientific notation, turn it into standard form, and resave the variable in standard form. here is an example of outputing the variable amount in standard form: [CODE]n1.setf(ios::fixed); cout …

Software Development c c# c++ ios
Member Avatar for raptr_dflo
0
246
Member Avatar for iamuser_2007

Hey guys I am learning CPP, I am looking for some topics material but I couldn't find any helpful material any where. It is also not available in my C++ Book, These topics are from older edition of C++. [ICODE] The Locator Design Pattern, Tracking Elements as they Move Defining …

Software Development c++ queue
Member Avatar for raptr_dflo
0
147
Member Avatar for black22622

Turbo C++ is showing declaration syntax error with this statement. Help. void main() { test s; int ch,roll; char name[30],choice,join; clrscr(); It is showing the error with the ' { ' . I have used proper header files and stuffs, and this is just a part of my 700 line …

Software Development c c# c++
Member Avatar for raptr_dflo
0
4K
Member Avatar for babyhuyx

Simple tic tac toe game against CPU, however, I'm printing out the results of the AI part and its coming up with some really large numbers that aren't suppose to be there. After the computer's first move, it just crashes and goes into endless loop. Where did I go wrong …

Software Development c++ legal
Member Avatar for raptr_dflo
0
136
Member Avatar for nijinjose123

Hi, Could anyone please help me in writing code to convert Hex Values to ASCII Thanks

Software Development c++
Member Avatar for raptr_dflo
0
1K
Member Avatar for sync101

Hello, my assignment is to write a postfix calculator. I have written the program. It works well, except for when the user enters in an error. Lets say, user enters "2 A +" it changes the A to a '0'. Which it shouldn't be doing. I have tried strtol() as …

Software Development c
Member Avatar for WaltP
0
191
Member Avatar for Topherman

[CODE][/CODE]hey, this program is supposed to display 50 random numbers, which is does already, average those numbers, find the maximum,minimum, and mode of the numbers. I haven't started on the mode yet, but i dont see why the other things don't work. Did I initalize it wrong? [CODE] #include<string> #include<ctime> …

Software Development c++
Member Avatar for raptr_dflo
0
1K
Member Avatar for poojavb

Hello All, I need help in this... I am attaching a zip file which contains my project in Microsoft Visual Studia 2010 along with Crystal reports.... Please help me....its giving a lot of errors...and I dont know from where it is coming and why.... Urgent help....

Software Development vb.net
Member Avatar for poojavb
0
97
Member Avatar for trisha0906

hi, what i need to do is to get information from 2 tables and show it to the listview. for example, i want to get the surname, first name and middle name from the student_info table and the Payment_Status from the accounting_system. i don't want to show the information that …

Software Development listview mssql vb.net
Member Avatar for ChrisPadgham
0
146
Member Avatar for srinivas88

In a client server program ... generally when the server goes down the client on executing the send command 2 times returns a SIGPIPE signal . I want to know y this happens. The client must recieve sigpipe immediately when it sends a message after the socket connection is broken …

Software Development c++ socket-programming tcp-udp
Member Avatar for srinivas88
0
401
Member Avatar for maverick01

the uploaded is a assignment and i want to solve this task using the library fstream and using the tellp ,seekg other functions also can some body help me in that how to use all these things..!!I WROTE A FUNCTION ALSO BUT IT IS NOT READING THE FILE??? THE FUNCTION …

Software Development c++ ios
Member Avatar for MandrewP
0
236
Member Avatar for see_moonlight

what function can delete a space in a string? i want to find a c function , e.g. delspace(char *string) string = "abc d e" and delspace(string)-> "abcde" thanks, i want C function

Software Development c
Member Avatar for isaacws
0
575
Member Avatar for shann1718

i have a data grid,, connected in ms access via code, on its celldoubleclick event i have the code [CODE]Public Sub dgv1_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgv1.CellDoubleClick Dim empid As Object = dgv1.Rows(e.RowIndex).Cells(0).Value display.Text = Convert.ToString(empid) editempfrm.ShowDialog() End Sub [/CODE] it suppose to display its content …

Software Development vb.net
Member Avatar for ChrisPadgham
0
686
Member Avatar for Razer13

[CODE]public JLabel SetImage(String path) throws IOException { ImageIcon myPicture = new ImageIcon(path);//ImageIO.read(new File(path)); JLabel picLabel = new JLabel(); picLabel.setBounds(0, 0, 2, 2); picLabel.setIcon(myPicture); pnlImage.setLayout(null); pnlImage.add(picLabel); pnlImage.repaint(); pnlImage.revalidate(); return picLabel; } try { String Ref = txtRef.getText(); SetImage(); JLabel label = new JLabel(); label = SetImage("C:\\Users\\Documents"); App\\ImagesDoc_001.jpg"); pnlImage.setLayout(null); pnlImage.add(label); pnlImage.repaint(); pnlImage.revalidate(); …

Software Development image java
Member Avatar for NormR1
0
139
Member Avatar for gowans07

Hi there, I've using the ADO connection within vb6. I know about the Data.Recordset.Addnew and Data.Update way of adding a new record but is there a way of adding a new record without having to link objects to the Table/Entity? Is it possible to use variables to do this. Currently …

Software Development visual-basic
Member Avatar for gowans07
0
123
Member Avatar for Aleksej

Hello everybody. I hope I'll find help here. I didn't know where to put this topic: here, or on php or delphi forum. Because I don't know from what to start. I have a lot of data stored in Word document. Over 1500 pages. And I want to make a …

Software Development delphi vb.net
Member Avatar for ChrisPadgham
0
116
Member Avatar for DeanMSands3

In my wayward youth, I learned a little bit of inline assembler in Turbo C. And that was fun. Then I got into DJGPP which came with GCC and Bell Syntax. And it was confusing. And I gave up. Fast forward 12 years. I'm 30, finishing a bachelor's in CS. …

Software Development assembly
Member Avatar for DeanMSands3
0
223
Member Avatar for scheppy

Hi all I'm wondering how i add Action listener to this Button It has no text, just an image, from an ImageIcon I tried I3 for the action listener but i doesant work [CODE] ImageIcon I3; I3 = new ImageIcon ("carrier.gif"); J1 = new JButton (I3); J1.addActionListener (this); J1.setBounds (420, …

Software Development java
Member Avatar for scheppy
0
145
Member Avatar for collin_ola

Hi, I seem to be getting the error "Syntax error in UPDATE statement." when attempting to update my database through visual studio 2008, using forms. Here is the code for the connection: [CODE]Private Sub btnLoadDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoadDB.Click Provider = "PROVIDER=MICROSOFT.ACE.OLEDB.12.0;" Source = "Data …

Software Development open-source sql vb.net visual-studio
Member Avatar for collin_ola
0
230
Member Avatar for jacksantho

Hi, In my record set, it's returning 67 rows. Some times(on iteration), am getting correct values from the record set and some times am getting wrong values from the record set. Am unable to solve this issue ? please help me out.

Software Development visual-basic
Member Avatar for gowans07
0
210
Member Avatar for hekri

Hi I'm new to this. I'm a mechanical engineering student and have to learn c++, i have this book and there's a program source code. My question is: why do we need to include ctime in this code and what is it good for? [CODE]#include <iostream> #include <cstdlib> [B]#include <ctime>[/B] …

Software Development c++ engineering
Member Avatar for hekri
0
3K
Member Avatar for Zvjezdan23

My code has a successful build, but when I run it and type in my 5 numbers, it breaks. Any clue as to how I can fix it??? Much help will be appreciated. [CODE] #include <iostream> #include <sstream> #include <string> #include <ctime> #include <cmath> #include <math.h> #include <algorithm> using namespace …

Software Development algorithm c++
Member Avatar for thines01
0
123
Member Avatar for gourav1

my teacher has told me to make a flag(India's national flag) in C using lines, bar and all. then fill colors. i have done this thing when i am writing this thread. now, he also told me now that the flag should look like as if it waving in the …

Software Development c
Member Avatar for DeanMSands3
0
1K
Member Avatar for timmy568

Hi guys, I was doing my project when i came across this error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:686) at Screen.screenRunner(Screen.java:84) at Screen.main(Screen.java:90) I am also having problems getting my program to accept user input(height and width). [CODE]import java.util.Scanner; public class Screen { …

Software Development java
Member Avatar for timmy568
0
231
Member Avatar for Mr.BunyRabit

hey there. Im using Netbeans. i have a form where there is a button edit. when i press it, other form opens, and the selected item on the previous page has to be edited in the databse. So bottom line, i have to get a String / int that i …

Software Development java
Member Avatar for stultuske
0
173
Member Avatar for albhert2728

Hi. Can you help on my project. My code in search button doesn't run. I am making a Directory System and the following information must appear when you click search button..Remarks,Telephone Number, First Name, Last Name,Address. Email me the code at <<Snipped>..im hoping for your help on my project..Im creating …

Software Development vb.net
Member Avatar for ScalesTech
0
109
Member Avatar for GeekZu

Hello I'm doing my project in C++ now. It's a Student Report Card Generator. So here's what I plan on doing: The file structure: ROOT/// --> Report.exe --> System Files -------> License.dat -------> ReadMe.txt --> Reports -------> Report 1 -------> Report 2 . . So, when the program is run, …

Software Development c++
Member Avatar for eddiecrosby
0
936
Member Avatar for thecoolman5

hi, I am trying to make a variable equation solver using DEV-C++. I just need to know how to get C++ to solve an equation inputed by the user. So you input something like 1+1 and i need it to solve the problem and output the answer. heres an example: …

Software Development c++
Member Avatar for eddiecrosby
0
4K
Member Avatar for shandoosheri

Hi i need that when i put something like a ball in front of my webcam a square is putten around that ball and keep following it if i moved the ball i currently have no idea on how i can do this so any help whould be appreciated thank …

Software Development webcam
Member Avatar for shandoosheri
0
563
Member Avatar for Hawk123

Hi, i made an application using VB.NET 2010. i have 5 forms. i want to know how to make one common navigation (like in a webpage) for this application. Is it possible to have the menu and header static and loads each form in one dynamic container. I hope my …

Software Development vb.net
Member Avatar for Hawk123
0
98
Member Avatar for Aphrite

Ok so I have a program that can save user's input into a text file and load it back, but whenever I try to open the file and exit without selecting the file I get an error.(if i select the file and open it i don't get any errors). this …

Software Development file-system vb.net
Member Avatar for Jx_Man
0
216
Member Avatar for james6754

I have explicity declared my array to be 450 characters long. But for some reason when I run the program I seem to be getting about 475 characters and they are all -52(ascii) from 450 to 475. I also do not seem to have a null character in my array …

Software Development c++
Member Avatar for thines01
0
120
Member Avatar for rajdey1

Hi I need to send a data to webpage and Read its response I am trying to code it for my project but I am unable to do so ..Please Help.. Below I attach the source code of the webpage where in a user manually types her/his enrollment number and …

Software Development first-post vbscript
Member Avatar for thines01
0
399
Member Avatar for syeda amna

hi What is the difference between in JFrame and JWindow? If I want to develop a a desktop application either I have to use JWindow or JFrame.

Software Development java
Member Avatar for mKorbel
0
2K
Member Avatar for shann1718

im working on vb 2010 and ms access db.. just want to ask if a textbox with databinding can be used to search or filter data and display it to other textboxes with databinding on the same form? thank you..

Software Development vb.net
Member Avatar for shann1718
0
123
Member Avatar for kyriacos1986

When I run the following lines of code the following erroe from the compiler is displayed [CODE]cannot find symbol - method start()[/CODE] CODE: [CODE]import java.lang.Thread; import java.util.concurrent.*; public class MyThread { public static final int MAX = 15; private String message; /** * Constructor with parameters * * @param message …

Software Development java
Member Avatar for forkmartin
0
138
Member Avatar for Bladtman242

Obviously I have some wrong assumptions, because this prints "strsize = 8" no matter what. I realize my use of system() might be misguided, so if you have comments on that don't hold back, just please help out with the string-thing aswell : ) BTW it's a 'wrapper' for shell …

Software Development c
Member Avatar for Bladtman242
0
180
Member Avatar for tomtetlaw

I'm using VC++ 2010 and Window 7 64-bit. In my project, I have 2 DLLs and one EXE (all being build 32-bit). They're all using the same runtime library (Multi-Threaded Debug) and I have checked that nothing is being deleted twice. I'm fairly sure that nothing is being allocated in …

Software Development c++
Member Avatar for daniel.bonetti
0
3K
Member Avatar for shalini shekhar

can you give me the code for the same but in c language. need it urgently

Software Development c++
Member Avatar for WaltP
0
175
Member Avatar for Candace Parker

Sudoku in C++. The program works but how do I check the minisquares? Please gimme a function. :( Pretty please? [code] #include <iostream> #include <iomanip> using namespace std; const int rowSize=9; const int columnSize=9; const int arraySize=9; int a[arraySize]; int print_values[rowSize][columnSize]={9,4,2,5,1,8,3,7,6, 7,1,6,4,2,3,5,8,9, 3,8,5,7,6,9,4,2,1, 1,6,3,8,4,2,7,9,5, 4,2,7,1,9,5,6,3,8, 8,5,9,6,3,7,2,1,4, 6,3,8,9,7,4,1,5,2, 5,7,4,2,8,1,9,6,3, 2,9,1,3,5,6,8,4,7}; bool …

Software Development c++
Member Avatar for WaltP
0
397
Member Avatar for enterpise

i have programming assignment which is to make UDP and TCP client now i already finished UDP ,TCP client and GUI now i want to make the command line class So the assignment tell me that "CLIENT: The client should read input from the command line: • -x <number>, where …

Software Development client-server gui java tcp-udp
Member Avatar for enterpise
0
204
Member Avatar for ThaiAmL

Hello! I'm studying right now as an exchange student in Germany and taking my first programming course in Java, and in the last week, things have just started to go over my head and I'm kind of drowning while trying to get all the homework done! The assignment was supposed …

Software Development java mathematics
Member Avatar for ThaiAmL
0
1K
Member Avatar for sudheer2250

Hi Experts, I am getting an exception "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." This exception is occuring in VS2010 and method is [B]Marshal.Copy(address, code, 0, 32);[/B] Can you any one help in this regard. Thanks

Software Development
Member Avatar for skatamatic
0
150
Member Avatar for joy39

if we have to insert records into a mysql database using c api then the general code is this [CODE]if (mysql_query(conn, "insert into empinfo values ('saikat banerjee')")) { printf("4Error %u: %s\n", mysql_errno(conn), mysql_error(conn)); exit(1); } [/CODE] but, here we have to enter the record from the code itself . but, …

Software Development api c
Member Avatar for fobos
0
150

The End.