132,722 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cpeepee

I've read a few threads on this site; all seem to provide almost everything I need to complete this project, but I just cannot get there. What I am trying to do is, instead of reading the raw text from a local text file and counting the word, have the …

Software Development c++
Member Avatar for cpeepee
0
154
Member Avatar for vincezed

Hi i'm new to programming . I'm creating a project in C#.net using visual studio. I'm facing problem. Creating a login button and a new login ID button. the new login ID should store the details in the database and when the same is entered in the login text box, …

Software Development sql visual-studio
Member Avatar for muzikhera
0
218
Member Avatar for theorus

here's my code [CODE] Dim suppQuery As String = "SELECT [Supplier ID],[Company],[Last Name],[First Name],[Email Address],[Mobile Phone],[Office Phone],[Address],[City],[ZIP/Postal Code],[Notes] FROM [Suppliers]" Dim dsSupp As New DataSet Dim daSupp As New OleDbDataAdapter(suppQuery, cnPharma) Dim cbSupp As New OleDbCommandBuilder(daSupp) Try daSupp.Fill(dsSupp, "Suppliers") Dim rownum As Integer rownum = listSupplier.SelectedIndex With dsSupp.Tables("Suppliers") .Rows(rownum).Item("Company") = …

Software Development dataset vb.net
Member Avatar for theorus
0
126
Member Avatar for VS.Net

[B]Hello I'm New User in this forum I need to simple code in Vb.Net for Open / close USB Port (Windows 7) ... I'm waiting replay and Thanks you PS : I do not know Good the English language [/B]

Software Development vb.net
Member Avatar for trpsjt2008
0
1K
Member Avatar for bmos31

I'm having trouble even getting started with this problem. I've tried looking at other examples, but I'm completely stuck. The question and my code(not even sure if im on the right track) is as follows: Write a function called decToBinaryString that recieves a non-negative int and returns a string that …

Software Development c++
Member Avatar for bmos31
0
195
Member Avatar for jumpdlite

i am to write a C++ program to output the binary (base – 2) representation of a decimal integer. the program should accept a positive integer from the user. After verifying that the input is valid, the program should call a function named toBin, which outputs the binary representation of …

Software Development c++
Member Avatar for NicAx64
0
167
Member Avatar for chris forgeard

Hey I've only been coding for a couple of days and I got this code im working on for some reason the computer only guesses the number 42 instead of a random number can someone help me? Heres the code: [CODE]/*========================================================================\ |This is basically the guess my number game | …

Software Development c++
Member Avatar for Narue
0
133
Member Avatar for anrima

Hello, I am trying to create a script that will compare two identical pieces of hardwares configuration files (that are added via a GUI provided as part of the device) and to synchronize the two devices configurations. I currently have a shell script that connects to and downloads the configuration …

Software Development gui perl queue
Member Avatar for anrima
0
151
Member Avatar for nssltd

hi well i have been doing c sharp for a while and i think i'm getting quite good at it. I have began to add my own person touch to my applications IE custom cursors and custom buttons. I was just wondering if it is possible to make a custom …

Software Development c c# c++
Member Avatar for Diamonddrake
0
253
Member Avatar for civus

Hi Guys, I'm wondering if someone can help me out with a problem I've been having with VC++. I'm obviously just beginning to learn C++ and have been working with CodeBlocks and VC++ 2010 Express. My problem is that the following code compiles in CodeBlocks but gives me numerous errors …

Software Development c++ visual-studio
Member Avatar for civus
0
264
Member Avatar for grahf23

Hi, i'm new to C++ and been trying to write a simple program to compare the randomly generator number with the number input. But once i got the num1 = num2; the program keep prompting for new input. Any help would be appreciated. Thanks in advance! [CODE]#include <iostream> #include <stdlib.h> …

Software Development c++
Member Avatar for grahf23
0
157
Member Avatar for David_Omid

Hey guys, I was wondering if any of you could help me with some stuff which may seem obvious to you but I'm a beginner. I'm making a calculator and have reached the part where I am making the buttons change the string on the calculator's "screen". The way I …

