132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jesse.johnson

[B]Background:[/B] An application that opens a file, searches the file for the old password, replace the old password, and then saves an closes the file. The file is used by another process. [B]Servers [/B] I have two environments one for dev and prd. [B]The Issue[/B] * On prod the files …

Software Development file-stream file-system regex
Member Avatar for jesse.johnson
0
239
Member Avatar for sha11e

I'm trying to make a cllient-server chat that only needs to be able to handle 1 connection. First, I have a data-type question: 1. At the moment I am using this code to get messages [CODE] BufferedReader ins = new BufferedReader(new InputStreamReader(sock.getInputStream()));[/CODE] And this code to send messages [CODE] PrintStream …

Software Development client-server ios java
Member Avatar for babu15
0
200
Member Avatar for naraayanan

Hi, I am new for C++ Program.I created a Exe using VC++.error message will occur when i run that exe(Ctrl+F5).The following error message will occur when exe run. [B]The thread 0x6CC has exited with code 0 (0x0). The thread 0xB10 has exited with code -1073741819 (0xC0000005). no matching symbolic information …

Member Avatar for Narue
0
172
Member Avatar for Knoxarama

I'm working on a formula calculator. In it, I've designated user controls (it's in a console). The script keeps track of the user inputs by assigning all user inputs concerning navigation into a string labeled 'ans'. However, I can't seem to get the 'if' and 'else' function to work with …

Software Development c++
Member Avatar for Narue
0
294
Member Avatar for bio-grad

Basically I am reformatting a list that looks like this ko10101 K01392 K09134 ko34231 K05789 ko13452 K04665 K07881 into a csv file that looks like this: ko10101\tK01392 ko10101\tK01392 ko10101\tK09134 ko34231\tK05789 ko13452\tK04665 ko13452\tK07881 [code]while (<OUT>) { my $line = $_; chomp; if ($line =~ /^$/) { next; } elsif ($line =~ …

Software Development perl
Member Avatar for bio-grad
0
136
Member Avatar for SyncMaster170

Hey guys, So at my company there are two i.t. guys, me and another dude, but he does not have the time, nor brain to teach me a couple things for connecting to out sql database for my app so I have to go online. Im having real trouble as …

Software Development
Member Avatar for SyncMaster170
0
182
Member Avatar for wallet123

So here it is, this is my new problem, we were assigned to create a simple ATM Machine: Automatic Teller Machine [B] Balance Machine [D] Deposit [W] Withdrawal [Q] Quit Select you option: (input letter here) when i choose balance this window should pop out: Your Balance is 0.00 OK …

Software Development java
Member Avatar for wallet123
0
205
Member Avatar for ahoysailor

Hello, I'm having a problem with finding and printing an element in a vector. I want to search my vector to see if an element starts with a sub-string, and if it does, I want to write the whole string to a file. The first part is done, I just …

Software Development c++
Member Avatar for ahoysailor
0
297
Member Avatar for PrimePackster

Is there anyway we can clear only a selected part of the console window? clrscr() from conio.h & system("CLS") clears the whole screen. So how to clear screen selectively? For example, one of my old code prints this, [ICODE]Enter the limit for the array size (Max: 20) 10 Enter the …

Software Development c++ display
Member Avatar for PrimePackster
0
2K
Member Avatar for Jigs28

How to display data in datagridview starting from the record which we pass at runtime? In C# For example, there is 10 rows in a table. When i run the app i'll pass 5th record's value so it should show all data of table starting from 5th row.

Software Development display vb.net
Member Avatar for M.Waqas Aslam
0
215
Member Avatar for naraayanan

Hi friends, Error Occur when i run the Project in C++? Error is: 0x5f43351b reference memory at 0x00000000 .The memory could not be "read".Please why will this error occur and How can i solve this problem? Please help me.IT is a Urgent

Software Development c++
Member Avatar for Moschops
0
70
Member Avatar for markdean.expres

Guys I have this kind of problem where in I have a listbox and two buttons. Each of my button is labeled UP and DOWN. When I press UP, the current item in my listbox will be moved one level (or index) up and when I press DOWN button the …

Software Development vb.net
Member Avatar for markdean.expres
0
3K
Member Avatar for kerek2

Hi All, I'm stuck regarding to grab connection from app.config file...i'm surf many type and kind to do it..but still can',t.....i need to connect into two database (oracle n firebird).....how to do this..hope u all can help me....tq

Software Development app-store oracle vb.net
Member Avatar for Jigs28
0
155
Member Avatar for vikaram

Hello i made a phonebook script on python. I am quite new and have been only learning for less than a day and i cant get it to save the entered phonenumbers (is resets to default everytime you quit) Please help me with the code please! [CODE]phonebook["test"]=12345678 def searchname(): print …

Software Development python
Member Avatar for vikaram
0
325
Member Avatar for Ararat

Hi, i want to make a program that lets the user input as many numbers as they like and terminates when the user enters "EXIT" and prints the largest & smallest input, heres my code: [CODE]#include<stdio.h> #include<string.h> #include <stdlib.h> int main (){ int input; int min,max,a=0; char exit[] = "EXIT"; …

Software Development c
Member Avatar for prakash2813
0
1K
Member Avatar for gfp91

hi guy i already found a dimilar post for this but the code there didnt quite work. baisicly i am making a 2d game and i need to offset sprites. below is all the code i have for this sprite. obv thers more code but i think this is all …

Software Development c++
Member Avatar for gfp91
0
105
Member Avatar for Stein102

I'm trying to take a text file with 20x15 numbers(or characters, doesn't matter) into a 2d array. I just can't seem to get it to work. Can you help me fix it? Thanks [CODE]FileInputStream fis = new FileInputStream("MapFile.txt"); while (fis.available() > 0) { for (int x = 0; x < …

Software Development java
Member Avatar for dmanw100
0
137
Member Avatar for ilmkidunya

hey Dear members i want to learn asp.net but i am little confuse which is best for beginner any easy is it VB or C#

Software Development asp.net c# vb.net visual-basic
Member Avatar for ilmkidunya
0
459
Member Avatar for rahman86

hey everyone in daniweb. i have a problem here. let say i have 2 arrays one is a and second is b. how do i compare each of them and insert to new array c? i do it like this [CODE] Dim a As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Dim i As …

Software Development vb.net
Member Avatar for rahman86
0
252
Member Avatar for ShadyTyrant

I am creating a library database application. I created a custom Book class to hold data from the database. My library class lets me access the data and some methods return Book objects. The problem is when I need to return more then one Book. I want the method to …

Software Development
Member Avatar for ShadyTyrant
0
170
Member Avatar for archelle

Hello people in daniweb.... i was stucked in doing my project here.. i nid to create a program that assigns a student to the available section. So.. i want to populate my data in datagridview using mySql as database.. while populating these data.. the datagridview should create a new checkbox …

Software Development vb.net
Member Avatar for Pgmer
0
152
Member Avatar for Diogo Martinho

Hey guys, I really need your help on this, because I'm either being really dizzy or I just can't figure out why my code isn't working at all. I've wasted around 4 hours trying to turn around this problem so far and I just can't. here is the part of …

Software Development c++
Member Avatar for WaltP
0
219
Member Avatar for kothaisaravan

Hi, In my project there is a need to take screenshot and save it to word file automatically. Existing System: [LIST] [*]Open the website where log in exists for different resources. [*]Login for every resource and take a screen shot of their page and paste it to word file. Save …

Software Development vb.net
Member Avatar for kothaisaravan
0
278
Member Avatar for skylinepkr

Hello all, I am trying to make a program that essentially takes a string of parenthesis and outputs whether or not its balanced. Basically, every '(' will push the index of that location of the string on to the stack, while a ')' will pop it off if it's not …

Software Development java
Member Avatar for DJSAN10
0
179
Member Avatar for Blackiey

Interface: [CODE]import java.awt.Rectangle; public interface Doubler { public void makeDouble(Rectangle newRectangle); }[/CODE] [CODE]import java.awt.Rectangle; public class RectangleDoubler implements Doubler { private double x, y, width, height; RectangleDoubler() { x = 0.0; y = 0.0; width = 0.0; height = 0.0; }//end of default constructor public void makeDouble(Rectangle newRectangle) { x …

Software Development java
Member Avatar for thanatos1
0
259
Member Avatar for naraayanan

Hi friends, This is my first post in this Site. I want to create a file from One device data .In that device connects via USB Cable One end.Please Help me. How can i achieve this?

Software Development c++
Member Avatar for naraayanan
0
165
Member Avatar for daviddoria

There are two classes, ImageBase, and template <T> Image in a library I'm using. I want to store many of these images in a container, and then pass them to a function templates that expect an Image<T>. The only thing I knew to do was store ImageBase* in the container: …

Software Development c++
Member Avatar for vijayan121
0
207
Member Avatar for Behseini

Hi everyone, I am trying to find a way to highlight the active button appearance on my winform.Here I have a simple Text Editor with a richTextBox and a btnBold button located at ToolStrip which can change the font Style to be bold or not.Now I want to change the …

Software Development
Member Avatar for Behseini
0
1K
Member Avatar for stakeMyHeart

please help me. i dont understand this: Create routine to display * based on AL w CR AL=07 CALL 120 & RET output: ***** my professor said cr is call routine, that's all, he didnt tell us what does that mean help me please

Software Development assembly display
Member Avatar for Zssffssz
0
342
Member Avatar for thinkingofaname

hi im using the chart to make a graph the graph is generated through user input i was wondering about a couple of things 1. how to change the line thickness for an individual generated line or all of the lines 2. how to change the colour of an individual …

Software Development vb.net visual-basic
Member Avatar for thinkingofaname
0
178
Member Avatar for jackmaverick1

When I try to put the JTextArea in a JScrollPane, it a) doesn't display the menu most of the time, and b) doesn't display the scroll bars, even though I've got more text than the size of the JTextArea. Code (it's a VERY simple error console for something else): [CODE]import …

Software Development java java-swing
Member Avatar for NormR1
0
163
Member Avatar for daviddoria

(Following up on this discussion : [url]http://www.daniweb.com/software-development/cpp/threads/405285/1732795#post1732795[/url] ) Is it ok to store data in a Visitor class? In the case below, I have a Visitor named PixelWisePatchPairVisitor that internally needs to itself use a visitor. At some point the Image to visit needs to come into the picture. In …

Software Development c++
Member Avatar for daviddoria
0
122
Member Avatar for scheppy

Hi I have a small problem with with my bubble sort. Everything else in my program works fine if I remove my bubble sort. This is the part of code for the bubble sort. [CODE] //bubble sort based on animal breed if (numberofanimals > 1)//making sure there is more than …

Software Development java java-swing
Member Avatar for NormR1
0
228
Member Avatar for aishapot

I have a field in my tables where the guidance counselor would have to type in Notes about the student. For example, Alex is in Grade 1 and he have an offense wherein he pushed his classmate, that note will be saved in the database. And then when he turned …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
122
Member Avatar for applejax77

I am working on a java program that will count a particular letter in a sentence that the user inputs. Below is the code that I have, but I also want the program to output the sentenced that was typed by the users. Any help would be appreciated. import java.util.Scanner; …

Software Development java
Member Avatar for hfx642
0
210
Member Avatar for paulmcco

Hello, I have what seems to be a very common problem but after doing much research and trying to fix myself, I am unable to resolve the issue. I receive the following error when compiling my win32, directx 9 program: e:\...\game.cpp(228) : fatal error C1004: unexpected end-of-file found I receive …

Software Development c++ windows-api
Member Avatar for nezachem
0
439
Member Avatar for smurfy

Hi everyone, I'm trying to pass data to managed object arrays. In this case i got no errors also no correct output. So what's wrong in the code below ? Please help. PS. This code writes " MyDataType" on textBox1 ??! [CODE] ******************* * MyDataType.h * ******************* using namespace System; …

Software Development c++
Member Avatar for smurfy
0
423
Member Avatar for twooften

I am running trough the [url]www.winprog.org[/url] tutorial, I have run into yet another error. [CODE] #ifndef __BORLANDC__ #include "winres.h" #endif [/CODE] it says it cannot open "winres.h", which I would agree with because it is not located on my computer at all! Is this file part of some other program, …

Software Development c++
Member Avatar for dsenic2000
0
1K
Member Avatar for Andy90

How to put floating/Double value in Timespan?

Software Development
Member Avatar for thines01
0
221
Member Avatar for natehome

ive been working on this script as a project, and when i run it and click on the button to sleep(its going to be an rpg game) it loops and sends the command a bunch of times through the function. [CODE] import sys, random, time, pygame from pygame.locals import * …

Software Development pc-peripheral python
Member Avatar for ret801
0
259
Member Avatar for sys73r

[CODE]import urllib2 from BeautifulSoup import BeautifulSoup data = urllib2.urlopen('http://www.NotAvalidURL.com').read() soup = BeautifulSoup(data) table = soup("tr", {'class' : 'index_table_in' }) print table[0][/CODE] the result is: <tr id="index_table_12345" class="index_table_in"> <td><a href="/info/12345">string 1</a></td> <td><a href="/info/12345">string 2</a></td> <td><a href="/info/12345">string 3</a></td> <td><a href="/info/12345">string 4</a></td> <!--td></td--> </tr> *the goal is to get only the strings and …

Software Development python
Member Avatar for sys73r
0
24K
Member Avatar for glut

Hello. I have a really weird problem. Whenever I try to get if the user pressed down on the mouse (clicked), via GetAsyncKeyState(), it only shows it some times. I tried the exact same code, but with another key Ex: A, and it works fine. Here is the code. [CODE] …

Software Development c#
Member Avatar for glut
0
138
Member Avatar for shibu2all

Can anyone pls explain the output for this [CODE=c] int main() { int i=10; printf("%d %d %d",i++,--i,i); return 0; [/CODE] according to me the o/p should be 9 9 10 however gcc compiler is giving o/p is 9 10 10 can anyone explain me this....

Software Development c
Member Avatar for Shardendu
0
137
Member Avatar for Karlwakim

Hi everybody, I am learning c++, i tried to learn java but it seams hard. do you personally think that learning c++ will make me understand OOP in a bad way ? Is it better to learn c++ before java or vice versa ? Is java slower than c++ (Some …

Software Development c++ oop
Member Avatar for Karlwakim
0
438
Member Avatar for suneye

Hello, I am not a completly new person to C# but I have some good background information about C# and it's contents. What i want is to be guided about what to solve how to develop my skills . can any one give me tips and put me on the …

Software Development c#
Member Avatar for suneye
0
117
Member Avatar for Tcll

just making a thread that will hopefully stick for a while... >_> I just need a little help and need to know a few things before starting on this... the main thing being the need to know how to build a good update system >_> my program will have a …

Software Development python
Member Avatar for Tcll
0
127
Member Avatar for daviddoria

I have been working with this code for quite a long time now, and I continually refactor and refactor and just keep running into different forms of the same problem. In the last couple of weeks I've tried to take a step back and really think about the design, motivated …

Software Development c++ github
Member Avatar for rubberman
0
573
Member Avatar for AdampskiB

[CODE]# 619480 import time from random import * def main(): lst = [] result, length = 0, 500000 while result <= 0.50: for i in range(length): lst.append(randint(1, length)) value = randint(1, length) t0 = time.clock() linearSearch(value, lst) result = time.clock() - t0 print("This LINEAR SEARCH took {0:4.2f}seconds with a length …

Software Development python
Member Avatar for AdampskiB
0
161
Member Avatar for TrustyTony

While looking into [URL="http://www.had2know.com/academics/gaussian-prime-factorization-calculator.html?blankone=2&result="]Gaussian primes [/URL]I came to think additional ways to check for is number integer or not, what you think is best way? [CODE]epsilon = 1e-11 def is_integer(n): """ traditional abs, epsilon check for near integer """ return abs(n-round(n)) < epsilon def is_integer2(n): return (float(n)- int(n)).as_integer_ratio()[1] == 1 …

Software Development python
Member Avatar for TrustyTony
0
292
Member Avatar for khizer03

how to reset the existing password(topsecret)with a new password by using the "replace" keyword in the below code shown [CODE] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click System.Diagnostics.Process.Start("chrome.exe") …

Software Development vb.net
Member Avatar for codeorder
0
215

The End.