132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zekstein

Hello, i have a little big problem. I have an application that needs to 'download' two exe files but i don't want to make internet connections and ... So my application verifies the system time and should 'extract' the .exe for x64 or x86. But i don't know how to …

Software Development c c# c++
Member Avatar for zekstein
0
154
Member Avatar for wael meto

Now i am tring to make a data set by creating it in separte DLL file(using VB net) the code i used in this dll fle aready workong in my form but i tried to use it by this diffrent way ,,,but no way this is the code of the …

Software Development dataset file-system open-source vb.net
Member Avatar for Oxiegen
0
312
Member Avatar for srikanth2321

Hi all, I'm currently using SAX to parse an xml file. Recenlty I have encountered a problem where, one of the element consist of more than 50,000 characters (a DNA sequence ) and the SAX results nothing as an output. The code which I'm using is [CODE] public void getCommand() …

Software Development java open-source xml
Member Avatar for srikanth2321
0
380
Member Avatar for bloodbender

Hello Daniweb, What would you guys say is the most effective way to manage memory for powers? I'm thinking for smaller powers, like squares or something, it's probably just better to do x * x and Math.pow(x, 2) should only be used for bigger powers. I have a lot of …

Software Development java
Member Avatar for bloodbender
0
107
Member Avatar for kspecks

I was going through old programming tests from school and cam across this one that I got wrong and was wondering if anybody could help me out. We maintain our user list as an encrypted text file with the extension .LBE. We have a customer that is reporting that their …

Software Development c++ linked-list
Member Avatar for kspecks
0
208
Member Avatar for Begginnerdev

Hello my fellow Daniwebbers, I have a modest question for you. I have a panel, which contains child panels. I have code the alows the user to delete the selected panel, but can't figure out how to refresh the parent panel with the deleted panel gone. When I use the …

Software Development vb.net
Member Avatar for Begginnerdev
0
200
Member Avatar for Twistar

I am making a simple blackjack game. I have now made the deck which i can draw cards from. But I don't know how to get the values from each card so that i can add them together. I have a card class named Kort with the enum: [CODE]public enum …

Software Development
Member Avatar for Twistar
0
282
Member Avatar for messr135

/*any suggestions on how to convert a hexadecimal no. into others and vice versa?d code might be long, i'm just 16, dnt be harsh :)*/ #include<iostream.h> #include<conio.h> #include<string.h> #include<math.h> #include<process.h> main() { char a[30],ch; int len,i,j,pos,whole=0,k=0,n=0,r[30],lenr=0,lenq=0,q[30],h=0,base,base1; float frac=0; cout<<"Enter number"; gets(a); cout<<"Enter choice-b,o,h,d"; cin>>ch; len=strlen(a); switch(a[0])//for converting the no. inputted …

Software Development c++
Member Avatar for DeanMSands3
0
108
Member Avatar for ghada ali

I have a code for speech recognition but it not work good it has a problem in line 31 what is the solution ??? [code] import edu.cmu.sphinx.frontend.util.Microphone; import edu.cmu.sphinx.recognizer.Recognizer; import edu.cmu.sphinx.result.Result; import edu.cmu.sphinx.util.props.ConfigurationManager; import edu.cmu.sphinx.util.props.PropertyException; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; public class HelloWorld …

Software Development java
Member Avatar for ghada ali
0
361
Member Avatar for dineshswamy