Software Development c++
Member Avatar for David_Omid
0
93
Member Avatar for CALGACUS

Hi Everyone, I'm fairly new to Java, and am having problems in trying to convert an ArrayList containing String arrays to an array of String arrays. I thought it would be relatively simple to do, but I keep running into problems. I've looked at all the examples I've been able …

Software Development java
Member Avatar for NormR1
0
162
Member Avatar for smohrchi

New to python and I'm trying to save and import my first modules. When I go to import my first module which I've named convert.py I receive the following error: Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import convert File "C:\Python27\convert.py", line 1 Python 2.7 (r27:82525, …

Software Development python
Member Avatar for smohrchi
0
152
Member Avatar for AutoC

Hi, I have a struct that looks like this [code] struct Info { char **field_names; double **data; int *cindex; } [/code] I have to serialize an object of this struct and send it over a socket and deserialize at the other end. What is the best option for this?

Software Development c++
Member Avatar for Ancient Dragon
0
118
Member Avatar for vihrao

How can I extract the data for a specific XML element and convert it into byte array My XML file; [CODE] <?xml version="1.0" encoding="utf-8" ?> <root> <creditcard> <number>19834209</number> <expiry>02/02/2002</expiry> </creditcard> <name> <first>Mary</first> <mi>V</mi> <last>Jones</last> </name> <personal> <dob>01011966</dob> <gender>male</gender> </personal> </root> [/CODE] I want to extract the element <creditcard> and all …

Software Development xml
Member Avatar for vihrao
0
962
Member Avatar for amarnathch

How could i know the total elements an array can store??? whether it depends on the datatype or os(32bit or 64bit)???

Software Development c
Member Avatar for Narue
0
95
Member Avatar for reginaj

Hello Colleagues, I have not done C programming in years. I need some help in debugging a C program written by someone who has left our team. I have marked the lines having the error with "-->" Your kind assistance is very much appreciated. Here's the code: 1 #include <stdio.h> …

Software Development c encryption open-source
0
46
Member Avatar for dankiller94

[CODE]board = [['.', '.', '.'], ['.', '.', '.'], ['.', '.', '.']] pieces = ['X', 'O'] movetype = [0, 1, 2] turn = 0 breakgame = 0 def movecheck(): if x in movetype: if y in movetype: if board[x][y] in pieces: print 'Invalid move!' else: board[x][y] = pieces[turn] turncheck() else: print …

Software Development python
Member Avatar for woooee
0
180
Member Avatar for koveras vehcna

Hello everyone, I have created a text generator that acts on certain factors. I want to send every generated sentence via e-mail to a user but I noticed that everytime I send it, I encounter some problems. Below I show my code and under my code, I will describe the …

Software Development email python
Member Avatar for koveras vehcna
0
322
Member Avatar for tennis

say iter1 and iter2 are both iterators [CODE]*iter1++=*iter2++;[/CODE] what does this line means? Can anybody help explain? ++ and * which is done first? thanks

Software Development c++
Member Avatar for Duki
0
93
Member Avatar for Xufyan

How to return two values from one method ?? for example i've made the following program. [CODE]import java.io.*; class vowel{ public static void main (String args[])throws IOException{ String sentence; InputStreamReader isr = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (isr); sentence = br.readLine(); System.out.print (vowels(sentence)); } static char vowels …

Software Development java
Member Avatar for Xufyan
0
205
Member Avatar for chickod

I am hoping someone can help me...I am totally frustrated! I am using Visual C# 2010 Express (which might be the problem right there, but I wouldn't think so). I have added a .dbml (LINQ to SQL) file to my project and I am about to create a new connection. …

Software Development asp.net client-server sql
Member Avatar for chickod
0
120
Member Avatar for supra

Hello friends, I am working on my final yr project using Java Swing. Now for the database part can anybody tell me which I should use among Servlets, Oracle or JSP or anything others. I mean which is currently used in industry at large. Hope to get advice. Regards Supratim

Software Development java java-jsp java-swing oracle
Member Avatar for martin5211
0
175
Member Avatar for creeps

Hello, I've learnt a bit more C since I posted [url=http://www.daniweb.com/forums/thread302037.html]the last code review thread[/url], so I've decided to rewrite the Mystery Word application, this time using strings, pointers and pointer arithmetic, and dividing the program into files (I've only got three of those). I've also created a very basic …

Software Development c daniweb-feedback
Member Avatar for creeps
0
103
Member Avatar for dflatt

I can't decide what data structure to use for a program I'm making. the program I'm making is a football table, the variables used so far are; string team; int played = 0, goalsfor = 0, goalsagainst = 0, goaldiff = 0, win = 0, draw = 0, lose = …

Software Development c++ data-structure
Member Avatar for dflatt
0
112
Member Avatar for PixelExchange

I have recently stumbled upon a program that permits a person to have an animated image "dance" across the users' current active window. The problem is.. something very strange occurs when I have this animated image dancing across MY program's main window. For some reason, whenever I either maximize or …

Software Development c++
Member Avatar for PixelExchange
0
119
Member Avatar for ataomega

hello all i'm using cUrl and mysql in PHP but new to c++ for connecting to remote mysql database and run query what i need? should i install mysql connector? where are mysql libraries? may i download a large file for example 400 mb in c++ using cUrl ? i …

Software Development c++ file-stream mysql
Member Avatar for ataomega
0
840
Member Avatar for senthamizh

I have a problem when i am writing into files in a binary format.I have noticed that, it writes two times into the file. Here i have attached the code. [CODE] #include<iostream> #include<fstream> #include<string> using namespace std; class bank { protected: char receive[20]; public: } int main() { fstream file; …

Software Development c++ file-system
Member Avatar for dusktreader
0
148
Member Avatar for Revan1985

Hi all, i'm developing a program for my company, and i need a little help. How can i create an interface that need to be also a form? Is possible, there is an interface that create the Form class, or i'm so unluky that i need to use an abstract …

Software Development
Member Avatar for Momerath
0
272
Member Avatar for SkonTeam

Hi all, i am just asking for help to make this code work, i wrote it but it just tell me "too many arguments for Binomal Function" What should i change ? [CODE]#include <iostream> #include <cmath> using namespace std; long factorial (long); long binomal (long); int main() { int x, …

Software Development c++
Member Avatar for SkonTeam
0
163
Member Avatar for koti86

How to find out original extension of a file in a terminal or online pls help me

Software Development c
Member Avatar for jon.kiparsky
0
82
Member Avatar for angel392004

I need help on passing checked list view items into one message box. my current code outputs multiple message box with the name of the item, depends on the number of items checked. what i need is to output into a message box all the items checked in my list …

Software Development listview vb.net
Member Avatar for angel392004
0
181
Member Avatar for JSpudMonkey

Hi, still very new to the C Language and just needed some Clearing up and some help please. Im writing a program where i have to read from a file that says the name of a person and 6 "lottery" numbers in this format. [ Mike Kobalt 12 15 34 …

Software Development c file-stream file-system
Member Avatar for JSpudMonkey
0
127
Member Avatar for abhi_cvx

Hi All, I am really new to the programming world and I am trying to solve a simple problem for my python course- I have to write a script that retrieves Columbia University's webpage and prints only the titles of the news stories on the main page. I have to …

Software Development python
Member Avatar for Beat_Slayer
0
282
Member Avatar for CPT

Hello everyone, I'm not that much of a talker so I'll get straight to the point: I need to implement a hash table in C++, After reading about this topic and algorithms from the book by Cormen, I started to implement it. I wrote it, but it doesn't work how …

Software Development c++
Member Avatar for CPT
0
153
Member Avatar for anitha10

how to establish a connection after validating all the fields in a form can any one please help me with code

Software Development sql
Member Avatar for vincezed
0
133
Member Avatar for sonamsinha23

Hi i am getting this error even after i have done import java.io.*; Exception in thread "main" java.lang.NoClassDefFoundError: java/io/Console at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:127) Does anyone have any solution to this problem

Software Development java
Member Avatar for NormR1
0
61
Member Avatar for loveu

A java program that accepts one string as input Example Input: Bleach,22,13,TiteKubo Output: Name of manga: Bleach No. of copies: 22 Book borrowed: 13 Author: TiteKubo

Software Development java
Member Avatar for javaAddict
0
95
Member Avatar for dorien

Hi, I found a number of post talking about this in C, but could not solve it in C++. I have 4 hex characters to represent a length. These need to be stored like this, in the case where length=16 ([URL="http://www.easycalculation.com/decimal-converter.php"]this online converter[/URL] told me that 16 converts to A …

Software Development c++
Member Avatar for dorien
0
4K
Member Avatar for dresposure

Hello everybody, I am Pinak. I want to build an apllication regarding encryption. However, I am confused. [B][COLOR="Green"]Should I use Applet or Swing ????? [/COLOR][/B] Can you tell me what is the difference between the two??????:)

Software Development encryption java java-swing
Member Avatar for extemer
0
162
Member Avatar for churva_churva

/*A personal phone directory contains room for list names and phone number for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list,display the corresponding phone number.If the name is not found in …

Software Development gui java java-swing
Member Avatar for javaAddict
0
952
Member Avatar for churva_churva

This program should have a menu:it can use a switch method ... MENU: [1]=ACCEPT; [2]=DISPLAY THE SMALLEST; [3]=DISPLAY THE LARGEST; [4]=DISPLAY THE SUM; [5]=DISPLAY ALL; [6]=EXIT; Could someone help me to this problem,and this program that i do i still encountering some errors..please do try to help me.. import java.util.*; …

Software Development java
Member Avatar for churva_churva
0
235
Member Avatar for Arthas

I am a complete begineer in this field [B]multithreading.[/B] I have searched the internet; came across these [B]POSIX[/B] and [B]BOOST[/B] things. I dont know how to start. Can anuone guide me..I had downloaded the BOOST library but I couldnt find anything regarding the POSIX([I]and ? is the pthread[/I]). Which to …

Software Development c++ multithreading
Member Avatar for Arthas
0
168
Member Avatar for Juzaguy

[CODE]/* Round Robin Scheduling Simulation*/ #include <stdio.h> #include <stdlib.h> ////////////////////////////////////////////////////////////////////////// /* Process Data Structure */ struct process { int pid; /* Process ID */ int burst; /* CPU Burst Time */ int priority; /* Priority */ int working; /* Working time, for round-robin scheduling */ int waiting; /* Waiting time, …

Software Development c data-structure
Member Avatar for Juzaguy
0
232
Member Avatar for samurai14

I just want to know how Can I display an asterisk pattern like if the user selects on the combobox.additem = 1 then it will display * ** *** ** * If user selects combobox.additem= 2 then * ** *** ** * ** *** ** * then so on and …

Software Development visual-basic
Member Avatar for AndreRet
0
319
Member Avatar for erogol

Dear developers, I decided to code a little music player to get some experience with JAva, but I do not have any idea how to code it in Java. Is there any API or Library to be used for such project or any other suggestions? Thanks,

Software Development api java
Member Avatar for erogol
0
144
Member Avatar for SaranyaKrishnan

When i access a user-defined java class in matlab, it says >> t=Areas ??? Undefined function or variable 'Areas'. Areas is my classname in java. I dynamically added the path of the directory containing Areas.class file Thank you in advance

Software Development java
Member Avatar for SaranyaKrishnan
0
177
Member Avatar for angel392004

I'm working on an e-voting system right now. i'm having problems in passing a selection from list view to a list box. first is when an item is checked, it is pass in the list box.. but in my case the item is pass when the item is uncheck. second …

Software Development listview vb.net
Member Avatar for angel392004
0
246
Member Avatar for purijatin

Hello For example if i want to implement my own protocol, i can proceed by implementing the extra features on UDP on the application it self and thus achieving my task. But what if i want to implement it on the OS level just like TCP or any other protocol, …

Software Development java operating-system tcp-udp
Member Avatar for masijade
0
118

The End.