132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vegaseat

Using wxPython and the Boa Constructor, a VB/Delphi like IDE and Visual Builder, this little calculator was a breeze to make. Boa did 90% of the code generation, and I simply added code to each button click event to make the calculations work. I wish every project would go that …

Software Development delphi gui ide python
Member Avatar for vegaseat
1
486
Member Avatar for vegaseat

The WinBGI package allows you to do some of the Borland BGI graphics in a specially created window form. So don't throw out the old Borland manuals, you can still use them to do some fancy graphing! Yes, you can gotoxy() again! This code was modified for Dev-C++, a real …

Software Development c++
1
574
Member Avatar for vegaseat

There are some pretty fancy things you can do with strings in Python. You can append, convert, justify, join, split, slice, and list selected files of a folder. I just give you a small sample here.

Software Development python
Member Avatar for vegaseat
1
378
Member Avatar for vegaseat

With the help of BCX I managed to create some C++ code that will allow you to send text to your printer and specify the font and other things. Play around with the options to suit your own needs. I have to admire the genius behind BCX, even though it …

Software Development c++ printer
Member Avatar for cybercode
1
329
Member Avatar for vegaseat

Short little sound files of chicken, horses, dogs, cars, trains and other annoying things is the realm of the wave file (.wav). These are easy to play and guaranteed to confuse grandpapa. Again, we are using Windows' sound workhorse winmm.lib file. Ze function this time is PlaySound(). Here is ze …

Software Development c++
Member Avatar for danibootstrap
1
226
Member Avatar for vegaseat

The Standard Template Library (STL) vector is tempting. The burden of dimensioning an array is removed, and there are many wonderful functions to explore. The learning curve is a little steep, it will make your head swell, but in the end it's all worthwhile. Take a look at some of …

Software Development c++
Member Avatar for vegaseat
1
178
Member Avatar for vegaseat

Let's expand the decimal to binary converter to include, amongst others, octal and hexadecimal conversions. Also shows how to exert some input control. Simple stuff!

Software Development c
1
186
Member Avatar for vegaseat

Another experiment with the Standard Template Library (STL). This time we are taking a look at map. Map is a Sorted Pair Associative Container (a mouthful). The pair is -- const Key, Data --, where Key has to be unique. It is Key that is sorted. In this code sample …

Software Development c++
1
169
Member Avatar for Narue

Insertion sort, Selection sort, Bubble sort, Shell sort, Quicksort, and Heapsot. All optimized and ready to be experimented with. This is the framework for a Java application that speed tests various sorting algorithms (because there's usually little need to write one's own in production programs). Several popular algorithms were left …

Software Development java
Member Avatar for majestic0110
1
361
Member Avatar for Narue

This quicksort implements the basic recursive algorithm with three improvements. The first improvement is choosing the pivot based on the median of three values in the list to be sorted. This minimizes the chances of a worst case scenario. The second improvement speeds up the algorithm by termination when subfiles …

Software Development algorithm c programming-construct
Member Avatar for Matt Labbé
1
1K
Member Avatar for Paladine
Member Avatar for colinnwn
1
2K
Member Avatar for Dani

A program similar to ComputeMortgage.java utilizing a mathematical formula and multiple methods to calculate a loan payment.

Software Development java
1
200
Member Avatar for grihalo

I've just finished my homework program and I'm looking for any critiques. Whether they be about my methods, format of how the code is spaced and such, or anything of the sort. Also some ideas on decent commenting would be helpful. In summary I'm trying to learn some good programming …

Software Development c++
Member Avatar for VernonDozier
1
170
Member Avatar for serkan sendur

ok guys my reputation altering power is 7, i will add to your reputation during ten days if you help me name the product dynamically from the command line using windows installer (.msi) setup project. Thanks in advance.

Software Development
Member Avatar for serkan sendur
1
74
Member Avatar for scias23

