Our Software Development forum encompasses topics related to native application programming design and development.

43,484 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tayspen

i got a .av file to play but how do i sop it how would i do that. also what code would i use to open a .wav file from in the proggie

Software Development .net:c# audio
Member Avatar for Paladine
0
163
Member Avatar for k_en

[COLOR=Black]hi, i am a newbie and i just started to learn C++. My question is , if i put a number like 45678 in [COLOR=RoyalBlue]char x[6] [/COLOR] then how do i separate each number and put it into [COLOR=RoyalBlue]int num[6][/COLOR].[/COLOR]

Software Development c++
Member Avatar for Drowzee
0
422
Member Avatar for mickyboy

hello all while looking on msdn i noticed there was a visual basic express edition that can be downloaded??? i currently just have the (working edition that came with a book so i cannot turn a programe into an exe ,just for home /personel use) its not that clear on …

Software Development .net:vb.net visual-basic
Member Avatar for Paladine
0
170
Member Avatar for mickyboy

hi all i have a book using vbasic by babani books, it gives an example of a form with with one textbox,and 1 command button and code. but gives a referance as follows, before running code return to design form,select the print command button use ctrl+c ctrl+v and drag two …

Software Development visual-basic
Member Avatar for mickyboy
0
375
Member Avatar for shanenin

I have been reading through the "python library reference" with no luck finding the module needed to copy a file. Any help would be appreciated.

Software Development python
Member Avatar for shanenin
0
271
Member Avatar for Quickslvr

Hmm...how do i go about doing a conversion only the first letter of the string? << Thread split from [thread=13727]original[/thread] since this is taking on a life of its own. >>

Software Development c
Member Avatar for aismm
0
6K
Member Avatar for shanenin

I need root privledges to do some stuff in my python script. I am currently using this technique [php] current_user = os.geteuid() if current_user != 0: print "you need to be root to run this script" sys.exit()[/php] this will at least polietly end the script so i am able to …

Software Development python
Member Avatar for vegaseat
0
361
Member Avatar for danizzil14

Hello Everyone! My question is simple, where are any half decent tutorials out there? I mean, all of the ones I've tried have only skimmed the surface(print, name = raw_input yah know things like that)- or were way to complicated. I've only been doing this for something like a week

Software Development python
Member Avatar for danizzil14
0
156
Member Avatar for jhdobbins

im confused as to how to get the pointers to save values... anyone with helpful advice??? this is where i have gone so far.... [CODE]#include <iostream> #include <cstdlib> using namespace std; int main () { typedef struct dataNode { char arriveCity[30]; char departCity[30]; int totalPassengers; int passengers; int flightNumber; struct …

Software Development c++ session
Member Avatar for jhdobbins
0
257
Member Avatar for Flinch

Hello, I am relatively new with Python and Pygame, however, I am an experienced PHPer, so programming isn't something new to me. My problem is this: I got Python 2.4 installed and Pygame 1.6 for Python 2.4 installed. I know Pygame works because I can make calls to the Pygame …

Software Development python:pygame
Member Avatar for vegaseat
0
788
Member Avatar for alone2005

