43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kangkan_14

Can anyone please explain what is 'public' and 'private' in oop and specifically in java? I am a bit confused.

Software Development c++ java
Member Avatar for kangkan_14
0
278
Member Avatar for JOSheaIV

Okay so I am working on a massive program involving multiple forms, delegate calls, ext. Anyway I was wondering is there a way to make global values that can be accessed my any form or class? In otherwords, removing the need to pass in the variables. Sorry this is rush …

Software Development
Member Avatar for JOSheaIV
0
112
Member Avatar for Benkyou

Hi there, I was wandering if anyone can give me a brief explanation on how to connect my C application to the Internet. What i would like to do in the end is to access a web page trough the application and have means to read the html code behind …

Software Development c ubuntu
Member Avatar for sree_ec
0
347
Member Avatar for steven8579

When i rebuild the project in Visual studio 2005 i get the error "Error 1 The type or namespace name 'Font' could not be found (are you missing a using directive or an assembly reference?) C:\Users\HP_ADMINISTRATOR\Documents\Visual Studio 2005\Projects\Perfume Formula Typing Software\Perfume Formula Typing Software\Form1.Designer.cs 9 17 Perfume Formula Typing Software" …

Software Development assembly visual-studio
Member Avatar for steven8579
0
615
Member Avatar for night_guard

[code] class x(object): def __init__(self): self.x=1 class y(x): def __init__(self): super(y, self).__init__() [/code] what is it doing "super" function in here?

Software Development python
Member Avatar for Gribouillis
0
183
Member Avatar for simonfoley

Hi there I'm studying Visual Basic (using Visual Studio 2008) as part of an all-round IT foundation degree...I must confess that programming is becoming my weak spot! Unlike the C++ I was taught last year, I'm not finding VB too easy...probably becasue I've never programmed this way before and I've …

Member Avatar for simonfoley
0
309
Member Avatar for Sudo Bash

I have two questions relating to classes. I have run into a problem in using classes in multi-file programs. Here are three example files which illustrate the problem I am having and the errors I am getting. [B]file1.cpp[/B] [CODE=c++] //file1.cpp #include<iostream> #include"file3.h" using std::cout; using std::cin; namespace baz { extern …

Software Development c++
Member Avatar for programmersbook
0
3K
Member Avatar for like_bilal02

Dear Freinds Is it possible in vb.net that when my mouse focus in button it size increase the button or change like when we click on google images it comes in front

Software Development vb.net
Member Avatar for ShahanDev
0
215
Member Avatar for kkcaddy

hi all i am using the visual basic portable, and the about form, splash screen, and the other additional forms refuse to appear. i would like help, if it is to use a different vb. thanx all

Software Development visual-basic
Member Avatar for kkcaddy
0
96
Member Avatar for arshi9464

i am unable to understand WHAT MAKES THE BYTECODE IN JAVA, MACHINE INDEPENDENT. I mean how does the bytecode built after compilation becomes machine independent, or what are the properties that make the bytecode machine independent? EXAMPLE:- If i compiled a program on a x86-64 machine and after sometime i …

Software Development java
Member Avatar for ~s.o.s~
0
170
Member Avatar for emrahteam

Hi, I want to get all character starting zero to end from tetbox to an array. How can I do that? Thanx

Software Development
Member Avatar for kvprajapati
0
76
Member Avatar for vanalex

Hello everybody! I wrote the following classes: OilStation: [CODE] class OilStation : public Date{ protected: int code; char *Address; float Amount[K]; public: ... }; [/CODE] and Price: [CODE] class Price : public OilStation { public: Price(){} void changeAmount(); ... }; [/CODE] In changeAmount function i try to change the elements …

Software Development c++
Member Avatar for vanalex
0
82
Member Avatar for RC331133

Hello Daniweb. I've been working on a small POS termal printer, and now i've run into a problem. The problem is somewere deep down in the mystical depths of ESC commands. However, to the point... I've printed a barcode (EAN13), The barcode comes out but there is a small problem …

