199,114 Archived Topics
Remove Filter ![]() | |
Imagine that we have 10 Labels from up to down in a Form, that each of them contains a number. How can I sort these Labels?, so that the greatest number go to the top of Labels and the smallest one go to the end? | |
hi all! i have a table layout panel with lots of controls in it. side to it i have a combobox with 5 options "system A" and "system B" ect. when i pick one system, i clear all the controls one by one (checkboxes to check=falsa , textboxes.text = "" … | |
Hello guys, I'm making an application for myself and I need to get the coordinates of the mouse when left click was pressed. I managed to get the coordinates when I click on the form by using[CODE]MouseUp += new MouseEventHandler(KeyCaptured); void KeyCaptured(object sender, MouseEventArgs e)[/CODE] but when I click inside … | |
Can anyone think of an intelligent way to extract the largest sequence of numbers from a list like: [CODE=python][[2, 4, 9], [3, 5, 10], [6], [2, 4, 9], [1, 8, 11], [3, 5, 10], [6], [2, 4, 9], [0, 7], [1, 8, 11]][/CODE] without brute forcing every possibility. You can … | |
I was debugging a program and following is the snapshot: [CODE]81 while (j < len_y && suf_arr[j].word[0] == c) (gdb) 184 if (suf_arr[j].len > 1) (gdb) n 186 memcpy(temp_str, suf_arr[j].word+1, suf_arr[j].len-1); (gdb) n 187 ind = search(suf_arr, temp_str, len_y); (gdb) print suf_arr[j].word $13 = 0x7fffffff96d2 "bbit" (gdb) print suf_arr[j].word+1 $14 … | |
I use Ubuntu Linux and I'M running python 3. How do I know what version of pygame to get for python 3? And could someone point me to it? Thanks. | |
Hi all, Did a site for a group I belong to. Now they want me to add a login page that would take people to a members only area. Need to be able to validate the users via a database. The only database I have available to me is Access … | |
I have a problem working out how to return users data when the user logs in. It needs to work so that when any user logs in only their data is shown. This is the current table structure; I have three tables set up; 'Users' 'Profile' 'Linkingtbl' The 'Users' table … ![]() | |
Hi all, im sure this will be areally quick solution for you masters out there, Im trying to create a SELECT query but I am continually getting a parse error ? [code] $query="SELECT * FROM friends WHERE (user_id = '$_SESSION[SESS_MEMBER_ID]' AND request_id = '$profile_id') OR (request_id = '$_SESSION[SESS_MEMBER_ID]' AND user_id … ![]() | |
All the add/remove/modify/display functions are now working for my little Customer Call Tracker web app thanks to the help of a few others on this site. Currently to manipulate the data after it has been entered I have 3 separate form fields to paste/type in a work order number which … | |
How do you set database timezone for MySQL database? I tried: ALTER DATABASE SET TIME_ZONE = 'US/Eastern'; and it's not working, i get this error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to … | |
Hello there! I am pretty new to xml and xsl. I have been trying to achive a dynamic link creation. My xml file has the format like; <root> [INDENT]<customer>company_name</customer> [INDENT]<id>2334</id> <code>xsTu4</code> <mail>info@comany.com</mail>[/INDENT] </customer>[/INDENT] </root> I want to use an XSL file to give me a link like detail.aspx?id=2334 I have … | |
Hi, I was wondering if the compiler Visual C++ is smart enough to optimize code like this: [CODE=C++]string temp = "abcd"; string temp2 = "hahaha"; string temp3 = temp + temp2;[/CODE] "temp + temp2" can be replaced by "abcdhahaha" [CODE=C++]vector<char> alphabet; for (char i = 'a'; i <= 'z'; i++) … | |
Hey guys, I have been looking for hours, and I can't find the correct solution or know where to even start... I got this script, and when I click on a radiobutton from the part of the website, it needs to change the reasons (other radiobuttons). Can anyone help me … | |
Hi.. I try to make a link while calling the data in php. This is the code : [CODE] while ($row = mysql_fetch_array($subject_set)) { echo <a href="example.php">$row["menu_name"]</a>; $page_set = mysql_query("SELECT * FROM pages WHERE subject_id={$row["id"]}"); if (!$page_set) { die ("Database query failed: " . mysql_error()); } while ($page= mysql_fetch_array($page_set)) { … | |
Just gathering general idea here... let's say I have a table "Names" with a field "name" --> bob, and tom (2 records) I want the ajax/php page to pull out all the names. which would be bob and tom. And then if my database got updated at the backend (ex: … | |
I've been working on an applet that gets all the links from a webpage. So far, I have it getting the source. I have found some regular expressions that supposedly will parse out the source, but it doesn't make any change to the original source. I also found some example … | |
[code]#include<stdio.h> #include<stdlib.h> main(){ char *tab; int n; int i; char c; printf("dimension du tableau?"); scanf("%d",&n); tab=(char*)malloc(n*sizeof(char)); printf("remplir le tableau :"); fflush(stdin); gets(tab); for(i=0;tab[i]!='\0';i++){ printf("%c",tab[i]); } }[/code] let's say i just want 5 letters in tab,so i run the program and put n=5,but what i don't get is that if i … | |
[code]#include<stdio.h> #include<stdlib.h> #include<string.h> struct name { int a; char b[10]; char c; }; int main() { struct name *p; p = (struct name *)malloc(3 * sizeof(struct name)); char *n; n = "12345"; n = (char *)p; n = (int*)n; /*this is not correct . in doubt....change correctly*/ strcpy(n+(sizeof(p->a)),"ALL"); *(n+sizeof(p->a)+sizeof(p->b)) = … | |
The aim of the program is to add ten numbers then output their sum. I can do this but in a very basic way. for instance the only way I know how to do this is by adding each array and thats quite tedious and long is there any way … | |
Hi. I don't know what is wrong with the following attachment, actually I have two drop down list on my html form, and which is one retrieving the value from MySQL table, and the second is dependent to the first one, and that one also gets its value from another … | |
i want select values in list ,then it automatically stored in database. how to do ? if anybody know say to me.... | |
What is a pre-processor macro and how is it processed by the C++ system? Demonstrate a potential problem with this approach by referring to the macro [CODE]#define SQR(t) t*t[/CODE] what is wrong here... besides the fact that if you put a type that cant use the * operator you'll get … | |
I've been developing console applications using C/C++. I now want to move on and create some GUI applications. For that i saw some libraries to create GUI. I think those libraries are OS dependent. How can we create GUI applications compatible with Linux, Windows and Mac, or is it even … | |
Hi , I am trying to insert chinese characters in database using sql statement but they appear as '????????' in the databse.Can anyone help me with this . Thanks | |
Hi everyone, can you help me please with then following?? a)The C++ Standard Template Library (STL) contains a number of container data types, explain with suitable examples the advantages these give to the programmer over a procedural language such as C. b)Demonstrate using suitable code the usage of the STL … | |
Hello everyone, I quite new at JAVA and one assignment is on my nose and I am going crazy.. My task is: "[I]Create a solution for the following scenario: A local community mobile college unit holds 2 different classes in literacy and numeracy for mature students. A student can join … | |
I can not figure out how to get data from the model to the GUI in the view. If the user logs in successfully all the users personal data is stored into the bean including the userUid. of the user. also, if login is successful the app will build many … | |
I have written FTP server in C# which is working quite fine with client on one machine, but when i try to send file to server from other PC, Exception occurs, [B]Input string was not in correct format[/B] [CODE]double FileSize = double.Parse(System.Text.Encoding.ASCII.GetString(downBuffer, 0, bytesSize));[/CODE] | |
Hi all! My first post in Daniweb. I'm making a invoice script with textfield to input some numbers (Belopp_1 , Belopp_2, Belopp_3 and Belopp_4) among other stuff. These numbers ar inserted ia a MySql database wthout problems. Tere are also some calculation made in the script to add the numbers … | |
{ int i = 25789; char *p; .............. .............. printf("%d",*p); /* (*p) should give in printf*/ } dont assign p=i ............apart from this how we can typecast this program so that we can get interger value tp pointer p.............please help me this | |
Hi all, I have 2 xsl variables (currentBillDate and lastBillDate), both having access to dates in format of yyyy-mm-dd. How can I calculate the number of days in between both days? Example: 2006-08-28 - 2006-11-06 I tried it this way but it kept giving me NaN <xsl:value-of select="$currentBilldate - $lastBillDate" … | |
Hello, In a method i am calculating the longest row of elements. The 1-dim array is filled up with random values (0 or 1). The method looks up the longest row (being 0 or 1, whatever is the longest). Meaning in for example: 1110100 --> the longest row would be … | |
OS : Ubuntu 9.04 Python : 2.6.2 I want to print a "while" loop into a secondary wx.Frame named "Results" here's the code : [CODE] #!/usr/bin/env python # -*- coding: utf8 -*- import random import wx import os # Operating System dependent call import sys import cPickle as p import … | |
Hi everyone, I'm running a c++ program using VS 2010. But during a debugging, the output DoS window disappears when a problem happens. How to stop the output window? I know the problem could be solved by using run-cmd-*.exe. But is there a direct method? I mean, by configuring VS … | |
Hello I have been set a task to myself build a "Local SMTP Server" as the product found on this URL: [url]http://www.softaward.com/1036.html[/url] I have googled around but cant find any code of how to do this. The thing is that I use the SmtpClient Class and now in this code … | |
![]() | Hello all, I am trying to finish an assignment in my programming class and I can't seem to get this compilation to work... For some strange reason the program will not sum the elements in the array... It is only returning the first input that I enter... Any hints??? I … |
Past paper question from 2007: Source University of Cape Town - CSC2001F - 2007 Which of the two statements shown below will provide an lexicographical (alphabetic) string comparsion? why? [code=C++] char *mesg1 = "Hello", *mesg2 = "world"; string s1 = "Hello", s2 = "world"; if (s1 != s2) {...} // … | |
So i'm new to VB and am making a program that is a count down timer and when it reaches '0' it clicks the left mouse button where ever the mouse is on the screen (in the form or not. The code so far: [CODE] Public Class Form1 Private Sub … | |
Hi guys, I'm fairly new to PHP and mySQL, using a book to help me learn. I want to create a small site to help me improve my skills, but I'm a bit stuck on the database design part. I want to be able to list various public companies and … ![]() | |
OK I can upload a single specified file but need to create a loop to read and upload all files in a certain folder. Here is code for single file. [CODE]'upload a file ftp.Upload("c:\test\ftp\upload.exe", "/pub/upload.exe")[/CODE] | |
hi; Im using a gridview to display images in 1 of the column...but the size of the images is very small.is there anyway to enlarge the image on mouseover or even without mouseover by adjusting the column width or something.i would prefer doing it by mouseover.can anybody help me...my code … | |
Hi anybody can suggest me the way to start learning cakePHP, Online resources , Different online links , Different books available for cakePHP | |
Hallo all. Iv spent a lot of time browsing through the old threads and I cannot find a solution to my problem. Please help... I have to files H:\me.txt and H:\you.exe and I want to write a code in Turbo C++ to open these in a separate window, meaning I … | |
:-/ Hello everyone!!! Could you help me by giving some examples?... I have to write a code which would apply an InterpolationSearch to an array of 1000 strings using a reccurtion... The problem is that I can't find any examples... [COLOR="Red"] HELP!!:?: [/COLOR] | |
I tried hashing, but that did not work. How would I do this? Thanks. | |
Hi, I can't seem to work around the problem. If someone could please point me in the right direction for why the login.php page reloads when I enter the correct empid and password from the database. here is my code: [CODE] <?php require_once("nocache.php"); if (isset($_POST['submit'])) { $id = $_POST["empid"]; $pword … | |
Hello, I have a simple question. Look at the following code: [CODE]class ClsA { int * var1; ClsA(); ~ClsA(); } ClsA::ClsA(){ var1 = new int [10]; } ClsA::~ClsA{ delete [] var1; cout<<"Apel destructor"; } void funct(){ ClsA ** p = new ClsA * [10]; ..... delete [] p; }[/CODE] When … | |
I am sorry to bother people with silly questions, But I have no choice. I have a statement unsigned short a=4000, current_word; current_word=a << 3; Then I have another statement unsigned long a=4000, current_word; current_word=a << 19; According to my knowledge they will contain the same value. Am I right? | |
I have searched and I have searched but I can't find a way to display all instances of SQL Server in a combobox. Any help is greatly appreciated. |
The End.