43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for BigFormat

Hello, I've to build a database of students in a certain school in which each student has a list of her/his passed exams along with the grade gotten. I have 3 structs and I need an advice on how to carry out memory allocation, eg. when I add a student. …

Software Development c
Member Avatar for Clockowl
0
3K
Member Avatar for Stefano Mtangoo

Hello All, Greetings!! I was thinking of making MP3 Encoder. This is because I cannot find Exact encoder so I was finding some bindings for Lame Mp3 encoder and CD extractor/any cd to wav Library Thanks all Steve

Software Development python
Member Avatar for Stefano Mtangoo
0
426
Member Avatar for s0312001

:sad: Hello guys, This is my first topic in this forum.. I need your help, I am trying to develop an Arabic voice recognition application using vb 6, does anyone know the code or what add on I should download, I am a total beginner… ((All I want it to …

Software Development visual-basic
Member Avatar for tigerwolf
0
1K
Member Avatar for davids2004

I do not want a negative number input for radius, length, width, base, height. How would I do this. My code is below. It should be pretty self explanatory. Thanks. [CODE][code=syntax] #include <iostream> #include <cmath> using namespace std; int main () { double const pi=3.14159; int radius, length, width, base, …

Software Development c++
Member Avatar for davids2004
0
9K
Member Avatar for dougy83

Hi. I have written a small test socket program that uses a background thread that accepts tcp connections and adds them to a connection list that is accessed by main(). When a connection is opened, then later closed, recv() is called (see line highlighted in code below), which throws an …

Software Development c++ visual-studio
Member Avatar for dougy83
0
232
Member Avatar for risa

hi, I get a crash as "Unhandled exception at 0x5f4335bb (MFC42D.DLL) in VMFirewall.exe: 0xC0000005: Access violation reading location 0x00000000." in D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\appmodul.cpp in _tWinMain() funtion at call of AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow); This crash is in both debug and release....i have tried ignore of mfc42D.lib and mfcs42d.lib....but …

Software Development c++ microsoft-access visual-studio
Member Avatar for risa
0
404
Member Avatar for clutchkiller

My dev-c++ compiler is telling me that ios::noreplace is not a valid member of std::ios. Why?

Software Development c++ ios
Member Avatar for clutchkiller
0
95
Member Avatar for skatamatic

Well, this is for the same assignment as my last post. It's just a simple implementation of a bunch of Algorithm functions. It throws a runtime exception at the end saying the stack around the b variable was corrupted! I commented out all the lines with that use the b …

Software Development algorithm c++
Member Avatar for skatamatic
0
136
Member Avatar for skatamatic

I'm working on an assignment for school where my teacher wants me to convert each member of an array of a class if it's int member is greater than 300. I can make it work for the first value of 300, since that's what find_if returns. But how do I …

Software Development algorithm c++
Member Avatar for skatamatic
0
190
Member Avatar for altrim

hi everyone i am new to C++ need help; //Write a program that for 5 books with this atributes //books name //authors name //publishing year //book price to be selected only the books from the same year typed by the user(using structures) |

Software Development c++ publishing
Member Avatar for VernonDozier
0
133
Member Avatar for bajanpoet

How do I stop a combo box from firing the SelectedValueChanged event when the DataSource property is added?

Software Development vb.net
Member Avatar for bajanpoet
0
146
Member Avatar for davids2004

I am trying to write a program that can be used to display two random numbers to be added together. This program should wait for the answer to be input. If the answer is correct display a statement that says that is correct. If the answer is wrong it needs …

Software Development c++
Member Avatar for davids2004
0
403
Member Avatar for leecavcu

Thanks for the help. I have a workbook with VB code in it to add a new line. When I add a new line, the new cells automatically have their respective formulas in it. I also have it set so another worksheet with the same table adds a line. In …

Software Development visual-basic
Member Avatar for leecavcu
0
94
Member Avatar for insertnamehere8

Hi. This is for a phonebook assignment. Part of the assignment involves searching a 2D array. This is the function that reads the phonebook file. [code] void getData(char name[][NAMESIZE], char telephone[][PHONESIZE], char zipcode[][ZIPSIZE], char address[][ADDSIZE], int& size); ~~~~~ void getData(char name[][NAMESIZE], char telephone[][PHONESIZE], char zipcode[][ZIPSIZE], char address[][ADDSIZE], int& size){ int …

Software Development c++
Member Avatar for insertnamehere8
0
229
Member Avatar for Grub

Hi. I am attempting to update a Jtable with details of all the files on my computer. I am running Windows XP home edition version 2002 with service pack 3. Intel(R) pentium(R) 4 CPU 3.20 GHz [ICODE] for (int i = 0; i<r.size(); i++) { Vector v = new Vector(); …

Software Development java
Member Avatar for Grub
0
80
Member Avatar for Stefano Mtangoo

Hello all, greetings! I'm python guy and I want to access Lame encoder from python. The big problem is I cannot find suitable lame bindings. After loooong googling and metacrawling, I found py-lame. The problem is, when I try to compile it in codeblocks, python.h is missing. I don't know …

Software Development c++
Member Avatar for Nick Evan
0
100
Member Avatar for michux

In thread [url]http://www.daniweb.com/forums/thread157149.html[/url] I was asking for different alternatives for passing a node as a parameter to an XSL stylesheet called from Java using saxon. I set up on using the XdmNode object as a parameter for passing the parameter and here is a code extract: [code=java] // create a …

Software Development microsoft-access operating-system xml
Member Avatar for michux
0
378
Member Avatar for ferreus

I have this assignment where I write certain lines from an input file. These lines I'm looking for in this case is only identified by its following line ("EOL"). It goes like (shortened): [CODE]while True: line = infile.readlines() if not line: break linesplit = line.split(",") line = line[:-1] if line …

Software Development python
Member Avatar for ferreus
0
4K
Member Avatar for PaladinHammer

Here is the code: [CODE]// All this has to do is take the "names.txt" file, and send it to "backwards.txt" // in reverse order, as an array. No idea why its not working, sent all necessary files with it. #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using …

Software Development c++
Member Avatar for PaladinHammer
0
232
Member Avatar for PaladinHammer

Here's the code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using namespace std; string getData(ifstream &fin, string array[]); //string getData(ifstream &fin, string array[]); This is what it SHOULD look like. void outputData(ofstream &fout, string array[], int numNames); //void outputData(ofstream &fout, string array[], int numNames) int main() { …

Software Development c++
Member Avatar for Lerner
0
95
Member Avatar for trooper01

I'm working on an assignment and when I run the application I get the message Build Successful, but the Form doesn't show up on my screen. How do I make the Form appear?

Software Development vb.net
0
56
Member Avatar for chebude

Here I am again with new problem. I want to do some calculation on each field row after row. The for loop which I tried is not giving me what I expected [ICODE]#sum each 5 fields over the raw: for step in range (6, N, 5): for i in range …

Software Development python
Member Avatar for chebude
0
98
Member Avatar for MichaelSammels

Hello, This is my first post on DaniWeb, so I hope I did it OK. Anyway, you'll notice that in the top of every window you have standard close button (the x in the red box). I was wondering if it was possible to remove at this runtime, using VB6, …

Software Development visual-basic
Member Avatar for jbennet
0
147
Member Avatar for ihatehippies

everything works fine on my app until I add a menu. Every button every field, everything ends up stacked in the top left corner. as soon as I set the menubar to the main frame and run it collapses. I have like 5 sizers that get added to a final …

Software Development python
Member Avatar for Stefano Mtangoo
0
151
Member Avatar for Lokolo

[code] int numOfMonths = numOfYears * 12; float monthlyRepayments; float actualRate = (rate/100)/12; //monthlyRepayments = (borrowAmount*(pow((1+actualRate),numOfMonths))*actualRate)/((pow((1+actualRate),numOfMonths))-1); monthlyRepayments = (100000 * (pow((1+actualRate),180) * actualRate))/((pow((1+actualRate),180))-1); [/code] Ok this is the actual equation: (100000*(1+A1)^180*A1)/((1+A1)^180-1) btw A1 =0.06/12 So the commented line is original one I tried, didn't work. So I tried just putting …

Software Development c++
Member Avatar for Lokolo
0
153
Member Avatar for dmanw100

I'm working on a project for school where we have to read from a voters database which is set up in the following manner: voternumber:voternama:havevoted Ex: 1253:Bill Simmons:false 3244:Steve Jobs:true I made this algorithm to search for a voter by ID number but for some reason it keeps coming up …

Software Development algorithm java
Member Avatar for javaAddict
0
103
Member Avatar for CodeBoy101

How do I change the icon of the exe. in console mode? (as part of the exe itself) :?:

Software Development c++
Member Avatar for kiwihaha
0
12K
Member Avatar for BigSeckC

Hey all, I apologize now for being a Noob. I'm using a Tutorial to learn VB6 (for starters) and everything was going great until just now... The assignment is to create a [URL="http://www.profsr.com/vb/vbless04.htm"]Weekly Payroll[/URL]. I have managed to figure out how to make the standard calc ( Hrs worked * …

Software Development visual-basic
Member Avatar for BigSeckC
0
230
Member Avatar for lich

hi im a noob in C#. just learning by my self. need to know how to assign values to variables. which we input normally in C we use scanf ne. but in C#. how we gonna assign

Software Development
Member Avatar for ddanbe
0
194
Member Avatar for xorl

Hey I have a problem that annoys me a lot.... i want to extract all titles and songnames within a file, a *.pls file to be exact. ive read the entire file from beginning to end and ive splitted the text like so.. string[] titles = readpls.Split(new string[] { @"\n", …

Software Development regex
Member Avatar for xorl
0
174
Member Avatar for Kainan54

I how do i fix this error [Build Error] [main.o] Error 1

Software Development c++
Member Avatar for Freaky_Chris
0
169
Member Avatar for Trekker182

What is the best way to kill a number of PIDs that I've isolated from an external file? So far I've done grep PID badPids | awk {'print$2}' to get the list of bad PIDS to kill. I've searched through the man pages to no avail and I need to …

Software Development
Member Avatar for Trekker182
0
104
Member Avatar for Ormick

OK, just a quick question. What is a good sound library I can use to play files? On a slightly unrelated note, what is one I can use to generate sounds (tones, like 8 or 16 bit.)? I would very much prefer it to be open source and platform independent. …

Software Development c++ open-source
Member Avatar for Ormick
0
95
Member Avatar for jesseb07

hello, for one of my programs I need to acquire the decimal off of a number, for example, if a double has value of "123.45" I need an int to have the value "45". to do this, I have the following code [CODE] double value, tempValue; int decimalValue; value = …

Software Development c++
Member Avatar for jesseb07
0
273
Member Avatar for orwell84

How do I make a variable a random value between 1 and 10 each time the program loops? I want to have a "I'm thinking of a number between 1 and 10..." thing, and then you have to guess the number, but I don't want the number to be the …

Software Development c++
Member Avatar for mrboolf
0
96
Member Avatar for cmharris90

Hi everyone, I am working on a checkbook balancer for school and my code looks like this: [B]def process(balance): trans_type= raw_input("Enter Deposit(d), withdrawal(w), print(p), or quit(q):") amount=input("Enter the amount:") if amount<0: print"You've entered an invalid number." if trans_type=="d": balance=int(balance)+int(amount) print"Your current balance is", balance elif trans_type=="w": balance=int(balance)-int(amount) print"Your current balance …

Software Development python
Member Avatar for lllllIllIlllI
0
94
Member Avatar for leeba

I have a program that asks for a knights coordinates and prints out all possible moves. That works. What doesn't work is if it is not a legal place for the knight (i.e. off the board) it prints an error but also prints coordinates for -1,-2. not sure why. Any …

Software Development java legal
Member Avatar for leeba
0
137
Member Avatar for dickersonka

Is it possible to have a dynamic operator? I know I could parse it out and find the symbol just wondered if it was possible. [code] string aString = "5"; int a = 5; int b = 6; string op = "<"; //want to do something like dynamically without checking …

Software Development
Member Avatar for Jugortha
0
149
Member Avatar for Kainan54

I'm starting to learn c++. I use vista so lots of ide's dont work for me. Right now im trying visual c++ but things like cout are not understood when compiling. This may be a compiler issue. I all would like to know is a good basic (for beginers) ide …

Software Development c++ ide visual-basic
Member Avatar for Kainan54
0
124
Member Avatar for Doops

ok, I have created a mobile application for a java enabled phone. I want to make the classic pong game with one paddle, and a number of blocks to break. I have managed to get the ball bouncing around the screen and off the block using a set of if …

Software Development java
Member Avatar for mjta18
0
156
Member Avatar for invisal

I am trying to make a simple engine with WinAPI and I encounter this problem: [code] class Window { .... public: [COLOR="Red"]static HINSTANCE hInst;[/COLOR] .... }; .... .... .... int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; [COLOR="Red"]Window::hInst = hInstance;[/COLOR] .... .... } [/code] The …

Software Development c++ visual-studio
Member Avatar for invisal
0
245
Member Avatar for JustLearning

The function that I am having a problem with is in the middle of this seperated from the rest of the code. [code=c++] #ifndef GRAPH_H #define GRAPH_H #include <string> #include "queue.h" using namespace std; class FileOpenError // Exception class -- cannot open input file { }; struct EdgeNode // Structure …

Software Development c++ open-source queue
Member Avatar for Lerner
0
669
Member Avatar for stoymigo

Hi , what are the steps to make a .net application launch automatically when the computer is booted.I am working with c# , so a solution in VS 2003/5/8 or links would help. Thanks -

Software Development asp.net
Member Avatar for naveen_arc
0
125
Member Avatar for yair7190

Hi, i have the following script: [CODE] #!/bin/perl -w use strict; $ENV{"PATH"} = ".;" . $ENV{"PATH"}; print "Revesing the history file...\n"; print reverse <> history.txt > history_rev.txt; print "Reversing the XpressClients file\n"; print reverse <> XpressClients.txt > Xp_clients.txt; print "Parsing the XpressClients file...\n"; require 'Clients.pl' Xp_clients.txt > clients_file.txt; [/CODE] the …

Software Development perl
Member Avatar for yair7190
0
163
Member Avatar for mrjoli021

I have a 2d char array and i need to find the position of a specific char in the array. what method can i use. return Arrays.binarySearch(this.matrixCopy, "S"); does not work it keeps returning -1 when there is an S in the array.

Software Development java
Member Avatar for stultuske
0
117
Member Avatar for ryan311

im beginner in visual basic can anyone help me please? i have 1 command botton and 1 picturebox my command button name is Switch every time i click my command button Switch the image in the picturebox change for example i have already an image in the picturebox Sunset image …

Software Development visual-basic
Member Avatar for QVeen72
0
108
Member Avatar for BestJewSinceJC

parseInt does not seem to be throwing an exception when I pass a letter of the alphabet to it. I assume this is because ASCII letters are treated as integers. So my question is, is there a method that will do this: boolean isLetter(); And if not, how do I …

Software Development java
Member Avatar for ~s.o.s~
0
112
Member Avatar for Trekker182

I'm new to link lists and have to write a few modified functions from the book to do additional things. I have to modify insert to insert by the 2nd number passed in and have it replace that position and move the number that was there up. It's inserting the …

Software Development c++
Member Avatar for Trekker182
0
133
Member Avatar for peter_budo

I working on assignment to create bank management GUI with swing. Right now I'm messing with login. Instead of using JDialog as many may suggest to use I used JFrame. [attach]8150[/attach] In case of any error messages on login attempt I wanted to display error above all previously displayed content, …

Software Development gui java java-swing
Member Avatar for peter_budo
0
143
Member Avatar for dexter1984

Hi guys, I'm having some problem with my C++ assignment. Can't get this part down. [CODE=CPP] class Date { private: static const int daysInMonth[13]; int monthNo, year, day; string month; bool validDate, leapYear; public: void displayDaysInMonth(); void displayDate(); void enterDate(); void verifyDate(); void displayOptions(); void ahqError() {cout << "Error! Enter …

Software Development c++
Member Avatar for dexter1984
0
121

The End.