199,114 Archived Topics
Remove Filter ![]() | |
how to populate treeview from multiple columns of sql data table I have attached my sql table here.from that table,i have to populate a treeview of the below form; -outlook ---------overcast -----------------------------yes ---------rainy ----------------wind ----------------------strong ------------------------------no ----------------------weak -------------------------------yes ---------sunny ---------------humidity ------------------------high --------------------------------no -------------------------normal ---------------------------------yes. It is readable like this; if … | |
[CODE]// name-printer.cpp : Defines the entry point for the console application. // #include <stdlib.h> #include <iostream> #include <iomanip> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main () { string inputNameString; //the Name string that is entered by the user string names[3]; // A string array that will … | |
i throw a string value from the database in an input box...when i click update button, i need to clear the textbox after clicking update button..how?thanks a lot... | |
Hi! How to create a website with cookies, but cookies will not be deleted (they will be on computer forever, except somebody delete it; I deleted the cookies one time, and then they have been automatically created (I didn't go to these sites)) So, how to create these two things? … | |
Hi, I'm getting the following error: attempt to run compile-and-go script on a cleared scope [Break On This Error] if (xmlhttp.readyState==4 && xmlhttp.status==200) when i try to run the following code in mozilla firefox: does anyone know on what i'm doing wrong? thank you. gethint.html [CODE] <script language="javascript" type="text/javascript"> function … | |
Hello... I already know how to connect the Drive to Directory but I don't know how to connect File to Image can someone teach me how to connect the File to Image?? Pls...... | |
I am developing a windows phone application using VB.NET Can anyone suggest me of which database to use as MySQL is said to hang on a mobile device... | |
Dear friends: I get different resutls when copy my code from windows to linux system. the string comparion " if( keyword==Key[0] ) " is true in window system, but it is false in linux system. I am really confused about this.I copy the same source code and the same input … | |
Here's my dilema. My client program is going to request a certain file from my server program, so the server program needs to send the size of the file it requests and then the file itself by using a Socket all in one go. My client will then read the … | |
I'm trying to convert hexadecimal values to Binary. I've done Decimal values to Binary up to 32 bits in this way: [CODE] #include <stdio.h> int showbits(int);/**************function*prototype******************************/ int main() { unsigned int num; printf("enter the number."); scanf("%d",&num); printf("%d in binary is ",num); printf("\n"); showbits(num);/*********************function*call********************************/ return 0; } showbits (int n)/******************function*definition****************************/ //* … | |
I have a script that reads all rows from a database, and prints it out to an html table. The html table has an extra column for "status".In this column there is a form that is supposed to submit the dropdown field to the mysql database. I've got the set … | |
im using uploadify that can upload multi photos.. now i need to select a client to upload photos.. after choosing a client > next is client profile.. including the "add photo" button which is jquery... my problem is after choosing a client i need to get the clientid then pass … | |
how to trap? for example in my textfield i don't want my textfield to accept double data type only integer is accepted..i don't have any idea how to do it.. can someone here give me a clue...please a sample code. | |
Wondering what the proper way to test a collection, that is not an [I]ICollection[/I], is since Assert.Contains(object, [I]ICollection[/I]) cannot be used for something like a constructed PriorityQueue? [CODE] [Test] public void AddTest() { PriorityQueue<Vertex> vertexQueue1 = new PriorityQueue<Vertex>(); Vertex v1 = new Vertex("V"); v1.minDistance = 10; vertexQueue.add(v1.minDistance, v1); Assert.Contains(v1, [I]vertexQueue1[/I]); … | |
.gud pm!!i know people out there are so intelligent,,so please help me regarding my project about software engineering, "system/software development project proposal document. " any software will be accepted,,please have mercy! | |
Hello everybody, First off let me say I did do a search of google and these forums before posting this. I have sort of what I want without having exactly what I want and before I proceed further hacking up already working code I figured I'd start a conversation as … | |
ok so i know how to write a reg expression for something more specific but i dont know how to make it more dynamic. right now i am matching {tour:right} with this {tour:([A-Za-z0-9_]+)} But the question is how do i write it so that i can use {tour} and {tour:right} … | |
Here`s my code. I think its right. I had checked every single detail. But then, it still don`t work. It doesn`t link to the html i had created. Hope you can help me. I`m new to this stuffs. [CODE]<html> <head><title>Using Image Maps</title></head> <body> <center><img src="bearface.jpg" width="600" height="776" alt="bearface" usemap="#bearface"></center> <map … | |
I have two forms that are called by the main form. One is named frmEdit, and is invoked by the ShowDialog (modal) method. The other is named frmSearch and is invoked by the Show (non modal) method. In both cases I want to preserve the last window position so each … | |
[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int num, unit, ten; Console.Write("\t\t\t** Developed by : GE ** \n\n "); Console.Write("Enter number here in range 0-50 : "); num = Convert.ToInt16(Console.ReadLine()); unit = num % 10; ten = num … | |
I found a page saying that int a = 12; and int a (12); do the same thing. But is there something special with the int a (12); way of initializing a variables? Like, you can do: string test(5, '-'); which would make test = ----- I couldn't seem to … | |
Hi everyone, I'm writing a program that reads numbers from a text file, stores them in a table, does calculations on the numbers and displays the result in a jTable. The scanner reads the numbers as doubles and stores them in an ArrayList. My tablemodel is very similar to the … | |
Hello forum, My name is juan and recently started html programming. I have a web page with a drop box with the name of states. Code: <option value="">Alabama</option> <option value="">Alaska</option> I can add a onclick="code here" to the tag so that when the drop box alabama is selected it triggers … | |
Hey dear Friends... I'm developing a code for an assignment given that find a solution for a modified Dining philosophers problem.. For that problem I had to create four classes. [ICODE]Philosopher[/ICODE] , [ICODE]chopStick[/ICODE] , [ICODE]samllBowl [/ICODE] and [ICODE]bigBowl[/ICODE].. I implemented the class [ICODE]philosopher[/ICODE] as Runnable.. And the problem is this.. … | |
let say i have a class A (base) class B , C, D also inherit A [ multiple ] then class E inherit class B, C, D... But class E also want to inherit class A [ multilevel ] *I want to use class A protected function in class E... … | |
Hi, I am trying to update data from a column in a database using a php script. But for some reason it doesn't update the database, but i get no error feedback. So first i select a random entry from the database and i add it as a parameter to … | |
Hi all, I am trying to calculate checksum of some data using python. I am putting a sample ICMP header here and the correct checksum of that packet(Got this by sniffing network with wireshark) [B]DATA is "08 00 69 eb 8e 13 00 01" And the correct checksum is "0xa9eb". … | |
[CODE]char main()/*Start of the function main???*/ { char choice1; char choices = 'y'; while(choices == 'y' && choices != 'n'){/*while loop initialization*/ print(); getchar(); scanf("%c",&choice1); printf("%c",choice1); switch(choice1){/*Switch case statement,,,*/ case 'a': case 'A': addContact(); break; case 'f': case 'F': search(contacts); break; case 'v': case 'V': list(); break; case 'e': case … | |
![]() | Hi folks, I am trying to create a function that adds comments to a text file. If the file exists, the comments are added to it. If the file doesn't exist, it is created then the comments are added to it. If there are any problems, an error message is … ![]() |
For the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks. | |
im building a site that places galleries within an itemTemplate, each gallery has its own ID, im tring to allow each gallery to have its own "edit" button, this will allow the user to delete or rename the gallery etc. is it possible to make the button ID the same … | |
i already finished my app and now i deployed it using Setup Wizard. But when i installed my app to my computer, the Crystal Report didn't work.... it says "Load Report Failed"... and when i red about this Merge Module thing i want to figure it out but the problem … | |
hi all friends I wanna check if presses keys shift and tab then focus will go to the textbox that i want. | |
I'm trying to write out a series of objects as an XML file so they can be read in later. I have all the code to build the XML tree and set all the attributes, etc. I've looked through the whole tree in VS so I know all of my … | |
I am attempting to make a chatroom as my first program that communicates between computers. I am having trouble setting up the Server Socket Though. My program stops when it tries to set up. Here are my variables [CODE] private JTextField textArea; private ServerSocket servSock; private Socket sock; private BufferedReader … | |
hi guys i am trying to upload an image but my code is not upload image size higher than 400bytes please help me i tried but many thing but figure it out. [CODE] <html> <head> </head> <body> <form action="test.php" method="post" enctype="multipart/form-data" > File: <input type="file" name="image" /> <input type="submit" value="Upload" … | |
The below line generates this error. Can anyone gives me a solution Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\MySite\php files\approve_page.php on line 25 [CODE] $query = "UPDATE transaction SET approved_status='1' WHERE account_number='$account_number' AND tran_id='$_POST['tran_id']'"; [/CODE] | |
i need the snake not to pass by the walls...can anyone help me? here is the progam.cs [CODE]using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace TikTak { class TestCon { [DllImport("msvcrt")] static extern int _getch(); static void Main() { ConsoleHelper ch = new ConsoleHelper(); char move; short x = … | |
Im not asking for home work help .I need a guide.. My teacher gave a huge project work for me. I have to develop an application that maintains basic info about all students in my college (every department and IV batches in each department). And I need to maintain their … | |
I'm working on a game version of Game of the Generals (board game). Basically, it plays like checkers, but I wanted to add multiplayer functionality, with an additional chat function. A player starts a server, another player on another PC (in the same network) starts a client, client connects to … | |
How to open already present text file... So user can see the data in that file... I dont mean FileInput or OutputStream open. | |
hello all how to count numbar of mysql tables programmatically (c#) thank you | |
I am using jpgrpah in php to show a bar diagram by using an array as an input. The array is created by a function. I am getting the following error. Error 25044 - Cannot use auto scaling since it is impossible to determine a valid min/max value for y-axis … | |
I'm creating dynamic buttons and forms for a website and would like the form hidden when it's corresponding button is clicked. However, when I pass button and form name variables to my JavaScript that hides the form, the variables are not being recognised unless I explicitly set them. (e.g 1 … | |
wxpython i cant figure out the problem. it says that the global neme 'panel' is not defined. Traceback (most recent call last): File "C:\Users\Daniel\Desktop\Duffan Teorem", line 34, in clickbutton wx.StaticText(panel,-1,media,pos=(150,240)) NameError: global name 'panel' is not defined could someone please help me to figure tha problem out? Thanks in Advance … | |
Hey! I have a problem. I've been coding Python for two years now, and it's great, but now I'd like to use a module called "ctypes" to import C function into Python. I know how to do it and all, but the problem is: I know how to program in … | |
Hello! I am writing a program to execute another process. But the argment string has " ) ( ; / \ symbols. So it does not allow me to start the program with the true string (argument)... Here is the program: the program is on the user agent string: [CODE]#include … |
The End.