199,114 Archived Topics

Remove Filter
Member Avatar for
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 …

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 …

Member Avatar for theABCasian
0
2K
Member Avatar for whiteyoh

Hi all, I have form validation working well. The following is how i currently validate emails. My question is how can i amend to validate it as an email? [code] if(""==document.forms.fa.user_email.value) { alert("Please enter an email address."); return false; } [/code] I have found this following script but my javascript …

Member Avatar for rajendra.parmar
0
122
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 …

Member Avatar for drewpee
0
185
Member Avatar for rkulp

My professor gave use the code to a function that draws a line in the grid. I have made my class function but I am not sure how to use it with this function he gave us. [CODE]void drawLineInGrid(char grid[][MAX_Y], const Line &line) { int xDifference, yDifference, xIncrement, yIncrement, error; …

Member Avatar for Ancient Dragon
0
176
Member Avatar for tryingtofindout

[CODE]<option>location1</option> <option>location2</option> <option>location3</option> <option>engineer for location1</option> <option>engineer for location2</option> <option>engineer for location3</option>[/CODE] wen i choose a location the corresponding service engineer for that location should be added to d database in d user form ther will be no option for engineer for that location, by selecting the location, it should …

Member Avatar for tryingtofindout
0
101
Member Avatar for johndoe444

I am sick of segmentation faults. This is the last straw. How to tame this ferocious wild beast? For small programs it can be debugged. But when dealing with large programs such as implementing a b-tree with thousands of pointers it is a nightmare to pinpoint the location of segmentation …

Member Avatar for thomas_naveen
0
127
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?

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 …

Member Avatar for mattj63
0
1K
Member Avatar for khaled.s

[CODE]#include <iostream> using namespace std; int main(){ for (int i = 0; i < 1000; i++) { int die1, die2, roll1, roll2, point,; die1 = 1 + rand() % 6; die2 = 1 + rand() % 6; point = die1 + die2; cout << "You rolled: " << point << …

Member Avatar for WaltP
0
215
Member Avatar for prakashjoshi010

Hi, I would like to declare function with calling convention. But getting following errors on CentOS 4.7 with GCC 3.4.6 test.c:3: error: syntax error before "display" test.c:3: warning: data definition has no type or storage class test.c:12: error: conflicting types for 'display' test.c:3: error: previous declaration of 'display' was here …

Member Avatar for Dave Sinkula
0
133
Member Avatar for happydiamond

I need to run large PDF files of financial reports, saving each Acct. ID to a separate PDF file so I can post electronically (to avoid printing out 800 pages a month and distributing in paper format). I don't know VB but the attachment shows the steps I need to …

Member Avatar for vb5prgrmr
0
123
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 …

Member Avatar for ala0003
0
228
Member Avatar for arelius

Hey guys, When I bind my data to the GridView, it populates the GridView with the correct number of rows from the database, but the rows are empty. Do you know how I can get the data to appear in these rows? Please look at the attached picture to get …

Member Avatar for kvprajapati
0
143
Member Avatar for Barefootsanders

Hey everyone. I just got my server up and running and I programed my database, or so I thought. I tried uploading it and running it but my index.php gives me "syntax error, unexpected $end in [B]index.php[/B] on line [B]127". [/B]My code is below. Can anyone help?? Thanks! [code]<? /** …

Member Avatar for Barefootsanders
0
1K
Member Avatar for fuggles

Is there a way for me to have a PHP script run constantly on the server, rather than only run when a user loads the page? Sorry if this is a stupid question. I just haven't ever had the need until now.

Member Avatar for CFROG
0
117
Member Avatar for tarheelfan_08

Can someone please help me get my code running! I am trying to do a sectional sort based on mileage. I have got a lot of code wrote based on the book, but I can not get it to work or figure it out! Please assist! Class [code] #include <iostream> …

Member Avatar for tarheelfan_08
0
114
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 …

Member Avatar for atticusr5
0
180
Member Avatar for mikecole79

I'm looking for a little help with modem communications. I'm trying to get a .wav file to play through a modem. What I've got is a program that has a couple buttons on it. You enter a phone number or numbers into the text box at the top, click the …

Member Avatar for kvprajapati
0
267
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 …

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 …

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 …

Member Avatar for richman0829
0
125
Member Avatar for muffinhead

I know *what* the problem is, I'm just not sure how to proceed... Here's the code I have so far: [CODE]void BinarySearchTree::writeIteratively(ostream& outfile) const { TemplateStack<Node*> stack; // this is to set up the actual stack Node* current = root; while (current != 0 || !stack.isEmpty()) { // here is …

Member Avatar for muffinhead
0
152
Member Avatar for InfernalAngel

Hi guys. Recently I had face an interesting issue when trying on Hijacking Event on an Element here is what I've got: So if you want to Hijack an Event first you have to check that event-handler has been set for that particular element or not rite ? ( you …

0
108
Member Avatar for clutchkiller

I was just in class, learning about STL and class templates. My teacher said you cannot split the class declaration and the function definitions into the normal header/cpp file like you can with non template classes. Is this true, and if so why? I assume it would have somthing to …

Member Avatar for StuXYZ
0
121
Member Avatar for arelius

Hey Guys, I am new to ASP.Net and am having some difficulties with the properties window. I am trying to link a .css file to a master page through the Properties window. According to the book I am using to teach myself, it says that "at the top of the …

Member Avatar for arelius
0
74
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 …

Member Avatar for hsagar22
0
378
Member Avatar for skateatvu

Hi there i one of my programing buddies said it would be good practice to make a macro program.So i was wondering how would i go about that.Im a vb6 noob. The program needs to be able to do the following. Record Macro Sessions,and be able to pause the play …

Member Avatar for wewill23
0
107
Member Avatar for tquiva

Hi could someone please help me with this problem. I want to find the greatest and least numbers of all current input numbers. My output is wrong. I can't seem to calculate the max/min of all the current input numbers. My code only find the max/min between two inputs. Here …

Member Avatar for tquiva
0
229
Member Avatar for xXReiichiXx

(sorry my bad english) I am a beginner and in an exercise the one who run the program must insert his birth date and the program must says if today is his birthday or not. In C to do this I can do (I jump a part of code): [code=c]printf("Insert …

Member Avatar for xml_looser
0
114
Member Avatar for Stefano Mtangoo

Hi All, I want to parse simple XML file and I was looking if there is C++ standard library classes for doing that. IF no what are good yet simple XML C++ third party libraries? Thanks

Member Avatar for Stefano Mtangoo
0
403
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 …

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 KRal

/* When I run this code the random numbers that are supposed to be generated will not cout. Any suggestions would be a great help!*/ [CODE]int main() { Fraction operand1, operand2, resultant; int a, b, c, n, d; char op, choice; //char opchar: srand(time(0)); system("cls"); //a.setAll(1); //1 indicates that it's …

Member Avatar for WaltP
0
153
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 …

Member Avatar for TomW
0
92
Member Avatar for khaled.s

I need to use this to make a program to find the prime factorization of a number, please help me get started. input a value to factor while input value > 1 let leftToFactor = input value let factor = 2 while factor <= leftToFactor while factor divides leftToFactor (i.e. …

Member Avatar for JasonHippy
0
164
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 …

Member Avatar for WaltP
0
103
Member Avatar for Archana.K

I created a form with two text boxes, when i reload the page those values are not getting refreshed.. Kindly help to clear the values of textboxes when the page is loaded. Option which i used Auto Post Back=False Enable View State=False

Member Avatar for YanivC
0
191
Member Avatar for jasystweb

I've been working on a class which when called pulls images (the actual byte) from one table and then the corresponding product information from another table in a MYSQL database. I then create a dynamic set of controls and add them to the layout. I wanted to place all the …

0
79
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 …

Member Avatar for Ezzaral
0
2K
Member Avatar for jasystweb

I'm not quite sure how to do this join: Table1: Products -------------------------- Prod_ID | Prod_Name | etc Table2: Images --------------------------- IMG_ID | Prod Name | Prod_ID | [CODE] Select Prod_ID, Count(i_Prod_ID) from tblImages right join tblProducts on tblProducts.Prod_ID = tblImage.i_Prod_ID [/CODE] Does not produce what I need..... The desired end …

Member Avatar for jasystweb
0
155
Member Avatar for katwalatapan

Hello, I have observed a data access misaligned address violation during the following data type casting. [code=c] #include <stdio.h> #include <stdlib.h> int main(void) { float mul[19013]; unsigned int ch_sz=76052, i; mul[0]=0; for(i=1; i<(ch_sz/4); i++) { mul[i]=mul[i-1]+(1/(float)(ch_sz/4)); printf("%f\t", mul[i]); } return 0; } [/code] Please help me isolate the issue and …

Member Avatar for Dave Sinkula
0
149
Member Avatar for andreski

Hi: Among the following technologies what you consider is the best tool for a developer to achieve more and best payed works? php - css - wordpress - .NET - ActionScript - ajax - android - asterisk - C# - c++ - css - Delphi - drupal - flash - …

Member Avatar for Salem
0
108
Member Avatar for code zombie

I am trying to make a custom stream class because for some reason standard string objects crash my program when i try to output them, i believe i know why now. When i tried to overload the << operator for a string object by making it a friend of my …

Member Avatar for code zombie
0
120
Member Avatar for JSHGROUP

Hi there I'm having a problem with a script. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Language" content="en-gb" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Thank You for your order!</title> <style type="text/css"> .style1 { text-align: center; } .style2 { font-size: x-large; font-family: Arial, Helvetica, sans-serif; …

Member Avatar for misterrmac
0
136
Member Avatar for mjee

I have written a program for the Game of Life in OpenMP with C. But the execution time is increasing with the number of threads. Can you please help me with where I am wrong? [CODE]#include<stdio.h> #include<stdlib.h> #include <malloc.h> #include <math.h> #include <sys/time.h> #include<omp.h> #define ALIVE 1 #define DEAD 0 …

0
127
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 …

Member Avatar for beforetheyknew
0
562
Member Avatar for CygnetInfo

I am a .net developer and I am in search of a tool that can convert HTML pages to ASPX pages? So, can you suggest me such tool? Does anyone having an idea for such conversion? Thanks in advance for your genuine replies.

Member Avatar for rapture
0
201
Member Avatar for linkinmal

I'm trying to develop an editor which you can insert text and draw shapes on. To do this, I'm using a JPanel as the main panel, and listening to mouse actions I add new JPanels into it. I draw the shapes on the small panels using getGraphics(). But the main …

Member Avatar for linkinmal
0
840
Member Avatar for D4n1sD

Hello I got a problem while trying to use rand() fucntion. Just by using it its self it generates a random number from 0 to RAND_MAX. The prob is that I don't know rand max, so how can I make a costume generation, like generating from 0 20 or 0 …

Member Avatar for Fbody
0
102

The End.