43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Member 785459
Member Avatar for lionaneesh
-1
105
Member Avatar for phummon

Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to …

Software Development algorithm c++ queue socket-programming
Member Avatar for phummon
0
279
Member Avatar for Tommymac501

We get files from a unix system that are delimited with linefeed only, this is not a problem. The problem is that within some of the fields themselves, there are carraige controls ("\r\n"). Reading the file using OS will see a row like this and stop reading at the crlf. …

Software Development python unix
Member Avatar for TrustyTony
0
11K
Member Avatar for VBNick

I have a small test program made, and it actually fully works. It connects, and you can send messages back and forth.....but for some reason, when I call connect(), It returns SOCKET_ERROR, but connects, and works fine anyways. Does anyone know why? here is the code: see lines 160, 161 …

Software Development c++
Member Avatar for VBNick
0
222
Member Avatar for adaniel058

I have a problem where I need to be able to create an array using the data from the text file. The first line of the file is the array size and the following values need to be put into structs. There may be more than one array per txt …

Software Development c++ file-system
Member Avatar for adaniel058
0
368
Member Avatar for Nikon70

When I read a text file as the code below the first line returns as nothing. I checked the text file and it contains 3 lines before the read. After the read the first line is blank the following 2 lines have values. I don't write back to the file, …

Software Development vb.net
Member Avatar for Nikon70
0
97
Member Avatar for euroazn

Suppose I have an Outlook account that is logged in at the computer. How can I send an email from this account to a given contact (if this can be a group, that would be really nice) via a C# program? Thank you very much!

Software Development c# email
Member Avatar for euroazn
0
186
Member Avatar for Zetlin

Hello everyone, first of all I would like to say that I'm new to java and I'm getting this error while trying to compile a program from a book that I am using to learn the language. Ok so the program is very basic just two classes here is my …

Software Development java
Member Avatar for javaAddict
0
1K
Member Avatar for Ketsuekiame

EDIT: Deleted the original question. After reading, I realised that I would have to paste so much additional code that it would take someone a couple of days just to understand what was happening in my own code that it may detract from the issue at hand. Problem: When I …

Software Development
Member Avatar for Ketsuekiame
1
180
Member Avatar for awofesof

Dear members I am new to the world of XML and XSL transformation, i hope someone can help me with this XSL transformation for an XML. I am not geting the expected result as described below The following is the XML that I am trying to transform to another XML …

Software Development xml
Member Avatar for awofesof
0
249
Member Avatar for Tech B

I am trying to access some functions with in a dll I downloaded. I know I need to use ctypes, but all the examples and tutorials use windll.kernel or windll.user32 respectively. How would I go about calling a function with in xyz.dll? EDIT: Never mind, with a bit more digging …

Software Development python
Member Avatar for Member 785599
1
197
Member Avatar for adams161

I use almost every day, [url]http://www.mibbit.com[/url] It's a web client for IRC. It has one real nice feature. when i type, if i misspell a word, it sort of writes a line through the word, and i can right click for spelling suggestions. I think actually it might be my …

Software Development java open-source web-browser
Member Avatar for askkuber
0
159
Member Avatar for Anyzen

Hello... In strings i learned how to sort about numbers... the question is, how does one sort letters? there are some sort in alphabet here in Daniweb but i cant understand its process is Letter A > than Z? is the computer using ascii values? isn't A(65)< Z(90)? if in …

Software Development c++
Member Avatar for jonsca
0
92
Member Avatar for Member 785267
Member Avatar for G_Waddell
-1
96
Member Avatar for virusisfound

