199,114 Archived Topics
Remove Filter ![]() | |
I have region: [code] Region r[/code] and I have a point: [code]PointF p[/code] is there any method that determines whether p is in r? something like this [code] bool is_p_in_r = graphics.Determine(p,r); if(is_p_in_r) Execute("theMan.kil"); :) [/code] | |
Hi everyone, I have a drop menu as below and when submitted it sends either no value, male or female to the database. [CODE]<select id="gender" name="gender"> <option selected="selected" value=""/> </option> <option value="Male">Male</option> <option value="Female">Female</option> </select>[/CODE] Now when i go back to the page i want it to show the value … | |
I have to try and echo something to a file from python, but because fot eh content of what I want to write to this file, I seem to not be getting all of what I want into the file. Here is what I WANT to echo to a file: … | |
hi i wrote a code in php which enables login with session. So that i can retrieve info of the loged user. It works fine in Firefox but not in IE8. What is probably the matter? | |
Hi, What kind of project is required for running this program in Visual C++ : [code] #include "ChessGame.h" int __stdcall WinMain() { Application::Run( new ChessGame() ); return 0; } [/code] Thanks ............................ | |
hi what is the meaning of const in the declaration below: [CODE]const int*const Method3(const int*const&)const;[/CODE] Thanks | |
Hi, How can I put my ASP.NET calculator into my dreamweaver page? Thanks!! | |
Hi, Iv'e been reading through all the different posts and searching the web all day and I am not sure what went wrong I am getting this error "Parse error: syntax error, unexpected T_STRING in /home/gamersh1/public_html/database/register.php on line 9" Code: Register.php [CODE]<?php include ('mysql.php'); if(isset($_POST['submit'])){ $username = ($_POST['username']); $password = … | |
How can one make a program repeat a set of lines of code.like for example [CODE]printf("enter the value of x:"); scanf("%d",&x); for(i=0;i<1;i++){ value+= arr[i]*(x,i); printf("\n The value of the polynommial is %ld",value); }[/CODE] | |
[CODE]<?php $link = @mssql_connect("-", "-", "-") or die ("Server is down!"); $db = @mssql_select_db('-') or die ("Accout table is missing!"); function doesUsernameExist($name){ $exit = FALSE; $result = @mssql_query("SELECT * FROM Accounttable.. WHERE account='$name'"); if(mssql_num_rows($result) != 0){ $exit = TRUE; } else{ $exit = FALSE; } return $exit; } if(!isset($_POST['submit'])){ printSign(""); … | |
Hi frnds... i m getting differnt BUG... i m phasing problem with single quotes in IE only... In IE also some times sinlgle quotes sentences working fine...but some times it doesn't display some sentences..but in page source it display correctly.. here are the 2 senteces are working in IE... [QUOTE]Manmohan's … | |
I m doing a project in which i have to delete some data by matching 2 different fields. i m using and operator but it is not working in php page but it is working properly in phpmyadmin. So, please provide me some solutions about integration to php page with … | |
Hey everyone, im trying to get to know vectors but i came to a point that my current knowledge stops and i need more help, i found a program which i would like to understand but i couldn't figure it out. here is the code: [code]#include<iostream> #include<vector> #include<string> #include<iterator> using … | |
Hi everyone, Im pretty new here. Also realy new to PHP and MySql. In my current company they separate the html, php, css, classes codes to different different files. I just want to know, how to create a checkbox list that are create based on datas from database. Basically its … | |
how to assign database values to checkboxes from the following code i am geting only one value through post <form method="POST"> <?php $j=0; while ($value1 = mysql_fetch_row($value)) { ?> <table> <tr> <td> <input type='checkbox' name='expert' value=' <?php echo $value1[1]; ?>' > <?php echo $value1[1]; ?> </td> <td> <input type='checkbox' name='intrest' … | |
Before I begin, let me start by saying that this is NOT homework. I am also not enrolled in a C++ class. I am simply trying to learn C++ as I have time. I am using random assigments/tutorials/whatever I can find on the net and shopping amazon for books. I'm … | |
how to create a program using C++ pls tech me :P ;) | |
First of all hi guys, sorry for not being that much active. Lets get in the subject: I'm planning to make a big application that will help me in my job. I need first to define the requirements of my application a bit more: * It will be UI Web-based. … | |
Hello I am very, very new to this C++, and i have been working on something that could help us with something, but thats a long story... Anyways, i want the program to first delete a file then wait some time, and then delete another file. I got it to … | |
Hello everyone, I'm trying to implement windows form with data grid (or anything you say is better) which should represent a hierarchical data. This data are stored in a xml file which structure is as follows: [code] <elements> <element> <term>name of element</term> <subelements> <caption> <term>caption name</term> <subelements> <caption> <term>caption 2 … | |
Hi all, I was hoping somebody might be able to help me out w/ a pretty basic question. I'm creating a web app and trying to use the MVC pattern where I have a controller servlet that intercepts requests, does some work (like say reading from a database), possibly setting … | |
how to m a Win+D action button visual basic ?? GR Kevin (Kzip) | |
Hello everyone , i am trying to create a multi threaded web server, i did the basic part (socket programming ) successfully . Ref: [URL="http://www.daniweb.com/code/snippet217312.html"]http://www.daniweb.com/code/snippet217312.html[/URL] now , the next step , i am trying to establish it by making it multi thread or repetetive polling for client request (yet to … | |
I apologize for not knowing the proper terminology. I'm trying to connect to a database, and the tables appear, but there are no entries in them! What did I do wrong? [CODE] Dim MyConnection As OleDb.OleDbConnection Dim MyAdapter As OleDb.OleDbDataAdapter Dim MyCommand As OleDb.OleDbCommand Dim StrConn As String Dim StrSql … | |
Hello, I was hoping someone might be able to clear up some questions I have on casting Objects vs Casting Pointers in C++. The first example below is compilaining that the constructor of XDeviceMotionEvent cannot construct a new XDeviceMotionEvent object from an _XEvent&. What I dont understand about this is … | |
hello, when I was writing length converter I came across this problem while statement(bold one) gives me Indentation Error that says "unindent does not match any outer indentation level" and I was wondering why's that? Could anyone suggest me how to fix it [code=python]def leng(): def milimetrai(): while True: try: … | |
I try to find a scroller that is built in Ajax which makes it possible to scroll a part of a table/div (vertical). Ex: You have two text areas; "A" and "B", when you press "down" it smoothly shows another text area ("C") and "A" disappears and "B" replace it, … | |
![]() | Im having trouble with a running sum for my VAT analysis section of a report. Whats happening is the vat is calculated and rounded appropriately. But the running sum seems to be calculated on the pre rounded figure, is there anyway to rectify this. So i have following figures [I]245.70 … |
Hello guys! I am developing simple desktop application that suppose to connect to SQL DB launched on remote server. Everything going fine, exept that when connecting to DB I get exeption "Login failed for user 'guest'." So, looks like i need to create some user with password and give him … | |
Hello experts! Please how do I display markup text (in html) with a asp.net 3.0 server control? I have a database full of markup text inputted using a richtext control. but I will like to display these text using other asp.net controls that would render the text correctly with the … | |
Alright, my issue is that I have to create a new array with certain aspects from the old array. I know if I just make arraynew[i] = arrayOld[i] it would place it in the exact same place as the other one would be and that would save place. I have … | |
I'm writing a batch publishing program in VB.NET using VS2008. My program is a Windows form. The program spawns a process called "xtop". The process converts one CAD format to another. The conversion process demands heavy CPU cycles. The user will add "jobs" to the batch. The batch program will … | |
Hi, I have an application where I have images stored in a folder called testimages and access them using : [CODE]String[] files = Directory.GetFiles(@"C:\Users\pashok\Documents\test\testimages\", "*.jpeg");[/CODE] Now, I want to modify the program in such a way that the folder called testimages is placed in my project directory. In this case, … | |
hi, i was got an error, iam using a code to auto increment of serial number, but the problem is selecting the serial number from the database it was insremented from first number itself like as 1,2,3 it was incremented from 1 itself,, i wants to increment the data from … | |
Dear Sir, Table Employees has data as follows sno----name 1------Eric 2------Boris 3------Bill Whien I enter "B" in text5 and run following codes then it show error message as [CODE]IndexOutOfRangeException was unhandeled There is no row at position 0I have two question[/CODE] 1) Why it does not select name begins with … | |
New to Oracle. Using Crytsal 10. Unable to create views or Stored Proc on database. Having to just use SQL code in Crystal. Need to know how to pass variables from Crystal to the SQL code that will run on Oracle DB. Also can I create a temp table and … | |
hello! i want to create jtable dynamically... i have two class one is add records to Data Base another one is show records list that were inserted... how do pass each records in JTable without replacing existing on... i need to grow the table every time the records success fully … | |
Ok, so i am using windows task sheduler to open the browser and run the php script file. Now, the problem is that i want to do it on the machine which doesnt have Apache (or any other web server ) installed. What is the best way to make sure … | |
Hi, I have an application where I need to load images present in a folder onto my Visual Studio application. As in if I have a folder named temp and I have say 5 images temp1-temp5 inside the folder temp, i need to load each of the images temp1-temp5 (in … | |
hello guyzz,,i really need your help,,we are about to make a mastermind game in java,,i already have the code,,,but it has no main method..and i dont know how to implement the main,,help guyzzz,,,we are about to pass it next week.... import java.awt.*; import java.lang.Math; public final class mastermind extends java.applet.Applet … | |
Dear all, No matter what I do, I can't seem to be able to make the JSP with Database work. How can I connect to an Oracle database which is hosted in our University, over a JSP page. I have a project where we need to connect to Oracle database … | |
hi ! Happy new Year!!!! I struggling with open IE browser within swing .... like frame content pane showing IE... any help please...... | |
Hi, I am trying to write a loop that lists all the square results until the number given in. So for example if i would give in 100 it would list the squares in a list wich would be 1, 4, 9, 16 etc... The problem is i if i … | |
hi friends, how can i store video files in the server or database like mysql, if u r having any related docs or code. please send it to my mail-id. otherewise tell me the way how can i store. i am waiting for ur replies... ok bye.. thanks in advance. | |
As far as my understanding and other referals i understood that when the address of a local variable is returned the first call using this address may print the correct value but if it is called after any other function may get undefined values. but my program is returning the … | |
Maybe I'm the one not doing anything right but i'm trying to cause a page to display a given information as soon as it load. I'm using labels display the said information. The problem here is, in the Page_Load method, i can't seem to call any of the labels or … | |
hello! i want to convert my jar application into exe.. because i need seal all class files extracting from jar... any freeware available for this.. i found something that are not free... thank you! | |
I am having a problem using both ActionListener and KeyListener in the same class that extends JPanel for a basic game i am working on. For the KeyListener only the KeyPressed class is implemented and is implemented as such. [code=java] public void keyPressed(KeyEvent e) { switch(e.getKeyCode()){ case 37:{ grid.moveSelectedWest(); break; … | |
Hi I'm new to Python and the book I'm using was designed for an older version of Python and consequently there are some examples in the textbook that don't work in 3.1. My first problem is with the following simple example: num1, num2 = input(" Please enter two numbers (num1, … |
The End.