199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bailsb

I am making an expression tree for a school assignment and am getting these error in my code. Being quite new to C++ I have searched the web for answers to no avail.[CODE]#include<iostream> using namespace std; #include "expression.h" namespace Student { void writeNode(NodeType* node); /* Displays an arithmetic expression. @pre …

Member Avatar for bailsb
0
2K
Member Avatar for 54uydf

I want to put on one of my HTML pages a message box with editing options, just like the one you are using in any forum to post a message (with options like -bold, italic, underline,font color, font size, adding files, etc) where can I get a ready code?

Member Avatar for 54uydf
0
121
Member Avatar for liran

Hye I have a question: Suppose I use JDBC, JDBCTemplate in order to execute a sql query. The query is something like: query = "SELECT ... FROM ... WHERE user = ? AND password = ? AND x='valuex' AND y='valuey' ..." Where user,password - I got from the web user …

Member Avatar for liran
0
310
Member Avatar for txwooley

I found an old post (2002) on another website where someone asked how to colorize text in Linux. The reply was: [CODE]printf ("\033[31ma\033[32mb\n");[/CODE] Where the format is "\033[XXm" followed by the text to be colored. I tried this on my Ubunutu machine and it works. It even works with "cout …

Member Avatar for txwooley
0
120
Member Avatar for alibm

Hello, I have a project and I'm working on the important part now. I want to create this interface in the end and informations in DB. This my goal, this is a prototypical interface created with MockupScreens [url]http://i.imgur.com/7rt5U.png[/url] now I created this interface, I think I'm progressing slowly because I …

Member Avatar for mKorbel
0
376
Member Avatar for RenanLazarotto

