132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sivak

i know what is the maening for method overloading ....can any one explain me method overloading with real time .NET example plz

Software Development
Member Avatar for kvprajapati
0
100
Member Avatar for sivak

if anyone using abstarction and interfaces in your applications can u share that code.....just want to know when we go for abstraction and interfaces in .net applications

Software Development
Member Avatar for kvprajapati
0
162
Member Avatar for gubju

Hey, for our project purpose we had to collborate java with vb using JNI.because in our project there is a idle checking procedure for the client from server which cannot be done with java.... can anyone help us with java code or JNI code....

Software Development client-server java
Member Avatar for kvprajapati
0
73
Member Avatar for grisha83

Hello, I have a program called Date. While this program compiles and runs, I have noticed something weird. I have an output line that displays my values twice. Sample Run: The word date output is: February 12 2009 [B]The numeric output of the date is: 2/12/2009 The next incremented date …

Software Development java
Member Avatar for grisha83
0
124
Member Avatar for txwooley

If I have a list of 5 random integers, is there a simple way to iterate through the list and see how many of each number there are without using 25 if/elif statements. For example my list might contain [3, 7, 10, 10, 14]. How would I determine that there …

Software Development python
Member Avatar for txwooley
0
114
Member Avatar for Rastabot

I have to write a program the accepts a fully parenthesized like "((3*4)+(2-(4/2)))", or (3+5). It builds a tree for the expression, without the parentheses. So the tree for the (3+5) would be - "+" is the root, and the 3 is the left node and the 5 is the …

Software Development java
Member Avatar for sillyboy
0
138
Member Avatar for fadia

Metro supermarket is a new supermarket opening in Riyadh. It offers attractive discounts for its customers. Write a program that will display to the user his new total price after discount. The program should read the total price from the user, calculate and display the new total price based on …

Software Development c++
Member Avatar for fadia
0
163
Member Avatar for ranitsaha

[code]Imports System.Data Imports System.Data.OleDb Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim conn As String = "Provider=Microsoft.Jet.OLEDB.12.0;Data Source=G:\Visual Studio Projects\test\dbtest.accdb;Persist Security Info=False" Dim cmd As String = "SELECT * FROM Table1" Dim adapter As New OleDbDataAdapter(cmd, conn) Dim topics As New DataSet("Table1") …

Member Avatar for c0deFr3aK
0
316
Member Avatar for ShadowScripter

Mmm, I just love these error messages, I don't understand them what-so-ever and I can't interpret them. (Unsure where the post should be in the forum) I'm getting this error message at build time (Using VC++): [code=cpp]1>Linking... 1>main.obj : error LNK2019: unresolved external symbol _DirectDrawCreate@12 referenced in function "long __cdecl …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
270
Member Avatar for crackerjacker

i was wondering, is their any way to do something, say msgbox, when an exe is ended via the end process in the task manager? thanks in advance!

Software Development visual-basic
Member Avatar for crackerjacker
0
125
Member Avatar for musturd

[code=perl]#!/usr/bin/perl use warnings; use strict; push @INC, "C:/Perl/Modules"; print "What is current download directory? "; my $dir = <STDIN>; opendir DH, $dir or die "Can't open directory..."; my $parent = $_; while ($parent = readdir(DH)) { next if $parent eq "." or $parent eq ".."; if(-d $parent) { opendir DI, …

Software Development perl windows-vista
Member Avatar for musturd
0
192
Member Avatar for nanodano

I've been trying to solve this problem for a while now with no luck. I want to monitor an input buffer(cin) for a keypress. The catch is, I don't want it to hang if the buffer is empty. [INLINECODE]getch()[/INLINECODE] and [INLINECODE]peek()[/INLINECODE] won't work because one waits for a keypress and …

Software Development assembly c++
Member Avatar for cniggeler
0
151
Member Avatar for soppyhankins