Software Development pdf printer vb.net
Member Avatar for RC331133
0
115
Member Avatar for blueciel

VB6.0:Calculator Hi im new here.. anyone can help me with my program... please.. i have a project calculator using VB6 with the combination of operation like this 100 + 50 - 20 * 2 = 260 please help me.. thank you..

Software Development visual-basic
Member Avatar for AndreRet
0
159
Member Avatar for TomaCukor

hey guys , its my first but hopefully not last post , i have this wordcounter(actually recepie reader) project it looks for the word "csoki" given in input and then if it finds it it asks perfcentage of "csoki"(short for chocholate in my lang) and stores the value in array …

Software Development c
Member Avatar for WaltP
0
265
Member Avatar for marktyers

Hi I am new to assembler programming and am trying to get a simple program up and running on a PIC12F675 using a PICKIT2 I have wired up the circuit using pins 1-5 on the PICKIT2 programmer according to this diagram: PIN1 MCLR to PIC PIN4 PIN2 VDD to PIC …

Software Development assembly flash
Member Avatar for marktyers
0
189
Member Avatar for vinayakgarg

Hello I am developing my first game in Allegro. Till now i found it easy to use. But now i read that for running a game allegro.dll is required on computer. Tell me if it is correct. Also many people say that SFML is better than Allegro, since the latter …

Software Development c++ gaming
Member Avatar for vinayakgarg
0
282
Member Avatar for iwanttolearnc

im reading a text file that contains data in a fashion similar to this $1.2.3.4.5.6$ %7.8.9.10.11.12% *a.b.c.d.e* what i want to do is read only data enclosed by '$' and skip to the next line if the data contained are not. written below is my code. im kind of stuck …

Software Development c
Member Avatar for iwanttolearnc
0
139
Member Avatar for aligajani