i'm thinking how to do this since last week. i can make a rps game in java, BUT not in OO way. just the simple ones. what i want to do is a rps game - the OO way. i planning this program to have two options, play with player …

Software Development java
Member Avatar for TheWhite
1
605
Member Avatar for serkan sendur

ListViewItemCollection class has no constructor, so i cant create an instance. the listview in compact framework does not have SelectedItems property, so i want to create it. I want to iterate through all the items and if they are selected i want to add that item to the instance of …

Software Development listview
Member Avatar for DdoubleD
1
846
Member Avatar for DavidDan

Hello! First post so I'd like to say hello to everyone :) So I've got this code here, I am very new to C++ and going through the basics, and I am creating a program that will tell the user when he/she is born. So the user puts his/her age …

Software Development c++
Member Avatar for tux4life
1
226
Member Avatar for philjava

Could you please help me with something I am trying to acheive. I am using Java 6 and Eclipse 3.5.0. I am new to programming generally and have created two java files. Driver loads the UserForm and will go on to control a number of other files eventually. UserForm is …

Software Development java java-swing
Member Avatar for philjava
1
148
Member Avatar for vvinayk

Hi, I am getting errors with RTTI. In this program I have an Abstract base class with virtual function area() and two derived classes. I defined a polymorphic function and passed the derived object as argument to it which has reference to the base class as argument. I used typeid …

Software Development c++
Member Avatar for kvprajapati
1
119
Member Avatar for Phasespace

Hey. I've written a bit of c++ code to move columns of data from similarly named files (file20.txt, file40.txt, file60.txt etc) into a single file. Unfortunately there seems to be at least 1-2 errors (which I cannot seem to fix :S). I'm trying to take data from a list of …

Software Development c++ ubuntu
Member Avatar for Phasespace
1
81
Member Avatar for Shaitan00