hello, Can u tell me how can i use try...catch in following coding. This code is for save the data. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace savita { public partial class Form5 : Form { DataTable dt; …

Software Development
Member Avatar for pritesh2010
0
108
Member Avatar for pepsoft239

Hi All I have a requirement to develop a VB application to download a pdf file from a server using an example URL [url]http://xxxxxxxxxxxxx/pdffiles/yyyyy.pdf[/url]. I need to perform a silent download and print the same to the local printer. As this is going to be a scheduled task, I need …

Software Development pdf printer visual-basic
Member Avatar for meilbeck
0
3K
Member Avatar for alex9292

hi Im trying to write a program to store info on books (title, author, number of pages and price) i have a class for books that works and the program accepts input from the user correctly but my problem is that it has to throw a exception when the price …

Software Development
Member Avatar for nick.crane
-2
93
Member Avatar for WildBamaBoy

In the code below I have a class that handles what folder the user is in, so they can browse through multiple folders. I know that this isn't going to work right just yet. This is the first time I've tried using classes and I don't understand them so well. …

Software Development python
Member Avatar for WildBamaBoy
0
113
Member Avatar for orcboyx

Is there an easy way to convert a simple integer into a boolean type?

Software Development java
Member Avatar for javaAddict
-1
886
Member Avatar for kurtzky

Hey guys. I have a question. In my program, I'm calling a Process (Internet Explorer) on button click, but I want to customize the size of the IE window being opened to something like 800 x 600 pixels. Do you know how do it? Below is my base code. [CODE]Process …

Software Development api c#
Member Avatar for Lusiphur
0
3K
Member Avatar for maira74

HEre is my C++ program I made.... first I will put the directions and then the program. I cant seem to compile it for some reason so can anyone tell me what I did wrong please!! Write a C++ program that does the following. Besides #include <iostream>, you will need …

Software Development c++
Member Avatar for NP-complete
0
238
Member Avatar for ChaseRLewis

[CODE] #include <iostream> #include <string> using namespace std; int main() { string character; cout << "capacity: " <<character.capacity() << endl << "Input a sequence: \n"; getline(cin,character); string reversestring; int counter = 0; for(int i = character.length() - 1; i >= 0; i--) { reversestring[counter++] = character[i]; } cout << reversestring; …

Software Development c++
Member Avatar for ChaseRLewis
0
169
Member Avatar for arch_mah

I want to insert number for City_Id and City_name , i wrote a query for auto generate number for City_Id,working fine but in the city name i want to avoid inserting duplicate value like if Mumbai is a City ihave already saved then system should not allow that name again. …

Software Development vb.net
Member Avatar for arch_mah
0
103
Member Avatar for prem2

Hi Daniweb team, I need to understand newinstance in java.I do no how to implement it and i tried this program but getting some errors. 1.Can anyone tell me how to use new Instance and what mistakes i have made in this program.? [code] import java.io.*; public class sample { …

Software Development java
Member Avatar for prem2
0
102
Member Avatar for Member 784510

Hi Friends, I have a strange problem and I need your support to get this resolved. Recently I have created a setup and deployment project for my VB.NET application. In that seup project unknowingly I changed the command section to .exe. Now after Installing the application in my pc, whatever …

Software Development vb.net
Member Avatar for Member 784510
0
111
Member Avatar for midget66

I am working on a program in c and I am trying to declare a ten element array, using a for loop to insert the elements. I am also using a second for loop to acquire the sum of all the elements in the array. I'm new to programming so …

Software Development c mathematics
Member Avatar for midget66
0
94
Member Avatar for bbman

Say for example I have: [CODE] List<string> itemset1 = new List<string>(); List<string> itemset2 = new List<string>(); // Linkedlist itemsetcurrent [/CODE] Which is declared outside the functions, and must be accessible from all the functions. Now, I have a code like this: [CODE] private void SetList(List<string> list) { itemsetcurrent = list …

Software Development linked-list
Member Avatar for vdeych
0
180
Member Avatar for Brandon515

ok what i'm trying to do is make a pong game in an applet. here's my code: [CODE]//<applet code = Pong width = 800 height = 600></applet> import javax.swing.*; import java.awt.event.*; import java.awt.*; import com.bruceeckel.swing.*; public class Pong extends JApplet implements KeyListener { int px1 = 770, px2 = 20, …

Software Development java java-swing
Member Avatar for NormR1
0
108
Member Avatar for Lanaaa

Hi, I'm kinda new to the c# programming and I have an assignment to make a simple app for accounting. So, I made a DB in visual studio, made a new project that is connected to that DB. Table B has a column 'FK_TableA'. On a form I have put …

Software Development open-source visual-studio
Member Avatar for Lanaaa
0
104
Member Avatar for VBNick

Hi, I am trying to make a windows forms application that starts using Sub Main instead of the Form1_Load event. I have tried putting this in Public Class Form1 [code="vb"] Public Shared Sub Main() MsgBox("ASdf") End Sub [/code] and also tried putting this at the top of the programs code …

Software Development vb.net
Member Avatar for VBNick
0
164
Member Avatar for Kanem

••••i am trying to build a clock using python where the clock is about 1/2 an earth second, it would have 11 seconds in a minute, it would have 5 minutes in an hour, and it would have 3 hours in a day. it would also have 3 months per …

Software Development python
Member Avatar for TrustyTony
0
146
Member Avatar for Member 784833

hey could you please help me :( (((write a function called acronym which read a file which contains words, and create an acronym by taking the first letters of the words in a phrase and making a word from t hem. Then save all acronyms to a file called myacronym.txt.)))

Software Development python
Member Avatar for Member 784833
0
114
Member Avatar for bbman

Hey, How would I go about finding the amount of values, say "DaniWeb" in a List<string>? I just need a number, not their index. Cheers

Software Development
Member Avatar for bbman
0
134
Member Avatar for Dehatim

I am taking my first class in Java and am having problems with converting lowercase letters to uppercase and am not having success. The program compiles and executes. However, the lowercase letters input by the user are not converted to uppercase. I think the problem is very simple, but I …

Software Development java
Member Avatar for Member 784908
0
703
Member Avatar for Kanoisa

Hi guys, As some of you may know im working on learning more c++ and trying to become a good programmer, iv got things like classes, function pointers and template classes under the belt as far as i can see (although to be honest i have never found a place …

Software Development c c# c++ opengl
Member Avatar for Ketsuekiame
0
198
Member Avatar for prashanth s j

Hi, I get a the following as output after executing a command remotely: for example; No of records Date Status 1 7/7/2010 Progress Total Number of records Processed so far: 1012 Currently active records: 1 Now evidently Python treats this out put as a string. Now my problem is how …

Software Development python
Member Avatar for Beat_Slayer
0
104
Member Avatar for yap_1991

Hi All I really need help in this. Im supposed to "extract" information from text files . the text files looks somethings like this: MODEL 1 ATOM 1 N SER A 253 -19.559 -25.512 -41.130 1.00 0.00 N ATOM 2 CA SER A 253 -18.749 -26.500 -41.895 1.00 0.00 C …

Software Development java
Member Avatar for NormR1
0
644
Member Avatar for saksaz

hi i have create a database in sql , it is opened in my system, and i shared the database into another system,i was updating my datas from another system, form and database everything is working fine , but the problem is when i try to open the report it …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
2K
Member Avatar for Stefano Mtangoo

Hi, I'm beginning JDBC and I'm conversant in SQL. But I need to Connect to database and that where the problem lies. All I have done is adding mysql/j connector Jar to Netbeans project and wrote code below to test. It cannot connect to database. Also IDE throws error: [CODE=JAVA] …

Software Development ide java java-netbeans
Member Avatar for Stefano Mtangoo
0
490
Member Avatar for phoenix911

Hi i have a program that transforms my xml files with the stylesheets i applied and saves them as html file. i also used cooktop to create my stylesheet as well as to see the result... my problem is, that when i transform it, i have a <hr />tag, the …

Software Development c# xml
Member Avatar for phoenix911
0
104
Member Avatar for xaop

Please let me know where i have done the mistake [CODE]#include <stdio.h> #include <conio.h> #include <math.h> void main() { int f=0,s=1,n; n=f+s; if(n<=18); { printf("%d" ,n); f=s; s=n; n=f+s; } getch(); }[/CODE]

Software Development c
Member Avatar for xaop
0
195
Member Avatar for Naruse

hi all, i want to use asterix character (*) in input box. ho to do this???

Software Development visual-basic
Member Avatar for Member 784683
0
202
Member Avatar for daudiam

When a variable goes out of scope in Java, is it immediately removed from stack and one strong reference to the object it pointed to removed ?

Software Development java
Member Avatar for daudiam
0
4K
Member Avatar for leiger

I have imported the Apache XML-RPC jar files, and got them working (has taken me all day to figure out how to get it working - so I'm kind of frustrated at the moment ;D) ... but that used the execute(..) method which requires two parameters ... there was no …

Software Development api client-server java xml
Member Avatar for leiger
0
2K
Member Avatar for modalgvr

Hello, I need help to write a Python code in order to from this input (a string, len (data) = 5, len (data[0])=63): ["['1426', '1095', '1094', '1093', '1092', '974', '869', '1572']\n", "['1495', '1305', '1264', '1227', '1215', '1142', '1141', '1115']\n", "['1001', '997', '927', '904', '871', '776', '712', '612']\n", "['567', '538', '429', …

Software Development python
Member Avatar for TrustyTony
0
178
Member Avatar for leiger

I am attempting to access an XML-RPC API method using a Java client. I'm fairly certain that the server is written in Python. The API is part of the wiki farm Wikidot.com API info: [url]http://www.wikidot.com/doc:api[/url] API method info: [url]http://www.wikidot.com/doc:api-methods[/url] Does anyone here know what the equivalent of this statement is …

Software Development api java python xml
Member Avatar for leiger
0
549
Member Avatar for dreamy_ananya

Hi, I have a project that has 11 classes. Now each class refers to the tasklayer ( another set of multiple classes) and instantiates them everytime. For ex: TaskLayer: contains 3 classes under same namespace. A.cs ------ [CODE]public class A{}[/CODE] B.cs --------- [CODE]public class B{}[/CODE] C.cs -------- [CODE]public class C{}[/CODE] …

Software Development
Member Avatar for vdeych
0
353
Member Avatar for bibiki

hey there, I have two pieces of code that I expected would behave the same. However, what I noticed is that one of them works fine, the other does not at all. I need help from someone experienced to explain what's going on under the hood. the code that does …

Software Development java
Member Avatar for NormR1
0
138
Member Avatar for Mikey12345

Hi im new to c#.. just wondering how to convert this vba code:- [code] Sub AddUP() x = 1 For i = 2 To 100 x = x + i Next i ActiveCell.Value = x End Sub [/code] Best Regards

Software Development c#
Member Avatar for Zinderin
0
171
Member Avatar for Cort3z

Hi. I got a noobish question: Is it possible to return an array "directly", so, something like this. [CODE] public int[] getArray(){ return int[]{this.intA, this.intB}; } [/CODE] I know I can just make the array first. But does this not use unnecessary cpu time and memory? This is going to …

Software Development java
Member Avatar for Cort3z
0
110

The End.