132,728 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Stefano Mtangoo

I have simple player with wx.ListCtrl as playlist. I first Load List through open file dialog. I populate a dictionary with filenames (populated in Playlist) as keys with their path as values. When I press play, the onPlay method calls onSetPath method which looks up for selected file from list …

Software Development python
Member Avatar for Stefano Mtangoo
0
130
Member Avatar for cugetare

Hello, I am having a bit of a problem.... I wrote a perl script that generates a report in excel. I am using cygwin perl. I made two batch files one calls perl directly and the other calls a makefile that calls perl. Admin: make and batch work perfectly Power …

Software Development perl
Member Avatar for cugetare
0
179
Member Avatar for afg_91320

im making a grade book code using functions and SINGLE arrays (multi arrays would be easier, but my teacher wants this in our code) outline: from main() ask the user for info about 4 students ---> use functions getStudentInfo() 4x (once per student; im assuming this will have the students …

Software Development c++
Member Avatar for mrboolf
0
300
Member Avatar for Birdie010

Please review the code below, I'm not able to determine why I'm receiving the error message: " Conversion from DBNull to type String is valid. Any help is appreciated. Private Sub txtSearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.TextChanged If txtSearch.Text = "" Then lblAdvice.Text = "Enter characters …

Software Development open-source vb.net visual-studio
Member Avatar for Teme64
0
90
Member Avatar for Stefano Mtangoo

Everything seems to be well, but NOTHING GET PLAYED!!!! :oops: I have tried and tried but doesn't work. WHAT IS WRONG???? :shock: [code=python] #media control #Copyright 2008 Evstevemd #Just media Player to play the playee import wx import wx.media as media import os, sys class MediaPlayer(wx.Frame): def __init__(self, parent, id, …

Software Development python
Member Avatar for Stefano Mtangoo
0
171
Member Avatar for dinilkarun

please tell me how to format text in a SINGLE cell of a table. Once the following text is added. i want to format it in followinfg way. ---------------X_------------------------ Title : ball cat dog ---------X_------------------------ Title : in BOLD and Underline rest of the data in BULLETS.

Software Development visual-basic
Member Avatar for dinilkarun
0
149
Member Avatar for wizzsm

The output from this only returns the letter 'C' in the path string. Help! Wizzsm. std::string GetServiceConfig() { HKEY keyHandle; char rgValue [1024]; LPCTSTR regPath = L"SYSTEM\\CurrentControlSet\\Services\\ApirbiService"; LPCTSTR regReq = L"ImagePath"; DWORD size1 = sizeof(rgValue); DWORD Type; if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS) { RegQueryValueEx( keyHandle, regReq, NULL, &Type, …

Software Development c++
Member Avatar for wizzsm
0
700
Member Avatar for stuuuu

Hello, I'm creating a simple voting program. Everything works apart from that the program wont calculate the % total of votes for each candidate. It displays each candidates percentage as 0.00%. I've tried everything to see why it does this but I'm fooled :( [code] import uulib.*; public class Candidates …

Software Development java
Member Avatar for stultuske
0
122
Member Avatar for krammer

How would I empty my linux trash from python? Would I just do a simple os.remove? Or is there an easier way? I am also working on deleting all files within a directory, for multiple directories. I have found this: [CODE]#!/usr/bin/env python import os def nukedir(dir): if dir[-1] == os.sep: …

Software Development python
Member Avatar for krammer
0
283
Member Avatar for harsha_abraham

I am getting the following error “The ConnectionString property has not been initialized’, while executing the below portion of code.checked that the below connection string is having value and not null. (Data Source=NAWINSQL050;Initial Catalog=AlbatrossDB; Integrated Security=true) objFormatOut = FormatDepartment.Format.FormatSelectById(m_intOutputFormat, oConn)<—--error occurs(The ConnectionString property has not been initialized’) in the below …

Software Development vb.net
Member Avatar for reena12
0
209
Member Avatar for cassie_sanford

I am writing a project that stores vehicle information such as the model,manuf., year, etc. I have to create a second project that loads the data from the file into memory and loads a drop down combo box with the VIN numbers. When the number is selected from the box, …

Software Development vb.net
Member Avatar for Teme64
0
143
Member Avatar for robgeek

Please can someone show me how would I create a file using fstream that would take the contents from another existing file and user input sentence. for example: I have file1 with some contents The user inputs a sentence Now I want to create a file using streams that has …

Software Development c++
Member Avatar for StuXYZ
0
168
Member Avatar for eljack

Hi, I have a big problem interacting with the MS Access database. I have read again and again all the topics related to the error [B]"The number of query values and destination field are not the same"[/B] on this forum but still I can not fix. Here is my story: …

Software Development
Member Avatar for LizR
0
151
Member Avatar for fatsbear

I'm having trouble inserting a bubble sort for my program, any help would be appreciated. #include <iostream> #include <string> using namespace std; int main() { string food[100]; string lookup; int calories[100]; int x = -1; do { x++; cout << "Enter a menu item (enter 'done' when finished): "; getline(cin,food[x]); …

Software Development c++
Member Avatar for StuXYZ
0
116
Member Avatar for michael1201

Ok so i got part of my code written out but i dont understand how to go about checking all the numbers to see if it is a valid soduku code. i need a function to check the puzzle and make sure it is correct and if it is not …

Software Development c++ puzzle
Member Avatar for mynameisor
0
274
Member Avatar for Zelores

so heres the issue im having. i have this class that im suppose to make for a tester class. i have to declare an array of string at the class level. there is method call to read the context of a file and put into the array. the problem im …

Software Development java
Member Avatar for stephen84s
0
83
Member Avatar for kritiohri

I have to delete the records in a ms access table using vb.net when i click on a button.

Software Development vb.net
Member Avatar for kritiohri
0
2K
Member Avatar for Birdie010

I'm receiving error message "Syntax error missing operator in query expression" any help you can provide is appreciated. Private Sub btnEmailCat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEmailCat.Click Dim SQLStmt, EmailAddress, SubjectLine, BodyText, CATDateString, DollarsAndCents, NoDecimal As String Dim CATCounter As Integer Dim GSIdNum, GSIdHash As Long Dim …

Software Development open-source vb.net visual-studio
Member Avatar for sumithakb
0
82
Member Avatar for Duki

Hey everyone, I'm going to be starting on a project that communicates with a 270 degree range finder. I would like to incorporate some sort of picture to represent the data it reads. Something similar to [URL="http://www.robotshop.us/hokuyo-utm-03lx-laser-scanning-rangefinder-1.html"]this[/URL] Does anyone have an idea of where I could start? I'm not sure …

Software Development image
Member Avatar for LizR
0
101
Member Avatar for JLopeman

To any and everyone :) As stated in my title, this is a homework assignment, so I appreciate any help or suggestions that are given. Also, per the website rules, I have put effort to this, and I'm not asking anyone to just do my work. (The program compiles and …

Software Development c++ linked-list open-source
Member Avatar for JLopeman
0
169
Member Avatar for BestJewSinceJC

I had a problem w/ efficiency - The problem was that using String concatenation was inefficient for large text files, when reading the whole file into the String. I've since thought about it, and I guess this is because Strings are immutable - so every time concatenation is done, a …

Software Development java
Member Avatar for masijade
0
141
Member Avatar for fa_hed

Hi every one I need help: How I can make hilpe files with (hlp)extension to My APP.

Software Development visual-basic
Member Avatar for aktharshaik
0
84
Member Avatar for Foe89

I'm currently writing code for a soon to be simple tic tac toe program. Currently i'm just testing out methods of how to run it, so it'll be more "modular" in the end but for now I'm just testing things out. My question is, how would I go about validating …

Software Development c++
Member Avatar for Foe89
0
269
Member Avatar for Kalsrini

Hi, How to open a excel file from word macro by getting the file name from word. [B]this is my code[/B] OrgFileName = Selection.Text + ".xls" 'OpenExcel Macro Shell ("C:\Program Files\Microsoft Office\OFFICE11\excel ""C:\My Documents\File - CopyBook\""" + OrgFileName) OrgFileName is the workbook name which i have to get from word …

Software Development microsoft-office visual-basic
Member Avatar for aktharshaik
0
82
Member Avatar for cloudedvision

Lets say we have appA and appB. appB is running in the background, not doing anything. Then the user opens up appA. They punch in a number, and hit enter. Then appA "pokes" appB and sends it the number. appB multiplies the number by 5, pokes appA and sends it …

Software Development c++
Member Avatar for Salem
0
127
Member Avatar for spowel4

I've got two ms access tables within one .mdb file, the tables are mrproduction & fglotnum. From mrproduction I need records from fields mrStkNum, mrLotNum, and mrQty. From fglotnum I need records from field mrCost. The common field between the two tables is lotNum (i.e. mrproduction.mrLotNum & fglotnum.mrLotNum). I guess …

Software Development visual-basic
Member Avatar for aktharshaik
0
180
Member Avatar for jchanger07

Hi! I'm new to this forum and C++ programming and I am currently taking and introductory course to C++. I have a program that compiles fine but will not execute. I am posting my code and a sample input file....Please if anyone can get it to run or give me …

Software Development c++
Member Avatar for sabertoothMAX
0
181
Member Avatar for xandres

I need to make a seating reservation system for my assignment and I have to manage .dat files. I have to store all Student objects in a file. When a student is registered, a new object is created and I need to add it to the archive. But as far …

Software Development file-system java
Member Avatar for xandres
0
203
Member Avatar for kotkata

This is part of a larger program and this is the only part that I can't get down. Right now, it runs fine once through, but telling it yes to repeat the loop at the end does not allow the user to input a new name for student once the …

Software Development c++
Member Avatar for kotkata
0
180
Member Avatar for habuchas

Below is the code I am starting with. What is desired is to have the user input the number of players and the number of scores and then populate the players and scores. To check the program out I usually will use random numbers for the scores. My problem is …

Software Development c++
Member Avatar for Ancient Dragon
0
87
Member Avatar for cloudedvision

Wasn't sure where to post this, I couldn't find a relevant forum. Whats the LGPL and how does it differ from the GPL?

Software Development c++
Member Avatar for sabertoothMAX
0
67
Member Avatar for gabec94

I am trying to write a program that shows the longest word from an input . This is what I have so far, I am not sure what to set x equal to, or if that is even right: [CODE]sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in len(splicedsent[1:])>splicedsent[0]: longestword=x else: …

Software Development python
0
75
Member Avatar for brixton

Hello there, I'm learning file I/O in c++ ATM and I'm getting a strange problem when I'm (at least I think so) following a tutorial. What I'm doing is simply writing a User object to a file and then read that same object from the file. I'm doing this just …

Software Development c++ file-system ios
Member Avatar for Lerner
0
176
Member Avatar for FTProtocol

Hey, #1 is it possible to search for a specific exe file on a computer and return the path to it. If not is it possible to get the directory of an exe from its running process. If not is it possible to search for a registry entry to return …

Software Development c++
Member Avatar for StuXYZ
0
397
Member Avatar for SoulMazer

Hi, I have been learning Python and have a quick dictionary question. I am trying to make a "vocabulary test" to help myself study, and am trying to do it with a dictionary. So far I have this: [code=python]testwords = {"uno":"one","dos":"two","tres":"three","cuatro":"four",\ "cinco":"five"} def vocabtest(): for value in testwords: print "What …

Software Development python
Member Avatar for SoulMazer
0
311
Member Avatar for gabec94

I am a freshman in highschool and have just started learning Python. This week I have an assignment on while...for...and lists. I have tried this problem and this is what I got so far, I'm not sure if it is correct at all: start=float(raw_input("Enter the starting value:")) end=float(raw_input("Enter the ending …

Software Development python
Member Avatar for stephendoyle75
0
88
Member Avatar for mybluehair

Im having serious trouble installing a library named curl. ive searched MANY tutorials, but they go over my head, and skip sections of the instructions. Ive never installed a library before, but i need a feature in my script to be able to go online and download a txt file, …

Software Development c++
Member Avatar for mybluehair
0
119
Member Avatar for Damagh25

I have some code for a routing algorithm in python programming language but i don't understand the code at all. I am only a beginner and i was wondering if anyone could explain it for me in plain text. Could you please go through and explain each part. Cheers. Here's …

Software Development algorithm python
Member Avatar for Damagh25
0
240
Member Avatar for vikashkumar051

Hi I am pasting here code for finding coordinates of a regular polygon. [code] void main() { int no_of_side = 6, side_length=10, i; float ext_angle = 60; float angle=0.0; float x_coord[6], y_coord[6]; for(i=no_of_side-1; i>=0; i--) { x_coord[i] = x_coord[i] + side_length * angle + side_length ; y_coord[i] = y_coord[i] + …

Software Development c++
Member Avatar for StuXYZ
0
144
Member Avatar for Stefano Mtangoo

The debug process never connected back to WINGIDE: Aborting debug session I have tried repair python, no success. Also tried run IDLE same story

Software Development python session
Member Avatar for Stefano Mtangoo
0
128
Member Avatar for cloudedvision

I'm just diving back into C++ after a while of being away. I've created a simple project. But its giving me these stupid errors when I've been trying to do some OOP: main.cpp [CODE=cpp] #include <iostream> using namespace std; #include "oopy.h" int main(int argc, char** argv) { Oopy awesome; cout …

Software Development c++ oop
Member Avatar for cloudedvision
0
145
Member Avatar for PhiberOptik

Hi guys, I'm new and I'm totally stuck on a question for class! Basically we have to get the user to enter a few sentences and then change the first letter of every sentence to a capital version. I'll post my code below. (I'm not asking for the answer just …

Software Development java
Member Avatar for PhiberOptik
0
222
Member Avatar for Undermine

[CODE]//6.12 #include <iostream> #include <iomanip> using namespace std; double CalculateCharges (double car1=1.5,double car2=2.0,double car3=24.0); int main () { cout<<" Parking Garage Rates " << endl; cout<<setw(10); cout<<"Car"<<"Hours"<<"Charge"<<endl; double car1; for (int i=1;i<=3;i++) cout<<i<<CalculateCharges(car1)<<endl; cout<<"Total"<<endl; return 0; } //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ double CalculateCharges(double car1, double car2, double car3) { double rate; double hours[3]; …

Software Development c++
Member Avatar for Lerner
0
96
Member Avatar for SuperSapien

Quick question from someone very new to constructors... If the function body of a class constructor is an array, can I then use any instantiation of that class just like an array? ie: World *anthill and then later... anthill[x][y] or is that wishful thinking? [COLOR="Green"][B]-Ella[/B][/COLOR]

Software Development c++
Member Avatar for Freaky_Chris
0
184
Member Avatar for BestJewSinceJC

I'm having trouble with storing bits as a byte. I've read probably 30 different sources about this already. I'm doing Huffman Compression. Lets say I read in the character "c" and I am supposed to output "1010". How would I go about doing that? I know how to write bytes …

Software Development java
Member Avatar for BestJewSinceJC
0
135
Member Avatar for botter911

Hi, I have a problem here in the selection search because it reads the text but does not detect the position of the text like a is in the 2 position. the is in the 1 positon.... like that. But If I do this for characters it detects it. Any …

Software Development c
Member Avatar for Ancient Dragon
0
119
Member Avatar for FlamingBlade

I can't figure out how to display a local webpage. I've tried messing with the webBrowser control but it keeps adding "http://" to the front of the local webpage address, and if I try to change it from within the code like this: [code=C#]webBrowser1.Url = "file:\\webpage\Maphs v1.htm";[/code] I get the …

Software Development
Member Avatar for FlamingBlade
0
165
Member Avatar for Blackeagle

in th following code, i cant use a Text Field in the actionPerformed methode .. the textFiled is declared outside that method. i get the following error: Cannot refer to a non-final variable serverHostField inside an inner class defined in a different method How can i solve this??? Thank you …

Software Development java java-swing
Member Avatar for stephen84s
0
99
Member Avatar for ronan_40060

I have been working on C++ code optimization to minimize the memory leaks and better performance on HP-UX with aCC I have the following example to share with you I have a structure SYS_LC_DETAILS_CDA for which I have allocated a memory using malloc and then memset and then calling a …

Software Development c++
Member Avatar for ronan_40060
0
237
Member Avatar for sumitk538

can anyone give me the program in turbo C++ for the conversion of decimal numbers to hexadecimal numbers, octal numbers to decimal numbers. it will be so kind of you. thanx.

Software Development c c# c++
Member Avatar for Freaky_Chris
0
74

The End.