I am using Named Pipes to transfer data from a client (C++) to a server (C#), the client does the following: [Code] struct MESSAGE { char cCommand[8]; string sParameter; }; MESSAGE msg; strcpy(msg.cCommand, "COMMAND"); strcpy(msg.sParameter, "DO SOMETHING"); DWORD dwWrote = 0; WriteFile (hpipe, &msg, sizeof(msg), dwWrote, NULL); [/Code] Then, at …

Software Development c# client-server
Member Avatar for DdoubleD
1
496
Member Avatar for ddanbe

Hi all, I was wondering why the following code compiles, with or without extra komma? My feeling is it should not be there, but apparently it does not matter. Any comments would be more then welcome. [CODE=c#]namespace ConsoleApplication1 { class Program { public enum months { jan = 1, feb …

Software Development c#
Member Avatar for DdoubleD
1
121
Member Avatar for Kekke

Hello everyone. I have a question regarding those mp4 video files.. Is there any library easy to use to convert mp4 files to mp3 files? I have lots of mp4 videos which I want to be able to programmatically convert to mp3 files. I tried searching google for a very …

Software Development c#
Member Avatar for serkan sendur
1
334
Member Avatar for VernonDozier

I'm adding really big numbers (a lot of them). I'm supposed to detect overflow errors. I did it years ago in Assembly by checking bits, but I've never done it in C++. [code] long long a = pow (2, 62.0); long long b = pow (2, 62.0); a += b; …

Software Development assembly c++
Member Avatar for Dave Sinkula
1
202
Member Avatar for Hagbard_Durden

Hello. I'm new here, and new to Python. I have a little experience with C++, and assembly, and just started learning Python about 2 weeks ago. I'm trying to write a program that will control servo motors in sync with an audio file (probably .wav). So far I've written programs …

Software Development assembly audio python
Member Avatar for Hagbard_Durden
1
248
Member Avatar for jasonjinct

Hello, I google and search through about the 2 dimension array and I still not really understand how to do it.. for example: I got a file input called namelist.txt with following thing John Jason Leonard Kelly Kate Ash and I got the following code: #include <stdio.h> int main () …

Software Development c
Member Avatar for vali82
1
123
Member Avatar for charis89

Its my 1st time posting here... Do tell me if I am doing anything wrong. [code=c] cout << "Please specify a question that has a yes answer for your object and a no answer for my guess:" << endl; getline(cin, qtn); foundyq = qtn.find_first_not_of("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ "); while(int(foundyq) != -1) { if(noTry …

Software Development c++
Member Avatar for Salem
1
164
Member Avatar for jeezcak3++

Hi, I am new to the forum. I am in the learning process and I will stick around until I learn everything from you. I try to create count down starting at 15 seconds. But when I compile, "clock identifier not found." I am !ondering the same thing, too. Perhaps …

Software Development c c# c++
Member Avatar for mrnutty
1
783
Member Avatar for kvass

Hi everyone! This code runs without throwing exceptions and stuff, but it doesn't exactly run when I click the "Submit" button -- what is supposed to happen is that I click it and it generates a random number. What happens is either nothing or if I get lucky and click …

Software Development java java-swing
Member Avatar for kvass
1
136
Member Avatar for helplessSoul

I know there's loads of these threads already and the norm is to [URL="http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&q=null+exception+error+java+method&btnG=Search&meta="]Google it[/URL], but I can't seem to find the solution. Anyway I keep getting this darned error and need to know how to fix it ASAP, since the Servlet project is due in this Wednesday. Code is …

Software Development java
Member Avatar for helplessSoul
1
133
Member Avatar for marceta

Hi everyone. I heard that it is possible to code up a small program to randomly change windows desktop bg pic. I havent got any code (as i dont know how to do it) so could some plz tell me, or direct me to a site or something. Btw this …

Software Development c++
Member Avatar for marco93
1
587
Member Avatar for NeoFryBoy

Quick background: I'm working on Project Euler and made a palindrome checker. I needed to convert integers to strings. itoa() kept giving random values (9 gave 9 or 90, etc...), so I decided to make my own, and ran into a problem. [I]I have fixed it, but could somebody explain …

Software Development c++
Member Avatar for NeoFryBoy
1
132
Member Avatar for dgr231

Hello all, I am in the process of teaching myself c++. I wrote one program successfully and I'm trying to write my second. I have run into a problem that I can not seem to figure out at all. I understand that this seems trivial, but I really need to …

Software Development c++
Member Avatar for dgr231
1
157
Member Avatar for si01

Hey I am trying to build this application, but I am having trouble as error messages keep appearing. Using Visual Studio 2008... [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Opc; using OpcCom; using Opc.Da; using Opc.Hda; namespace ConsoleApplication3 { class Program { public static void …

Software Development assembly open-source visual-studio
Member Avatar for si01
1
153
Member Avatar for yellowSnow

I'm still relatively new to these forums. I just like to put out a query regarding threads and their solvability. For Daniweb forums, is it considered good practice for OPs to flag threads that they have started as being solved if they have received appropriate posts that have answered their …

Software Development c
Member Avatar for yellowSnow
1
288
Member Avatar for mandofl

Hello people. I have a favor to ask. My programming challenge is to write a program that uses a structure named movie data to store the following, title, director, year released, running time. this program should create two moviedata variables store values in their members, and pass each one in …

Software Development c++ data-structure
Member Avatar for mandofl
1
7K
Member Avatar for Anon17

Hi there. I have an encryption method which handles a string char by char and converts it to base 32, then adds it onto the result string. However, it seems to completely replace the result string instead of adding onto the end of it. My code: [code] char *encrypt(std::string input, …

Software Development c++ encryption
Member Avatar for Anon17
1
94
Member Avatar for dub4theworld

I am attempting to write a program that simulates a lobby or a line in which a "player" can get into in the form of a heap. The program does everything it is supposed to except when you try to add a second object("player") to the heap it won't do …

Software Development c++
Member Avatar for dub4theworld
1
88
Member Avatar for dannz89

Hello, I'm sure this is some complete beginner's 'gotcha' that I've forgotten all about but if anyone can give me a clue as to why my pointer seems to be going astray....? I'm new to C++, well, very old to C++ actually but have been programming JAVA for years and …

Software Development c++ windows-vista
Member Avatar for dannz89
1
150
Member Avatar for kentigens

Hi, Im currently implimenting a nested for loop, but there seems to have some known bugs and i dont know whats causing it , how to fix it, etc. Heres part of my code: //using some of vector<structs> below: [code=c++] void Profile() { int wire = 1; int face = …

Software Development c++
Member Avatar for VernonDozier
1
280
Member Avatar for totoy13

Hi, I'm new to the forum and I was wondering if anyone would know how to display data from the tables of a MS Access database on labels on a form. The code underneath is my code for saving inputted data from textboxes. [CODE] Private Sub Button2_Click(ByVal sender As System.Object, …

Software Development dataset microsoft-access vb.net
Member Avatar for totoy13
1
200
Member Avatar for james27

hi im making some website login checker. all thing is almost no problem except resulted save function. here is sample login id and password for test. bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 to test this source in python,need to make some text file "daum.txt" and insert bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 this two account in there. i …

Software Development open-source python xml
Member Avatar for james27
1
812
Member Avatar for 23.12.2012

Hi! I opened this thread because I've found out that, as I'm making my way through a textbook, I find many problems which I can't figure out for myself. To start, **Thinking in C++** has this buggy program right in its second chapter. The code looks OK to me, but …

Software Development c++ os-x
Member Avatar for 23.12.2012
1
214
Member Avatar for Teeb

Hi All, I am somewhat confused here and would need some assistance on how to fix this issue. The code runs for some time and crashes at some point. This problem occurs when I have a larger workload on the code. It works well for small loads. The error returned …

Software Development c++
Member Avatar for Nick Evan
1
214
Member Avatar for maestermoo

Hey everyone, I've been working on a program that "flips" a stack of pancakes for the user depending on where they want to flip them. the problem that I'm having with the code is that I can't quite figure out how to "error check" the users input for flip location. …

Software Development c++
Member Avatar for VernonDozier
1
77
Member Avatar for xiikryssiix

i am in beg c++ and my instructor is asking me to find "some other combination that also does not work! Your loop should prove something similar for values other than 10 cycles, steps of 0.1, and a sum of 1." i found 1 combination, which is in my program …

Software Development c++
Member Avatar for xiikryssiix
1
112
Member Avatar for jjplaw

Hi, i want to implement a windows service that functions as a simple license security feature for a software X. The service is meant to run independently from software X. [B]My current idea:[/B] [LIST]The service is like a timebomb for a software Z installed on the machine...[/LIST] [LIST]Whenever the user …

Software Development c++
Member Avatar for tux4life
1
177
Member Avatar for smithss

[code=c++]int** a = new int*[col]; // works int** b = new int[][col]; //error cannot convert from 'int (*)[1]' to 'int ** int* c[] = new int[][col]; /error cannot convert from 'int (*)[1]' to 'int *[]' [/code] The first one works, but i get these errors when i use the other …

Software Development c++
Member Avatar for VernonDozier
1
139
Member Avatar for xyzt

Hi I use ctags and vi integrated. It's fine for now but I wonder if it's possible to find usages of a function? May be someone helps. Thanks in advance.

Software Development c
Member Avatar for jqbsx
1
68
Member Avatar for DimOK

Hello! I'm trying to write a program, that replaces inscpitions like "\input{C:\FullFileName.txt}" to maintenance of FullFileName.txt. It now looks like [code=C++]#include <fstream> using namespace std; #define shint short unsigned int const char* InS ="input{"; ofstream log ("C:\\Users\\DimOK\\Desktop\\Lat\\TEST1\\log.txt"); bool EqN (ifstream &as, const char *ba, shint l){...} // takes l chars …

Software Development c++
Member Avatar for DimOK
1
266

The End.