43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for BobFX

Hi, I am learning C#, having a good C background as a programmer. I need to port a C application to C#, but there is a very basic problems that stalls me. My C program has many subroutines, each of them in its own file. They share a common .h …

Software Development c#
Member Avatar for BobFX
0
658
Member Avatar for shack99

Hey, I’m really new to java..so I'm really not sure what some of the errors mean , when I run this program it reads data from the file and all but I can’t get it store new data in a new file, the file “exo” does get created though. Here’s …

Software Development java
Member Avatar for shack99
0
119
Member Avatar for sidra 100

what is the difference between dynamic array and simple array

Software Development c++
Member Avatar for bilalislamabad
0
79
Member Avatar for ShadyTyrant

Hi there daniweb, im looking for some help. I have two classes MainWindow(wx.Frame), and AddTask(wx.Dialog). MainWindow contains a listbox called task_list. When AddTask is created I want the user to fill out the required info and and then click a button activating an on_click event. In that event I want …

Software Development python
Member Avatar for ShadyTyrant
0
115
Member Avatar for cthoes

below two are same program except i interchange to accept input value ....in the first program i accept first using scanf and the by getchar()...which didnt allow to accept character value . but in the second program i first accept getchar()value and then scanf(). so it works fine but i …

Software Development c c# c++
Member Avatar for cthoes
0
101
Member Avatar for WOPR

>>> from os import * >>> a = [] >>> a = listdir('.') >>> f = open(a[0],'r') Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> f = open(a[0],'r') TypeError: an integer is required doesn't work, please help me

Software Development python
Member Avatar for WOPR
0
90
Member Avatar for Destray

I'm working with Tkinter and I need to make 600 buttons in a grid of 6x100. Is there a way to produce generic variables by going through a for loop? Or do I have to type all 600?

Software Development python tkinter
Member Avatar for Destray
0
207
Member Avatar for BestJewSinceJC

I'm wondering where to find what values system() accepts. For example, I want to list the server's OS type. I already did man system, did not find it very useful. And google is returning a lot but nothing relevant.

Software Development c
Member Avatar for BestJewSinceJC
0
78
Member Avatar for Mitja Bonca

I would like to do a seperated class with a method which will return CustomerID (this will be a select query from db), based on the Costumer`s name which would come into this method (it will come from a form1`s method - from a textBox). I am not sure how …

Software Development
Member Avatar for DdoubleD
0
126
Member Avatar for monstercameron

need help correcting! first day,first 2 hours, first python program,(only had a little dark basic) [CODE]active="on" def ondamenu(): print "" print "enter integer 1 or 2" print "" print "opt.1 find the circumference" print "opt.2 find the radius" print "opt.3 quit calculator.py" print "" return input ("enter your choice: ") …

Software Development python
Member Avatar for woooee
0
153
Member Avatar for Fire_Michel

i am connecting mirochip to serial com232 i am sending from the pc to micro controler then the micro controller send back that he recieve so the pc send the next word how to wait the incoming serial data and how to define the timeout(for example 10 second) thanks at …

Software Development
Member Avatar for Fire_Michel
0
109
Member Avatar for Meinsamr

Create New instance of a class, but use a variable value as name..Possible? And yes, I've searched everywhere, but haven't found any useful. So i'll start by asking here. example code.. Error message: A local variable named 'className' cannot be declared in this scope because it would give a different …

Software Development
Member Avatar for ddanbe
0
187
Member Avatar for suho