I want to sort the getSal values in the myList. It should be a sorting algorithm implementation so that adding or removing objects does not affect the performance. [CODE]import java.util.*; public class payment { public String name; public int salary; void setName(String _name) { name = _name; } String getName() …

Software Development algorithm java
Member Avatar for aligajani
0
176
Member Avatar for EngSara

Hello.... I am running a C++ program that takes an N array and reads a from a file. One requirement of this project is that it returns an elapsed time of each function so the function efficiency can be calculated based upon an input. I am attempting to implement the …

Software Development c++
Member Avatar for menauman
0
6K
Member Avatar for novice20

can anyone suggest a simple method to define an enum in python. as some examples floating on net, i used class Animal: DOG=1 CAT=2 print Animal.DOG but it doesn't seem to be working...

Software Development python
Member Avatar for novice20
0
126
Member Avatar for raden1

I am making a simple python game. I would like to be able to restart the game based on user input. You have a certain amount of guesses to guess which way to coin falls. If you lose you would get the option of restarting, instead of just breaking the …

Software Development python
Member Avatar for ultimatebuster
0
139
Member Avatar for khurram.1987

Hi, i am trying to connect to MySQL database [ICODE]mysql[/ICODE] using JAVA .. using code given below, [CODE]import java.sql.*; public class dbExample{ public static void main(String[] args) { System.out.println("Listing all table name in Database!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "mydb"; String driver = "com.mysql.jdbc.Driver"; …

Software Development java java-netbeans mysql
Member Avatar for khurram.1987
0
161
Member Avatar for rtk1865

I have a unit conversion program that needs to take in a float and 2 strings from standard input. My previous solution was: [CODE] float orig_quant; char *orig_name = (char*) malloc(MAX_CHARS); char *new_name = (char*) malloc(MAX_CHARS); fscanf(stdin, "%f %s %s", &orig_quant, orig_name, new_name); [/CODE] However, this only works if the …

Software Development c
Member Avatar for Narue
0
23K
Member Avatar for BleepyE

Is it possible to have a feature where the application checkes for updates every 7 days or each launch? If so, please could someone point me in the correct direct to adding this to one of my applications. Thanks

Software Development vb.net
Member Avatar for BleepyE
0
258
Member Avatar for BleepyE

My code has all of a sudden gone strange. Example 1: When I click my save button nothing happens, when I double click the button in the designer, it creates a new sub called "save_click_1" Example 2: My linklabel is no longer working. Double-clicking it in the designer ccreates a …

Software Development vb.net
Member Avatar for BleepyE
0
74
Member Avatar for hao90

i[CODE]mport javax.swing.*; public class ReverseArray { public static void reverse(int b[]){ int left = 0; int right = b.length -1; while(left<right){ //exchange the left and right elements int temp = b[left]; b[left] = b[right]; b[right] = temp; left++; right--; } } public static void main(String a[]){ } } [/CODE] how …

Software Development java java-swing
Member Avatar for hao90
0
114
Member Avatar for vbx_wx

[code] lis.py class mylist: def __init__(self,l): self.data = l; def __add__(self,l): self.data = self.data + l def __repr__(self): return self.data main.py from lis import* x = mylist([1,2,3]) x = x + [4,5] print x [/code] Why is it printing None? What do I did wrong,Thanks.

Software Development python
Member Avatar for vbx_wx
0
96
Member Avatar for totalwar235

i am just trying basic C++ GUI and i ran this code from a tutorial site. [CODE] #include <windows.h> int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR pszCmdLine, int iCmdShow) { MessageBox(NULL, "Hello World", "Testing", 0); return 0; } [/CODE] when i run it, it executes and makes a animation of …

Software Development c++ gui visual-basic windows-vista
Member Avatar for totalwar235
0
116
Member Avatar for discovery-power

Hi All, I have created a form called new users, I have added my data source, draged over the objects I want from the dataset onto the form and all is well appart from the fact that I cant delete records. To add them I simply click the add button, …

Software Development dataset sql vb.net
Member Avatar for discovery-power
0
112
Member Avatar for WDrago

Greetings everyone, This is my first post, so I hope I don't break any rules by mistake... I am an experienced programmer trying to learn VB.NET. The problem I'm having is that it seems like strings have to be initialized differently than other types and I don't know what I'm …

Software Development vb.net
Member Avatar for WDrago
0
178
Member Avatar for seanbp

I'm assuming there's no easier way to do this. Is thread locking really automatic? Am I misreading the documentation? [CODE]from threading import Thread make_thread = lambda fn, *args: Thread(None, fn, None, args).start() def my_fn(*args): for arg in args: print (arg) make_thread(my_fn, "toaster", "ovens") [/CODE]

Software Development python
Member Avatar for griswolf
0
95
Member Avatar for daudiam

Consider the following codes : File : C3.java [CODE]package G; public class C3 { protected int a=5; }[/CODE] File : R3.java [CODE]import G.C3; class R2 extends C3 { void doit() { a=7; } } class R1 extends R2 { void doit(R2 b) { a=8; b.a=1; // (1) } }[/CODE] It …

Software Development java
Member Avatar for daudiam
0
209
Member Avatar for rtk1865

[CODE]typedef struct{ char *name; bool exists_in_sys; convert_table *data; } unit; float orig_quant; unit *orig_unit = (unit*) malloc(sizeof(unit)); unit *new_unit = (unit*) malloc(sizeof(unit)); printf("Enter original quantity, original units, new units\n"); fscanf(stdin, "%f %s %s", &orig_quant, orig_unit->name, new_unit->name); printf("Original unit: %s\n", orig_unit->name); printf("New unit: %s\n",2) new_unit->name);[/CODE] OK, so I would like to …

Software Development c
Member Avatar for rtk1865
0
205
Member Avatar for afaque01

Iam trying to Calculate The values From 2 Comoboboxes.....But sometimes its calculating and sometimes its Showing BOOLEAN conversion problem... Plz SEE the code . [CODE] If C1.Text = "Agra Fort" Andalso C3.Text = "Delhi" Then l8.Text = 800 ElseIf C1.Text = "agra fort" Andalso C3.Text = "bangalore" Then l8.Text = …

Software Development vb.net
Member Avatar for afaque01
0
172
Member Avatar for tendaimare

i have a checked list box as one of my controls in my code what happens is when i click on the checked list box the item clicked in the checked list box is supposed to be added to a text box, and my code is now doing that however …

Software Development vb.net
Member Avatar for tendaimare
0
148
Member Avatar for davieJohnson

I am working on a C# Windows Form project and I need to access the controls on a form from a separate class within the project. can anyone help me with this?

Software Development
Member Avatar for Mitja Bonca
0
159
Member Avatar for nmakkena

Hi I want to display tables data(having only one column) into a combobox as items. pls provide me some solution for this.

Software Development display
Member Avatar for pvtam2a
0
184
Member Avatar for Riga

i'm newbie from programming, what i want to ask is how to get the name from dayofweek?? [code] For cacah = 0 To 6 Dim nodeNamaHari As DayOfWeek [nodeNamaHari = cacah] Dim nodeJelasHari As TreeNode = nodeBulan.Nodes.Add(nodeNamaHari) Next [/code] that's what i try but the nodes appear just the value …

Software Development vb.net
Member Avatar for Riga
0
332
Member Avatar for hao90

[CODE]public class Human { private String name; public Human(String name){ this.name = name; } public String getName(){ return name; } public String toString(){ return "Human " + getName(); } } interface Electrician{ public String changeBulb(); } interface Plumber{ public String unplugDrain(); } class HandyPerson extends Human implements Electrician, Plumber{ public …

Software Development java
Member Avatar for hao90
0
113
Member Avatar for daudiam

[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ?

Software Development java
Member Avatar for daudiam
0
162
Member Avatar for bensewards

Hey guys, This is my first official post on DaniWeb :) I am new at programming in C++ using visual studios, and right now I am fooling around with storing user input into Arrays. I am having a problem with my code, using an array size of 3 to store …

Software Development c++
Member Avatar for jonsca
0
210
Member Avatar for daudiam

I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at …

Software Development java
Member Avatar for daudiam
0
171
Member Avatar for steven8579

I have a combobox called combobox1 and I dont know how to save the selection. For example if i selected Sub Compounds, how would i save this so when i loaded it again from the hd Sub Compounds would be selected.

Software Development
Member Avatar for steven8579
0
1K
Member Avatar for yorro

How do you set the FileSystemWatcher.Filter to check only two files. Here's my code that doesn't even work. [CODE=vb]watcher.Filter = "*.txt|*.ini"[/CODE] Thanks Alot

Software Development vb.net
Member Avatar for yorro
0
2K
Member Avatar for poobert

I'm trying to write a script that downloads and image off the net with wget. The script should save the file named as the date it was downloaded preferably with a suffix. Any ideas on how to accomplish this using wget?

Software Development shell-scripting
Member Avatar for poobert
0
203
Member Avatar for jon.kiparsky

Has anyone got any clever tricks for determining the size of the contents of a directory without doing the obvious (descend recursively and count bytes)? I'm trying to make a progress bar happen for a recursive descend-read-and-load of a directory, and it would be cool if I could track it …

Software Development java
Member Avatar for jon.kiparsky
0
337
Member Avatar for discovery-power

Hi All, I have a combo box in a form, I want to fill it with names I have stored in a database. I know I have to use the fill command, but I am not sure what code I need to use. I imagine I need to place this …

Software Development vb.net
Member Avatar for discovery-power
0
117
Member Avatar for shredder2794

Hello All, I was wondering how to click a button on the internet or another program via a program in visual basic 2010. An example would be: Have a program being able to click the "Search" button in google or the "I'm feeling lucky" button??? Does anyone know how to …

Software Development vb.net visual-basic
Member Avatar for Unhnd_Exception
0
2K
Member Avatar for alexchen

I cannot copy 2d array. There are no errors in my error list. What is wrong with my code? The problem might be located in create(). Thanks in advance. Here is my code. [CODE]int **map void randomize(int numberToSelect,int range, int *list){ int* remainingNumbers = new int[range]; int* chosenNumbers = new …

Software Development c++
Member Avatar for alexchen
0
109

The End.