Hey people! I was just surfing around the threads here, and found one asking for how to make a Installer-like GUI ([url]http://www.daniweb.com/forums/post1492819.html[/url]). I've replied there, but I think that is nice to have this on our code database. To start, let’s make na empty Project. Add a TabControl to it. …

Member Avatar for RenanLazarotto
0
644
Member Avatar for AngelicOne

My form1 has a datagridview that is being populated by a dataset. I need to get the row's values selected on the datagridview to another form, which is form2 that is consist of textboxes. I am quite confused whether to pass the dataset to form2 or use a datareader to …

Member Avatar for Mitja Bonca
0
207
Member Avatar for showman13

Good Morning, I'm not really sure where to go with this line of thought, so decided to bring it here where the logical thought processes reside... ;) What I have is this... A new membership program that has multiple levels that members can be paid on. Each level is tracked …

Member Avatar for showman13
0
350
Member Avatar for moshe12007

hi i have 90 textBoxes at my program and i want to insert them for my DataBase (sql) how can i do that? i know that i can to do array like -> TextBox[] arr = {textBox1,texBox2......textBox(n)}; but i dont wanna this way cause that a lot of work. how …

Member Avatar for moshe12007
0
169
Member Avatar for spunkywacko

Hey guys can anyone tell me what am I doing wrong? I basically set up a method which has an array, it will return a specific element in the array according to an ID set within my property. I get the following errors: [CODE]Error (wordIdFunc = 2;): Invalid token '=' …

Member Avatar for ddanbe
0
100
Member Avatar for Aser Gado

I am creating a visitor messages system on a member's profile, here is my code so far.. I am using it as an include in the profile page, here is the error I get: [CODE]Error: You have an error in your SQL syntax; check the manual that corresponds to your …

Member Avatar for diafol
0
115
Member Avatar for anu07

Hi,can anyone tell me how to check if a file exists,I am using turbo c++ 3.0 Thank you for your time.

Member Avatar for anu07
0
413
Member Avatar for joshvanslam

Hey, this is my first post here, so greetings lol. Back to the topic, Is it possible to make a text box that can put the text into html code and if so how? Sort of like the box you type your post's with on forums or blogs.

Member Avatar for diafol
0
153
Member Avatar for cliffcc

If I have an event which consist of 100 tasks, how to rewrite the below code,so i can show all the dealine of each task into <table>? Thanks! [CODE] <?php require("connect.php"); $deadline = mysql_query("SELECT * FROM events WHERE taskid='1001'"); $row= mysql_fetch_assoc($deadline); $deadline2 = ($row['deadline']); //dealine for this task(1001) is 2011-3-10-5-45// …

Member Avatar for diafol
0
122
Member Avatar for adir

Hi, I got lost with some prj, hope you can give a hand. I need to create a tiny code, that generating between several variables, with loop that generate all char variations in new row. The order of all variables need to remain as it is, and to take effect …

Member Avatar for adir
0
134
Member Avatar for bart89

Hi everyone! While writing one of my first programs in C# I have encountered a problem: I create two PictureBoxes(1 and 2) and I want PainEvent to draw a line on second of them(PictureBox2). When i start my program there isn't any line on it and it appears when I …

Member Avatar for jonsca
0
89
Member Avatar for Staggasaurarts

Hi, i would like to send data from a C++ application to a php script i am creating that will then put it into a mysql database after manipuating it a bit. If you don't get what i mean then think of it like this. An HTML form can be …

Member Avatar for ziggystarman
0
1K
Member Avatar for Vega_Knight

Hi, i want to get current position of cursor on the form. there are label to show the coordinates of cursor position. anyone can help me. i don't have idea for this. thanks Best regards.

Member Avatar for Vega_Knight
0
461
Member Avatar for dnk

Hi masters.. how can i shutdown computer using api files in vb6? best regards.. Gbu

Member Avatar for dnk
0
289
Member Avatar for 54uydf

1. is it possible to put 2 values with 1 key into a HashMap? I know the regular put(k,v) won't do it..but I'm trying to override many functions to fit my needs and I can't figure out a way to do it.. let's say the key is a name and …

Member Avatar for 54uydf
0
115
Member Avatar for VasquezPL

HI friends, Is there a possibility to refer to item by its number (in Combobox)? For example, I read all combobox items from a file. and I need to do sth like that: [CODE]if (comboBox1->Itemnumber=1) then {Action}[/CODE] I don't want to refer to the text in the combobox to make …

Member Avatar for VasquezPL
0
156
Member Avatar for anirban1087

Hi, I have two problems regarding my database design 1. I have a table contains the details of items, available in a store. Now there are different size available for each item. How to design my table so that it will hold each item and all available size in a …

Member Avatar for anirban1087
0
135
Member Avatar for HappyCat123

Hey guys, I am very new to Java and I am trying to create a simple GUI and make the background a picture, I've tried to google and look on this site for the answer and also tried to implement the solutions and I simply cannot get anything to work. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for jrosh

I connect a mysql database through a Axis2 web service with J2me app. Every time i insert a data to the database the following exception occurs. java.rmi.MarshalException: SAXParseException in response from server But the operations get completed successfully. Also this occurs only when i try to write a record to …

Member Avatar for peter_budo
0
191
Member Avatar for Usmaan

If I make a program, how do go about, well, actually publishing it? In the sense that I can make it in to an icon on my desktop and open it etc.... Any ideas?

Member Avatar for Mitja Bonca
0
96
Member Avatar for AngelicOne

I used to fill a listview with dataset that is set to details view. Now, I need to fill the listview with images and by that I believed that I'd set the view to large icons. How to do this? this is how I feel the listview [CODE] foreach (DataRow …

Member Avatar for Mitja Bonca
0
240
Member Avatar for fazdhli

I can't find whats the error here. Pls help to have a look on this ^^ [CODE]#include <stdio.h> #include <conio.h> #define tax 0.05 struct jitemenu{ char menitem[10]; double harga[10]; }menu[100]; void items(int ,int,double,double); // pengistiharan function void tunjukmenu(); void resit(int, double, double, double); int main() { int Q[10], item,i,c; tunjukmenu(); …

Member Avatar for fazdhli
0
105
Member Avatar for arezz09
Member Avatar for arezz09
0
186
Member Avatar for blee93

[CODE]#include <iostream> #include <cstring> using namespace std; class Cow { char name[20]; char * hobby; double weight; public: Cow() { strcpy(name,"peter"); strcpy(hobby,"nothing"); weight = 1.0; } Cow(const char * nm, const char * ho, double wt) { int len = strlen(ho); strncpy(name,nm,19); name[19] = '\0'; hobby = new char[len + …

Member Avatar for blee93
0
233
Member Avatar for valter

I have got a hashtable that holds an analysis of individual photo characteristics. There are duplicate values in the hash table. Can someone explain how I can get values that are not unique,ie there is more than one entry the same. My hashtable is in the form of a text …

Member Avatar for valter
0
78
Member Avatar for WolfShield

Hello, I have been working on a speech synthesis program using JSAPI and FreeTTS. I now have the code with NO errors (!!!:)) However, when I run the code, it doesn't actually have any audio to it. If I change the text spoken to "This is text that is spoken." …

Member Avatar for WolfShield
0
192
Member Avatar for WolfShield

Hello everyone, I am working on a program right now and part of the idea involves a pop-up menu. What I need is something like: A small box in the program, On MouseOver small box, small pop-up menu opens up next to the small box, On MouseOver menu option 1, …

Member Avatar for WolfShield
0
106
Member Avatar for tape enterprise