Potion of my code: [code] class UserCommand{ string cHandle; //definition of command int numPara; vector<int> cPara; //parameter of command public: UserCommand(string ucData); //copy constructor UserCommand(const UserCommand& uc); inline const string getHandle(){return cHandle;}; inline const int getPara(int i){return cPara.at(i);}; inline const int getNumPara(){return numPara;}; //overload operator = here inline UserCommand operator=(UserCommand& …

Software Development c linux:redhat
Member Avatar for alone2005
0
154
Member Avatar for freemind

Hi to everybody! I'm writing a program that has to simulate a working system for deliveries of goods to some cities. I get several mistakes from the compiler while temporarly checking the code but they can't point me out the problem good enough.. Therefore I dare to bother you with …

Software Development c++
Member Avatar for freemind
0
106
Member Avatar for iacobus2

I just want to say that I am very disappointed with Guido van Rossum's latest tutorial. I like to follow along typing in the examples and seeing how they run. I seem to catch on to things better that way. But this tutorial's examples haven't been throughly checked because some …

Software Development python
Member Avatar for shanenin
0
214
Member Avatar for BeeNarak

Hi Anyone, I've made a web application, and now I want my web login by username and password as below but it's have got error('Login.WebForm1.DBConnection(string, string)': not all code paths return a value) anyone who can help me? [code] private bool DBConnection(string strUserName, string strPassword) { string LoginSQL; OleDbConnection MyConn …

Software Development .net:c#
Member Avatar for Paladine
1
203
Member Avatar for madgokuss4

I have been working on some python code with a friend and for some reason i keep getting this message when i try to run his code, if ar[2]!="client": IndexError: list index out of range I can't see whats wrong and i have never had this message come up before??

Software Development python
Member Avatar for madgokuss4
0
312
Member Avatar for danizzil14

Hello all! Ok here's my problem: I have a Hello World type program that I want to run in steps, and each step is in a new window. When a "next" button is pressed the old window terminates and a new one is created. Now I don't know much about …

Software Development python:tkinter
Member Avatar for vegaseat
0
199
Member Avatar for danizzil14

Ok, I've only been working with Python for something like 4 days now and I'm stuck trying to do a certain thing in Tkinter. Now, just to get you into the situation here. I've created a little program that has an entry bar and a go button. It says for …

Software Development python:tkinter
Member Avatar for vegaseat
0
180
Member Avatar for danizzil14

I have heard that it is possible to compile python so that people reciving the script don't need to worry about going to the python website and downloading it. One more thing if you tell me to run something from the prompt I can't for the life of me run …

Software Development python
Member Avatar for vegaseat
0
182
Member Avatar for bandm

Hi all! I am getting compile errors when it is Linking. --------------------Configuration: CIRCLE - Win32 Debug-------------------- Compiling... circle.cpp Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/CIRCLE.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. CIRCLE.exe - 2 error(s), 0 warning(s) [code]# include <iostream.h> class CCircle { …

Software Development c++
Member Avatar for bandm
0
472
Member Avatar for galmca

this is a code for the binary search program in c language.now the program is not showing any error but when i run this program then the output is like: enter the total numbers:6 enter the array elements: 5 4 7 1 3 2 the sorted numbers are:1 2 3 …

Software Development c
Member Avatar for Narue
-1
376
Member Avatar for desidude

i tried this #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { // Declare input stream ifstream fin; int min, max, val; int isFirst = true; fin.open("inFile.txt"); fin >> isFirst; min = isFirst; max = isFirst; while (fin >> val) { fin >> val; if (val < …

Software Development c++
Member Avatar for desidude
0
239
Member Avatar for hinde

I am pretty much done a shell program I have to write for my operating systems class. The only problem is that I can't seem to figure out how to make this function work. It is supposed to separate out a list of tryable paths that is from the getenv("PATH") …

Software Development c operating-system shell-scripting
Member Avatar for hinde
0
208
Member Avatar for CrazyDieter

In order to provide a simple "garbage collector" for my programs, I'm trying to write a template smart-pointer class, that may be used like that : [code] #include <ref.h> class Foobar{ ....}; ref<Foobar> sample_manipulation(ref<Foobar> in) { ref<Foobar> f=in; //.... return f; } int main(void) { ref<Foobar> f1=new Foobar; ref<Foobar> f2; …

Software Development c++
Member Avatar for CrazyDieter
0
195
Member Avatar for JoBe

Hello ladies and gents, I had to do an exercise in wich I was required to compair two standaardtype strings opposits, meaning: name = "Johan", name2 = "nahoJ" The idea was to return a bool value True or False. I did this with the following code I wrote:[code]#include <iostream> #include …

Software Development c++
Member Avatar for Dave Sinkula
0
279
Member Avatar for DotNetUser

txtULCol->Text == "" does not work for checking for a blank textbox in VC++ .NET. With or without text the code always return false. Any suggestions? Thanks.

Software Development .net:vb.net c++
Member Avatar for alpha_foobar
0
173
Member Avatar for shanenin

I am slowly absorbing these python class concepts(kinda) this fails with an error [php] class Critter(object): def __init__(self): print "I am born" def talk(self,name): self.test = name print self.test crit = Critter('ralph') crit.talk()[/php] this one works [php] class Critter(object): def __init__(self,name): print "I am born" self.test = name print self.test …

Software Development python
Member Avatar for vegaseat
0
224
Member Avatar for nephish

Hey there all, i have a question about how to point my python install to my sql database. when i enter this:[CODE] db = MySQLdb.connect(user="user", passwd="pass", db="myDB")[/CODE] i get this: [CODE]Traceback (most recent call last): File "<pyshell#1>", line 1, in -toplevel- db = MySQLdb.connect(user="user", passwd="pass", db="MyDB") File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line 66, …

Software Development mysql python
Member Avatar for nephish
0
162
Member Avatar for Rete

I was wondering if there was any way to make a for loop go through a string word by word, rather then character by character. For example, [B]for letter in "Hello world"[/B] [B]print letter[/B] it would print out H e l l o etc. I was wondering if I could …

Software Development python
Member Avatar for Rete
0
180
Member Avatar for JoBe

Hello ladies and gents, Ive been reading about how when a class becomes to big due to to many memberfunctions, it is best to split the program up into several sections wich could be something like this: Interface section Implemenation section Application section I was given an example wich is …

Software Development c++ microsoft:visual-studio
Member Avatar for JoBe
0
519
Member Avatar for Lee Bel

Hello!! Does anybody know how to create a function that randomly changes elements in a string? And: does anybody know how to set the chances for the type of changes? I've tried to look it up in tutorials, but since I'm a beginner, most of the time creating random outputs, …

Software Development python
Member Avatar for shanenin
0
214
Member Avatar for Rete

Sorry, I know that this is probably the wrong section to post this question in, but I'm sort of confused as to which one would have been appropriate. Anyways, I've been using regular expressions to find specific information such as e-mail addresses and whatnot inside textfiles, but I can't get …

Software Development python regex
Member Avatar for Rete
0
234
Member Avatar for shanenin

I just finished my first program, other then a few test ones. it is tic-tac-toe. If you want to try it. here is the link [url]http://webpages.charter.net/lindbergfamily/game.py[/url] It is not very advanced, just mainly a bunch of if then and while statments. If any of you care to comment on my …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for stupidenator

Hey all, I am very new to python, but I hear that it can be used to handle web forms. Does anybody know of where I can find a good tutorial on how to create something that will handle form input? Thanks in advance. -Nick

Software Development python
Member Avatar for nephish
0
356
Member Avatar for JSThePatriot

Okay I use Dev-C++ as my IDE. I have never linked my own files. I am pretty much a noob on C++, but not to programming in general. My issue that I have been almost pulling my hair out with is this. I am using a premade MD5 header file …

Software Development c++ ide
Member Avatar for oboler
0
163
Member Avatar for JoBe

Hello ladies and gents, I'm trying to output a 2D array, but can't seem to find the solution, can anyone help me out here. [code] #include <stdafx.h> #include <iostream> using namespace std; int main() { int **pp; int i, j, n, ni; cout<<"Geef het aantal regels als volgt: "; cin>> …

Software Development c++
Member Avatar for JoBe
0
595
Member Avatar for yaan

I've gotten feedback from my instructor to modify my code because it contains poor design techniques. I need to add a " return " after each function without it going back to " main " and also to avoid the use of global headers. I've tried to modify it several …

Software Development c c++ linked-list
Member Avatar for BruceWilson512
0
189
Member Avatar for nephish

i have an html form with a drop-down list that lists a bunch of images. how can i get my cgi script to load the image ? i have imported cgi and os text entered from a form and read from a file do ok, but i cant seem to …

Software Development graphics:image python
Member Avatar for nephish
0
255
Member Avatar for nephish

hey there, i have written a script that gets my email messages, but i need to be able to strip off all of the stuff except the body of the message so i can write that to a text file. is there an easy way to do this ? Edit/Delete …

Software Development email python
Member Avatar for nephish
0
234
Member Avatar for shanenin

I do not understand why the instructions are being printed off of the margin(about 5 spaces). I would think they would be directly on the margin. I am talking about this part in particular [quote] you first need to choose to go first or second. If you choose to go …

Software Development python
Member Avatar for vegaseat
0
196
Member Avatar for shanenin

I am getting really tired, so I am probably doing something dumb(disclaimer). below is a python function I am trying to test [php] # answer.py # # this function asks for a move and checks to see # if it is a legal place to choose. position = ['X','O',' ',' …

Software Development python
Member Avatar for shanenin
0
257
Member Avatar for williamrojas78

Hi i have a form with a mschart and a msflexgrid in it. What i want to do is that when the form is maximized, scale these two components and move the rest of them (command buttons, combo boxes, etc) I would apprecciate your help

Software Development visual-basic
Member Avatar for williamrojas78
0
275
Member Avatar for iacobus

Hello, Now that I have been instructed as to how to write unicode characters in Python, I would like to know if it is possible to get the unicode characters into a list, dictionary, etc. Here is my very simple code: [code]a = u'\u05e9\u05dc\u05d5\u05dd!' print a print print mylist = …

Software Development python
Member Avatar for iacobus
0
362
Member Avatar for iacobus

Hi all, I am trying to learn unicode relative to Python, but to be honest, I'm floundering a whole lot. I have never had so much trouble with anything before, but to put it simply, I just don't get it. For example, I want to use Hebrew words in my …

Software Development python
Member Avatar for iacobus
0
209
Member Avatar for johnroach1985

Hi i am re-studying C.So I just wanted to do a simple calculator program.I am using dev-c++ anyways the code is below please help. [CODE] #include <stdio.h> #include <conio.h> /*its a simple program that after getting the numbers from the user and inputs the operation*/ int main() { int i=0; …

Software Development c++
Member Avatar for johnroach1985
0
213
Member Avatar for Narue

Since C and C++ are different languages, would it benefit Daniweb to split the C/C++ forum into separate C and C++ forums?

Software Development c c++
Member Avatar for Member #36984
0
625
Member Avatar for shanenin

from my understanding, a list can do everything a tuple can do plus more. The big advantage of using a list is you can change elements, lists are mutable. Are their situations where a tuple is preferable to a list?

Software Development python
Member Avatar for vegaseat
0
202
Member Avatar for shanenin

I am trying to follow this code I am reading in a book. First I will show you the code as the book has it. This is for a word jumble program. This algorythm I am refering to jumbles a word [php] import random # create a sequence of words …

Software Development python
Member Avatar for shanenin
0
216
Member Avatar for stupidenator

Hi everyone. This is my first post in the python thread and I am very new to the language. A while ago, i wrote a program that find the least common denominator for an array of numbers in Java. I recently started to look at the python language and I …

Software Development python
Member Avatar for stupidenator
0
254
Member Avatar for elek

hey guys i got a problem with my program i cant get it to work properly. The question is: [COLOR=Purple]Write a C/C++ program to count the vowels and letters from the keyboard (maximum 50 characters). The string may contain spaces. Then it prints out the number of occurrences of each …

Software Development c++
Member Avatar for elek
0
127
Member Avatar for nephish

Hey there, i have a python cgi script that prints out html just fine in the Opera browser but doesnt print at all under FireFox. weird, eh? i am getting nothing in the apache logs about any error. perhaps its a firefox issue, but i doubt it. any suggestions. simple …

Software Development apache python
Member Avatar for nephish
0
174

The End.