199,114 Archived Topics
Remove Filter ![]() | |
hi all, iam newbie to c sharp and still trying to learn..iam developing a new windowsapplicattion in csharp and i am trying to open a new form onbtnclickevent and close current form here is my code form1 [CODE] private void btnInd_Click(object sender, EventArgs e) { Tab1 dlg = new Tab1(); … | |
Hello :D i'm new here .. I'm 15 years old and wanna learn for making online shopping website which including like make user database with mysql and make shopping cart . I already installed XAMPP on my comp . But i don't know how to make login form in my … | |
Ok Iv been doing some research on plotting a sound file with the amplitude as the y value and frequency as the x. I cant seem to find much to be honest.. Has anyone done this or know how i could start. It can be with just .wav files, cuz … | |
Hello Everyone. I am looking for some great ideas to develop something in PHP for my college project. I am interested in developing something in php/mysql. All i am looking for are some good project ideas. I have thinked for a while now and found some ideas like "making a … | |
I'm having an issue getting two Javascripts to work on one page. It seems that one disables the other and only one is working when previewed together. I know of a code that can be inserted so that both codes can function on one page, but I just can't lay … | |
Hi!, I'm newbie here on daniweb.. and i dont know if i'm in a right place to post this problem. lol. *sorry for my english* anyway, will you please help me about Turbo C? My teacher gve us a sample problem and he starts it with this code : [code]#include<conio.h> … | |
Hi, I am a intro to java student and need a little bit of help starting on this new program that I have been assigned to write. Don't worry, I'm not just seeking for someone to do it for me, I just need some guidance as I proceed through it, … | |
Hello, Recently I've been doing some Windows API programming and I came across a problem. I want to make a console program that accepts commands, when the command 'win' shows up it will create a window with some automated features. Lets say I had a command sendfile [file-path] [where]. I'd … | |
My code is in the attachment alex.txt. When i press the button for first time it gives me error: 'null' is null or not an object. But when i press it again or refresh the page and press the button it gives me the result that i expect. When i … | |
I have an application that uses readprocessmemory to get information from another application. I think my application causes this other application to crash. Does anyone have any input on this? Why does it cause a crash and how can I change my application?? I cannot modify the other app thanks … | |
how can i write a program to calculate the median of matrix in file1 , and send the output to file2 .....???? can anyone help me please??! ======= sarah | |
The code runs perfectly, but when I press any button, for continuing the system Pause, it gives the error: Run-Time Check Failure #2 - Stack around the variable 'arq_linha_part' was corrupted. [code=c] #include "stdafx.h" #include "Sistema.h" #include <fstream> #include <iostream> #include <string> #include <sstream> #include <cstdlib> #define ZB 100.0 #define … | |
Hi , In one of my web application I want a real visitor count. I am not looking for any third party one. Also I want to know visitors are from which country ? I wrote a code and that will add in database when each page visit. But if … | |
okay so here's the little piece of code that would be useful in a sudoku program that i'm making... this function leftover is simply extracting the set minus of two arrays. i don't know if logic's been having any problem but i think its pretty simple clear. oh, and i'm … | |
I would like to implement a text editor . In the design process i have some doubts . Take a text editor like a notepad . We we will able to move directly to any point in the editor which means that a random access is made possible . I … | |
Hi there. I'm Kurt!! I have two algorithm problems. I was wondering if you can check my answers for the first one and help me get a start with the second one: [B]1)Write an algorithm to compute the average of 5 numbers[/B] [COLOR=DarkRed]Name: Ave5 Given: X1, X2, X3, X4, X5 … | |
Hi all , i'm writing a program that communicates with com port. i need to send a few packets. the thing is that i want to wait after each packet so that the receiver could send me an ack ! in pseud code : [CODE] for (x=0;x<Packets.Lenth;x++) { sendData(Packets[x]); waitForDataReceivedEvent … | |
I am new to PHP.I want to include this outing management in my Hostel mgmt. application. A student request to stay out of hostel to the warden - also the administrator. The request is called "outing request". The warden can either accept or reject it. if the warden accepts it, … | |
Hello everyone. I am building a web application having various tables and 4-5option buttons in each table. When user check on one of these option buttons then the option is saved at server. I want whenever user returns the option marked by him earlier should be preloaded. For example if … | |
hello guys, I want your help about my code. the problem is when I want to apply in my phone show me this message error. (NameError:name 'app_lock' is not defined). this is my code : [code]import socket, e32, appuifw def choose_service(services): names = [] channels = [] for name, channel … | |
Hi, I want to get the user and group that APACHE is running in through PHP. Like APACHE normally has the user 'apache' and group 'apache' but it can sometimes be 'httpd' for both or it may have been changed by the server admin. How do I find out the … | |
i'm using an iframe for our project. when i run the project, the url will be [url]http://localhost/iset/tech/mainTech.php[/url]. but mainTech is an iframe, so it doesn't show the url of the pages that changes inside the iframe. how do i show the url of the pages inside? cause i need to … | |
Below is my post script. I'm trying to make it have a flood check (or something to stop people from spamming and crashing my servers) and my solution is to make a message appear saying "You've posted" when they hit the Post button. I tried adding Javascript alerts in multiple … | |
i have problem only declaring struct variable. i declare a struct in struct.h file and i wan main.c and class.h also using the same variable. But the class.h file say the struct is undeclare.. example: struct.h [CODE]struct car{ int year;};[/CODE] main.c [CODE]#include <cstdlib> #include <iostream> #include "struct.h" #include "class.h" using … | |
It's my school project, I wrote this C++ program with file handling. I am getting these errors and I can't understand what's causing the errors, if anyone can rectify my program, that would be great. My program :- [CODE]#include<fstream.h> // for C++ and File-Handling functions #include<conio.h> // for getch() and … | |
Hello: listed below is the order for the creation of tables and execution of ALTER TABLE resources in an Apache Derby Embedded db; Note the error at: alterInstructor. I create the instructor table then the booking table. The instructor table has book_num FK. After the booking table is created I … | |
Hello; I was having a problem understanding how to collect a date dataType as 1111-11-11 from a textFiels) and set a variable that accepts ex:public Date dob; Is there a way to get a string from an array element and parse it to conform to the Date data type? [icode]Exception … | |
hi all, i have one question around return function for ex. [CODE]<?php class Employee { private $name; // Getter public function getName() { return $this->name; } // Setter public function setName($name){ $this->name = $name; } } $azer=new Employee(); $azer->setName('sahib'); echo $azer->getName(); ?>[/CODE] why here we must declare two functions. one … | |
how ca i make a php function to delet a photo this is the file theat show photos .... [CODE] <?php $dir="../SV_uplod/"; if($opendir = opendir($dir)) { while(($file = readdir($opendir)) !==FALSE) { if($file!="."&&$file!="..") echo "<img src='$dir$file' width='200'><br>",$dir,$file; } } ?>[/CODE] Please Help THX ! | |
I am trying to connect to MySQL database at on host (DBhost) from another host (PROGRAMhost). While I try to connect to the database at DBhost from DBhost itself the next is working fine for me: mysql_connect("localhost","qdbname","dbpassword") Now I am trying to find out what to use instead of localhost? … | |
| |
hii i m using atoi() to convert char value to int. and then passing that int as a swtich variable. switch goes in a case and exectuing that particualr function but returning 0 value.... for example: i am finding no of process() and system up time(). when switch program goes … | |
I have never had this problem before. I code all my applications in the Eclipse IDE, and they all work fine there. But if I go into the bin and use a batch file, with 'java ClassName' it gives me an error about not finding the main class. I have … | |
Hi all, I have a pagination script that works great apart from one last thing I require some pointers on please. The help i need is with the SELECT query - currently the select query works, but i am bringing back all records, I am trying to bring only certain … | |
I am trying to upload a file into the server.. but its not working. im coding in mvc and this is the view file which contains the form data. <form id="frm" name="frm" method="get" enctype="multipart/form-data" action=""> <input type="file" name="file" /><input type="hidden" name="MAX_FILE_SIZE" value="2000000"/><input type="submit" name="upload" value="upload" /> </form> this is the … | |
I have a news website in PHP & MySQL. All News items are generated from the database with a php file (../shownews.php?newsid=39393). Here my problem is that i want to put MOST POPULAR NEWS ITEM and i can't figure out how to do so as its dynamically generated. Someone please … | |
Hi everyone, i want to ask question about how to make a multiple tree in c++. So i want to make a tree which contain more than 2 child(or node or leaf), but i don't know how to make a tree like this. does anyone have an example about this? … | |
[COLOR="Red"]Here is an extract of coding from my "main.php"[/COLOR] [CODE=php] if ($_GET["action"]==1){ //Redirected from the login page } else if ($_GET["action"]==2){ //Redirected from other page } else if ($_GET["action"]==3){ //Redirected from other page } else if ($_GET["action"]==4){ print "Test"; } else if ($_GET["action"]==5){ print "Test2"; } [/CODE] [CODE] <a href … | |
Hello! [COLOR="Green"]Little unimportant info about me: I think i can program in c# in a quite good way,but I would like to make my programs useful also for people who hasn't got .NET framework installed. So i started to learn c and to rewrite my c# programs in c.[/COLOR] I'm … | |
![]() | Greetings, I have been trying to see all the files in computer, but since accesses of some files are denied my program throws exception. When I show the type of exception with a MessageBox I learnt it is about mscorlib.dll. I can make my program run not throwing exception using … |
hi guys how are you ?! hope every thing is alright. well i want to make something like this [URL="http://www.coderun.com/"]one[/URL] can anyone help me how could i start in steps ? what books should i read ?! Thanks your help will be greatly appreciated. | |
I'm looking for people to test a program, I've just finished the rewrite of a program and I need people to test for bugs etc... It's a program for developers written in python and wxpython-gui-toolkit It's made with the aim on linux, although windows-testers are welcome as well link: [url]http://launchpad.net/d-cm[/url] … | |
I wonder if anyone can advise why the sort param is being ignored in this xslt? The code is always performing the 'otherwise' section regardless of the sort parameter. [code]<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> <xsl:param name="sort"></xsl:param> <xsl:output method="xml" indent="yes"/> <xsl:template match="Products"> <xsl:element name="Products"> <xsl:choose> <xsl:when test="$sort='DATE'"> <xsl:apply-templates … | |
Lets say i have a jsp page which invokes a servlet. Now I want the servlet to forward this request to someother secured jsp page which i have configured to be secured in my web.xml. The problem is the jsp pages opens as secured if I open it directly from … | |
[CODE]class A extends B { C ob1=new C(); D ob2=new D(); protected void finalize() { System.out.println("Finalizing A"); super.finalize(); } public static void main(String ss[]) { new A(); System.gc(); } }[/CODE] Though System,gc() doesn't guarantee the running of finalization, my question is if the JVM is able to run the finalizations … | |
hi i just wanted to parse a file to find certain associated data for ex if my text file is : <!#first>This is string1 <!second>THis is string2 So if user types in first...he will get This is string 1 iv written a simple C++ code to parse the text file … | |
Hi everyone, I searched a while on the internet how to work with mvc for a school project. I found a really great tutorial on this site. ([URL="http://www.daniweb.com/forums/thread141776.html"]http://www.daniweb.com/forums/thread141776.html[/URL]) This tutorial has everything that i needed. In this tutorial the connection of the database is made by setting paramaters in de … | |
[CODE] private void btThem_Click(object sender, EventArgs e) { for(int i=0;i<dataGridView1.Rows.Count-1;i++) { if(dataGridView1.Rows[i].Cells["Checked"].Value ==true) { cmTheoHocLop.Parameters["@X"].Value = tbMSSV.Text; cmTheoHocLop.Parameters["@Y"].Value = dataGridView1.Rows[i].Cells["MaLop"].Value; sqlConnection1.Open(); cmTheoHocLop.ExecuteNonQuery(); sqlConnection1.Close(); } } } [/CODE] it has a error :Error 3 Operator '==' cannot be applied to operands of type 'object' and 'bool' D:\lvthao\QLHP\QLHP\FrmDKHP.cs 48 20 QLHP Thanks … | |
Can you put a cf comment inside the cfquery? example: <cfquery name="list" datasource = "#dsn#"> <!--- this is a comment, will this query run ---> SELECT Name, Age FROM studentTable WHERE Age = 20 </cfquery> | |
I needed a way to have words with different sized fonts in my JTextArea, but apparently only plane text is supported for it. I turned to JEditorPanes which apparently support html which allows different sized fonts, which is great. Now, I need a way to traverse back into the lines … |
The End.