well I am having a problem with my class I made to connect to my DB ok here is the class[CODE]class database { private $db_host = 'localhost'; private $db_user = 'root'; private $db_pass = 'McSteel8'; private $db_database = 'cmte'; public function connect() { $this->link = mysqli_connect($this->db_host, $this->db_user, $this->db_pass); mysqli_select_db($this->link, $this->db_database …

Member Avatar for tape enterprise
0
88
Member Avatar for fazdhli

hi all, nice to meet u again. I need your help on this code, which is the programme i still failed to compile. [CODE]#include<iostream> #include<iomanip> #include<string> using namespace std; // Define Struct struct menuItemType { string menuItem; double menuPrice; }; void printCheck(int compMenuList[], int counter2); void getData(int compMenuList[], int counter1); …

Member Avatar for fazdhli
0
216
Member Avatar for geoffy0404

I don't know why my code is failing after building, actually i know the char statements are wrong can anyone tell me how i can fix the char statements and make them correct, all i need to do is initialize a single letter using char [CODE]#include <stdio.h> int main() { …

Member Avatar for geoffy0404
0
169
Member Avatar for kodera

I am working on an assignment that calls upon a text file to read numbers line by line. If line 1 number is 1, it looks at line 2 number (ex, line 2 = 13), and uses OneNumber class file to do various methods (such as prime or not prime). …

Member Avatar for kodera
0
298
Member Avatar for atticusr5

hello all, so i am taking a 1 hour vb class, and i am having trouble printing formated output to a list box. Basically I have two string variables that i use to format the output, but it is not working. Any clues? thanks [CODE]Public Class Form1 Private Sub compute_Click(ByVal …

Member Avatar for Jx_Man
0
101
Member Avatar for Shizuo

How do I change a component that is called in a different class? for example i have added a button on a jframe then called the frame, then in another class how can i change the setVisibilty of the button that was called in the other class?

Member Avatar for Shizuo
0
96
Member Avatar for lit108

I am using facebox to display a contact form, however when the user selects submit I would like the action which for this example I shall call action="contact_send.php" to also open in a facebox. Currently it is easy to open a link into a facebox by declaring the rel attribute …

Member Avatar for Airshow
0
269
Member Avatar for MDanz

i have a form on submit.php, with method post to the same page($PHP_SELF). If i made a mistake i want to be able to press 'Go Back' to the previous page(same page) and have the values in their textfields. [code] if(isset($_POST['new'])) { <a href='#' onClick='history.go(-1)'>Go Back</a> } else { // …

Member Avatar for Airshow
0
139
Member Avatar for toritza

Hello. I am have a problem while trying to write to a file some sorted lines . my initial file is somthing like this name2,number2;name3,number3;name1,number1 when i run this code ord = open("Be.csv", 'r') order = ord.read().split(";") order = sorted(order) for sort in order: print sort ord.close() f=open("Odd.csv","w") f.write(sort) f.close() …

Member Avatar for toritza
0
184
Member Avatar for deucalion0

Hey guys, I have been trying for a few days to create a form on a web page where someone can search my database by keyword, I am having many difficulties figuring this out, and Googling help has probably confused me more. I have a database called links which contains …

Member Avatar for arrgh
0
648
Member Avatar for rlamarche

Need a standard fifo algorithm. for a cpu shceduler so one command comes in at a time. Please help Thank yOu

Member Avatar for template<>
0
125
Member Avatar for filch

Hello all, I am using the zoommap plugin to develop an interactive type map. I am also using the maphilight plugin to create imagemap rollovers/popups. So the functionality is: a world map; rollover a country, it hilites, shows the name of the country. When you click on the country, a …

Member Avatar for Airshow
0
124
Member Avatar for Stefano Mtangoo

I'm doing a project and would like to hear your opinions. I want to make Integrated library system and I want to have these folders 1. classes - where all classes will be stored 2. templates - where all templates will be stored 3. admin - where admin files will …

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for chess2009

I would like to write a program with getchar and putchar that read my input and prints one word per line and ignores all semicolon, comma , dot , newline, tab and space. Here is my input: "The Parsnip The parnip, children, I repeat, Is simply an anemic beet. Some …

Member Avatar for WaltP
0
432
Member Avatar for rajandass65
Member Avatar for R0bb0b
0
134
Member Avatar for trume

How can I make this code with just one parameter (int[] a) ? [CODE]private void QuickSort( int[] a, int left, int right ) { int i = left; int j = right; int pivot = a[( left + right ) / 2]; while( i <= j ) { while( a[i] …

Member Avatar for trume
0
3K
Member Avatar for tehmarto

Hi all, I'm developing a program and I want a way to print out French characters. When I post the French characters in the menu, like this [code] AppendMenu(hSubMenu, MF_STRING, NEW_LIST, L"ç"); [/code] The ""ç" shows with no problem. But I wanna make it to show either in an editable …

Member Avatar for tehmarto
0
421
Member Avatar for razerLachesis

im using ajax to load the values into combo box two after the user chose a category from combo box 1. but the contents are not loading in the combo box one. i do know how to do it in php but using html form cant make it work. the …

Member Avatar for Pnorq
0
580

The End.