Hello again all!!! I just have two quick questions... 1.) Is it possible for one to run a program through the "system(command)" and have the output come out on top of an SDL program? Like if I had a background of some sort and typed "system(echo "Hello!")" could I have …

Software Development c++
Member Avatar for soppyhankins
0
209
Member Avatar for txwooley

I am trying to order a list containing integers. I want them sorted in numerical order from lowest to highest. I tried using sort but got the list baxk exactly as it was. [code=python] x = [5, 3, 7] x.sort print x [/CODE] What command would I usr to make …

Software Development python
Member Avatar for txwooley
0
84
Member Avatar for dliving

Hello, I'm new nere and very much a beginner with python. I'm trying to make a blackgame program not to play but to test strategies, like I used to play this wristwatch game and always double at 12 and surrender at 17. Which is bad strategy but I swore it …

Software Development python
Member Avatar for woooee
0
340
Member Avatar for serkan sendur

i want to see all the function calls from the very first to the very last one. is that possible? i tried call stack window but it shows the ones in the scope of the break point.

Software Development
Member Avatar for serkan sendur
0
71
Member Avatar for AMetnik

Ok, i have read alot about this bugs now, and nothing seems to help. Hope someone have a step by step solution for me, or atleast can give me some more insight hehe ;) Here is a few intel on my work. Im working in netbeans on my labtop, uploading …

Software Development java java-netbeans
Member Avatar for peter_budo
0
602
Member Avatar for grisha83

I have two methods. One method was to set location of 2 points x and y. Another method was to copy that location. I used arrays. Well the program compiles but it doesn't display my values properly. Error message says: [D@af9e22. Does anyone know what this is? Thank you // …

Software Development display java
Member Avatar for grisha83
0
77
Member Avatar for ddanbe

I have a form with a readonly textbox, some layoutpanels with some buttons in it and together they make up a calculator. (Yes I know this is YAC (yet another...)) but I have fun while still learning! When I click the buttons and manipulate the Text property of the textbox, …

Software Development
Member Avatar for ddanbe
0
832
Member Avatar for tinajl

Hi, I am brand new to the DaniWeb Forums. I'm also very new to VB, and I taking my first course on it. I nearly have a large project done, but I have one main issue that I have not been able to resolve on my own as of yet. …

Software Development visual-basic
Member Avatar for tinajl
0
90
Member Avatar for tomo_uni

Television(boolean power, int channel, int volume); Keep getting error "missing method body or declare abstract" Can't understand why? Help please :) If you need to see all code ask TOM

Software Development java
Member Avatar for BestJewSinceJC
0
107
Member Avatar for mhodgkins

...and it's due by midnight tonight. But I've mad a huge effort. Can I get any help? I'm trying to stay alive in this class. :'( File attached.

Software Development java
Member Avatar for BestJewSinceJC
0
134
Member Avatar for mightykyle

well i'm trying to get my shuffler to work but i keep getting one. any ideas? #include <cstdlib> #include <string> #include <ctime> #include <iostream> using namespace std; const int number_of_cards = 52; void shuffle(int list[], int size) { srand(time(0)); for (int i = 0; i < size; i++) { int …

Software Development c++
Member Avatar for mightykyle
0
198
Member Avatar for skisky

My book isn't getting into my head yet.... i have one project left in my C# class, where we are to create a base class. That class, from what i understand, is to contain common characteristics. (sports teams happen to be our theme). So i could have coach name, and …

Software Development
Member Avatar for skisky
0
151
Member Avatar for tksrules

In python how to write a simple while loop?I am a C++ expert but i am starting to learn python. Lets say i need to write a while loop asking the user if he wants to input a number and if the user says yes, the program will input the …

Software Development python
Member Avatar for marium ahmad
0
86
Member Avatar for Azraeth

Good time of the day for you) I've got a simple question, but just unable to find an answer.. How to make dialogue item (button/scrollbar) visible/invisible? I've tryed ShOwWindow, but i can't point it to my button. Please help

