43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ceyesuma

Hello. I have built a hibernate project and the dropdown list and the table load data to the web page but the drop down list is not poulated with the names (derived from the xml id) There is a lot of code to paste. Is there someone that could help …

Software Development java xml
Member Avatar for ceyesuma
0
1K
Member Avatar for bpacheco1227

I am a beginner with VB, I'm coming from C++. When I compile and test the program the base pay textbox changes to 0, gross pay textbox to 0 and the total deductions turns to 0.25. For the life of me I can't figure out why. My little experience with …

Software Development pay-per-click python vb.net
Member Avatar for bpacheco1227
0
185
Member Avatar for Elmo_loves_you

Hi lads (and ladettes) I have to create a mobile application that gathers user input, saves it to a document so that it can then be emailed back to HeadQuarters. Im new to this area ... although I have used the StreamWriter/StreamReader classes to create a new TextFile and save …

Software Development vb.net
Member Avatar for Elmo_loves_you
0
183
Member Avatar for shahriar2403

How can i make my report header variable? I want 2 make my report header label as per a textbox filled in a form. How can i do it? Please help me..

Software Development visual-basic
Member Avatar for surveyteck
0
116
Member Avatar for AutoC

I need to code a linked binary min heap.Everywhere I go its an array based min heap..can someone direct me to some pseudocode for a linked min heap? Thanks for any help

Software Development c++
Member Avatar for ArkM
0
118
Member Avatar for FullBjarne

Hello. I'm doing a html editor. i want a function to the html editor that change the color on the text when I press a button. Example if I write this code in the html editors textbox: <table><tr><td bgcolor = "abc123">hello</td></tr><table> And then I press the button would it change …

Software Development html-css
Member Avatar for Diamonddrake
0
164
Member Avatar for no1zson

I thought I understood how this worked, but maybe I do not. I intentionally left a field out of my compactdisk class (artist) so that I could create a sub class later, impliment it, and see how that whole thing worked. Sounded simple, I still think it is, I just …

Software Development java
Member Avatar for abeer mohamed
0
401
Member Avatar for bondo

Does anyone know how to reference a COM library from the command-line? Specifically, I need to reference CDOSYS.dll. Whenever I try to include the reference when I compile I get a message saying: fatal error CS0009: Metadata file 'c:\WINDOWS\system32\cdosys.dll' could not be opened -- 'An attempt was made to load …

Software Development ide
Member Avatar for bondo
0
199
Member Avatar for db_ozbecool

1. Does Python have some built in [B]statistical functions [/B]- eg. like PERCENTILE, Root Mean Square etc ? I tried Python help and the web, to no avail. I checked standard Python maths functions and could not find anything too. If there is nothing built in then is there a …

Software Development python
Member Avatar for woooee
0
164
Member Avatar for acoxia

Hello (sorry if i break any rules on post format first time on daniweb)Have a project to make a binary to hex,Dec,octal. Now i found this code here [url]http://www.daniweb.com/forums/post598839.html#post598839[/url] and made a few changes to it but i am not familiar with a few of the parts and some help …

Software Development c++
Member Avatar for acoxia
1
87
Member Avatar for mksakeesh

I am trying to write some cd details to a file, from a queue. First i have taken all details from keyboard to a Queue and the made to write all those to a file in ascii format. Each queue has details like CD ID, film Name, film language, film …

Software Development c++ queue
Member Avatar for ArkM
0
104
Member Avatar for leloo_d

Hi there, i have some problems with lists and structs (or perhaps pointers in general) I am sorry if this was already discussed, but I really spend some time searching, but I am pretty new to programming and I did not find anything. I need to use a list of …

Software Development c++
Member Avatar for leloo_d
0
91
Member Avatar for castrohe

I am trying to make a priority queue with a specific type class 'alumnos'. I create 3 new classes (new, medium, old) who inherit from it. Then I insert the classe into de queue. I would like to use polymorphism when extracting to use the correct function 'verificarEdad' but gives …

Software Development c++ queue
Member Avatar for castrohe
0
9K
Member Avatar for Yellowdog428

