64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for chris5126

Hi, I wish to add the following to my web.config file: [code] <appSettings> <add key="networkDrive" value="C:\test"/> </appSettings> [/code] But everytime I add it i get the following error: [code] Sections must only appear once per config file [/code] I looked in the file to see if it appeared more than …

Member Avatar for achristov
0
298
Member Avatar for Psykocyber

Hi I'm having a problem with this piece of inheritance code. When compiling it displays this error " 'getAverage' : is not a member of 'Person' " but shouldn't the casting overcome that problem? Do i really need to have a virtual function in "Person" for this to work? Thanks …

Member Avatar for Psykocyber
0
129
Member Avatar for chris5126

Hi, Im creating a website that will be used to monitor servers, the user can add and remove servers and the servers list will be constantly chaning. I need to create a generic page to display the monitoring results that will adapt depending on which server the user selects. The …

Member Avatar for mail2saion
0
190
Member Avatar for Nawsheen

I have been surfing the net for hours but couldn't find anything as to whether it is possible to make a groupbox readonly. So if you can make it read-only how do you go about?Is there any code?Thanks

Member Avatar for omotoyosi
0
505
Member Avatar for JimD C++ Newb

Good afternoon, all! I'm in the process of writing a chat program. The server is completed, and if I simply telnet into the server with 2 different windows, 2 people can chat in fluid fashion. However, when I connect 2 clients, the chat appears in lock-step fashion. (ie. Client 1 …

Member Avatar for JimD C++ Newb
0
433
Member Avatar for JerryShaw

Hello, I typically hang out in the C# forum, however I hope someone here can help. I am converting a C++ program to C#, and I need to know how to handle a couple things: IOW I know almost nothing about C++, and this code is coming from a non …

Member Avatar for JerryShaw
0
271
Member Avatar for Lee_Sonnenburg

I'm writing a program that accesses a public web service. The web service has one web method. After referencing the service and creating an instance of it i'm retrieving the data from the web method. The problem: The data that gets retrieved is a long string of xml. What I …

Member Avatar for Lee_Sonnenburg
0
102
Member Avatar for nexocentric

Before I state my problem, which is in bold text, I need to give you a little bit of background. I'm working with 3 binary log files of about 35mb each. Each one holds approximately 65000 records. Each record, which is about 400 bytes, holds information containing the date, transmission …

0
65
Member Avatar for viki0077

I made this small C++ program, and it won't compile. Please if someone can help me to fix these 2 errors: error C2059: syntax error : ';' error C2059: syntax error : '}' The text is not in english, but it doesn't metter, just these 2 syntax errors so it …

Member Avatar for waldchr
0
170
Member Avatar for ShadowScripter

I stumbled upon another what I think is initializer, like int and char, named [B]HANDLE.[/B] It's also used when creating an application, I've browsed the net and found that it is a sort of pointer to an object that can change without me knowing it... eh... It wasn't really that …

Member Avatar for ShadowScripter
0
108
Member Avatar for booker

Hello I have a C++ project A which has to use heather/source files of project B. When I do include "B.h" then B's heather can't be seen because B and A are in a different sub-folders of the same folder.What can I do thank you

Member Avatar for booker
0
99
Member Avatar for dustman

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/thread28858.html"]this[/URL] >>[/I] [quote=Narue;145474]>u asking me if i cant code why should i be asking about sockets? No, I was asking you what you know so we don't waste time going over things that we don't need to. But if you want to be a dick about it, …

Member Avatar for jephthah
0
169
Member Avatar for Nickair

Hi i am trying to find a good C++ tutorial to help get me started with programming. Does anyone know of a good one?

Member Avatar for tux4life
0
104
Member Avatar for daviddoria

I found some code to parse command line arguments (is there an easier way? sed always seems so complicated...) [code] #!/bin/bash for i in $* do case $i in --files=*) FILES=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` ;; --default) DEFAULT=YES ;; *) # unknown option ;; esac done echo $FILES echo "File …