Software Development c++
Member Avatar for Azraeth
0
95
Member Avatar for Alex_

Hello, how does division works in nasm assembly language? I want to get the least important digits from a binary number. ex: 1001b /10= 100.[B]1[/B]b. The bold signed one is what i like to get. Any suggestions? Further explanation: What i want to do is convert a binary number into …

Software Development assembly
Member Avatar for Alex_
0
2K
Member Avatar for Seamus McCarthy

[CODE] public void deleteDvd(String title) { String DvdCompare; Dvd dvdObj; Collections.sort(dvds); for(int i = 0;i< dvds.size();i++) { DvdCompare = dvds.get(i).getdvdTitle(); dvdObj = dvds.get(i); if(title.equals(DvdCompare)) { System.out.println("Dvd is in system"); int index =Collections.binarySearch(dvds,DvdCompare); dvds.remove(index); //delete method in arrayList } else if (!title.equals(DvdCompare)) { System.out.println("Not found Dvd Object"); } } }[/CODE] I'm …

Software Development java
Member Avatar for Seamus McCarthy
0
187
Member Avatar for toadzky

I have a combo box that is populated from entries in a SQLite table. The entries are city names. Here is the code for the data binding: [code] cbb_City.DataSource = data; cbb_City.DisplayMember = "Accounts.City"; cbb_City.ValueMember = "Accounts.City"; [/code] It gets the values just fine but it has an entry for …

Software Development sqlite
Member Avatar for toadzky
0
3K
Member Avatar for Monkey.D.Luffy

[U][B]Question detail as show as below:[/B][/U] How to design a simple grading system which able read data of a group of students. The data includes students’ names, nations, and marks of four subjects. This data is stored in a text file created by a text editor (notepad etc.). The system …

Software Development c++ mathematics
Member Avatar for Sky Diploma
0
395
Member Avatar for sunilpro

Hi all dotnet lovers, I wish to develope software for my college. This is desktop+web apps. I wish to go for .NET tech. I am puzzled how to use and integrate various technologies. My desktop app will run at office for regitration of students and accepting fee, offering various legal …

Member Avatar for sunilpro
0
96
Member Avatar for Xamas

I have class: [code=c++]template <class T> class Graph; And I have a function: template <class T> void Graph<T>::erase_greater(T needle) { if(TEMPLATE TYPE IS "STRING" OR "CHAR") { do nothing; } else { if(TEMPLATE TYPE IS ONE OF THE INT TYPES) { if(strlen(var1) > strlen(var2)) { USE Var2; } else { …

Software Development c++
Member Avatar for twomers
0
178
Member Avatar for j_cart007

hi ! i'm very new to assembly and learning bit by bit but unfortunately i'm asked to write a program which encrypts a string using caesar cipher encryption method and then print that encrypted text and save into the address. i'm very hopeful that somebody will definitely solve my problem …

Software Development assembly encryption
Member Avatar for j_cart007
0
220
Member Avatar for sivak

anyone explain me replication uses with example in c#.net

Software Development asp.net c#
Member Avatar for sknake
0
418
Member Avatar for Peyton

Hi there, Say I have the following while loop, that loops on the condition that a lne (a string) is received from a file: [CODE]while ( getline( inData2, line ) ) // Increment rows till none left { if ( !line ) { cout << "No data entered. Please enter …

Software Development c++
Member Avatar for William Hemsworth
0
148
Member Avatar for hurbano

i have written my code and feel exhausted. when my code finds in error on a given input text file, it does a great job in finding the mismatched symbols. what can i add to show there is no error when no error is found. i attempted adding another else …

Software Development c++
Member Avatar for ArkM
0
88
Member Avatar for keithE

I am trying to make a login form, and i need it to check for the inputed name in the database. I can't figure how to get text from the cell. i would also prefer not to use a GDV on the form. I am mainly seeking a way to …

Software Development vb.net
Member Avatar for keithE
0
123
Member Avatar for kaku_lala

Hi Guys, First post here, so be gentle :-) I was going looking for an implementation of memcmp(), I found this code snippet, but it is clearly marked that there is 1 logical error with the code snippet. Could you help me find the logical error. Basically, I tested this …

Software Development c
Member Avatar for ArkM
0
351
Member Avatar for sivak

i know the concept for method overloading and over riding an dpolymorphisim,,but i want real time .net example for the same

Software Development
Member Avatar for Diamonddrake
0
61
Member Avatar for mostafanageeb

Please how to get a specified data from a file?? in java and what is the substitution of the seek function in java??? I need information Thanks

Software Development java
Member Avatar for kvprajapati
0
96
Member Avatar for DaveD3

I am new to C# and .NET and am having a problem. I have a windows form application. I created a Ole data adapter to look at an Access Database with 3 tables. I then created a dataset which gets loaded by the adapter when the process starts. I then …

Software Development c c# c++ dataset
Member Avatar for Diamonddrake
0
82
Member Avatar for grisha83

Hello, I was trying to get hold of arrays and read lots of stuff. So when i started coding, i got an error message saying incompatible types. I checked with general compliance and it should be ok. Maybe netbeans causing it? Anyway, any kind of help will be appreciated [ICODE] …

Software Development java
Member Avatar for kvprajapati
0
94
Member Avatar for songweaver

Hey Guys, I am new to the concept of Arrays and I need a little help. I have included the instructions for the problem as well as the code that I have so far. Can you help me with what I am doing wrong? Thanks! Write a program that asks …

Software Development c++ data-structure
Member Avatar for siddhant3s
0
135
Member Avatar for cppStudent

Hi guys, I'm getting " SingletonMain.C:18: undefined reference to `Singleton<MyClass>::instance()' " compiling error. It doesn't make sense to me because MyClass inherits instance() from Singleton, doesn't it ? If someone could shed some light on it, I will be grateful. SingletonMain.C #include <iostream> #include "Singleton.h" using namespace std; [CODE]class MyClass …

Software Development c++
Member Avatar for siddhant3s
0
140
Member Avatar for cbreeze

Hello I need to create an array of pointers for class dog is one class and showDog is the derived class. I need to input from a data file and store the variables to these classes. In the file there is a D for dog or S for showDog between …

Software Development c++
Member Avatar for siddhant3s
0
97
Member Avatar for sadiyarani

i m new in asp.net with c# .I am trying to make a C# application login on my ASP.NET page.I want the code for log In.

Software Development asp.net
Member Avatar for serkan sendur
0
128
Member Avatar for Merovingian

Been trying to run a schema script from within vb.net. No matter how I format it I can't I just get all kinds of syntax errors: Here is my VB script: [CODE]Dim sqlservername As String sqlservername = Tservername.Text Dim SQLStr As String Dim ConnString As String ConnString = "Data Source=" …

Software Development open-source sql vb.net visual-studio
Member Avatar for Merovingian
0
185
Member Avatar for gotm

It keeps giving me this exception when it [I]seems[/I] like I am adding a choice to my choices vector, and I don't know why. Here is that snippet of code. If you need more I can provide it. Thanks ahead of time. [CODE=java]import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Vector; …

Software Development java
Member Avatar for Zibo
0
139
Member Avatar for losh177

Hi, i'm having some problems with my inheritance homework. It consists on writing a progrma that mimics the String lib by overloading different operands and then create two derive classes that will revert a string and that will change the cases to lower and upper. This is as far as …

Software Development c++ os-x
Member Avatar for losh177
0
270
Member Avatar for kkbronner

/* Write a program the nested for loops that display the output below. 0 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 */ [code=cplusplus] #include <iostream> #include <cmath> #include <cstdlib> #include <iomanip> using namespace std; int main () …

Software Development c++
Member Avatar for NathanOliver
0
152

The End.