132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aditya027

can any one help!! Expand Post (Toggle Plain Text) import java.awt.*; import java.awt.event.*; import java.awt.Color; import javax.swing.*; import java.awt.Frame; import java.awt.geom.*; class BallEntity/*THE BALL CLASS*/ { private int top=0,left=0,height=0,width=0; //getter methods public int getTop() { return top; } public int getLeft() { return left; } public int getHeight() { return …

Software Development java java-swing
Member Avatar for aditya027
0
466
Member Avatar for snairsumith

[B]am using vb6 but i can't hwo to vie the data base content in data grid Here is my code[/B] Dim cn1 As ADODB.Connection Dim rs1 As ADODB.Recordset Dim ser As String ser = ("select * from student where ID='" & Text5.Text & "'") Set cn1 = New ADODB.Connection cn1.Provider …

Software Development visual-basic
Member Avatar for AndreRet
0
177
Member Avatar for junjun61991

Private Sub cmdprint_Click() i am searching the code of the command button for printing, at the above.. now, the textidno.text = textborrowersname.text = what is code after the " = "

Software Development visual-basic
Member Avatar for AndreRet
0
275
Member Avatar for kehar

Hi, I have completed my project in VB 6 and Access and Crystal Report 8.5 now I would like to make setup file . So ple help me which software should I use and where I can get its free copy. I tried to make it from Package and Development …

Software Development visual-basic
Member Avatar for AndreRet
0
151
Member Avatar for SlickSteiner

The program that I want to do is a program that lets you deposit and withdraw money, and that it can display the total amount that you have inputted in the transaction. Now my problem is, I don't know how to display the total amount and how to do a …

Software Development c
Member Avatar for [Alpha]-0mega-
0
164
Member Avatar for blaisemcrowly

I am trying to take in inputs from the user for one of my projects. [CODE]cout<<"Enter Event Name (enter 'exit' to quit) ::"; gets(dat.evnm); cout<<"Enter Type Of Event (eg: Dance, Music, 'exit' to quit) ::"; cin>>dat.type; if(strcmp(dat.type,"exit")==0) return 0; cout<<"\n";[/CODE] here the line[CODE] gets(dat.evnm);[/CODE] will not execute, and the program …

Software Development c c# c++
Member Avatar for blaisemcrowly
0
252
Member Avatar for verbalurbs

Hi All, I have a database (sql server) where i store activity information example (activityid,id,summary,signs etc.) I can successfully save this information to the database. what I also want to achieve is to add this information to a listbox so that it can be displayed in the corresponding textboxes at …

Software Development vb.net
Member Avatar for OldManStarting
0
907
Member Avatar for musikluver4

Whenever I try to load a java applet from an html file, with the .class and .java files in the same directory, I load the html applet file and the only thing that gets displayed is NOT the applet, but the html code.....how do I enable java applets in my …

Software Development html-css java web-browser
Member Avatar for DeadSoul
0
2K
Member Avatar for King_Alucard

I have finished editing the program but I still have a couple of errors that I can't figure out, please help Errors: Error 1 error C2601: 'split' : local function definitions are illegal \\ilabss\home$\D03279277\Documents\Visual Studio 2005\Projects\err\err\err.cpp 97 Error 2 fatal error C1075: end of file found before the left brace …

Software Development c++ display ios visual-studio
Member Avatar for Ancient Dragon
0
268
Member Avatar for Newbi1984

Hi there, I'm very new to perl so I hope that you can help me. I have a list of duplicated entries in one file and what I want to do is to search another file for those entries that appear in the first file and then rename each duplicate …

Software Development file-system perl
Member Avatar for Newbi1984
0
102
Member Avatar for Bladtman242

The code executes as expected, but I am not sure it is considered good code:) I am thinking especially of the two streams on the socket, if the first one is successfully opened and the next one for some reason throws an exception, the finally block will never run. If …

Software Development java
Member Avatar for Bladtman242
0
119
Member Avatar for Megha SR

