199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for magnet220

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?

Member Avatar for bbman
0
65
Member Avatar for zismad

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 = "" …

Member Avatar for Ionelul
0
432
Member Avatar for forneamax

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 …

Member Avatar for bbman
0
2K
Member Avatar for ihatehippies

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 …

Member Avatar for TrustyTony
0
168
Member Avatar for johndoe444

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 …

Member Avatar for UncleLeroy
0
2K
Member Avatar for lewashby

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.

Member Avatar for griswolf
0
127
Member Avatar for CarterLangley

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 …

Member Avatar for Ezzaral
0
149
Member Avatar for ben.matthews18

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 …

Member Avatar for diafol
0
104
Member Avatar for LloydFarrell

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 …

Member Avatar for diafol
0
117
Member Avatar for GrahamLawton

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 …

0
72
Member Avatar for griffith

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 …

Member Avatar for griffith
0
126
Member Avatar for Ceviz

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 …

Member Avatar for iceandrews
0
220
Member Avatar for CppFTW

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++) …

Member Avatar for CppFTW
0
162
Member Avatar for ShArKss

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 …

Member Avatar for ShArKss
0
110
Member Avatar for samsons17

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)) { …

Member Avatar for Designer_101
0
136
Member Avatar for k2k

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: …

Member Avatar for sergb
0
2K
Member Avatar for sfrider0

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 …

Member Avatar for sfrider0
0
96
Member Avatar for saw77

[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 …

Member Avatar for saw77
0
217
Member Avatar for sdinu96

[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)) = …

Member Avatar for abhimanipal
0
112
Member Avatar for Don_k

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 …

Member Avatar for Aia
0
76
Member Avatar for tanha

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 …

Member Avatar for cavalry
0
2K
Member Avatar for sugikrish

i want select values in list ,then it automatically stored in database. how to do ? if anybody know say to me....

Member Avatar for qualitybrains
0
69
Member Avatar for John Linux

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 …

Member Avatar for Banfa
0
86
Member Avatar for Tellalca

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 …

Member Avatar for gerard4143
0
112
Member Avatar for sdhawan

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

Member Avatar for sdhawan
0
118
Member Avatar for dimios

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 …

Member Avatar for bandtank
0
221
Member Avatar for Dig

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 …

Member Avatar for Dig
0
143
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
82
Member Avatar for abcdabid

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]

Member Avatar for abcdabid
0
174
Member Avatar for Valkyrian

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 …

Member Avatar for Valkyrian
0
2K
Member Avatar for sdinu96

{ 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

Member Avatar for Ancient Dragon
0
89
Member Avatar for f_atencia

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" …

Member Avatar for fpmurphy
0
287
Member Avatar for Nerathas

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 …

Member Avatar for Sodabread
0
136
Member Avatar for arty.net

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 …

Member Avatar for arty.net
0
1K
Member Avatar for sophie.c

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 …

Member Avatar for sophie.c
0
207
Member Avatar for Lukezzz

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 …

Member Avatar for Lukezzz
0
152
Member Avatar for xander85

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 …

Member Avatar for LoganJames
0
1K
Member Avatar for John Linux

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) {...} // …

Member Avatar for thelamb
0
140
Member Avatar for Ellitivity

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 …

Member Avatar for Luc001
0
217
Member Avatar for aceriker

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 …

Member Avatar for rajarajan2017
0
104
Member Avatar for wb4whd

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]

Member Avatar for wb4whd
0
167
Member Avatar for lisles

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 …

Member Avatar for lisles
0
637
Member Avatar for mithesh

Hi anybody can suggest me the way to start learning cakePHP, Online resources , Different online links , Different books available for cakePHP

Member Avatar for qualitybrains
0
150
Member Avatar for little_grim

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 …

Member Avatar for little_grim
0
1K
Member Avatar for !n@k!

:-/ 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]

Member Avatar for !n@k!
0
70
Member Avatar for bbman
Member Avatar for bbman
0
146
Member Avatar for harry88

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 …

Member Avatar for qualitybrains
0
122
Member Avatar for etisermars

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 …

Member Avatar for mbulow
0
139
Member Avatar for blackmagic01021

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?

Member Avatar for mbulow
0
139
Member Avatar for Ole Raptor

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.

Member Avatar for johnhtod
0
871

The End.