64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lllllIllIlllI

Hi I have been doing text programming for a while now and i was going to start doing some graphical interfaces for my programs but i was wondering which one is the best for beginners and also what and ther advantages/disadvantages of each of them. Thanks

Member Avatar for lllllIllIlllI
0
549
Member Avatar for nschessnerd

why does this work? [code=php]function restrict($string){ $words = @file('restrict.txt');//found at [url]http://verve2.org/runningStory/restrict.txt[/url] $me= "(((((())))))))("; $me = str_replace($words, '',$me); echo $me; }[/code] no output and this not [code=php]echo restrict("(((((())))))))("); function restrict($string){ $words = @file('restrict.txt'); $string = str_replace($words, '',$string); return $string; }[/code] output: (((((())))))))( i noticed on the second one it only does …

0
70
Member Avatar for MDGM

Hey, Im designing a website hosting business's website and have a relatively simple whois script which when you enter the website, it checks if it is available then returns some text in a span just under the form. At the moment the user types in any domain type (.co.uk / …

Member Avatar for MDGM
0
74
Member Avatar for ff4930

Hello, I have a project that needs to implement a Safe Array which is an Array that has bounds checking. On top of that I need to create a "Matrix" class which implements 2D which is basically a Safe array within a Safe array. This is also templatized. The problem …

Member Avatar for Radical Edward
0
807
Member Avatar for FastCat

My first vb.net post...:) What I've got: On a form, I have 'Add New Tab' button, a 'Select Picture' button and a TabControl. On the first Tab I have a textbox1and a picturebox1, when the user uses the 'Select picture' button (which calls opentdialog) I load the picture into the …

Member Avatar for FastCat
0
2K
Member Avatar for dangermini

Hi, i've been working on simple code just prototyping the system i'd like to make. This all works and is going great apart from my "quit" button, the button appears. however when you click on it, it doesn't close the interface..i think it just stops the code from running or …

Member Avatar for woooee
0
4K
Member Avatar for ashish1234

hi, i am new to jsp..i am trying do sort out a pblm.. i have 2 jsp files.. file1.jsp.. which is used to select all the records from a table called staff and display the records in a table..each record is coming with a check boxes which is used for …

Member Avatar for jwenting
0
1K
Member Avatar for ardeezstyle

Hi Everybody! How are you doing? I've come across a problem which I'm unable to solve. Actually itz related to window.opener method in javascript. The problem is the code which is very well working in IE is not working in Firefox. Let me provide the code which will help you …

0
55
Member Avatar for MAXPAYNE88

Hey guys. I've been having this problem with a Dynamic list using pointers. I have built the class, then defined a MAX size to the list when first created. Then I thought about maybe the user wants to enter more values, so I made some changes. Here's the code: [code] …

Member Avatar for MAXPAYNE88
0
101
Member Avatar for jem00

Hi guys, I'm pretty new to VB and am having a little bit of trouble with scroll bars. I have a text box and I want the user to input a value in there but I also want them to increase the value through a scroll bar or decrease the …

Member Avatar for jem00
0
249
Member Avatar for ambarisha.kn

Hi, I need some algorithms with syntax to work out logical operations using Standard template library(STLs). Please get me some examples of these or teach me regarding logical operations using STLs.

Member Avatar for ambarisha.kn
0
99
Member Avatar for heshan

Hi, I have written a web service and have deployed it using Apache Axis2. What I want to do is to invoke this service using a python script. Can anyone point me in the direction of how to do this. I will be grateful If anyone can give me a …

Member Avatar for heshan
0
597
Member Avatar for hamishrock

I am trying to create a sql statement like set @sql = 'select @stage1 = count(MY_ID) From VW_OPEN where ' + @filter and run it with exec (@sql) However this generates an error Must declare the variable '@stage1'. If I run statement select @stage1 = count(MY_ID) From VW_OPEN the var …

Member Avatar for hamishrock
0
172
Member Avatar for wellibedamned

okay, this one's supposed to take n numbers, ints/floats, sort them, spit them out... now i have my code, and it looks fine to me, i'm doing bubblesort while checking with a bool function is the first larger than the second string... if i use two numbers, it works fine …

Member Avatar for wellibedamned
0
211
Member Avatar for SubProf

Hello, I have a textbox which I write data out to. I use "\n" to make sure that the next line of data is written on a new line. This works but I keep getting an unwanted character at the end of each line of data written. It looks like …

Member Avatar for SubProf
0
96
Member Avatar for heels

hi, this is a snippet of my codes, <td><a href="editFunction.php?ID=<?php echo $contact['ID']; ?>">update</a></td> after clicking "update", the ID will be passed to the editFunction.php page. editFunction.php [code=php]<?php //get variables from previous page $ID = $_GET['ID']; //sql statement to retrieve the commands $sql = "SELECT * FROM contacts WHERE ID LIKE …

Member Avatar for heels
0
89
Member Avatar for november_pooh

Get Specific data from datagrid. i mean when i select row on datagrid, program will return value in that row. Any Help will appreciated. thx

Member Avatar for Jx_Man
0
123
Member Avatar for ambarisha.kn

