43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for adino2

[CODE] private void button1_Click(object sender, EventArgs e) { aTimer = new System.Timers.Timer(3000); aTimer.Elapsed += new ElapsedEventHandler(button2_Click); aTimer.Enabled = true; for (int i = 0; i < 16; i++) { mciSendString("open new Type waveaudio Alias record_sound", "", 0, 0); mciSendString("record record_sound", "", 0, 0); } } private void button2_Click(object sender, EventArgs …

Software Development
Member Avatar for adino2
0
118
Member Avatar for octopusgrabbus

I've read other posts in this form, but still do not know why I get this error: [CODE] File "/home/amr/bin/mysql_lib.py", line 196, in createNewCsRowSQL db_date + ");" TypeError: cannot concatenate 'str' and 'long' objects [/CODE] from this code [CODE] sql_cmd = \ "INSERT INTO customer_synch " + \ "VALUES ( …

Software Development python
Member Avatar for octopusgrabbus
0
340
Member Avatar for CSW110

Hi, my first programming query: well three queries. All I hope are trivial :) I thought I would have a go at trying to retrieve a value from an existing excel sheet. To do this I have used Project...Add reference to add - Microsoft Excel 12.0 Object library - Microsoft …

Software Development microsoft-office
Member Avatar for Geekitygeek
1
193
Member Avatar for brettbed

Hi Everyone, This is my first post on this forum. I am pretty new to programming so any help is greatly valued here. Was hoping someone could steer me in the right direction with this Dice-Poker style program I am trying to write in C#. So far I am able …

Software Development
Member Avatar for brettbed
0
487
Member Avatar for webdragon89

I have: [CODE]void hughint::operator *=(hughint y) { int i,t1,t2,prod,remainder; int carry=0; for(i=num.length()-1;i>=0;i--) { t1=(int)get(i)-(int)('0'); cout<<"t1: "<<t1<<endl; t2=(int)y.get(i)-(int)('0'); cout<<"t2: "<<t2<<endl; if(carry>0) { prod=(t1*t2)+carry; remainder%=10; carry=remainder/10; } } }[/CODE] I'm using 123*100 and the answer I keep getting is 123. Help please.

Software Development c++
Member Avatar for mattjbond
0
111
Member Avatar for PinoyDev