Member Avatar for hexram
0
110
Member Avatar for Trav580

Ok, so I just started using Python last week and I have written 4 VERY simple, non-GUI programs. This is for my intro to game physics class and I happen to be stuck on the last project until my next class. What this project is SUPPOSED to do is ask …

Member Avatar for Trav580
0
453
Member Avatar for viki0077

I'm really a beginner in C++ programming, and the above problem is just a part of c++ excercise. Can somebody give me a tip how to implement this in C++? The biggest problem for me is to implement and write this: • red+yellow light on cat traffic light is 2 …

Member Avatar for tux4life
0
8K
Member Avatar for jomacho

Hi, this is my first post here. The fact is i'm not a programmer and i need help. I have a software that i need to solve a vehicle routing problem for my thesis. But i only got the source code for it, one header file and 6 cpp files. …

Member Avatar for tux4life
0
127
Member Avatar for vidaj

Hi, In my current project I'm trying to compose some objects at runtime based on a string containing the object-configuration. Based on the "Favour composition, not inheritance" pattern, but done runtime. My usecase: I have a downloader that downloads web-pages. The downloader is configured with a set of request-handlers and …

Member Avatar for vidaj
0
105
Member Avatar for daviddoria

I need to get an unknown number of file names from the command line, ie ./python MyScript.py --Files 1.txt 2.txt 3.txt [code] parser.add_option("-n", "--NumFiles", type="int", help="Number of files") parser.add_option("--Files", nargs=options.NumFiles, help="a triple") (options, args) = parser.parse_args() [/code] Clearly this will not work because options.NumFiles is not available until after parse_args() …

Member Avatar for daviddoria
0
197
Member Avatar for daviddoria

I want to parse some simple arguments from the command line. This shows all of the arguments: [code] #!/usr/bin/python import sys #print all of the arguments for arg in sys.argv: print arg [/code] but I want to handle something like [code] --file a.txt [/code] or [code] --x 12 --y 13 …

Member Avatar for jlm699
0
111
Member Avatar for Grn Xtrm

Hello, I'm facing another problem with vectors, this time with the problem of converting infix to postfix. The compile process completes, but I recieve an error after I enter the infix expression. Here is the exact error I recieve: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 43 >= 2 at java.util.Vector.removeElementAt(Vector.java:511) at …

Member Avatar for Grn Xtrm
0
142
Member Avatar for serkan sendur