I have a map of pointers to objects, i want to delete some randomly chosen pointers and the objects they point to. Is it possible to do it without using libraries like boost ? I assign the map as follows [CODE]map<int,particle*> particle_map; particle* particles= new particle[number_of_particles]; for(i==0;i<number_of_particles;i++) { particle_map[i] = …

Software Development c++
Member Avatar for suho
0
116
Member Avatar for Mitja Bonca

This is how I have a listView:[URL="http://img200.imageshack.us/img200/2497/clistview03.jpg"] PICTURE[/URL] For example, I have clicked on the 6th row (which is colored blue) and with a double click I want to insert "SomeName" into a 2nd column (called 1.rezervacija) beside the 9:30. How to do it so? I need something else, with …

Software Development listview
Member Avatar for DdoubleD
0
194
Member Avatar for tfmontague

I have a class function - which I am trying to pass array values - however the function returns the values even when I don't use the reference &. WHY? COULD SOMEONE EXPLAIN THIS? [CODE] Block example; // create an instance of the class 'Block' int Array1[3] = {0,0,0}; // …

Software Development c++ linked-list
Member Avatar for alvinwong
0
87
Member Avatar for sree22_happy

hai friends i want a project title in j2ee to do my project plz help me :sad:

Software Development java
Member Avatar for peter_budo
0
178
Member Avatar for kadilacgh

Hi am working on a project and am using sql server 2005 express as my database server, the problem is i can;t connect to the sql server from any machine on my local network (windows). Below is my connection string [CODE]con.ConnectionString = "Data Source=webserver1\SQLEXPRESS;AttachDbFilename='C:\POSM_DB.mdf';Integrated Security=True;Connect Timeout=30;User Instance=True;" [/CODE] It works …

Software Development sql vb.net
Member Avatar for sknake
0
188
Member Avatar for Instinctlol

Can anyone tell me why it loops my menu() twice after i enter the numbers from Add(). I know it has to do something with cin.ignore() but I don't know where to place it so it doesn't loop my Menu() after. [CODE]#include <iostream> #include <string> #include <fstream> using namespace std; …

Software Development c++
Member Avatar for farooq007
0
118
Member Avatar for Thumb2

[code=C++] #include <fstream> using namespace std; void a(ifstream b){} void main() { ifstream b("c.txt"); a(b); // error caused when function a() is used } [/code] Why is this producing an error? Thank you, Thumb2

Software Development c++
Member Avatar for jonsca
0
146
Member Avatar for Egypt Pharaoh

I want to create application that create a textBox after 10 second from starting and create a label after 20 seconds from starting

Software Development
Member Avatar for sknake
0
112
Member Avatar for GoGames1315

How do you find the CPU, of your computer, using dev-pascal ?

Software Development pascal
Member Avatar for FlamingClaw
0
109
Member Avatar for laNeek

Greetings! I've been messing around with a bit of code for a while now and I've got it compiling etc etc. The only problem is with perfecting the quicksort function (probably trivial, but then I'm not very skilled). From the output file, it seems to 'sort of' sort the string …

Software Development c++
Member Avatar for laNeek
0
104
Member Avatar for Dmennite

Hello all, Not sure if this is the proper forum for this but first: I am using Visual Studio 2008 and MySQL Server Version 5.1.42 and Client Version 5.1.11 programming language C# issue: save button from windows form for record editing using databindings and textboxes... is there a way to …

Software Development client-server mysql visual-studio
Member Avatar for Dmennite
0
180
Member Avatar for Stefano Mtangoo

I love to learn the hard way i.e with real world examples. I thought to make MP3 Player, but I changed mind and now I want to make small SQLIte driven app. How do you manipulate SQLite with Java? I'm googling to see if I will catch noobish things :-/

Software Development java sqlite
Member Avatar for Ezzaral
0
153
Member Avatar for student1t

Hi, I am trying to search for a word I have entered into a list. I could list all entries so far. But I am having a hard time figuring out a function that can search for a particular word on the list. Below are the codes. I commented out …

Software Development c
Member Avatar for student1t
0
80
Member Avatar for HITMANOF44th

hello out there i have a program i made to scan barcodes and reformat the data it gets from com2 now when the thing scanns theres a function called to a class but if there is no new data present it just sit's there waiting for new data ? and …

Software Development c++
Member Avatar for HITMANOF44th
0
102
Member Avatar for bijayswain

How to use reg add function in c or c++ program I am using system("reg add .........."); but this gives me a error " program too big to fit in memory" what could be the problem. please suggest

Software Development c++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for Son of a gun

Is it possible to simply check a java String argument is present and return a boolean true or return false if the argument is of a Null value?

Software Development java
Member Avatar for Son of a gun
0
122
Member Avatar for Agni

[code=c++] class A: public B { C* p1; C* p2; } [/code] What would be a correct assignment operator for class A? We have to ensure that we do not leave any object in an inconsistent state due to any exceptions or create any dangling references or memory leaks.

Software Development c++
Member Avatar for Dave Sinkula
0
153
Member Avatar for Iam3R

Hi, i understand merge sort & quick sort even i can write the programs but iam unable to understand its complexity. its very easy to derive complexity equations for selection & bubble sort. as the code is little complex & recursive nature i am unable to understand its complexity and …

Software Development c
Member Avatar for Narue
0
127
Member Avatar for especta

Hi haw to count found maches in memo and show in tedit thanks.

Software Development pascal
Member Avatar for especta
0
105
Member Avatar for rwagnes

I am supposed to create a chain of N processes, where N is the command line parameter. Each process creates a child process, prints out its own PID and its parent's PID, and then waits for its child to terminate by calling the wait() function. [B]Here is my code:[/B] [code=c] …

Software Development c
Member Avatar for shakunni
0
240
Member Avatar for Instinctlol

can anyone explain to me what return does? I know that return(0) stops the program at any given point, but what does returning others do?

Software Development c++
Member Avatar for Narue
0
116
Member Avatar for bluem1

Ok, sorry to be so needy this week! Here is the situation. I have discovered how to do a linq query to get my data from my xml but when I return it as a string to a list box it is coming in as one large line. No breaks. …

Software Development apple first-post listview vb.net xml
Member Avatar for bluem1
0
135
Member Avatar for JuvenileMango

How can I write a definition for a function that is passed a list of numbers and returns the sum of the numbers in that list using a while loop? I'm trying this, but it's not working def sumList(): num = [1,2,3] sum = 0 while num != str: for …

Software Development python
Member Avatar for JuvenileMango
0
92
Member Avatar for nccsbim071

Hi i want to compress the file on the file during FTP file download. Is it possible to do that. I have an application that downloads the files from remote FTP server as windows forms application using VB.net Please help Thanks

Software Development file-system vb.net
Member Avatar for sknake
0
895
Member Avatar for princesspretear

hi all, i am currently writing a program as my school homework. it used to work and when i changed the column name in my database, it won't save data to the database. i am currently using sql server 2005 and visual studio 2008 and c# language. here is my …

Software Development sql visual-studio
Member Avatar for sknake
0
212
Member Avatar for TheStig01

Hi all, Last night i started coding a database with java. The way i was going to do it was through netbeans with a database connection to an sql database. Then i went to school and told my teacher how i was going to do it and he told me …

Software Development gui java java-netbeans
Member Avatar for TheStig01
0
952
Member Avatar for ThomsonGB

In the following example I am trying to open a file that I have named in the command line for Read. Does anyone have any suggestions? ========================================== [code] #include "stdafx.h" #include <fstream> #include <iostream> using namespace System; using namespace System::IO; using namespace System::Text; using namespace std; #define RSIZE 1 // …

Software Development c++
Member Avatar for ThomsonGB
0
139
Member Avatar for bumassjp

Well basically I keep a null value returned code and I have the same issue in all 6 of my functions. Here is the error code - `Warning BC42105: Function 'GetTimesheet' doesn't return a value on all code paths`. A null reference exception could occur at run time when the …

Software Development vb.net
Member Avatar for bumassjp
0
1K
Member Avatar for Egypt Pharaoh

how can I print a report of the page if it has a many text boxes that I want to print it in one decoment

Software Development
Member Avatar for Medalgod
0
120
Member Avatar for ThomsonGB

If I Open a file using something like: FileStream^ fs = File::OpenRead( path ); How can I determine the size of the file so that I can read all of the data bytes in the file? What sort of Read would you use to read one byte at a time. …

Software Development c++ file-stream file-system
Member Avatar for ThomsonGB
0
228
Member Avatar for theABCasian

hello all im having as the title would suggest a runtime crash in my program cant quite figure out why hits some ware around enter tenant name. line 53 [CODE]void ComplexInterface::editUnit(){ bool test = false; do { int unitToEdit; cout << "choose a Unit to edit " << endl; for …

Software Development c++
0
66
Member Avatar for Lida_pink

How can I stop shape after 5 seconds of moving? I know how to move it and how to stop it but don't know how to make it stop IN 5 SECONDS. This is the rest of the code that I have done but the 5 seconds part is still …

Software Development visual-basic
Member Avatar for jlego
0
79
Member Avatar for Egypt Pharaoh

how can I get a picture of the panel that in my application and save it

Software Development
Member Avatar for sknake
0
152
Member Avatar for Romil797

Hi I have tried so much and I am wondering how I can put a background image in an email using gmail.

Software Development c c# c++ email
Member Avatar for sknake
0
383
Member Avatar for letlet_pogs

Hello good day guys. I just want to ask for help in my java python. I am just new in this language. MY first java language is java. However, for me to make it easier to code in python, i need to code it in java first and then convert …

Software Development python
Member Avatar for vegaseat
-2
105
Member Avatar for Kurosaki

Hi. I am kinda new to java and I really need help on this program that I have been assigned. Here is the assignment: [B] Assignment:[/B] Write a KochCurve program that uses DrawingTool and provides a drawKochCurve method for drawing Koch curves. Each drawKochCurve method can take the number of …

Software Development java
Member Avatar for gods_angel
0
262
Member Avatar for tqmd1

These codes work fine to display data from listview to textbox. TextBox1.Text = ListView1.Items.Item(ListView1.FocusedItem.Index).SubItems(0).Text Is there any alternative codes for this purpose?

Software Development listview vb.net
Member Avatar for me655321
0
135
Member Avatar for leegeorg07

Hi again, I am trying a competition entry (its old, purely to test myself) and I have come against a problem, this is the description for the competition: In a word game each letter has a score based on its position in the alphabet, A scoring 1 through to Z …

Software Development python
Member Avatar for leegeorg07
0
195

The End.