132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for C++ programmer

Hi guys. I am a bit confused among the following three functions. read() readAll() readLine() How do they work? I'll be really thankful to you all. Thanks alot for your precious time! Regards.

Software Development c++ qt
Member Avatar for deceptikon
0
731
Member Avatar for amf101

Guys, I need again your help. I have to generate automatically a unique schedule for each subjects with only one click of a button. I'm having trouble with it. Please suggest....here's my codes: [CODE]Do Until conflict = False For y As Integer = 0 To DataGridClass.RowCount - 1 If txtbxClassID.Text …

Software Development vb.net
Member Avatar for amf101
0
204
Member Avatar for dilse4sk

hi every 1. i am trying to bind the combo box through details view in vb.net but unable. i am making a login form and i want to display two values e.g usertype admin , employee in combobox but when i run the form it doesnot show me anything in …

Software Development vb.net
Member Avatar for pritesh2010
0
185
Member Avatar for aristosv

Hi, I have a form with a button which is disabled by default, and a CheckedListBox with 68 items in it. What is the simplest way of enabling the button, when an item in the CheckedListBox is selected or unselected? I’m looking for something like If CheckedListBox1…any of the items …

Software Development gui vb.net
Member Avatar for aristosv
0
656
Member Avatar for LearnVBnet

[code]Form Payment DGV.Columns.Add("FullName", "Customer") ' DGV.Columns.Add("InvNomer", "Invoice No.") DGV.Columns.Add("BalanceDue", "Total") DGV.Columns.Add("Paid", "Paid") Private Sub cmdPayList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPayList.Click ' where = " AND InvNomer NOT IN(" ' where = where & "'" & row(2).Value & "', " ' where = where & ")" PayList.show() …

Software Development display listview vb.net
Member Avatar for LearnVBnet
0
154
Member Avatar for kurtzky123

Hi. I have a test program written in VS 2005 with a DataGrid in it. The records are fetched from the database but I have a weird problem. The grid does not display the data if it starts with a Less Than symbol '<'. All it shows is a white …

Software Development display
Member Avatar for ChrisHunter
0
130
Member Avatar for pattmorter

I was studying for an exam and came across two questions that me and my friends didn't know the answer to. We are given the answer but we just can't figure out what the answer is what it is. First, why does this code give an error? [CODE]int z=5, q=2; …

Software Development c++
Member Avatar for Ali_2101
0
194
Member Avatar for kirtee2209

Hi I have a listview in a C# windows form. I have created 2 columns and set their size by using the Columns Property. The Scrollbar property is set to true and listview has been set as Details. The issue I am having is that when the listview is being …

Software Development listview
Member Avatar for kirtee2209
0
2K
Member Avatar for andrewpw