Hi guys. Good day.! I just want to ask on how to retrieve a query result when i filter a field on one table that has a value base on relationship of other table. example: table1(genderid(autonumber),gender(text) table2(membername(text),gender(text) The value of table2 gender is based on table 1 via relationship created …

Software Development visual-basic
Member Avatar for PinoyDev
0
84
Member Avatar for phoenix911

i need some help on where to start... i have to get an xml file and n xsl file(already created) merge the to... so that the stye sheet is applied.... sofar all i can do is, is select the 2 files... where to go after that im not sure... any …

Software Development xml
Member Avatar for phoenix911
0
109
Member Avatar for Learning78

Hi; I have a number of text strings in an access db file. I want to compare those text strings with the user input. I need to make sure that atleast 60% of the text input matches with the correct string to declare it a correct answer. e.g. for a …

Software Development c++
Member Avatar for WaltP
0
272
Member Avatar for baki100

Okay i have created a wxPython application and converted it into an windows executable programme using py2exe. The app works perfectly but every time i run the exe the console window appears with the gui. Is there anyway to get rid of the console because the app has to run …

Software Development gui python
Member Avatar for baki100
0
984
Member Avatar for theABCasian

i think im missing something could use a pointer heres the problem A palindrome is a string that reads the same backward as forward. For example, the words mom, dad, madam and radar are all palindromes. Write a class Pstring that is derived from the STL string class. The Pstring …

Software Development c++
Member Avatar for theABCasian
0
2K
Member Avatar for drewpee

I don't know what's causing this, but every time I have a do..while loop and the statements inside is quite long, I get an error "Loop without Do". Here is an example of my code.. PS: I know this code segment isn't efficient but this is how i code, do …

Software Development visual-basic
Member Avatar for drewpee
0
185
Member Avatar for zinnqu

I have created a encryptor/decryptor that allows you to encrypt/decrypt text in a textbox, or a file. The basis of the system is to allow a user to thoroughly protect data within their system. Is there anyone that would be willing to test the program?

Software Development encryption vb.net
Member Avatar for zinnqu
0
170
Member Avatar for mattj63

I'm trying to create a csv file from a list of dictionary items where each dictionary in the list has the same keys. I want the csv file to have the keys in the first column and the remaining columns will have the values for each dictionary in the list …

Software Development python
Member Avatar for mattj63
0
1K
Member Avatar for ala0003

I have been learning c++ and Allegro (graphics libary) for about a year, and have been trying to get this code to work (in particular, passing the array of classes), and when compiling i get the following errors C:\Documents and Settings\User\Desktop\npc.h In member function `void cNPC::NPCmove(cNPC*)': 96 C:\Documents and Settings\npc.h …

Software Development c c++
Member Avatar for ala0003
0
228
Member Avatar for atticusr5

Hey Everyone, I am trying to compile and run a program for my C++ class, and I am getting a Segmentation Fault as a runtime error. I looked at my code and my datafile to make sure that there was not an issue but I can not seem to find …

Software Development c++ ios open-source ubuntu
Member Avatar for atticusr5
0
180
Member Avatar for richman0829

I seem to be inventing my own syntax here. The idea seemed simple enough: use the keyword 'new' to allocate space for a new integer array, and populate it with a few integers. Where have I gone wrong? [CODE] #include <iostream> using namespace std; const int SIZE = 5; int …

Software Development c++
Member Avatar for richman0829
0
189
Member Avatar for AnnetteM

Hello, I would like to reshape and then transpose data that I import from a file. I downloaded the 'numarray' to access the shape and transpose functions since I am using python version 2.5. This is the pdf I'm using: [url]http://stsdas.stsci.edu/numarray/numarray-1.5.pdf[/url] The data is one long column (length=455), I will …

Software Development os-x pdf python
Member Avatar for AnnetteM
0
607
Member Avatar for richman0829

If I uncomment the 'int x;' above main, and comment out the int x = 0 inside of main, it works, but I don't want to use global variables. What I can't understand is why x is out of scope. The text I'm using says “vars having local or block …

Software Development c++
Member Avatar for richman0829
0
125
Member Avatar for dczet

I tried using a lib (svgacc) in Borland C++ both from source directory(i.e. bin) and lib and include directories(ofcourse after previously copying the in those dirs D:). The error is : Linker error: undefined symbol _videomodeget in module main.cpp . I tried building in a project of modules as well …

Software Development c++
Member Avatar for hsagar22
0
378
Member Avatar for sunlitdays

I am trying to write a code that calculates the end time of an event (in military time) based on 6 values the user enters: the starting hours, minutes, and seconds, and the duration hours, minutes and seconds. The user can't enter values greater than 24, 60, and 60 for …

Software Development c++
Member Avatar for WaltP
0
167
Member Avatar for Bemani_lover

Ok, so I'm having a bit of trouble with understanding how swing interfaces work. Here's the problem. Write a Swing program that declares an empty array of grades with a maxium of 10. Implement a JOptionPane input box within a while loop to allow the user to enter grades using …

Member Avatar for kvass
0
173
Member Avatar for london-G

hello I would like to create a subroutine, so that I don't have to repeat the code. I have different labels on a form in which when the user clicks on them it hides the second form and show the third form for now I have this code for every …

Software Development vb.net
Member Avatar for TomW
0
92
Member Avatar for crozbme

I am trying to change the default value in a print function so that n > len, however, when I do so, the output has garbage at the end of it. How do I properly get rid of the extra characters? [CODE]#include <iostream> #include <assert.h> #include <cstring> using std::cout; using …

Software Development c++
Member Avatar for WaltP
0
103
Member Avatar for whoadiz

so I am trying do this problem involving linked lists where i need to basically make 2 linked lists each representing a polynomial. I got all that down... now I need to make a function to add the two polynomials and this is where i got stuck. I have the …

Software Development java linked-list
Member Avatar for Ezzaral
0
2K
Member Avatar for beforetheyknew

Hi guys I'm trying to learn animation/graphics(they're synonymus to me) what would really help me is a working model of a line turning on an intersection. I've searched around and all i can find is clocks and stuff but all i want is the basic code to cause a line …

Software Development java
Member Avatar for beforetheyknew
0
562
Member Avatar for DCvonB

Hello, I am trying to create a doubly linked list that will print the entered input in the original order and then print it in the reverse order. Earlier I was able to get it to print the list twice, but the second time was not in the reverse order. …

Software Development c data-structure linked-list
Member Avatar for DCvonB
0
308
Member Avatar for wiz83

hi i have written a script whose output is getting mailed to me using crontab what i want it to do is mail it to someone else. this is what iam doing. 37 01 24 1 * /usr/local/bin/perl /tpf106/data2/cis_web/cis3/cis3.11/work/rishi/s-branch/perl1/perl/compare.pl | mail -s "file compare output " [email]rishi83@yahoo.in[/email](not real) but [email]rishi83@yahoo.in[/email] …

Software Development email perl shell-scripting
Member Avatar for chongopants
0
227
Member Avatar for timbomo

quick question how will i go about setting setting up characters to draw a shape such as a triangle. but the user must pick an odd # that equals to the shape . the one i have is simple but idk how to input the number the user choosen to …

Software Development c++
Member Avatar for timbomo
0
297
Member Avatar for sexyzebra19

I'm trying to use matrix multiplication to multiply b onto a. Using the method I've written below, changes the values of matrix A which I've then realised messes up later calculations. Would the best way to get around this be to make two copies of the matrices A and B …

Software Development c++ matrix-multiplication
Member Avatar for sexyzebra19
0
97
Member Avatar for spartan118

Figured problem out. Please delete post. -- original text -- hey all I'm a novice C++ programmer and I'm stumped on a console app I'm trying to build [CODE]#include <windows.h> #include <stdlib.h> #include <tchar.h> #include <iomanip> #include <stdio.h> #include <time.h> #include <Winuser.h> #include <atlbase.h> #include <iostream> #include <conio.h> #include <direct.h> …

Software Development c++
0
67
Member Avatar for toll_booth

[CODE] def create_widgets(self): B_PAD = 4 PAD_X = 3; PAD_Y = 2 NUM_PAD = 7 '''Create Boolean variables for all the buttons.''' def create_button_vars(): self.backspace = BooleanVar() self.CE = BooleanVar() self.C = BooleanVar() self.MC = BooleanVar() self.MR = BooleanVar() self.Mminus = BooleanVar() self.num = [] for i in range (10): …

Software Development gui python
Member Avatar for vegaseat
0
130
Member Avatar for endframe

Hi all, I need some help finishing this program, I know it's easy but I'm new in C++ and programming. [CODE]#include "stdafx.h" #include <iostream> using namespace std; int main() { const int arraysize = 10; int a[arraysize] = {11,22,33,44,55,66,77,88,99,100};[/CODE] This is the start of my program ; a giving array …

Software Development c++
Member Avatar for endframe
0
206
Member Avatar for Friktion

hello everybody, im coding a game with opengl,pyggel,python,pygame etc and it runs smoothly without any problems =) [url]www.youtube.com/watch?v=JlDuje39S_8[/url] - My python 3d game projekt <--- sorry if outside links isnt allowed =( But the thing is that when im compiling it with py2exe using this as setup.py [CODE=python] from distutils.core …

Software Development opengl python
Member Avatar for vextorspace
0
429
Member Avatar for shyami

Hi, I need to define some common variables in one file and use that file in my python script , Like in php we define some variable in (eg :definevble.config) file, later we will use that file using include method in php script. Plz let me know how to do …

Software Development file-system python
Member Avatar for shyami
0
123
Member Avatar for hosamath

Hi friends... I have a series of points which are actually the points that form a circle... Can anyone help me how to get the circle image when i load these points as input... A simple code example will be helpful... Thanks in advance....

Software Development delphi pascal
Member Avatar for pritaeas
0
252
Member Avatar for pato wlmc

Well first of all, hi, and thanks to all of you guys, cause this may be the first time I start a thread, but not the first time that one of you solve my problems. Anyway. I'm following an internet tutorial about API development, ( [url]http://www.winprog.org/tutorial/menus.html[/url] ) But rigth now …

Software Development api c++ windows-api
Member Avatar for mitrmkar
0
714
Member Avatar for jiten_raulo

Can any one tell me how to put a part of program into a header file or how to work with multiple files? According to my book, I need to put the template and class part into a separate file and include the header as "counter.h". I have done same …

Software Development c++
Member Avatar for jiten_raulo
0
140
Member Avatar for avinash_545

hi everybody!!!!!!! can anyone tell me how do we test the data type of variables in java, like if a variable is a string, the system prints out that this variable is string or not. more especially how can we test this on primitive data type? waiting for your replies!!!

Software Development java
Member Avatar for javaAddict
0
269
Member Avatar for PinoyDev

Hi guys good day. Ive create a pc time logger to detect the time-in, and to set timeout of the user. But i am having problem regarding on getting the time left value. Time out value will be the timein value plus 2 hours.Here is my code in Timer1. [code=vb] …

Software Development visual-basic
Member Avatar for PinoyDev
0
70
Member Avatar for gizgiz

[b]Purpose of the program:[/b] This program is supposed to use a void function called removeLetters to remove both uppercase and lowercase letters from a given string. The function isn't allowed to use square brakets (ie no arrays) and the only (1) local variable allowed must be a pointer. [b]Problem:[/b] The …

Software Development c++
Member Avatar for gizgiz
0
139
Member Avatar for gnarlyskim

I have to be able to read text from a file then manipulate it to find the average value of an integral over a given bounds [a,b] from an input file, then export it to another file. I do not know how to store the information to process it. Say …

Software Development c++
Member Avatar for gnarlyskim
1
185
Member Avatar for MWE_QUE

This is homework, but I'm stumped on this problem. It prints store->storeId properly in "case 0", but storeId prints with the name added in the "printMall" function, i.e. "L01vacant" it then prints "vacant" for store->store name as it should and the rest of the printMall function prints properly. I've changed …

Software Development c
Member Avatar for MWE_QUE
0
129
Member Avatar for whoamineo89

Hello oh helping minds I have a dilema...I've got to create a C language address book and not C++ or turbo C...I've already done a majority so far but I need help with a certain problem if there are any other problems please let me know. I keep getting an …

Software Development c c# c++
Member Avatar for Ancient Dragon
1
5K
Member Avatar for mcco1

I have this code(in a separate thread if it helps): [CODE=C#] // I know i don't store data from here. There is a reason for it. HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(mainUrl); req.CookieContainer = this.cookieJar; req.Method = "GET"; req.GetResponse(); // Another request HttpWebRequest gReq = (HttpWebRequest)HttpWebRequest.Create(secondaryUrl); gReq.CookieContainer = this.cookieJar; gReq.Method = "GET"; …

Software Development
Member Avatar for mcco1
0
130
Member Avatar for noyfb

[code] #include <iostream> #include <vector> using namespace std; int main () { int N =0; int Range=0; int NumberOfCases=0; cout << "Enter N" <<endl; cin >> N; cout << "Enter Range" <<endl; cin >> Range; cout << "Number of cases" <<endl; cin >> NumberOfCases; vector<double> range_time_Vector(Range); int K = N; …

Software Development c++
Member Avatar for noyfb
0
122
Member Avatar for abarlowa

What is wrong with my code? Prompt user for hourly rate. If less than $5.65 or greater than $49.99 display error message. [CODE]{ //declare variables const double HIGH = 49.99; const double LOW = 5.65; double HourlyPayRate //input Console.Write("Enter your hourly pay rate:"); HourlyPayRate = Convert.ToDouble (Console.ReadLinne()); //output if (HourlyPayRate …

Software Development
Member Avatar for herbie643
0
84
Member Avatar for kiri88

Hi? i'm new at programming and im trying to decipher a code. i'm trying to count how many times a char occurs in txt file

Software Development python
Member Avatar for ihatehippies
0
92
Member Avatar for Majestics

How in java we can add double menus, like file bar and search bar both are different in internet explorer? Thanks in advance.

Software Development java
Member Avatar for Majestics
0
100
Member Avatar for sexyzebra19

I have a matrix A stored in column major order as 1 3 2 4 and I'm using this function to output it in row major order, i.e. 1 2 3 4 which is does correctly. However I'm confused about how it does this, as I thought the loops would …

Software Development c++
Member Avatar for Dave Sinkula
0
146
Member Avatar for nuB

i am supposed to have 2 void functions and 4 value returning functions (including main) to eventually calculate netsalary from calling the specific functions to calculate tax and insurance and receive and display data.... basically i'm wondering what is my error (compiled in dev and couldn't figure out what was …

Software Development c++
Member Avatar for nuB
0
191

The End.