hello. i have just started learning functions in java. i have done the below program to find area of rectangle,triangle and square. it is a private class. class calcu { void rectangle(int l,int b) { int area1; area1=l*b; System.out.println("area of rectangle = "+area1); } void triangle(double base,double h) { double …

Software Development java
Member Avatar for NormR1
0
76
Member Avatar for ddanbe

As all textbooks on C# will tell you, you cannot instantiate an abstract class. I believe the keyword [B]abstract [/B]was intended for that purpose. So can anyone tell me why I can do something like this: [CODE=c#]abstract class TwoDShape { // some code here } class test { static void …

Software Development
Member Avatar for CloneXpert
0
140
Member Avatar for lanitooot

help anyone! i can add records to mysql database but it won't appear in the listview. can you check out what's wrong with my code. pleeaaasssee.. help needed badly.. :( [CODE] Imports System Imports System.Windows.Forms Imports MySql.Data.MySqlClient Public Class bookForm Dim myconn As New MySqlConnection Dim sqlQry As String = …

Software Development asp.net listview mysql vb.net visual-basic
Member Avatar for crapulency
0
380
Member Avatar for riddhi_k

hey pls help me., I m nt a good programmer. bt though m trying 2 do some programming... pls give me coding in vb.net for searching records from Access database. Waitng for your repy. [CODE]Private Sub search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles search.Click search_data(("select * from 86_10 …

Software Development vb.net
0
58
Member Avatar for Joslup

Helo Guys, i need your help, because i am searching code to read string in assembler, but i can't found nothing if you can help me, thaks!!!

Software Development assembly
Member Avatar for tesuji
0
3K
Member Avatar for abhijeetcn

I know the function textcolor() included in conio.h in borland compiler. but this function is not present in vc++. also if you can provide me the text formatting functions,or header file containing it. i will be very thankful.......so please help me......thanks

Software Development c c++ microsoft
Member Avatar for [Alpha]-0mega-
0
203
Member Avatar for jasleen12345

i have the following code........pls point out my mistakes......the first one is the header file and the second one is the file......... class array { int i, a[100],n,d,t,r,c,e[100][100],f[100][100],s,g[100][100],b[100],j,r1,c1; char p; public: void pro(); void enter(); int arrA(int); int arrB(int); int arrAA(int r,int c); int arrBB(int,int); void dis(); }; void array::enter() …

Software Development c++
Member Avatar for jasleen12345
0
171
Member Avatar for ausrasul

Hi, I'm trying to write a shell script that do ftp and download file periodically, this script should be called by a daemon running in the background. the shell script "script.sh" is as follows: [icode] yafc [url]ftp://test:test@192.168.1.225:21[/url] < commands [/icode] and the "commands" files is [icode] d Root/md5* / quit …

Member Avatar for ausrasul
0
409
Member Avatar for sumeetdesaeee

Hello Friends... This question was asked to me in an interview.. Can a class be static in java? If yes, then what is it's use and how it can be used?

Software Development java
Member Avatar for JamesCherrill
0
78
Member Avatar for TahoeSands

I am working on an application in Java and for part of my plan I would like to have an object (eventually an array of these objects) where I could store two or three (I am not sure yet) varied types of data, for instance... A BufferedImage and a string …

Software Development java
Member Avatar for JamesCherrill
0
957
Member Avatar for Bigbrain99

I used below codes to pass a value from vector to my cpp file. While i'm doing that, i got segmentation error in my main cpp? Is there anyway to pass the vector value to my main cpp? thx for the help [CODE]void Loadfile() { //cout<<"this is used for loading …

Software Development c++
Member Avatar for amrith92
0
109
Member Avatar for dlannetts

Hi, i have downloaded 3d blender and Python 2.5 and tried to run Python with blender for the use of importing models, but when i tried to import the model a message came up in the command prompt saying : [CODE]module use of python25.dll conflicts with this version of python[/CODE] …

Software Development python
Member Avatar for dlannetts
0
495
Member Avatar for Rez11

EDIT: I figured it out. I do not know how to delete threads. Sorry. I need to return a pointer to a new array. The new array must be the same as the old one, just in reverse. I have it all done except for one little part. I can't …

Software Development c++
Member Avatar for Rez11
0
125
Member Avatar for newbie_to_cpp

Hi all, I am totally new to C++. I began learning C++ some 2-3 months back referring to youtube tutorial channels and now by reading a book by Robert Lafore. I practice when i get free time. I still have long way to go. Well, referring to some examples that …

Software Development c++
Member Avatar for newbie_to_cpp
0
2K
Member Avatar for levinia-heks

I need to code a very basic fortran program that takes command line input, and I'd like to terminate the program if I detect wrong input. The following doesn't work: [CODE]if (n .NE. 5) then write (*,*) "Wrong number of arguments" end program Poker end if[/CODE] I get "Error: Expecting …

Software Development
Member Avatar for levinia-heks
0
221
Member Avatar for psychra

Can somebody help me? We are tasked to create a library system. And my very first problem is how to create a search engine. The form must be like this: 1.) One search engine for the Title of the book, wherein the user can search through the title of books. …

Software Development visual-basic
Member Avatar for PoisonedHeart
0
128
Member Avatar for Rez11

I need to write a function that accepts int array and array's size as arguments. Then the function should create a copy of the array, except that the element values is in reverse in the copy. The function should return a pointer to the new array. I am having a …

Software Development c++
Member Avatar for sfuo
0
395
Member Avatar for cwarn23

Hi, I have just started out with sqlite in c but I can't seem to return the results of the select statements. There are so many functions that I don't know what to use as none of them make any sense. So can anybody give me an example of how …

Software Development api c sqlite
Member Avatar for tesuji
0
381
Member Avatar for pa_bruce_fan

I am having trouble with this simple program to display three numbers entered from highest, medium, lowest. Specifically, with the ouput_result void function. Stuck, and not sure what I am doing wrong. Fairly new to C++, this is my first course in C++. Any help would be appreciated. #include <cstdlib> …

Software Development c++
Member Avatar for StuXYZ
0
191
Member Avatar for bunifrog

First thanks for the help last time I posted it set me on the right track thanks. Now what I need is to clean up a bit. (this is for the 30 year loan only want to get that to do what I need before creating the same with the …

Software Development java
Member Avatar for jon.kiparsky
0
321
Member Avatar for chamnab

Hi everybody !! I would like to ask you some question about C++: 1.what is the best program that can write C++ more easily? 2.Can you output C++ in different language beside English ? 3.if everybody know pls tell me . 4.do you know some useful website for C++ because …

Software Development c++
Member Avatar for Ancient Dragon
0
188
Member Avatar for Bigbrain99

Is there any way to check if i have added more than 1 same header so that i won't get compiling error while running it?How do i know which one will include the header first and other cpp will include it later?

Software Development c++
Member Avatar for Bigbrain99
0
90
Member Avatar for swaroop.striker

I have created a library management system applicationn in vb.net... I have an issue form... which has issueid, issuedate, duedate..... these are set as "not null" in the datavase(sql server).. When I add a new issue and try to add another after that the DateTimePicker values doesn't get reset.... so …

Software Development vb.net
Member Avatar for swaroop.striker
0
190
Member Avatar for Megha SR

i have got a program to convert a double value to a string. eg==INPUT= 3.65 OUTPUT=three point six five. can anyone give the solution.

Software Development java
Member Avatar for Megha SR
0
105
Member Avatar for mimis

Hi, I have to create a set of structs but i don't know how because it needs to check the equality between them. For example: [CODE] struct something{ int x,y; string word; }; set<something> s; [/CODE] Can you help me?

Software Development c++
Member Avatar for mrnutty
0
164
Member Avatar for pmardle

Hi all, Going mad not being able to figure this out. I have an application that uses the following code to write a number of user inputed variables to a text file on a seperate line per variable.. What I can figure out despite hours of googling, is how to …

Software Development file-system vb.net
Member Avatar for codeorder
0
230
Member Avatar for rehber344

hello for exapmle cam sees people.and ıt should detect dıstance between people how can we calculate ıt does anyone any ıdea about ıt? ı couldnt fıgure out the algorıthm:) thanks

Software Development python
Member Avatar for griswolf
0
109
Member Avatar for Eager Student

Hi! to everyone I'm starting out in programming,I need a pseudocode or flowcharting to use to help me get started on coding. Often, when I take a look at a coding assignment, it looks daunting, and it's hard to figure out exactly where to start. Especially with all of that …

Software Development algorithm c++
Member Avatar for diannetots
0
283
Member Avatar for jackandjill2010

Hi i have a simple question i was wondering how to display the existing data in C# objects like Textbox, combobox or labels. At the moment a sql database file, one of the tables data is currently displayed in the datagridview control just fine. But what i would like to …

Software Development c c# c++ display sql
Member Avatar for jackandjill2010
0
390
Member Avatar for Suzie999

I have a form with 2 labels and 2 buttons Button1 changes the label1.Text of the form // works fine Button2 starts a new thread and the method is supposed to change label2.Text However I get compile time error: "error CS0120: An object reference is required for the non-static field, …

Software Development
Member Avatar for CloneXpert
0
158
Member Avatar for acrocephalus

Hello! I have designed an initial frame for a database app using this code [CODE]#! /usr/bin/env python # OrnithobaseGUI.py import wx, MySQLdb, wx.lib.intctrl ID_HELP = 1 ID_ABOUT = 2 ID_LOG=3 class Ornithobase(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(750,225)) #Define menus menubar = wx.MenuBar() #Define file menu …

Software Development python
Member Avatar for acrocephalus
0
166
Member Avatar for oscarp

Hi, I have a map of a base class object (not pointer to objects). I did this because I need to have inheritance from others types like this: Parameter RealParameter: Parameter IntParameter: Parameter ... My problem is that when I am going to insert in the map, copy constructur of …

Software Development c++ oop
Member Avatar for mike_2000_17
0
2K
Member Avatar for Stefano Mtangoo

I'm looking for if I can add C# to my toolbox. However there is something which is not clear. I know C# is interpreted language, but can't get it when it comes to learning It. I would like to learn Mono, but then, how does it differ with M$'s? Where …

Software Development c#
Member Avatar for ddanbe
0
97
Member Avatar for ehrendreich

I am rather new to vb and could use some help. I am using the latest version of vb and am working with a database to add some records. Simply, I would like to have a form that adds a new record into the tblContact table then enter a few …

Software Development dataset open-source vb.net
0
68
Member Avatar for jonniebl

I am writing a program that creates a file and attaches it to an email. I use a loop to create the attachment, send the email and then do it again with different information in the attachment. This works well for one tim through the loop, but on the second …

Software Development file-system vb.net
Member Avatar for jonniebl
0
186
Member Avatar for TahoeSands

Hello Everyone, This is my first post, so be gentle with me. I am working on an application and I have a need to store about 5 or 6, X and Y coordinate pairs. The values for X and Y are reasonably small integer values (less than 5000). Essentially all …

Software Development career java storage
Member Avatar for TahoeSands
0
5K
Member Avatar for jlewis_cardsfan

Hiya, I saw a similar question on a c++ page, figured that maybe this would help out. I'm trying to write a program that automatically connects to a web site (Yahoo) inputs the screen name and password, logs on and then automatically goes to other spots under my Yahoo. It's …

Software Development vb.net web-browser
Member Avatar for codeorder
0
1K
Member Avatar for LevyDee

Hi guys, as the title suggest, Im new to c#. I have a text file with 5 lines of text in it. Im trying to read each line and throw it into an array of string type. But Im having problems. [code] private void button4_Click(object sender, EventArgs e) { songs …

Software Development c#
Member Avatar for Lusiphur
0
168
Member Avatar for PieterA

Hi everyone First post here on this forum. I'm awfully stuck in an exercice I have to complete as an assignment. I'm studying computer science and this has been my first year. This is what I am supposed to do: Your project consists of implementing the following C code: [code=c] …

Software Development assembly
Member Avatar for PieterA
0
138

The End.