I am working on an assignment for class and cannot for the life of me figure out how to use letters to choose a case for a switch statement. Here is my code [CODE=CPP]#include <iostream> #include <cctype> #include <cstdlib> using namespace std; // prototypes void showMenu(); int getVowels(char*, int*, int); …

Software Development c++
Member Avatar for Yellowdog428
0
201
Member Avatar for Stefano Mtangoo

Hello all, Please review these two piece of code and see why the latter doesnt resize as desired. When I add panel I find result becomes very strange. How can I resize widgets in a panel without such problem? Below are the two codes for simple editor PROBLEMATIC CODE [CODE] …

Software Development python
Member Avatar for Stefano Mtangoo
0
78
Member Avatar for asifjavaid

Hi all :) , I am working on video plug-in in C++.NET. I have a video file. Its size is not fixed. It can be in MBs or GBs. I have calculated sample size and sample count of video file and now I want to prepend (insert in the beginning …

Software Development c++ file-system video
Member Avatar for Ancient Dragon
0
115
Member Avatar for NinjaLink

Hello all, I am creating a program, and I am currently stuck. I need someone to guide me on track on what I am doing wrong. My main goal is to get the program to run. I can't even do that. My C++ code is provided below. Thanks for all …

Software Development c++
Member Avatar for NinjaLink
0
274
Member Avatar for ingvarorn

I'm doing a assignment for a class at my school and have written this code that follows with little help from DaniWeb users but I have one final touch problem. The problem is that if I run my strcpy function it always fills out the pzsDestination array to fill out …

Software Development c++
Member Avatar for ingvarorn
0
150
Member Avatar for lllllIllIlllI

Hi guys I have been making a program over the last few days that grabs an image and re-paints it in paint in 256 colour. The main thing this program is for is so you can watch it getting painted in paint. It works perfectly on my computer but i …

Software Development python
Member Avatar for lllllIllIlllI
0
371
Member Avatar for Tecfan

I'm planning to connect a MIDI-keyboard(piano) to the external sound card (in the MIDI-port, duh), and program a program that will get the status from it. So my question is: How would I get the input signal from the keyboard(piano)? Which function/library would I use? (I only need ON/OFF signal, …

Software Development c++
0
88
Member Avatar for ingvarorn

Hi again. I'm having two issues with this code, first of then strlen only counts the characters in the first word of the line I put into console. Then the second one is that the console takes the second word put into the console in to next "cin" and does …

Software Development c++
Member Avatar for ingvarorn
0
133
Member Avatar for ingvarorn

Hi, I'm pretty new to C++ and basically pretty new to all programming at all, have done something in java in school but never been programming something else than some scripts in work until now. My problem now is when I try to compile this code I have here then …

Software Development c++
Member Avatar for mustafaneguib
0
197
Member Avatar for bhoot_jb

i am currently learning VC++ with MFC. But i am quite confused now. My dilemma is whether to use structures (which i guess are used extensively at Win32 API level) or their equivalent MFC objects. let me elaborate it. For example i want an array of points to use it …

Software Development api c++
Member Avatar for bhoot_jb
0
164
Member Avatar for AlSal

I'm trying to send an char array through a function convert it to an int array and send it back so I can reuse it with another function. I'm just having the worst time with this matter, please help!

Software Development c
Member Avatar for ssharish2005
0
84
Member Avatar for MadnessCow

This a program i write for practice. The problem I'm facing is inside the while statement. Is it okay to divide, in this case, the miles(which is inside the the while) with gall(outside the while). I tried to compile it and the answer given was 0.00000 P/S. This program is …

Software Development c
Member Avatar for MadnessCow
0
107
Member Avatar for devnar

I have tried to come up with a 2-D (4 rows and 4 columns) array which holds values from 0 to 15, with none of the values used more than once. I'm posting only the code snippet. please lemme know if the logic is correct. [CODE=C] int HIGH=16; /*(Max value …

Software Development c
Member Avatar for devnar
0
110
Member Avatar for smile4evr

hi... ive connected my VB to my data base with the following code.... [code=visualbasic] Private Sub Form_Load() Set CN = New ADODB.Connection cString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Desktop\DATABASE FINAL\Passport Requirements.mdb" With CN .ConnectionString = cString .CommandTimeout = 20 .CursorLocation = adUseClient .Open End With nw... i want to connect every …

Software Development open-source visual-basic
Member Avatar for smile4evr
0
117
Member Avatar for daggath

Hi, I recently was trying to learn how to write DLLs and was doing ok until I ran across this interesting problem. It seems that the function is not receiving the last argument. Here is my code for the dll [code]#include "stdafx.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID …

Software Development c++ visual-studio
Member Avatar for daggath
0
171
Member Avatar for AlSal

I'm having problems with my do/while loop. It does not take the condition and simply continues the loop indefinitely. I have: [code=c] do { printf("Choose the base of the number to convert:\n\n"); printf("2 5 8 10 16\n\n"); printf("Enter option:"); scanf("%d", &baseFrom); system("cls"); if(baseFrom != 2 || baseFrom !=5 || baseFrom …

Software Development c
Member Avatar for Salem
0
92
Member Avatar for nizbit

I have an input file that has call to function and arguments that are passed to that function. There might be one argument or two. A simple while loop for input will not work ex-while(inputf >> function >> arg1 >> arg2) because if a function has only one argument then …

Software Development c++
Member Avatar for nizbit
0
233
Member Avatar for OutOfReach

Ok I'm making a program in PyQt and when I call [code=Python]os.path.join("~/", "otherdirectory")[/code] It gives me: [code=Python]File '/usr/lib/python2.5/posixpath.py', Line 62, in join: elif path == ' ' or path.endswith('/'): Attribute Error: endswith [/code] I don't know what is causing this. :S Any help would be appreciated!

Software Development python
Member Avatar for OutOfReach
0
289
Member Avatar for vidit_X

[URL="http://www.daniweb.com/forums/post303743-1.html"]Q.Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. ( suggested by Aniseed ) (Intermediate) [/URL] [code=C++] #include<iostream.h> #include<conio.h> #include<math.h> int prime(int); void main() { int i,j,c1,c2,num,f1,f2; clrscr(); cout<<"Enter the number-"; cin>>num; for(i=2,j=num-2;i<=num/2;i++,j--) { f1=prime(i); if(f1) { f2=prime(j); …

Software Development c++
Member Avatar for vidit_X
0
656
Member Avatar for tomtetlaw

I was writing a text adventure in python and i ran into a "NameError: name 'military' is not defined" error and i need help, heres the code this is the part with the prob: [code=python] choice = raw_input("Pick your civ:") if choice == military: [/code] thnx for your time -- …

Software Development python
Member Avatar for tomtetlaw
0
108
Member Avatar for anderson

I am writing an application using python to display a FITS image file. I am using pythoncard to build GUI for my application.I can display image files in jpeg, .png, etc . but I am not able to dispaly FITS image in the same application...I donot understand why I am …

Software Development gui image python
Member Avatar for anderson
0
277
Member Avatar for prateeknigamk

i am new in java can any one please tell me the main use of constructor if we can use method in what cases its necessary to use constuctor

Software Development java
Member Avatar for jaka.ramdani
0
88
Member Avatar for freelancelote

Hi, I'm learning C++ at the moment using one of Jesse Liberty's books and got to the pointers day. They ask to code a stray pointer as an exercise and give as a solution the following code: [CODE=syntax] int main() { int *pVar; *pVar = 9; return 0; }[/CODE] Could …

Software Development c++
Member Avatar for William Hemsworth
0
243
Member Avatar for ulrik04

hey all :) I'm making a console program, and I want to do that when you run it from the terminal, you can give arguments like -debug (./program -debug). How do i get whether an argument is set or not in the code? i've tried #ifdef debug, but it didn't …