I dont understand why we are using super.paint() in this code. help me to figure out why? [CODE] public class SetJTextFieldBackgroundImage extends JTextField { public SetJTextFieldBackgroundImage() { JFrame frame=new JFrame("Set JTextField background image"); frame.add(this); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(300,65); frame.setLocationRelativeTo(null); frame.setResizable(false); frame.setVisible(true); } public void paint(Graphics g) { setOpaque(false); //Image that will be …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for M.S.

I tried many times but no luck. I want to parse a text file with a vcard format (from my phone contacts). the text file looks like this: BEGIN:VCARD VERSION:2.1 REV:20110913T095232Z UID:aac119d5fe3bc9dc-00e17913379d6cc8-3 N;X-EPOCCNTMODELLABEL1=First name:;[B]Maj[/B];;; TEL;VOICE:[B]09120000000[/B] X-CLASS:private END:VCARD BEGIN:VCARD VERSION:2.1 REV:20110228T083215Z UID:aac119d5fe3bc9dc-00e17b0693898c98-4 N;X-EPOCCNTMODELLABEL1=First name:;[B]Ali jahan[/B];;; TEL;VOICE:[B]09120000001[/B] X-CLASS:private END:VCARD BEGIN:VCARD VERSION:2.1 REV:20110228T083510Z …

Software Development python
Member Avatar for snippsat
0
2K
Member Avatar for akpaga22

Hi friends I am learning C# language online and came across this question Code Exercise: Cola Machine Please use the language of your choice to model a simple cola machine. Within the cola machine, please create classes for the Drinks, Inventory and Bank. The Inventory should hold multiple types of …

Software Development c c# c++ machine-learning
Member Avatar for AlexanderBell
0
197
Member Avatar for Goldfinch

Hi, I'm trying to understand a java concept, I'm trying to get a piece of code to work without changing the main method. [CODE=java] public class TestProg2{ public static void main(String args[]){ String filler1="Rank"; String filler2="Suit"; Card card = new Card(); System.out.println(card); } } class Card{ public String Card(){ String …

Software Development java
Member Avatar for DavidKroukamp
0
134
Member Avatar for Dumb Fish

hi, i need to ask how to generate the negative answer? i have one formula. But always give me positive answer.. For exmaple: [B]AllocatDiff2 = 100 * -0.05;[/B] hope somebody can help me ...ASAP!! Thanks ...

Software Development c++
Member Avatar for thines01
0
166
Member Avatar for ThaiAmL

Writing an abstract class for homework - here's what I have so far: [CODE]public abstract class Pet { String petName; double foodAmount; double foodSupply; int days; public Pet(String petName, double foodSupply) { //constructor to be used by sub-classes this.petName = petName; this.foodSupply = foodSupply; } public Pet() {//default constructor } …

Software Development java
Member Avatar for stultuske
0
768
Member Avatar for hust921

Hey i know this is a stupid question, but i have no idia how to google it. I have copied this code directly from a book: Btw, my main() method is empty. [CODE] package benytterning; public class Terning { public int værdi; public Terning() { kast(); } public void kast() …

Software Development apple java java-netbeans
Member Avatar for zeroliken
0
136
Member Avatar for 3nrichedd

I am working on this assignment in my java class, and am running into a few problems. Basically there are 2 classes and a main/client program that tests the classes. there is 1 superclass and a subclass that extends the superclass.. I have 2 constructors in my superclass but when …

Software Development java oop
Member Avatar for hiddepolen
0
255
Member Avatar for smarty_t2

Hi, I wrote a small application in c# using .NET framework 4.0 next, I used the deploy feature while publishing the application but when click on the install button in the deploy webpage i get an error. The details include this: "Your Web browser settings do not allow you to …

Software Development publishing web-browser
Member Avatar for smarty_t2
0
157
Member Avatar for Cameronsmith63

So i have a datagrid and I have a databindingsource control for my text file. Works like a bomb, but then i added a toolstripmenu so that i can right click on the datagrid, a menu pops up and i can delete the row of data from the text file …

Software Development
Member Avatar for Cameronsmith63
0
2K
Member Avatar for ahoysailor

Hey, I'm trying to search a List for a substring, but even if it does exist the result is coming out as negative (not present) using the BinarySearch. The idea is that once the file has been loaded into the list I search to see if substrings exist (i.e. IDS_STRING1 …

Software Development c++ programming-construct
Member Avatar for ahoysailor
0
211
Member Avatar for tendaimare

guys I have a program that i am working on and I want to know how to change the background color of a sstab control to white i am using vb6 here is the program: [CODE] 'Put the code in form1 Option Explicit ' ********************************************************************************* ' API Declarations... ' ********************************************************************************* …

Software Development api visual-basic
0
252
Member Avatar for AquaNut

Hi Coders, Once again I feel I need your help/assistance. I have been trawling the net and forums for a simple way of automatically updating a newer version of my application from a network share. Everything I have read pertains to an update from a web site. This is possibly …

Software Development vb.net visual-basic
Member Avatar for AquaNut
0
694
Member Avatar for serkan sendur

Query your datatable like sql's "select distinct" statement

Software Development
Member Avatar for alokgolu
0
287
Member Avatar for poojavb

Hello All, Actually I am facing issue in creating an ASP.net application. I have created a project in VB.net but now my seniors are saying that the code should be in ASP.net and it is taking hell lot of time for code conversion, designing and all other stuff. Actually I …

Software Development vb.net
Member Avatar for poojavb
0
368
Member Avatar for monica86

I am very new to this and the computer programming world in general, and I'm having a problem with my program and I think I'm just making one little mistake, but I can't figure out what it is! I'm using class GetStats to be the main for my other class …

Software Development java
Member Avatar for stultuske
0
7K
Member Avatar for apeiron27

ok i'm not sure if i can use regex to do this it'd be great if you can give some suggestions! i have a list of pure numbers in one hand and another list of also numbers but with dashes. it's like this: list1 = [245366556346,4534525326562,56345254234237... list2 = [75465-54224-4,3-55-342526,.... as …

Software Development python regex
Member Avatar for Gribouillis
0
107
Member Avatar for needforkevin

hello all! i am working on a bank account type program where the user can add accounts delete accounts make deposits and so on. i have most of the code working but i am getting an error and i cant figure out whats wrong. if someone could steer me in …

Software Development c++ data-structure linked-list
Member Avatar for ravenous
0
174
Member Avatar for bhagawatshinde

Hi guys, I am trouble to find out the solution can anybody help me, I am developing an windows application in 2.0 framework in vs2005 and making exe but on some operating system (Windows7 service pack1 64 bit Home premium, windows xp service pack 3) it throws an error while …

Software Development operating-system
Member Avatar for skatamatic
0
102
Member Avatar for revjim44

I'm trying to write C# code for a code-behind page in an ASP.project. I'm to the point where if any of the fields are blank, the code returns the page with the missing fields highlighted in yellow, and if all the fields are filled, then the page saves session state …

Software Development asp client-server session
Member Avatar for mani-hellboy
0
260
Member Avatar for Alex_2011

Hi, I am totally lost and I went through a lot of sites about searching within an array, but I could not find any clues. I created the following array : Private LetterArray() As String = {"A", "B", "C"} and I don't know how to get the target letter from …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
365
Member Avatar for codechrysalis

ok so im working on a application that displays the charges along with displaying the zip code. I seem to have a IO exception error for the console.clear() line. Is there anything else I need in order to display the charges along with zip code? Im thinking a nested if …

Software Development display
Member Avatar for skatamatic
0
168
Member Avatar for huskeraider

Greetings, I found the equivalent of this in Java but not Python. What i'm trying to figure out is how to reverse and print each of 5 lines in a text file backwards. I am able to take this: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod …

Software Development python
Member Avatar for Thisisnotanid
0
790
Member Avatar for EBS.VivekGupta

Hi, I am working on a Windows application project for 2 months. Today i found that my most of the control events are not firing.. Till yesterday night all the forms were fine but i wonder what happened today. Can anyone pls help me out..

Software Development
Member Avatar for skatamatic
0
526
Member Avatar for DJSAN10

I am reading Kernighan and Ritchie, and honestly, I am not able to understand anything in the following sentence I encountered while reading: [B]Any integer is converted to a given unsigned type by finding the smallest non-negative value that is congruent to that integer, modulo one more than the largest …

Software Development c
Member Avatar for DJSAN10
0
143
Member Avatar for arold10

I am writing this program about Gas mileage, In the program I am assigning a value that is -1 as a sentinel value, that's why I use the While loop. The problem is I can input [B]gallon[/B] variable, but the miles variable keep repeating over and over again. My question …

Software Development c
Member Avatar for zeroliken
0
155
Member Avatar for Mxous

I need to write a code that takes a percentage and converts it into a letter grade. The problem is that I'm not allowed to use if statements. 85-100 -> A 75-84 -> B 65-74 -> C 55-64 -> D 0-54 -> F One attempt I made was changing the …

Software Development c
Member Avatar for Mxous
0
138
Member Avatar for applebule5

I am trying to set up a database with Students, Courses and grades. This is the main bulk of my code, I am stuck with the error below, could anybody help me? [CODE] Imports System.Data.OleDb Imports ADODB Public Class Form_Main Dim cn As OleDbConnection Dim StudentUpdateCommand As New OleDbCommand Dim …

Software Development dataset open-source sql vb.net
Member Avatar for hericles
0
168
Member Avatar for MBPB

Hi all. I am learning Java, and having a problem with a sentinel loop to fill an array. I want the loop to terminate when -1 is added, OR when the array is filled. [CODE] int i = 0; int counter = 0; int[] array = new int[40]; System.out.print("Enter values …

Software Development java
Member Avatar for DavidKroukamp
0
3K
Member Avatar for scheppy

Ok, so I have my code for the timer [CODE] computer = new Timer (4000, this); computer.start (); [/CODE] The timer starts at the end of a method, and is supposed to start another method via actionlistener after 4 seconds, the problem is, after 4 seconds, the timer gives a …

Software Development java java-swing
Member Avatar for DavidKroukamp
0
192
Member Avatar for yeeitsneo

hi! uhm. can anyone please help me out with this program im creating. its a automaton simulator. im having a problem with my way of presenting the simulation. my automaton accepts strings (0 and 1). the user then inputs any string from 0 and 1 ( eg. 000111 , 0101010 …

Software Development visual-basic
Member Avatar for Sam367
0
165
Member Avatar for miss_lovely

Write a class that accepts a user's hourly rate of pay and number of hours worked. Display the user's gross pay, the withholding tax (15% of gross pay) and the net pay, (gross pay - withholding) I have my code below, but I'm lost. I dont know what I'm doing …

Software Development java
Member Avatar for DavidKroukamp
0
2K
Member Avatar for HardToHandle

Hello guys, So my task is the following: Draw a pine tree based on user inputted height. How tall should the tree be?: 6 /\ / \ / \ / \ / \ / \ ------------ || || || I had problems moving the cursor from the left to right …

Software Development c++ data-structure
Member Avatar for HardToHandle
0
521
Member Avatar for Desi991

// secondstohhmms.cpp : Defines the entry point for the application. // [CODE]#include <iostream> using namespace std; #include "StdAfx.h" void main() { int time,hour,min,sec; cout<<"Enter time in seconds :"; cin>>time; hour=time/3600; time=time%3600; min=time/60; time=time%60; sec=time; cout<<"\n\nThe time is : "<<hour<<"::"<<min<<"::"<<sec; } [/CODE] Errors: >c:\users\desi9991\documents\visual studio 2010\projects\secondstohhmms\secondstohhmms\secondstohhmms.cpp(4): warning C4627: '#include <iostream>': skipped …

Software Development c++ visual-studio
Member Avatar for thines01
0
238
Member Avatar for runge_kutta

Hello, I would consider myself a decent python programmer (this may or may not be true). In the past, I have had a few small python contracts and have been screwing around with the language for a few years (I also have experience with c++, java/html/css/javascript/etc). What I would really …

Software Development html-css open-source python
Member Avatar for joehms22
0
203
Member Avatar for scheppy

ok so I have a JButton that has an image on it, and then after 4 seconds i want to put a differant image on it but the problem is the first image wont load I'm using [CODE] button1.setIcon (icon); try { Thread.sleep (4000); //sleeping for 4 seconds } catch …

Software Development image java
Member Avatar for scheppy
0
176
Member Avatar for Alex_2011

Hi, I am trying to add (Push) whatever the user enters in (MyStack) into 5 different labels that should show the (UserResponse). The problem is I don't know how to display each element in a different label. For example: - The first element that the user enters (UserResponse) should be …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
179
Member Avatar for brandon66

This is what i am suppossed to do: Create an application that will ask the user for a number between 1 and 10 and then output the factorial of that number. Use a for loop to calculate the factorial. What is a factorial? A factorial is the product of all …

Software Development java
Member Avatar for brandon66
0
156
Member Avatar for auwi987

guys hello i have database with table name tblAgent with a column agent_id and a vb6.0 form add-agent i want to generate id everytime i open form and everytime i added new data it refreshes the ado recordsource and fetch the max(agent_id) and +1 to increment the agent_id now i …

Software Development ide open-source visual-basic
Member Avatar for ChrisPadgham
0
159
Member Avatar for D19ERY

Hi there I'm completing an application to display a weather report - unfortunately i can't seem to get the name entered to appear in the message shown and i can't get each picture to appear individually when the radio button related is chosen. Here is the question i'm working off …

Software Development vb.net
Member Avatar for ChrisPadgham
0
150
Member Avatar for Hypnos_16

Hello All, I'm trying to create three independent animations that all occur in one main frame. I have to use the following methods in my code [CODE]--- Animate --- public interface Animate { void move( double x, double y); void changeConfiguration(); } --- Drawable ----- import java.awt.Graphics2D; public interface Drawable …

Software Development java java-swing oop
Member Avatar for NormR1
0
2K

The End.