Hi, I want to replace the numbers which are less than 5 in a container. So i write a code as follows. But it is not working. Please get me the solution for this. Destination container should be V2 itself. Where we have to specify destination container. [code] replace_if(V2.begin(),V2.end(), //range …

Member Avatar for ambarisha.kn
0
107
Member Avatar for JeffN00B

I have a headache over this one. what i am trying to do is take the text from a multi-line textbox and put it into one line so i can put that into a file for another program to read one line at a time. is there some way to …

Member Avatar for dadelsen
0
236
Member Avatar for Sawamura

i found my file in vb 4/5 and i want to convert them into vb.net. How i can convert my vb project in vb version 4 / 5 to vb.net? or i must to use convertion tools?

Member Avatar for Sawamura
1
113
Member Avatar for pukebag

Hi there, I have a mixed list containing strings, integers, strings with numbers both prefix and suffix and mixed case strings as follow: mixedlist = ["cake", 12, "cakecar", "cAKe", "orange", "apple", "1cake", "cake1"] I'm trying to filter the list for any element containing "cake" so I get a new list …

Member Avatar for vegaseat
0
148
Member Avatar for merkuries

It's my revision question. Please help... Create a Class Employee. This class holds member variables: employee number and salary. It has an array of 4 employees and includes 4 employee number and salary. Has 2 member functions: Get() employee detail, namely number and salary Display() employee detail Create main() I'm …

Member Avatar for merkuries
0
172
Member Avatar for Alex Edwards

Correct me if I'm wrong but... Each time I declare an object without assigning it a value, I am instantiating it (so long as the valid constructors is called upon doing so--) like... [code=c++] Triangle tri1 (3, 4); [/code] and this object exists on the stackk but only for the …

Member Avatar for Alex Edwards
0
218
Member Avatar for hazmatt

I found some open source code written in C that does most of what I want for a project and am having some trouble making the modifications I need. I am hoping the solution will help me better understand pointers and memory allocation as well. The original code takes in …

Member Avatar for hazmatt
0
129
Member Avatar for Jihad

I have a form where there is image, at the first time it displays the defualt image,when the user uploads image, the new image appears. But when the user get out from this page and get in again and upload another image the same old image is still there. Its …

Member Avatar for Jihad
0
148
Member Avatar for cheguashwini

Hello, I am new to proogramming and I need read the elements from two csv files into a 2 vectors and display the elements of vectors. The csv file is in the following fomat: 200, New york, -23.456, 23.455 201,Chicago,-34.5434,34.546 ..... ..... After that I have to perform string matching …

Member Avatar for VernonDozier
0
5K
Member Avatar for DustinS

I just started messing with Python, and was having a great time with entering Tkinter GUI commands into the Python shell (ActivePython 2.5). Its fun entering commands one at a time and seeing components appear real-time (instead of normal process of having to compile the whole thing first). Anyway, I …

Member Avatar for DustinS
0
7K
Member Avatar for darklich13

I'm having a little trouble with one of my exceptions. The following code is just a simple division of two integers. I have built two exception to handle an InputMismatch and divide by zero. What I want to happen is when there is an exception, I want the program to …

Member Avatar for darklich13
0
257
Member Avatar for Felipo

Hi Folks - I have been spending gays spinning my wheels on getting some form validation to work - I have text boxes and radio buttons on the form - The validaiton is written in Javascript It is an ASP web page - It seems that the Javascript validation code …

Member Avatar for Felipo
0
343
Member Avatar for QuantNeeds

Hello, I am having the following problem with calling my function to return the salary it calculated depending on the switch statement. I don't understand the error: ": error C3861: 'getSalary': identifier not found" [code] double Salary::getSalary() { return salary; } void Salary::compute() { cout << "Enter the employee's paycode …

Member Avatar for QuantNeeds
0
157
Member Avatar for Alex Edwards

The error is listed in the title and then commented in main (last comment). The program runs but once it encounters the bool expression I overloaded, it seems as if the program pauses. I have a feeling it's a stack overload due to the way my function operates, but I …

Member Avatar for Alex Edwards
0
85
Member Avatar for Kadence

I'm trying to use fstreams to read and write binary data to a file with the following code: [CODE]#include <fstream> #include <iostream> using namespace std; int main(){ ofstream out("test.data", ios::binary); for(uint i=0; i<10; i++){ uint outcount = i+100; out.write((char*)&outcount, sizeof(uint)); } ifstream in("test.data", ios::binary); for(int i=0; i<10; i++){ uint incount; …

Member Avatar for Ancient Dragon
0
83
Member Avatar for cam9856

Ok, I am building a text based rpg. This an excerpt from my code. at one point it asks what your name is. When you type that in I put it into a string variable called name but I want to be able to save it to a binary file …

Member Avatar for cam9856
0
143
Member Avatar for asxetopoulos

Hi there, I recently bought a subscription to a "turnkey php scripts" built2go.com in order to make a car market project... With great disappointment, i discover lately than I CANNOT REMOVE THE ANNOYING COPYRIGHT TAG at the end of each page. I search everywhere: The files, the host, even the …

Member Avatar for webdev64
0
179
Member Avatar for apuamy

i am working on an application where some test results are received from a serial port and getting stored line by line in a text box.now i have to compare each line with an existing data base( that is with a field of each record )and display interpretation of each …

Member Avatar for apuamy
0
2K
Member Avatar for QuantNeeds

Help - the static_cast< double > is not calculating the value of term and I cannot see what is wrong. [code] void eConstant::compute() { cout << "Enter the desired level of accuracy to calculate the mathematical constant e, \nmeaning the number of terms in the summation: "; cin >> accuracy; …

Member Avatar for QuantNeeds
0
616
Member Avatar for henpecked1

3.6 * vector_a; why can I not implement this binary operator as a member operator of a class Vector? [code] class cycle { cycle(); ~cycle; pedal(); }; class bicycle { bicycle(); ~cycle; pedal(); }; bicycle *bikeptr = new bicycle; cycle cycleptr=dynamic_cast <cycle>bikeptr; cycleptr->pedal(); [/code] Okay, here are the questions I …

Member Avatar for bugmenot
0
143
Member Avatar for K?!

Hello everyone As you can see, this is my first post. We're trying to write a cards game and it uses 12 cards. Someone taught me to put the buttons in an array, which i think is a really good idea. I'm encountering one problem, how do i create an …

Member Avatar for sciwizeh
0
2K
Member Avatar for Futbol10

<HTML> <BODY> <APPLET CODE= MyHangman.class WIDTH=1000 HEIGHT=1000> </APPLET> </HTML> I need to know what to do next below is my java file and I am confused with how to check the words i have in the array and the letters guessed in the word....anything would be useful thanks......and do you …

Member Avatar for Alex Edwards
0
100
Member Avatar for CK01

Hi, was wondering if anyone could help me. I'm creating my own little simple tree structure, consisting of several JTextFields. Each TextField is added to a JPanel, which is finally added to a JScrollPane, which is then added to a JFrame. Everything is fine, apart from the position of the …

Member Avatar for CK01
0
102
Member Avatar for Jboy05

How do I reverse the numbers in my program to produce the orginal numbers and the numbers in reverse? int magic_box (int N) { int digit1, digit2, digit3; digit1 = N / 100; digit2 = N % 100 /10; digit3 = N % 10; return digit1 + digit2 * 10 …

Member Avatar for tesuji
0
270
Member Avatar for Alex Edwards

Ever since I have heard that you can generate classes during runtime (from say, a URL I suppose) and can use java.lang.Reflect to fire methods based on String input, I was wondering how the process is done?

Member Avatar for Ezzaral
0
105
Member Avatar for Jennifer84

In a dataGridView1, you can Edit for example 5 Columns but before the First Column there is one column that has a star(*) in fron of the first row. What I wonder here is if it is possible to take this column away. It is possible to 'drag' the column …

Member Avatar for Jennifer84
0
107
Member Avatar for Jennifer84

I wonder if it is possible to change the color on the headers on a dataGridView1. I have searched in the members and properties but are not sure if I can find anything. By default it seems that the headercolor is "Control". Ex: is it possible to change the color …

Member Avatar for Jennifer84
0
121
Member Avatar for eibwen

OK guys, I've hit a wall & can't find any info on what I'm wanting to do. Maybe someone can help me out here or point me in the right direction please? I have a shelve object- book. If I do book.keys(), naturally I get a list of the keys- …

Member Avatar for eibwen
0
140
Member Avatar for cellus205

Having some trouble adding children to tree view. All of the parent nodes are created correctly, but it wont add more than 1 child to each parent like it should. It just adds 1 to each parent. Thanks in advance. [code] For J = 1 To WorkOrdersDataSet.BatchTable.Rows.Count() rootnode = workqtree.Nodes.Add(CStr(BatchTableTableAdapter.BatchID(J))) …

Member Avatar for cellus205
0
136
Member Avatar for dipankar.

hi, i tried to connect to the database using simply applet, but it showed some error message, i m bit confused whether or not is that possible..

Member Avatar for jwenting
0
96
Member Avatar for &rea

Hello, I am programming an image application with a GUI. I open a grayscale image like this: [code] String^ s = openFileDialog1->FileName; s = s->Substring(s->LastIndexOf('\') + 1, (s->Length - s->LastIndexOf('\')) - 1); InputImageFileName = s; bmpInputImage = gcnew System::Drawing::Bitmap(openFileDialog1->FileName); [/code] then I create a new image [code] binaryImage=gcnew System::Drawing::Bitmap(bmpInputImage); [/code] …

Member Avatar for &rea
0
1K
Member Avatar for HB25

Dear Friend I am trying to perform the flowing tasks using the following SQL statement in Microsoft Access but they don’t work. I wonder if someone could help and tell me what is wrong with my Statements. Whenever I run these statements it will not create the query. [B]Task 1: …

Member Avatar for HB25
0
169
Member Avatar for HB25

Dear Friends I am relatively new to Microsoft Access and I have to create a report to perform below task, any suggestion, comment and advice will be really appreciated. Task 1: Prepare an order as a report (similar to the attached order form) to show an order for a customer …

0
279

The End.