Software Development c++
Member Avatar for ulrik04
0
280
Member Avatar for ravikiran032

i would like to know how to get ipaddress using host name of my friends computer in java programming. I have tried using [COLOR="Red"]getByName(".....")[/COLOR] method ,but it is a failure. will u assist me.......

Software Development java
Member Avatar for Ezzaral
0
133
Member Avatar for Tishiablo

Hello, Usually I can find solutions to problems that seem to arise when I'm coding for this game, but I'm stumped on why this is happening.. So I found out how to get the text from the last line of the text box on this game, and I want to …

Software Development c++
Member Avatar for VernonDozier
0
208
Member Avatar for uan_Blr

Hi everyone! I have just signed in at daniweb, I hope you can help me. I am new to perl and have the following problem to solve: I have loads of files with 16 columns full of numbers. I need to 1. take column 6 and substract column 10, store …

Software Development perl
Member Avatar for uan_Blr
0
519
Member Avatar for lukechris

I am currently writing a Poker Clock program in VB 2008. I have got everything working up until I try and type this (on a button) Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Interval = 120000 End Sub End Class 120000 being 2 minutes, I …

Software Development vb.net
Member Avatar for lukechris
0
107
Member Avatar for joshmo

hello. Am having a hard time intepreting this java error. The last post made somethings clear but I dont know what am missing. I am getting the error "cannot find symbol construtor Student(java.lang.String, java.lang.String,char,boolean,int,int)" Iam getting the error on this line of code [code] Student studentObj1=new Student("mark","251461",'m',false,3,5);[/code] Here is the …

