199,114 Archived Topics
Remove Filter ![]() | |
Hi guys; I am developing a website using joomla. and Im using Chrono Form and ChronoConnectivity extensions for form handling. So using ChronoConnectivity and I am trying to display some form values. Of course no problem I can display that particular data by using ChronoConnectivity. but I need to display … | |
Hi, I know the code for this post is quite long, but I thought it would be best to be comprehensive about what i'm trying to do as i'm not exactly an expert in this area of programming. I'm stuck trying to work out how to get windows hook procedures … | |
this is my final code,, would you pls help me get this right java Menu driven code choices only in letters A, B , C [code] import java.util.*; public class Letters { public static void Menu() { System.out.println("Menu"); System.out.println("A. Summary report for a sales employee "); System.out.println("B. Print a pattern"); … | |
hi, i want to have a vector of strings. i know i could declare it by [code] #include <iostream> #include <string> using namespace std; vector<string> vec; vec.push_back("this"); vec.push_back("is"); vec.push_back("my"); vec.push_back("array"); [/code] but thats very tedious. isnt there a more elegant way? if i had the vector as an argument to … | |
Hi! I copied and pasted a grapics.h example from the help>index in borland C. When I try to run it the compiler gives me 9 error messages, all going something llike this: Linker error: Undefined symbol _closegraph in module "my file name" here's the example: [code] #include <graphics.h> #include <stdlib.h> … | |
Ok, so I'm really after knowledge rather than a quick easy solution here. I am part of a team that is currently working on the development of a 'kind of' physics engine but I have hit a small wall since adapting the functionality of a class which was previously working … | |
Hi everyone, I am fairly new to programming, but I was wondering if there was a way to run the java program i make when it is not in the bluej compiler (i am using bluej). I would like so that i can double click an icon and my applet … | |
Hey, I have an item class: [CODE] #pragma once using namespace System; using namespace System::Drawing; ref class Item { public: Item(void); int Type() { return _type; } void Type(int value) { _type = value; } String ^ Text() { return _text; } void Text(String ^ value) { _text = value; … | |
I created this function for my program : [CODE]int calcTotal() { petShop p; fstream f1; f1.open("Pet_Shop.dat",ios::app|ios::binary); int loc; loc=p.tellp(); float records; records=loc/sizeof(p); cout<<"Total number of records = "<<records; cout<<"Going back to main menu"; menu(); }[/CODE] I am getting this error : [CODE]error C2039: 'tellp' : is not a member of … | |
Hello! I am probably just going mad but. This code: [CODE]using namespace System.Windows.Forms;[/CODE] Generates the following error 1>GUItest.cpp(6): error C2143: syntax error : missing ';' before '.' 1>GUItest.cpp(6): error C2059: syntax error : '.' ..And I haven't the foggies why. Seems I cannot use .'s when declaring a namespace.. | |
I hope someone can help me with a simple RegEx for a preg_replace. I need to replace something like this [code]0.00|2=399.0000[/code] so I'm only left with the value '2'. Would preg_replace be the most effective method to achieve this result? Another example [code]0.00|13=69.0000[/code] to lift out value '13'. Thank you … | |
I tried to debug Macro variable but i cannot. I use Dev c++ [CODE]#include<stdio.h> #define TIME 5 int main() { int i=TIME; printf("%d",i); }[/CODE] when I run it, of course it gives correct result. but when I debug, it reports "TIME = not found in current context" | |
<!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-Type" content="text/html; charset=iso-8859-1"/> <title>Teas of the World!</title> </head> <body> <?php // Script 10.6 - Teas of the World.php // This function displays a four cell table. function tea($types) { $types = array ("Chinese Green", "Japanese Red", "Korean Black", … ![]() | |
Hello, i am trying to update a table row from a form the code is: [CODE]<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="votim" id="votim"> <p> <input type="hidden" name="email" id="email" value="<?php echo $usernamepervotime ?>"/> <input type="hidden" name="vota" id="vota" value="<?php htmlentities($row_VotaMiss['vota']+1); ?>"/> <input type="hidden" name="ID" id="ID" value="<?php echo $row_VotaMiss['ID']; ?>"/> </p> <p> </p> <p><a … ![]() | |
Hi. I am trying to write server side windows forms application that supports multiple clients. What I want is following: 1) I need an infinite while loop to accept new connections. In order to do that I start new thread which executes while loop. I can't execute while loop without … | |
Hi, I have a problem in repainting in a JPanel. Situation: I have a ButPanel which extends JPanel. In this panel I draw some sequences with some text along with it, by overriding paint() method. Eventually the screen size exceeds as input increases I use a CompareFrame which extends JFrame. … | |
Hello I have 2 classes [B]clsParty[/B] and [B]clsAccount[/B] clsParty has a function named [B]GetParty()[/B] clsAccount has a function named [B]GetAccount()[/B] I have a 3rd class named [B]clsDoTran[/B] What i want to do is i want to use [B]GetParty()[/B] and [B]GetAccount()[/B] functions from both clsParty and clsAccount But there is a … | |
Attempting to create a login form. Original plan was to search database, and display output (e.g label) if the user exists. No password required. I have limited coding ability with databases, and was attempting to search in an excel file. How do you find a record in a database? Index … | |
I am trying to populate a SQL entry with data from a php script but it doesnt work. I have the config file set up right and everything. This is the code I have [code] <? include_once "secure/dbconfig.php"; //check md5 $SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxx'; $sig = md5('userId'+":"+'appId'+":"+'SECRET'); if($_REQUEST['sig'] == $sig) { … ![]() | |
There is an invoice preview webpage. I want to set header and footer information off while printing it. I know we can edit the page setup settings. But I wanted to know if we can do something without changing the default page setup settings. With default setting inside page setup, … | |
How can i edit a text file on a server and how to receive it back in a text box.And at last how to check wether a particular word is there or not. If you can get any of this then please let me know at [URL="kvermamanas@gmail.com"]kvermamanas@gmail.com[/URL] You may tell … | |
Ok, I know their's tons of threads.. with the same problem. But.. every code is different. I'm pretty good with HTML/Css but I havn't had time to catch on with PHP. So, I have a site I'm setting up. Which requires a SQL/Database. Which is already configured. I've filled in … ![]() | |
Okay, so I'm sitting here bashing my head against the desk. I've been googling this for what seems the past hour. I cannot find any relative good links for making Python work with WAMP server. Yes, I understand how CGI scripts work. Unfortunately, I have no idea how to configure … | |
Whenever I run my python code, the window do not have any icon.. How to change it some icon or the icon I want to assign? I can assign a good icon for the exe generated thru py2exe. I want to assign icon for the window opened after double clicking … | |
Can anyone tell me why I get the following error message when I execute this code: `Exception in thread "main" java.lang.NoSuchMethodError: main` public class Pay { private double hoursWorked = 40; private double rateofPayPerHour = 10; private double withholdingRate = .15; private double grossPay; private double netPay; public void main(String[] … | |
Hello everyone! I've been lurking the forum for quite a while and decided to come to get some help as well. :) Right now I'm learning stacks and the like. I have to work on a program to write code to create a program that will use stacks. I'm not … | |
I have a form that get's pre populated from an events_result table. It has fname,lastname,event,results column. I have a link to Update which is an action call to function UpdateResults. I want to be able to use this one form to show the results and be able to update the … | |
how can i make the ide word wrap when i am writing lines of code, the code goes so far in width that I have to use the arrow button on my keyboard to see the end of line dev c++ 4.9.9.2 windows xp | |
Well I'm having quite a bit of errors with my code and have tried figuring out how to fix it, but I can't seem to figure out what is wrong. Here are the errors 1>------ Build started: Project: circle, Configuration: Debug Win32 ------ 1>Compiling... 1>circle.cpp 1>c:usersemcydocumentsvisual studio 2008projectscirclecirclecircle.cpp(38) : error … | |
I have a question: Is there any tutorial or way I could create a batch file that scans the folder that it's in, and then prompts you with an option of whether to delete any (C++, for example) files that don't begin with a command line, e.i. doesn't start with … | |
k guys so I have a login script, then an admin page, only for admins ><. But on the admin page I want them to be able to change there information, like email, username, password, account type, by the way my data base has all of these things acc type … | |
I need to create a new txt file using ofstream, but I need to use a string to name the file. For example: [CODE] string string1 = "testfile.txt"; ofstream myfile; myfile.open (string1);[/CODE] but when I try, it says I can do this because string is not a valid variable type … | |
hi all i want to create an xml file from an array i've been googling but can't find the right one the closest one that i get is in [URL="http://www.higherpass.com/java/Tutorials/Building-Xml-With-Java-And-Dom/"]http://www.higherpass.com/java/Tutorials/Building-Xml-With-Java-And-Dom/[/URL] but it doesn't create an xml file like i wanted to i want to print and create it like c:\xml … | |
Design and run a program that takes a numerical score and outputs a letter grade. Specific numerical scores and letter grades are listed below: 90-100 = Grade A 80-89 = Grade B 70-79 = Grade C 60-69 = Grade D 0-59 = Grade F In this program, create two void … | |
hello there Can anyone please tell how to create 2-D graphs in Java ? (X-axis and Y-axis stuff) | |
I am working in Microsoft Visual C++ 2008. Here is my sum of digits code: [CODE]#include <iostream> using namespace std; int main() { int num; int sum=0; cout << "Number, please? "; cin >> num; while (num>0) { sum=sum+num%10; num=(num-num%10)/10; } cout << "Sum of digits: " << sum << … | |
i have this error and i dont know why. please help...thanks! Webpage error details Message: Unterminated string constant Line: 19 Char: 45 Code: 0 URI: [url]http://localhost/itams/user/checkIfReported.php?a=5[/url] the codes in checkIfReported.php is this [code=php] <?php session_start(); include "../configdb.php"; include "../opendb.php"; $_SESSION['a'] = $_GET['a']; $result = mysql_query("SELECT _status FROM assets WHERE _id='$_SESSION[a]'") … | |
I know you guys MUST be tired of scope questions ... but I need some help getting through this fog ... The following code works ([I]notice where I instanced 'cp'[/I]) .... [CODE] public partial class frmMain : Form { ConnectParams cp = new ConnectParams(); public frmMain() { // Fires up … | |
Hello. I'm very new at C++ world, so, I need some help. I'm building an Browser Called iNet, and, it gave me 4 errors: c:\users\sepultura\documents\visual studio 2008\projects\inet 0.1\inet 0.1\iNet.h(193) : error C2039: 'timer1_Tick' : is not a member of 'iNet01::iNet' c:\users\sepultura\documents\visual studio 2008\projects\inet 0.1\inet 0.1\iNet.h(22) : see declaration of 'iNet01::iNet' … | |
I hear perl is the way to go for string parsing, so here is the test! I have a file like this: [code] ... <li><a href="DSC_9866.JPG"> DSC_9866.JPG</a></li> <li><a href="DSC_9867.JPG"> DSC_9867.JPG</a></li> ... [/code] and I want to get a list of the file names. That is, the result I want is … | |
Hi, I have the code as in the following: [CODE] <?php $name= "Test"; $phone= "123-456-7890"; $email = "myemail@mymail.com"; $comments = "Test Only"; $string = "<message>\n<name>" . $name . "</name>\n<phone>" . $phone . "</phone>\n<email>". $email . "</email>\n<comments>" . $comments . "</comments>\n</message>"; //If file exists. append, otherwise create $file = "messages.xml"; $fh … | |
As I told before here is second implementation of one word anagrams, which prepares lookup table for all available words, if it is not generated and afterwards uses it for fast lookup. The implementation of lookup table generation is quite unoptimized, but it is only done once per vocabulary. If … | |
I have been trying to use a wxPython textctrl to display a list of files, but it did not fit my purposes. The wx.StaticText seemed useful, and a ll works except for one major kink; I don't know how to scroll it. Moved post to its own thread, since the … | |
Am having serious problem with creating and installing membership registrations and login database, the most troublesome is the area of creating a database table on the mysal php5 +, Please anyone with a brief and understandable A to Z Coding of these tables should please post it to me, i … | |
i am pretty new to c++ and dark gdk. im trying to make a simple platform game to start off. i have the basic controls down, the animations, and collision. but i am having much trouble finding how to create the effects of gravity. please help. | |
I'm using this progress bar from [URL="http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm"]http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm[/URL] and I want to be able to display some text after the bar finishes loading. I figured out out to get it to output the text, but it loads in a new page. I want to get it to load where the bar … | |
Hi sorry I am very new to AJAX and javascript probably a silly question but where can I put document.getElementById("loading").innerHTML='loading...'; in the following so it appears when it is loading and disappears when it is loaded? function getstate(){ var xmlHttp; try{ xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari }catch (e){ try{ … | |
Hi everyone, I'm not so sure if this belongs in here or in computer science but I think as I want to use c++ this may be the place. I was wondering if anyone could point me towards some tutorials/references or books on methods for approaching the design of larger … | |
I am trying to implement the A* algorithm in C++ ([url]http://en.wikipedia.org/wiki/A*_search_algorithm[/url]). The pseudocode i am trying to implement is: [code]function A*(start,goal) closedset := the empty set // The set of nodes already evaluated. openset := set containing the initial node // The set of tentative nodes to be evaluated. g_score[start] … | |
Hello, Im trying to get my custom website screensaver to open in full window mode but I keep failing, I cant work out why? Do I need a new function in the code to do that? Please help if possible. Seen some odd codes in Javascript? :) [CODE] <script> <!-- … |
The End.