64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dpatz

Hi, I have an input text box that I want to change the type from text to password and I wrote code that works in Firefox but not in IE any suggestions? Here is the code(cut down a little for easier reading): [CODE] <form class="formstyle"> [INDENT]<input name="password" type="text" value="Enter Password" …

Member Avatar for dpatz
0
255
Member Avatar for Deme

Well, what i'm trying to do is use cin.getline with my char pointer of 255 characters, take a look at the code below: [CODE] #include <cstdlib> #include <iostream> #include <fstream> #include <conio.h> using namespace std; char * pChar[255]; pChar = new char[255]; void newPointer() { delete pChar; pChar = new …

Member Avatar for Deme
0
2K
Member Avatar for veledrom

Hi, I cannot find the solution for this example. It is to do with Static declerations. Help please. Error : "Fatal error: Non-static method ExecuteSql::executeSql() cannot be called statically, assuming $this from incompatible context " Thanks [code] <?php class DBconnection { private $host="localhost"; private $user="root"; private $username=null; private $password=null; private …

Member Avatar for veledrom
0
373
Member Avatar for chardson

hey everyone, does anyone know the python command that forces the interpreter to go interactive? the situation i'm talking about goes like this: [LIST] [*] run script from command line [*] let all kinds of complicated nonsense execute [*] script runs the "go interactive" command [*] python dumps you in …

Member Avatar for chardson
0
180
Member Avatar for dev_kc

I have written my code in a CLASS LIBRABY file,now i need to call this on click of a button which is there on the windows form... I am using Visual Studio2005 Please help me,i don't have any idea about how to do this:S

Member Avatar for Prof.Mendl
0
111
Member Avatar for daviddoria

I have a "Tools" class which contains a lot of functions I commonly use. One is a parallel sort. I pass it a vector of Objects and a vector of indices, and it sorts the Objects and sorts the indices the same way (so the corresponding index is in the …

Member Avatar for Ancient Dragon
0
87
Member Avatar for JooClops

Hello, I have a little question. Lets say I have string: string g="ZOMGGGG"; and a Boolean var: bool S; so in C# if I write S=g.contains("GGGG"); and I get true if it contains else false. How do I use that in JavaScript? Thank You! JC

Member Avatar for JooClops
0
190
Member Avatar for keatingronan

Hi guys, I m trying to store an image in a string, so that later i can put that in a label. But i m getting errors: wat i m trying is [code]string imgFailureIcon="<img src="images/erroricon.jpg" width="20px" height="20px">" ;[/code] the error is ; expected. Please help me out

0
67
Member Avatar for ngibson12

Hello guys, I am new to this forum, but I am sure I will be an active one as I am a computer science major. I am still kindof new to c programming and am hitting a major issue. I am writing a echo client server code and I am …

Member Avatar for jephthah
0
168
Member Avatar for SANMI

I have a project , I need to show the Names of Employes in a ListBox . When a name is Selected , I get the Employee ID from the List box and use it to get the Employe data. The ListBox does not have a place where you can …

Member Avatar for glubbish
0
252
Member Avatar for kenji

Hey, I have a program that has 5 files, 2 header files called: [icode] console.h screen.h [/icode] and 3 source files called: [icode] a2main.cpp screen.cpp console.c //not a typo [/icode] When I copy the [icode]main[/icode] from my a2main.cpp file to my screen.cpp my program compiles without a problem. But when …

Member Avatar for Ancient Dragon
0
299
Member Avatar for BestJewSinceJC

Is using (in the paint method) g.clearRect() the correct way to clear the screen? It's working but I don't know if there is a better way. . google says it is supposed to clear automatically when update is called but that doesn't seem to happen.

Member Avatar for BestJewSinceJC
0
138
Member Avatar for shawn.bordeaux

Basically I am just trying to figure out how I can display customer records for the user who is logged in. I am sure this is very simple just not 100% sure how. I have a form that the user submits new customers and it stores the userid for the …

Member Avatar for shawn.bordeaux
0
185
Member Avatar for quietasamouse

How do I take randomly generated numbers and print the average of the numbers? And how do should I go about printing how many even and odd numbers that were generated? Thanks

Member Avatar for lllllIllIlllI
0
77
Member Avatar for applebiz89

I havent done much IO at all in haskell, only within the function itself. However I want to get the input from the interface for the function and havent done this before. // Say I have this as my data type and list of films data Film = Film String …

Member Avatar for thoughtcoder
0
112
Member Avatar for sumithar

I created a little script using the datetime functions in python and am trying to convert this to a .exe using py2exe. When I try running this from someone else's machine I get an error message about calendare module not found This is the python [code]import datetime import calendar no_of_days …

Member Avatar for vegaseat
0
639
Member Avatar for Zibo

Hello. I've got such example statement: [code=Java]for( int i=0; i <= 10000; i++ ) myTextArea.setText( myTextArea.getText()+ i + "\n");[/code] What is the problem? I can't figure it out, why in every iteration of loop the text area isn't refreshing with new String added. When this loop is iterating, app freezes …

Member Avatar for Zibo
0
131
Member Avatar for xmaddness

I am trying to do a simple MySQL query using my db class, but for some reason I am having issues with getting the query through using my db class. If I hard code the db call bypassing the class, it works fine. Here is the class: [CODE=php]<?php //////////////////////////////////////////////////////////////////////////////////////// // …

Member Avatar for xmaddness
0
151
Member Avatar for RizzLinux1388

Hi, I'm doing a project where we make our own string class and I'm having trouble with the substring function. This is what I have so far. [CODE]string string::substr(size_type idx, int length) { // can use the += char somewhere string *someString; char *ch = _data; for(idx = 0; idx …

Member Avatar for RizzLinux1388
0
148
Member Avatar for Whelk

First of all, forgive my naivete - I'm new to programming and trying to teach myself Python with the aid of the Internet and a book or two. My current problem that I can't find a solution to is hard for me to explain. First, I'll give the code I …

Member Avatar for Whelk
0
1K
Member Avatar for vmars

Greetings; Please, is there a 'python tool' of sorts (ide or whatever) that will convert [U]Python code to 'C' code[/U] . Thanks!

Member Avatar for Nine Tails
0
12K
Member Avatar for redburn

[B]I am trying to insert a new record into a mysql database and get the following error:[/B] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30, 60, 90, DayCreated) VALUES ( 'Rush Shirt', …

Member Avatar for nav33n
0
79
Member Avatar for DisembodiedLoaf

I'm having trouble with my programs for class. Program 1 Write a function that receives a list as its parameter and returns a list with the length of each element. In the main function print the returned list. [CODE]def elementLength(list): list = raw_input("enter list") return len(list) print elementLength(list)[/CODE] What it …

Member Avatar for sneekula
0
77
Member Avatar for vuyiswamb

Good Morning All I have a table named “Final” with Values like this [code] ID || DESCR || CYCLE ====================================== 1 || Earl G || 20 2 || Earl G || 21 3 || Earl G || 22 4 || Davidson I Dr || 20 5 || Davidson I Dr …

Member Avatar for vuyiswamb
0
481
Member Avatar for K?!

Hi all Is it possible to use only the classes you need in a panel or something? I'm finding it hard to explain my question, i'll give an example: We need to make a program to organise swimming competitions. When you want to (as a user) edit or create a …

Member Avatar for peter_budo
0
119
Member Avatar for Bhoot

I am developing a form application (UI) through which I need to connect a client to multiple servers. For that, i would require an array of either Socket objects or TcpClient objects. My dilemma is where i should put this array. I cannot put the array in the static class …

Member Avatar for Bhoot
0
134
Member Avatar for whex

Working on a current project with these parameters and am not sure where to start. I am new to all of this and could use some input. Use JAVA to build a sales commission application. In this application, the user enters a number in the SALES JoptionPane textbox. When the …

Member Avatar for masijade
0
105
Member Avatar for marco01

I'm working on a code to calculate a final score. Here below is my code: [code] public void calcFinalOCAS() { int calcFinalOCAS; int sum = 0; List<Integer> tmaMarks = new ArrayList<Integer>(); Collections.sort(tmaMarks); int minMarks = Collections.min(tmaMarks); if(minMarks < substitutionScore) { minMarks = substitutionScore; } for (int i = 0; i …

Member Avatar for marco01
0
87
Member Avatar for justted

Hiya, I am still developing my website and just wanted to ask whether I am on the right track to ensuring my website coding, database connection, etc is safe. My public directory obviously has the main pages in which the members will visit. For example .... log_in.php is located in …

Member Avatar for justted
0
155
Member Avatar for BimanD
Member Avatar for Xamas
Member Avatar for moro2009

hi everybody i just wanna ask why is this windows application code read the file once ? when i click the button it displays the text once.. why isn't be repeated? private void button1_Click(object sender, EventArgs e) { string filename = "c:\\flights.txt"; FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read); StreamReader …

Member Avatar for margani
0
127
Member Avatar for MaxVK

Hi. I have an xml file like this: [CODE=xml]<tree> <category title="Item 1">item 1 text <subitem title="subitem1">subitem1 text</fileitem> <subitem title="subitem2">subitem2 text</fileitem> </category> <category title="Item 2">item 2 text <subitem title="subitem21">subitem21 text</fileitem> <subitem title="subitem22">subitem22 text</fileitem> </category> </tree>[/CODE] I use ElementTree to parse this file and this works okay, however, I now need to …

Member Avatar for MaxVK
0
9K
Member Avatar for turbomen

Dear Sir, Could you mind tell me what about the difference between While..loop, for..loop and repeat.. until?? Can you give me some example?? Cheers,

Member Avatar for FlamingClaw
0
162
Member Avatar for Toila

[CODE=c]#include <stdio.h> #include <string.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 void Result (char *result, char string, char remove); char *RemoveChars( char *src , char *key ); int main(void) { char string[] = "Alesia"; char remove[] = "aeiou"; char result; Result (&result, string, remove); fflush(stdin); printf(" Press any key …

Member Avatar for WaltP
0
2K
Member Avatar for chaituu

this is dynamic rows code.when i click remove(-) any row i need to get respective checkbox id; for example when i delete row3 i need to get checkbox id as houseCheck3;when i delete row2 i need to get checkbox id as houseCheck2; once i get the id of that checkbox …

Member Avatar for anish.anick
0
83
Member Avatar for BestJewSinceJC

I have a list of teams, it can be any length. Now, for each team, I want to create a 2D box that says the team's name in the box. And I want to match these teams up against each other. So basically I want to be able to drag …

Member Avatar for BestJewSinceJC
0
161
Member Avatar for Bhoot

Currently I have started with my college project - Network monitoring, which may include features like keylogging, application blocking, h/w restrictions, catching snapshots, file operations surveillance, etc. (i mean as many as i would be able to add.) The platform for this project is C#.NET which is new to me. …

Member Avatar for Bhoot
0
644
Member Avatar for Liszt

I have a general question about how it would be possible to protect a software from copying. I have done a software that will be able to download from a website, the user will install the software on his/hers computer. How could it be possible to protect this software from …

Member Avatar for Liszt
0
104
Member Avatar for Erroneous Seth

Hello to everyone, I am having this problem with the following code: [code] typedef struct test { int i; char c[50]; } testStruct; int main() { char *pData; testStruct t; t.i = 5; strcpy_s(t.c, 50*sizeof(char), "hello"); pData = (char *)malloc(sizeof(t)); memcpy(&pData, &t, sizeof(t)); testStruct a; memcpy(&a, &pData, sizeof(t)); cout << …

Member Avatar for Erroneous Seth
0
246
Member Avatar for NathanOliver

Hi have made some code that will generate alphanumeric passwords and output them into a file. Each password size has its own function so i have 16 functions for sizes 1-16. The code works great its just that as you go up one size in the password size it will …

Member Avatar for NathanOliver
0
89
Member Avatar for MrDiaz

Hi, How can I code it so I can make a new window appear on my application? Let's say, user hits a "new user" button, a new window is supposed to pop with TextFields and labels and so on. In Dephi is something like, Form1.show; How do I do this …

Member Avatar for MrDiaz
0
77
Member Avatar for jimib

I am attempting to configure a datasource in an AJAX web page from an existing postgreSQL database that resides on our server. I have done this many times with MySQL, no problem. When I finish the configuration for the PostgreSQL Database in the "Add Connection" wizard of Visual studio 2008, …

Member Avatar for jimib
0
113
Member Avatar for Beuki

I am wanting to make a menu application. I want to duplicate the start -- all programs section of Windows. so, when the user clicks on the start button of my program, and goes to All Programs - there is a list of all the program folders, sub folders, and …

Member Avatar for Beuki
0
100
Member Avatar for justted

Dear members, I am after some help with a script I am trying to write/use! I am currently re-designing a website for an animal charity for which they would like to add a section in the members area where people can upload their own photos of their animals/pets. I have …

Member Avatar for balamca
0
102
Member Avatar for asweetroxxi

i have the shell of the code but im have some trubble i need to write the function that lets the user input a zero or a one. it have to be done in a loop the shell is shown: [code] #include <iostream> using namespace std; int const MAX_ROW=10; int …

0
149
Member Avatar for m-hrt

i have 4 input box of credit card number and 2 boxes of credit card expire date month and year and one for the card holder name i have some code but is it ok or i have to do some thing else [CODE=LANGUAGE]<?php $connection = mysql_connect("localhost","root","password") or die("error connect"); …

Member Avatar for m-hrt
0
110
Member Avatar for Tonkz

Anyone knows what I'm doing wrong here? I am getting supplied argument is not a valid MySQL result resource in line 34 [CODE=php]<?php //Connect to database server $conn=mysql_connect("mywebsite", "user", "pass"); if (!$conn) { die('Could not connect: ' . mysql_error()); } mysql_select_db("data", $conn); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Member Avatar for Tonkz
0
198
Member Avatar for genieuk

Hi, could someone tell me what the correct syntax is to check is a user exists in my database. I got a login page and when user enters username and password i need it to check if they exist obviously in database and if so re-direct them to the page …

Member Avatar for genieuk
0
202
Member Avatar for agrothe

Some strange errors occurring in my asp.net website. I was using the MS ApplicationBlocks.data.dll to connect o my SQL database. Once I started testing my website on IIS as opposed to the ASP.NET development server, I started getting connection pool errors. So, like anyone would, I searched for every instance …

Member Avatar for agrothe
1
545

The End.