199,114 Archived Topics
Remove Filter ![]() | |
I'm in my 1st year of college, doing some Java programming...and really struggling. We have some project to do, to test a date...there will be 5dates and the output should be next day of the date. If anybody can help... thanks Stan | |
Hello every one i downloaded [B]"microsoft sql server 2005" [/B]and installed it correctly but i m now confused b'coz i can't find [B]Query Analyser[/B].Can any one help me out of the situation . | |
[B]Introduction[/B] In this sample,It shows how to move files to another folder. [B]Background[/B] It can be used in winForm applications. | |
Hello dear All, Now I'm writing an app that have to react on some user's actions in real time and redraw a big form according to this activity and a timer's firing. Also, when redrawing the form, the app must emit some short sounds. For the last purpose I used … | |
[b]Split from - [url]http://www.daniweb.com/forums/thread47395.html[/url] [/b] [QUOTE=rhp405;226272]Ok, here's the solution. When you have a pipe open in parent process, you have to close the pipe before waiting. It has to do with the file descriptor counters of the pipe ends, they have to be zeroes to not cause a child to … | |
i want to insert non empt values (as $im1, $im2.....) in mysql database, code is as follow, im_id is auto_increment key [CODE] $im1 =image1['image']; $im2 =image2['image']; $im3 =image3['image']; $im4 =image4['image']; $sql = "INSERT INTO `class-ads`.`images` (im_id, image) VALUES (NULL, '$im1'), (NULL, '$im2'), (NULL, '$im3'), (NULL, '$im4') mysql_query($sql) or die('Error, Posting … | |
[code=javascript] function label_parameter(id,ind) { var clicked_row = id; alert(clicked_row); } [/code] is it possible to pass the value of clicked_row to an object in html?? thanks thanks..^^ | |
Hi This isn't specifically a php issue, but i would be using php for the project... i am creating a site where people can upload articles, photos, docs etc - thing is, I want to keep everything as its own entity and use tables to link articles to images etc... … | |
Hi, I have a captcha example and works fine. However, only image is dispayed on the screen. HTML form is not visible. I believe this related to the "header" bit in the class file. I added the code. Please help me solving this problem. Thanks [B]index.php[/B] [CODE]<?php require_once "CaptchaSecurityImages.php"; $width … | |
[CODE] var t:array[1..3,1..3] of integer; i,j:byte; v:text; begin for i:=1 to 3 do for j:=1 to 3 do begin write('Enter elements [',i,',',j,'] '); readln(t[i,j]); end; assign(v,'output.txt'); rewrite(v); for i:= 3 downto 1 do begin for j:= 1 to 3 do write(v, t[i,j], ' ' ); writeln(v); end; close(v); end. [/CODE] … | |
Hi all, i am using preg_match_all to the ids and contents within a custom html tag, it all works fine if the contents within the tags are all in one line, but if they go over multiple lines, it doesn't match it. here is the code and a sample of … | |
hi, I'm fairly experienced with delphi however have come across a tiny problem, i have a create box known as Edit1 for my web browser, but the label on this is always edit1, before you type the text into it, how can i make this blank or at least edit … | |
Hi Friends, How to create explorer like menu in Html or java script? eg + Game(inside this Cricket and Football) when click on + sign it become like-- - Game -Cricket -Football Can anybody suggest me, by which command I can do it? [url=http://www.bipra.com/cat-684-laptopsdesktoppcs.aspx]Buy Laptop[/url]||[url=http://www.bipra.com/cat-698-externalharddrives.aspx]External Hard Drive[/url]||[url=http://www.bipra.com/cat-801-internalharddrives.aspx]Portable Hard Drive[/url] | |
I'm working on a porgram for the school works. I wrote the procedure below to save the array of records(directory) into the file. But the procedure won't work when there is a record in the file.It's urgent. Thanks for your help. [CODE]procedure saving(input : array of directory); var i : … | |
I am in need of help above I am trying to create a formview with textboxes and two dropdownlist thats coming from two different sql tables, the user will pick from each table and the information will populate in HoldingDock tbl. The problem I am facing is the behind code … | |
I have a table called projects, and I'm currently coding the "create a project" functionality that allows the administrator to create a new project and save it in the projects mysql table. I have a slight problem though, I have two fields/inputs named start date and deadline date, what should … | |
I am very new to C++ and would like to know how to handle the following: Let's say I have a button on a form. When the user clicks the button, a new textbox is created on the form. How can I add event handling for this new text box? … | |
Hi and I have a hex to int function but it isn't converting the hex to integers properly. Below is the code an example is the hex bb76e739 which should = 3145131833 but with the function it equals 2147483647. I heard sprintf or something like that can convert the hex … | |
What is a process in computer science? I've tried googling but there were no useful results. I seem to recall that an application may consist of multiple "processes" but that's all I know. | |
hi, how can i measure the accurate run time of a program by writing a shell script? Like I want to use some for loop and run some samples and then i want to subtract the end_time-start_time to get the duration and thereby average. | |
hi forum. I have a code to return an arrayList with the duplicates of an ArrayList that has the methods get1(), get2(), get3(), get4(), which are the criteria to see if the object is duplicated, but seems it´s not working, I am comparing all items in the array... I have: … | |
Hello, I build an applet that plays midi files from a server. The problem is when I start playing the file (MidiSystem.getSequencer()).. it gives me this error in the java console and nothing plays: [CODE]SEVERE: null javax.sound.midi.MidiUnavailableException: MIDI OUT transmitter not available at com.sun.media.sound.AbstractMidiDevice.createTransmitter(Unknown Source) at com.sun.media.sound.AbstractMidiDevice.getTransmitter(Unknown Source) at javax.sound.midi.MidiSystem.getSequencer(Unknown … | |
In my assignment I am supposed to use a pointer to create a 2-D array dynamically. Initialize each element in the array to the sum of its row and column. Then display each element of the array on the console. I have the program written and it works except for … | |
Tried this on my UNIX box.. Why aren't the array contents being stored/displayed ?? [CODE]#include <iostream> #include <fstream> #include <unistd.h> #include <sys/signal.h> using namespace std; int main(int argc, char *argv[]) { int pid; pid_t pid_chk; int pid_array[2]; int count[25], length, i, j; for (i=0; i<3; i++) { pid_array[i] = 0; … | |
Hi , My program at the moment has 3 textboxes , 1 button and 1 listview. I've added 3 columns named "Name" "Address" and "Number" to the Listview. What I have done so far is I can enter text into the 3 textboxes , I click the button and the … | |
Hello People, Does any one have any practice problem sets for C. I am interviewing for a company tomorrow and they ask lots of "Whats the output ?" kind of questions.. Any help would be appreciated | |
Hi all . I m trying to read contents of a file using streamreader classs of c#.net which is a result of data transferred over the network. it contains some transmission syymbol eg. eot,can,soh etc. Beacuse of that it is showing square symbols. Kindly arrangea code to read the file … | |
int main() { recurse(5,3); return 0; } // end main void recurse(int x, int y) { if (y > 0) { ++x; --y; cout << x << " " << y << endl; recurse(x, y); cout << x << " " << y << endl; } // end if } … | |
I am making a pong-like game for a class. I am having trouble with the ball's collision detection. The game is a 1 player version, where the ball and paddle are both contained in a box. The player uses a gun which is built into the paddle, in order to … | |
I use a panel and if the user Leftclicks an area with the mouse, I am trying to set the variable LeftRightClick to "Left" and the same for rightclick, "Right". Then I call the button43_MouseDown event to show the correct MessageBox, depending on if it was a leftClick or RightClick. … | |
[code=c] #include <stdio.h> int main() { char name[50]; printf("enter your name:"); gets(name); puts(name); return 0; } [/code] hello, the above program should first print out "enter your name:", but it does not. it occurs in this way on the console: --------------------------- abc enter your name:abc --------------------------- it prints "enter your … | |
hi! i just want to know, is it possible to pass the value of a variable coming from javascript to php?? knowing that the variable is inside a function?? [code=javascript] function (id,ind) { var clicked_row = id; } [/code] i want to pass the value of clicked_row to php.. thanks … | |
Hi All, Can anybody help me to assign a base class function pointer in derived class constructor? I have got a compilation error while doing so. Please see the code below: [CODE]class Base { public: void (* fnptr) (void) ; void myvurtualfn() { } }; class Derived:public Base { public: … | |
How would I go about passing a user agent when requesting an external xml feed from a 3rd party web service. Need to pass the user agent or else the feed produces an error. I am using DOM [code] <?php $request1 = 'http://www.abc123.com/webservice/this.xml'; $requestIT1 = $request1; $response1 = new DOMDocument(); … | |
#include <iostream> using namespace std; int num, factorial; num = 6; factorial = Fact(num); cout << num << "! = " << factorial; return 0; } // end main int Fact (int num) { if (num == 0) return 1; else return num*Fact(num-1); } //end Fact int main() What is … | |
Hi all, I'm still a newbie in programming world.. And I just realized that PHP has a function "mysql_insert_id()" to get the most recent id that generated by AUTO INCREMENT. But, before I use it, I want to know Is it safe to use it when many users insert data … | |
Hey Guys I have a problem with my mailing script. I have a new script to process transactions and it is working fine. What I need to do is send an email after someone submits a form ONLY if it is approved. So I have my php donation form, a … | |
So let's say I have an interface called ExitInterface.java. Inside there is only one method declaration, exit(). I have two classes that implement this: 1) first one is named Exit.java which does System.exit(exitCode) in the exit method. 2) second one named ExitMock.java which doesn't exit, and instead keeps track of … | |
I am trying to be able to read in 1 000 1 1 1 as like 100011. Also when I do printf of the string program crashes. Here is my code [CODE]#include <stdio.h> #include <string.h> #include <ctype.h> #define MAX 32 int main(void){ int i; int c; char a[MAX]; char b[MAX]; … | |
i need help creating a rectangle where the user creates the border and fills in the empty space with any symbol they want. it should look like this ####### #@@@@# #@@@@# #@@@@# ####### mine only looks like this # @@@@@ # @@@@@ # @@@@@ any help??? heres my code: char … | |
New to templates and lists but i have to use them for a class project. I got it working in one file then i tried to make it a class and I keep getting this error: 1>c:\users\r4ck13y\programming\c++ projects\project2.1\project2.1\merginglists.h(11) : error C2955: 'std::list' : use of class template requires template argument … | |
Hey Guys, did not post the code but here it is now. Oh and basically what is happening is I am now getting and error. The $message variable is what's causing problems. Everything works if I take out the $message. How do I get this to work? Here is the … | |
Hi, I'm having a problem with displaying names from a text file. I'm passing the names from the text file to an array that will be sorted, but I'm not getting the names to show like I want them to. It should display the different names as Last, First But … | |
How would i keep track of money spent? and items bought when i loop and how do i say i want multiple items meaning if i want to purchase more than one teeshirt or mug. /* SIUE's bookstore is having aspecail sale on tiems embossed with the cougar logo. For … | |
hi guys, i want to have a data grid in php in which it will function like the same control/object in vb6. now is there any control/object similar to that of in vb6??? thanks ^_^ | |
I am working on a picture gallery management system for a website. I have the dynamic gallery done, and I am nearly done with the part that edits the gallery. However I have run into problem that no matter what I try doesn't want to go away. When the user … | |
Hi guys, i just want to ask what is the congruent function in php which acts like CDec() in Visual Basic 6.0? Is it the round() or round off?? same with the data types Single and Currency in VB6.0.. Visual Basic 6.0 PHP 5\ Single (data type) __________________ Currency (data … | |
hey there, i am creating a program, and i have text fields such as Customer Name, address, postcode, telephone email etc. and i also have a button 'add record' what do i have to code in add record to actualy save the records.. will i have to make a file … | |
Can someone quickly point out what the problem is here? I'm sure it's something small but I've been coding for too long to see it. The problem is that in the balance method call, the first parameter is an array. if I hard code a test array, or if I … |
The End.