[CODE=c]int OperateGumBallMachine(void){ int total = 0; char input = getchar(); RefillGumBallMachine(); for(input; input != 'x'; input = getchar()){ if(gMachine.iNumBlueGumBalls + gMachine.iNumGreenGumBalls + gMachine.iNumRedGumBalls == 0){ RefillGumBallMachine(); } switch(input){ case 'n': total += NICKLE; if(total >= QUARTER){ total -= QUARTER; DeliverGumBall(); printf("Your change is %d cents\n", total); total = 0; } …

Software Development c
Member Avatar for Gaiety
0
3K
Member Avatar for suyaonmari05

We are making our system w/c is Payroll System of a gasoline station using visual basic 6.o for our baby thesis but we can't really make what our client needs and it turns out very difficult for us. They want to have a payroll Sytem w/c it can compute automatically …

Software Development visual-basic
Member Avatar for WaltP
0
124
Member Avatar for shibu2all

Can anyone please help me out in removing this error Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1045) at java.awt.Container.add(Container.java:365) at Client.<init>(Client.java:33) at Client.main(Client.java:17) [CODE=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; public class Client { JFrame frame1; JList list; JList list1; JTextField tf; JButton send; JButton lout; …

Software Development java java-swing
Member Avatar for shibu2all
0
234
Member Avatar for madhusushmi

I am looking for fastest API to read/write files. Can you please help? I have checked such discussions here. But I am not able to figure out from those discussions. Please help.

Software Development api c++
Member Avatar for MasterHacker110
0
2K
Member Avatar for 3nrichedd

Hello, I created this little asci art in java, and am wondering how to implement a constant int value that can be changed to make the picture bigger/smaller etc.. these are my loops: [CODE] for(int i = 5;i>=0;i--){ for(int j = 1;j<=i;j++){ System.out.print("P"); } for(int j = 5;j>=i;j--){ System.out.print(" "); …

Software Development java
Member Avatar for stultuske
0
360
Member Avatar for layneb131

i've been having trouble figuring this out since im new to python and i really wanna figure it out! Write a Sentinel controlled While loop that allows the user to enter text until they enter ! by itself. Output would be like this: Enter some text: Hi Enter some text: …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for CY0T3R

1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 How To Print The Above Pattern ?? (Using For-Loops Only)

Software Development c++
Member Avatar for ravenous
0
200
Member Avatar for Tuz

can i do arrays with different classes in one class?

Software Development java
Member Avatar for stultuske
0
74
Member Avatar for TeresaTa

I am using Eclipse to do my firmware project. However, it keeps giving me a red under lined error for the import line java.awt whenever i try to import the following. Anybody helps me please.

Software Development java
Member Avatar for TeresaTa
0
1K
Member Avatar for aniperiye

hi, i want to lock a folder, contains an decrypted video file. Along with this i want to play this file using windows application. But no one can copy or cut this file while playing. Is there any method to develop this? Here actual scenario is need to play a …

Software Development c#
Member Avatar for skatamatic
0
3K
Member Avatar for markdean.expres

Guys, how do I search for records using keywords from a textbox in all fields within my table (within my database). I am only aware of filtering rows based on a single column value only Thanks...

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
106
Member Avatar for freedomflyer

I am trying to implement within a class I call State some sort of mapping from a String to a set of States. So far, I have something like this as the initialization of this concept: [CODE]Map<String, HashSet<State>> mapping = new HashMap<String, HashSet<State>>();[/CODE] However, when I perform something like this: …

Software Development java
Member Avatar for freedomflyer
0
440
Member Avatar for Sanna.1

[CODE]import cs1.Keyboard; import java.util.Scanner; class P { private static String name; private String persnr; private String adress; private int age; public Person(String _name, String _persnr, String _adress, int _age) { name = name; persnr = persnr; adress = adress; age = age; } public void byterNamn(String _name) { name = …

Software Development java
Member Avatar for DJSAN10
0
113
Member Avatar for cpole

I am trying to write a simple bubble sort program but am getting an error that I can't figure out or fix. I am using textpad and get this error: "bubbleSort.java:56: error: while expected }" I am sure I am just making a dumb mistake. I am new to prgraming. …

Software Development java
Member Avatar for DJSAN10
0
159
Member Avatar for Adnan671

Here are program instructions. IT SAYS "segmentation fault" WHEN RAN. Specifications You must create a Ship class: The Ship class maintains the position data for each ship/vessel and its distance from another Ship. It has a default constructor, which sets all of the member data to zero, and a non-default …

Software Development c++
Member Avatar for WaltP
0
179
Member Avatar for ryklon

Hello! I'm making a fading splash screen for a software but I can't seem to make the splash screen fade in and then fade out. It only fades in, fades out a bit then stop. Here's my code. Thanks in advance! [CODE=VB.NET]Private Sub frmSplashScreen_Load(sender As Object, e As System.EventArgs) Handles …

Software Development vb.net
Member Avatar for ryklon
0
1K
Member Avatar for jcgldr

hi i'm in middle of building an application and something got corupted and the solution has 2 errors and i don't know how to fix it when i run the app it comes up the msg that there is errors and i can run the last successful build i'm interested …

Software Development vb.net visual-basic
Member Avatar for hericles
0
244
Member Avatar for easygi

I have this code which saves the dump file in a static path or destination [CODE] Process.Start("C:\xampp\mysql\bin\mysqldump.exe", "-u root ipoint -r C:\Backup\ipoint.sql") MsgBox("Backup Database Created")[/CODE] I want to choose the path by using the folder browser dialog which will put the path on a textbox but this code below doesn't …

Software Development mysql vb.net
Member Avatar for easygi
0
213
Member Avatar for amf101

Hi, Guys, please help me, I need your help. I wanted to identify the conflicted schedule of each of the section. If there’s conflict then the two or more subjects that are conflict will be colored to make then noticeable. They are in datagridview. I don’t know what’s wrong but …

Software Development vb.net
Member Avatar for codeorder
0
248
Member Avatar for jigglymig

my problem is that when I try and run it it says 'SortedList' : cannot instantiate abstract class due to following members: 'bool BasicADT::isEmpty(void) const' : is abstract ...and... 'int BasicADT::getLength(void) const' : is abstract can someone please tell me what I am doing wrong with my getLength and isEmpty. …

Software Development c++
Member Avatar for BlueSky2
0
126
Member Avatar for knnchau

Hi, I'm pretty new to python, just started 2 weeks ago xD, and new to forum too, I tried to search to see if there were any other question that was similar to this but couldn't find one. Therefore, I apologize if there's already another thread with the similar problem. …

Software Development python
Member Avatar for knnchau
0
200
Member Avatar for rushikesh jadha

i want to restart my java swing application when user click on restart button. how to do it using java.

Software Development java java-swing
Member Avatar for hfx642
0
242
Member Avatar for skannigan

Hi, i want to write from one file to another. i managed to get the file to write but not in the way i expected it too, there is more to the program but for now i just need to know how can i mirror one file... My input file …

Software Development c++ file-system
Member Avatar for skannigan
0
170
Member Avatar for javaa

Hello Every one ... My proplem started before a month and can't get any answer for it .. when i create a java program and need to make it an excutable file .. after done with program that contain's picture's and sound file's I converted it from .java to .jar …

Software Development file-system java
Member Avatar for javaa
0
142
Member Avatar for radiat

Just studying dynamic memory at the minute. I understand the idea of having dynamic memory for arrays so you can set the length of them within the running of the program. But what is the point of dynamic memory for a single type? If i set an 'int' up to …

Software Development c++
Member Avatar for radiat
0
126
Member Avatar for phorce

Hello, I'm just wondering really.. I have a 2D matrix but I've defined it as a 1D matrix. So for example: [code] double *matrix = new double[N*M]; [/code] My question is, I'm going to be manipulating data very shortly and want to read this data in from a text file.. …

Software Development c++
Member Avatar for WaltP
0
236
Member Avatar for dwiniers

SQL = "SELECT * FROM tbldes WHERE Category LIKE '%" & Replace(Trim(Text1.Text), "'", "''") & "%' ORDER BY category" rs.Open SQL, cn, 2, 3 use of this sign(%) anybody can explain me, what is the use of this code? br

Software Development sql visual-basic
Member Avatar for dwiniers
0
123
Member Avatar for HardWorker2

I have Sql query consists of multiple tables in ms Access database(has Join Right/inner join) and I would like to insert and Update data on it using ADO.NET. I would be most grateful if someone could provide me with a clear example. Thanx

Software Development sql vb.net
Member Avatar for HardWorker2
0
267
Member Avatar for discovery-power

Hi All, I have written my-self a file encryption application, but I am getting the following error from on this peice of code the eroor is : NAME 'it' is not declared Please see my code below Imports System.IO Imports System.Text Imports System.Security.Cryptography Public Class Form1 Inherits System.Windows.Forms.Form 'creates an …

Software Development encryption open-source storage vb.net
Member Avatar for discovery-power
0
225
Member Avatar for python-noob

I have a problem that I have been working on. I felt like I was getting close just to find out with wasn't the 100% correct way of doing it. What I need to do is take a list of names from a file in the format last, first, middle. …

Software Development python
Member Avatar for ihatehippies
0
248
Member Avatar for llawlh

Here is my assignment due tonight, it is to create two boxes and first default box will show after user presses '1', and the argument '2' leads to a second box which will ask for user input of height, width, and length, then calculate the area and volume for it. …

Software Development java
Member Avatar for NormR1
0
460
Member Avatar for Matjame

Hi team. I have the below code working 100% on my local machine. It makes the required updates and I am happy with it. But when I try to run it from the server, it gives the attached error message. Please ignore all other lines(I have just removed other lines …

Software Development client-server open-source pdf python
Member Avatar for woooee
0
2K
Member Avatar for stannum

Hello, I joined about 5 minutes back. I need to complete my computer project, which is a hangman game in c++, by today. Based on what my teacher taught me, I have created a code that runs like this- [CODE]#include<iostream.h>//These are the only header files taught. #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<string.h> …

Software Development c++
Member Avatar for WaltP
0
293
Member Avatar for Walther1366

Hello All Here is my problem : I have 3 variables 1. month 2. year 3. day all three of those variables have numeric values for example month = 04 year = 89 day = 17 I want to display it like this : 17 Apr 1989 Here is what …

Software Development
Member Avatar for Walther1366
0
180
Member Avatar for Zcool31

Hello everyone! I'm looking for a free (open source preferred) source code editor. Ideally it would be as light-weight as Notepad++, gedit, kate, mousepad, you see the pattern. However, the most important thing I'm looking for in this editor is flexible, dynamic, intelligent autocomplete (for c/c++). To be fair, Notepad++ …

Software Development c++ open-source
Member Avatar for Zcool31
0
658
Member Avatar for tahsin.rahit

This code is giving me runtime error. Here, first I want to take a integer input which determine the number (n) of nodes in the graph. Then for n-1 time I want take two integer input which will give the adjacency information. [CODE] #include <set> #include <map> #include <list> #include …

Software Development algorithm c++ queue
Member Avatar for mike_2000_17
0
252
Member Avatar for markdean.expres

Guys is it possible to get the details of an mp3 file like the Contributing Artist, Artist, Album, Year etc. and display it into a form? I am using the IO namespace and I have almost tried all the methods and properties under my variable. Does anyone know?

Software Development vb.net
Member Avatar for Reverend Jim
0
241
Member Avatar for Labdabeta

I have some code in C++ that uses an std::vector of std::strings to store an array of strings. I need to convert it into C. I thought that I would just create c versions of the functions I need (vector.back,vector.push_back,string.operator+=) but am getting lost in the double pointers. Can anybody …

Software Development c c++ motherboards-cpu-ram
Member Avatar for Ancient Dragon
0
179
Member Avatar for cisumma

Hello. I have a Java Desktop App. I am trying to code to capture properties or db fields to send emails. Please find specs below. Please find the example word doc attached that I am trying to engineer. JavaMail quick start.doc I can not make heads or tails of how …

0
149
Member Avatar for Quinncunx

Hi, I was wondering if anybody who is a more experienced VB developer than I would mind casting an eye over my source code and offering any advice on how it could be improved. The application is timer that runs for 7 minutes, the first minute is phase 1 and …

Software Development audio vb.net
Member Avatar for jlego
0
240
Member Avatar for aishapot

I have to save 4 different pictures in my database. NSO, GoodMoral, ReportCard & TOR. Here is my code. [CODE] Sub savepic() Dim str As String = "My connection" Dim con As New SqlClient.SqlConnection con.ConnectionString = str Dim ms As New IO.MemoryStream() nsopic.Image.Save(ms, nsopic.Image.RawFormat) goodmoralpic.Image.Save(ms, goodmoralpic.Image.RawFormat) repcardpic.Image.Save(ms, repcardpic.Image.RawFormat) torpic.Image.Save(ms, torpic.Image.RawFormat) …

Software Development image mssql vb.net
Member Avatar for aishapot
0
964
Member Avatar for kww228

Just as the title says I have a question with a program I am doing. I am just starting out using MASM assembly and kind of stuck any help would be great. I need to calculate the sums and differences of arrays that are shown below. The little bit of …

Software Development assembly
Member Avatar for zalia64
0
179

The End.