i have the following code : [CODE]static IScanningService scanningLayer = null; public static IScanningService BarcodeReader { get { if (scanningLayer == null) { string serviceName = GetServiceName(); try { if (deviceService == null) deviceService = Assembly.Load(serviceName); object o = deviceService.CreateInstance(serviceName + ".BarcodeReader"); scanningLayer = o as IScanningService; scanningLayer.AutoStartScan = Global.device.AutoStartScan; …

Member Avatar for serkan sendur
0
116
Member Avatar for cherryduck

Hi everyone, I'm making a program to store library books details, my constructor is such: [CODE]public Book(String author, String title, String publisher, int year)[/CODE] and I'm using an array to store and number the books and details, as such: [CODE]for(int i = 0; i <= 100; i++) { String book[i] …

Member Avatar for cherryduck
0
132
Member Avatar for darkagn

Hi all, We are experiencing the following problem with the latest versions of IE and FF in regards to sessions. If anyone has encountered these problems before, any insight would be valuable. [B]In FF:[/B] An ongoing problem where sessions are saved across multiple tabs and windows in the same machine. …

Member Avatar for nutty2chat
0
237
Member Avatar for turbomen

Dear Sir, The following is a simple program in Delphi. Could you tell me the meaning of the colour in red. program Negatives; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var balance, posNeg:integer; begin randomize; writeln ('Generating your bank balance'); writeln ('Please wait .....'); sleep (2000); create a random number between 0 …

Member Avatar for FlamingClaw
0
98
Member Avatar for turbomen

Dear Sir, The following is the very basic programme, but I often miss the comma and delimiter which is red in colour. Could you express the meaning of this? program AgeCalculator; {$APPTYPE CONSOLE} uses SysUtils; var age, months, days, hours: integer; begin writeln ('How old are you?'); readln (age); writeln …

Member Avatar for FlamingClaw
0
128
Member Avatar for frozon

hi am new to java and have a problem in displaying the x and y points on the graph to solve this ax3+bx2=x+d=0 here is the code import java.awt.*; import javax.swing.*; import java.awt.event.*; /** * PROGRAM: Cubic * DESCRIPTION: This program solves the cubic Equation for a given range of …

Member Avatar for frozon
0
121
Member Avatar for turbomen

Dear Sir, The following is a good example of Pascal. I understand the font with red in colour is the location of display into screen but could you express the meaning of sales1:7:2, sales2:9:2, sales3:9:2, sales4:9:2, sales5:9:2, sales6:9:2?? Cheers, uses crt ; var sales1, sales2, sales3, sales4, sales5, sales6, total_sales …

Member Avatar for FlamingClaw
0
121
Member Avatar for kate@deni

I am new to php. I have any issue that i want to use dynamic links and want to rewrite them. I want to use single page for all the pages but different urls.

Member Avatar for kate@deni
0
104
Member Avatar for mhangman

Hi, Im trying to write an irc client with python. This is its login page(i hope it will be) [CODE] #!usr/bin/env python # -*- coding: utf8 -*- import gtk, sys, socket class PyApp(gtk.Window): def con(self): iserver = self.entry.get_text() inick = self.entry2.get_text() room = self.entry3.get_text() password = self.entry4.get_text() socket.server = iserver …

Member Avatar for mhangman
0
102
Member Avatar for group256

Hello everyone, I'm pretty new here. I'm facing a problem, the compiler says "Segmentation fault". Please take a look at the code and tell me where I'm going wrong. I tried hard to figure it out, but I couldn't. Thanks a lot. [code] int **PointerArray; *PointerArray = new int [LENGTH]; …

Member Avatar for group256
0
166
Member Avatar for mitchandsuzy

hi everyone, I have searched for and answer to this and cannot find any solution. So please forgive me if it is a straight forward answer! I have a module that is imported. It has a number of subroutines inside it that need to be run, one for each year. …

Member Avatar for mitchandsuzy
0
89
Member Avatar for nexocentric

I'm using the following link to learn how to pass VB string arrays to a C/C++ dll for editing. [url]http://support.microsoft.com/kb/118643/EN-US/[/url] The problem I'm having is, where is the vbapi.h? I've searched my hard drive for it and found nothing. I've also searched the net for where it could be possibly …

Member Avatar for nexocentric
0
195
Member Avatar for Buckets78

Let me start out by saying I've been playing with Python for a few weeks now, was recommended by a friend who uses Perl, and it's been quite enjoyable to play with. I've no other programming experience except HTML/CSS. This site has been a wealth of information and an excellent …

Member Avatar for Buckets78
0
89
Member Avatar for servis

i want to validate whether the checkbox is empty or not, if it is empty, the alert box show message, but the following code is not working... [ICODE] function validate(form) { with(form) { if(agreement.value.checked==false) { alert("Please commit the agreement to continue."); agreement.focus(); return false; } } [/ICODE] Secondly, i want …

Member Avatar for servis
0
294
Member Avatar for max.yevs

I'm trying to make a perfect numbers script but having almost no success... Perfect numbers are those whose factors add up to twice the number itself... factors don't have to be prime... So like the first four are 6, 28, 496, 8128... 28: 1,2,4,7,14,28 1 + 2 + 4 + …

Member Avatar for max.yevs
0
207
Member Avatar for helixkod

I am trying to create random rectangles and ovals. This is what i ahve so far: [CODE]import java.awt.Color; import java.awt.Graphics; public class MyRectangle { private int x1; private int y1; private int x2; private int y2; private Color myColor; //constructor with input values public MyRectangle( int x1, int y1, int …

Member Avatar for helixkod
0
129
Member Avatar for ihatehippies

The question is in the title. How do you create a list r = range(5) and just reference the data without referencing the object itself. ie. o = r .. I just want to reference range(5) without referencing r itself. if i did o.pop(0) it likewise does r.pop(0) ...ideas?

Member Avatar for ihatehippies
0
80
Member Avatar for Dabeam

I want to use a for loop to display * ** *** in javasript does anybody know how?

Member Avatar for Airshow
0
68
Member Avatar for jmil2

I am working on a problem that requires that i create a 3x3 matrix in python using the list function. these are the functions that im required to use to create my matrix: def mlist(size): list = [] for i in range(size): list = list + [None] return list def …

Member Avatar for adam1122
0
8K
Member Avatar for Dabeam

How do i use a function to find the average of the values in an array of numbers passed as argument to a function.(using java script) thank you for your help...

Member Avatar for Airshow
0
106
Member Avatar for JAGgededgeOB172

Hi all, My program is supposed to read data from an input file and position the read data into an AVL tree - in alphabetical order. My output at the end is supposed to show each node in this format... i.e. (Current, Current->LeftChild (could be NULL), Current->RightChild (could be NULL), …

Member Avatar for nucleon
0
176
Member Avatar for alicem

Hi, I'm a beginner, and just want to display an image using Python. I have this code... [code]from PIL import Image Image.open("pic.jpg").show()[/code] which according to what I've read, should work. However, it just opens Windows Photo Gallery and says 'There are no photos or videos selected'. I have ensured that …

Member Avatar for alicem
0
73
Member Avatar for Philmagrill

I am creating a program in c that finds out the weather and changes the desktop background accordingly. So far i have managed to connect to the internet and DL the bbc rss feed to the file, which i can then open up. I have almost managed to get it …

Member Avatar for jephthah
0
109
Member Avatar for ellimist14

Ok I'm going to try to be as specific as possible. Here's my input file (at least to some effect): [code] #'s searched 1 3 3100 56801 .52 87925.32 2 Mitchell 1 boudreax 2 1 4 5480 56825 .81 68939.09 0 1 5 8520 56829 .89 10892.40 3 guillott 3 …

Member Avatar for ellimist14
0
98
Member Avatar for Duki

Hey everyone, I'm trying to work with Sets. I have a function [I]Union[/I] that takes a class type [I]Set[/I] as it's parameter. The function returns the union of class A and B. Here is my code: [code=c++]Set Set::Union(Set setB) { Set result (maxItems); for (int i = 0 ; i …

Member Avatar for Duki
0
300
Member Avatar for sammyk

Hello everyone, I really need some help with this project I am working on. So I need to go through a text file to search for a particular string (say something like 'play') and then if that word exists in a line I need to find a string after that …

Member Avatar for sammyk
0
102
Member Avatar for Lido98

Hi friend I have a question of 2 parts I have to insert new entries from a file in a table once every month Is there a way to shcedule an sql query to run once per month, and the second part is how can I only insert some of …

Member Avatar for Lido98
0
105
Member Avatar for Sky Diploma

Hello all, I am solving some of the exercises in a new book of C++ I am having trouble in declaring [quote=THE C++ BOOK]A Reference to a array of 10 Integers[/quote] Its on the 19TH and 30th line. I have the total code over here. [code=c++] //Declarations for all the …

Member Avatar for MrSpigot
0
260
Member Avatar for julseypart

does any1 know why its doin this, so annoying! spent ages tryn to figure it out.. [URL="http://img17.imageshack.us/img17/4749/linksi.png"]link[/URL]

Member Avatar for julseypart
0
99

The End.