Software Development java
Member Avatar for joshmo
0
87
Member Avatar for cellus205

Hows it going everyone. Im pretty sure theres a simple way to do this, but cant figure it out right now. Im still relatively new to vb .net, and have a function that reads a csv file into a datatable and fills a datagrid. But what I want to do …

Software Development asp.net vb.net
Member Avatar for cellus205
0
1K
Member Avatar for amrith92

hey, This might be naive, but how come this bit of code isn't working??? [CODE] int lc=0; read.open(filename_user.c_str(), ios::in); while(getline(read, linecount, '\n')) { ++lc; }[/CODE] Have looked through the internet, and this code seems to be fine, so what is it that makes it not work?? the output is always …

Software Development c++ ios
Member Avatar for amrith92
1
211
Member Avatar for miepmuts

I am relatively new to XSLT, but I have a problem which seems very strange to me and I hope you will be able to help me out. I have an xml file which contains information about the x and y sizes of sheets in a document and x and …

Software Development apache pdf xml
Member Avatar for miepmuts
0
145
Member Avatar for Kadence

I have a class that has functions which use <stdio.h> and <stdarg.h> to take in indefinite arguments, and one of the member functions taking in filenames. There's another function (call it the "do" function) where I want to read from ifstreams created from those indefinite number of filenames. I can …

Software Development c++ ios
Member Avatar for Kadence
0
820
Member Avatar for raul15791

I have this problem. This program runs well except that it skip the value of the first item in list. I think it is because of the cin.ignore(). But if I don't use the cin.ignore(). The cin will only read the first input and none after that. Help? [CODE=cplusplus] #include …

Software Development c++
Member Avatar for raul15791
0
118
Member Avatar for reaven

[code=c#]StreamReader reader = File.OpenText("mystations.txt"); string line = reader.ReadLine(); while (line != null) { // string[] stationtxt = line.Split('\t'); string name = line.Split('\t')[0]; string url = line.Split('\t')[1]; string desc = line.Split('\t')[2]; Image img = Image.FromFile("c:/pictures/"+ name + ".jpg"); line = reader.ReadLine(); dgLogo.Image = new Bitmap(img); dataGridView1.Rows.Add(name, url, desc, img); //(stationtxt); } …

Software Development
Member Avatar for reaven
0
404
Member Avatar for dexter1984

Part of the code from the program I'm having trouble with. The deletion of array element for this doesn't work properly. Can anyone tell me why? I can't spot any mistakes though zzz, [CODE=cpp]cin.ignore(); delStudentCounter = 0; cout << "Please enter ID to delete student: "; cin.getline(delStudent, 50); for (int …

Software Development c++
Member Avatar for Salem
0
101
Member Avatar for Jennifer84

There is one detailproblem that always occurs when I read text from a file and then putting this text to a multilined richTextBox. What happens is that the text begins on Row number 2 in the textbox and not on the top(Row 1). It seems that a linecharacter perheps is …

Software Development c++
Member Avatar for Jennifer84
0
80

The End.