199,114 Archived Topics
Remove Filter ![]() | |
Hi, I am new in this forum and perl as well. I have a question. I have a form with 3 fields name, phone number and email address. now if any user put the wrong data in any one or more field, I just want to display a message where … | |
Hi all, this is my first post and was wondering if someone can help me :D See I have a search field with a results.php and I want to have results from multiple fields. [ICODE]<form id="form1" name="form1" method="get" action="results.php"> Search: <label> <input type="text" name="findthis" id="findthis" /> </label> <label> <input type="submit" … | |
Hello there! I need to open PDF files from a C program. So, initially I have this solution: [code=c] ShellExecute(GetDesktopWindow(), "open", "c:\somefolder\myFile.pdf", NULL, NULL, SW_SHOWNORMAL); [/code] However, this code has its limitations: 1. It works, but a shell window comes up and closes when opening the PDF file. Is there … | |
Hello, I am attempting to develop a custom control that allows the user to zoom to a specific point on an image, typically a map. The problem that I am having is when I attempt to adjust the scrollbar position, the update of the image is very jerky. For example, … | |
Hello, I'm having a great deal of trouble stemming from a part in my code where I have to convert an integer into a string so that I can concatenate it - the problem being that a variable is refusing to clear or re-write itself, instead it just appends the … | |
I have tried: [CODE]$urlres = preg_match_all('#<img[^>]*?>#si', $site, $matches); $checkhttp = preg_match('#src="http#si', $matches[0][$i], $checked); if ($urlres = true) {for($i = 0, $size = sizeof($matches[0]); $i < $size; ++$i) { if ($checkhttp != true): $pattern = '#src="http:#'; $replacement = 'src="'; $replacement .= $link2; $string = $matches[0][$i]; $result = preg_replace($pattern, $replacement, $string); echo … | |
I have seen functions defined these two ways: function(type *variablename) function(type variablename&) I commonly use the first one to pass on pointers to my structs, but is the second one the same as the first? | |
can somebody tell me what the error is [B]Call to a member function insertseek1() on a non-object[/B] | |
I was trying to find the right answer to the question below and here are the 2 answers I come up with: srand(time(NULL)); or srand(clock()); If we want the random number library function to produce a different sequence of values each time the program is run which of the following … | |
I would like to ask about how to use the timer too... how to use set_timer0, get_timer0, what is the meaning of the value of set_timer0(0)... because I am doing a program that will have a digital waveform, which have high and low voltage...I would like to use timer to … | |
I have to write a program that mimics a digital clock w/ seconds, minutes, and hours. I'm sure I can get the displays working on my own and everything. My concern: what is the most efficient way to check the time? Should I just do Thread.sleep for 1 second then … | |
So, I've got a bit of a conundrum that I cannot for the life of me figure out. Here's what I need to do : In column PO_I, look for column ITEM with lowest # in column Seq_I. If column Ship_Q < Qty_Ordered, look for Ship_Qty within ITEM with next … | |
Dear all, I am trying to parse a lot of text. for small amounts of text, the WHILE loop I use to find all spaces in the text works well: markerlist=[] counter=0 while len(markerlist)<text.count(marker): [INDENT]markerlist.append(text.find(marker,counter) counter=text.find(marker,counter)+1[/INDENT] This iterative process is very, very slow when working with a few megabites of … | |
![]() | i have made a simple music player that will randomly choose a song from the list (music) how can i expand this to a whole directory of music without having to make a list with them all in heres the code: [code] import webbrowser, random music = [#music was here] … ![]() |
Okay, someone explain this one. I retrieve the environment variable USERNAME and assign it to a string variable. I can even show it in a MSGBOX and it shows "Owner". In my code I want to assign the value to a text box when it gets focus. It does it, … | |
Has any one tried using pyDAV a webDAV library for Python, I am getting a followind error whilw trying to list the contents of a collection 2009-02-05 17:38:58,092: DEBUG: REQUEST Send OPTIONS for /uc910015/home/ 2009-02-05 17:38:58,092: DEBUG: REQUEST Body: None 2009-02-05 17:38:58,092: DEBUG: REQUEST Header: ('AUTHORIZATION', 'Basic U3Rvc nZUVncjAwMTpJSUtD') 2009-02-05 … | |
This is my code... [CODE] #include <iostream> #include <fstream> #include <vector> using namespace std; bool searchVect(vector<int>, int); int main() { bool answer; int value; vector<int> vect = {13579, 26791, 26792, 33445, 55555, 62483, 77777, 79422, 85647, 93121}; cout << "Enter the number to determine if there is a winner. \n"; … | |
Hello friends, Need help in generating a random number from an array.Once a number is generated, the number has to be deleted from the array so that only the remaining numbers can be generated from the array.And it should go on until all the numbers from the array are deleted. … | |
Im learning ++ by myself and have decided to follow this tutorial and very interesting [url]http://www.cprogramming.com/tutorial/lesson4.html[/url] However as you can see the int mult ( int x, int y ); is defined twice: at the top and the bottom. Whay it is that. Also I have found many programs uses … | |
I need to make a simple refresh button for a gui java program I have the button made I just am not sure what the code needs to be to make the button work. Any help would be really appreciated. | |
when i try the code below : [CODE]#include <iostream> using namespace std; int a = 3; int b = 4; int c = 5; int * pA = &a; int * pB = &b; int * pC = &c; int * abc[] = {pA,pB,pC}; int main() { cout << abc[*pA] … | |
Hi...this is the code that I wrote to find a particular string from a 2-d array of characters. It prints F(for found) and N(for Not found). When I execute this program, it prints N only. [code]#include<iostream.h> #include<conio.h> char SearchString(char[5][10],char[10]); void main() { clrscr(); char str1[5][10],str2[10]; int i; cout<<"\nEnter 5 objects:-"; … | |
[code] // gettingEvenNumbers.cpp // Purpose of this functions is to read in the numbers 1 - 20 // and print out only the even numbers using a loop of some kind. #include <iostream> #include <string> int main() { // Numbers being used. int x[] = {1, 2, 3, 4, 5, … | |
i need to design a python program that will calculate these two things. can someone help me out here? | |
I would like to learn C++, Everytime I write the code or should I say copy the code down, I get to where I want to compile but cannot get the program started. Can any one help by explaining how after I copy the code the steps from then on. … | |
Hi, I'm trying to create a 2-Dimensional box in vpython and fill it with circles placed in random positions but the circles cannot overlap. This is how far I have got, but I can't work out how to make the positions not overlap. I'm sure most of what I've done … | |
Hi I have made a website where it is possible to see the days program on one page, it updates itself so it is only for that day. But now I wan't to be able to insert a picture that changes position according to what time it is. For example … | |
I am working on a programm that requires one to write a program that outputs your first and last intials in block letters. The block letters should be made up of small letters that match your block letter. If PS is the block letter then p should be made up … | |
I would like to programmatically convert existing Word and Excel documents into TIFF or PDF using JAVA without having to open the Office document (too slow). Are there any Office 2007 tools that could work or other 3rd party tools. The JAVA conversion program will run on Windows 2003 based … | |
I have a very basic question. I am populating a datagrid from an XML file, ie. binding datagrid to XML The datagrid has 4 template columns - ID (label), Episode Name (label), Part A (checkbox), Part B (checkbox). [COLOR="Red"]What I want to do is remove the nodes "<name>" from the … | |
I have written a program in java for RSA algorithm to encrypt a string and decrypt on receiver side. RSA public key and n value are announced to receiver by sender. Then encryption process begins. The RSA program in sender side returns BigInteger which is the encrypted string and I … | |
hey guys, I have this program that calculates the wind chill temp, But I have a little problem. The air temperature `tAir` should be less than 10 and the wind speed `wSpeed` should be over 5. So I need to keep asking for a new input from the user UNTIL … | |
well the title pretty much says it all. I'm trying to grab an html hidden form input value for use in a delphi function. I don't know delphi very well at all, so I was trying to follow the format of the other code in the program that did this … | |
Hi to all I have a quick question. I am going to fill an array with some inpuit of type char using member function cin.getline. After I fill an array ,I would like to do "for" loop so I need to know what is curently the size of an array. … | |
hi, in the code below : [CODE]#include <iostream> using namespace std; struct deneme { int a; void (* myFunction)(int a); }; void function1(int a) { cout << a << endl; } void function2(int a) { cout << a + a << endl; } int main() { deneme myDeneme[] = {{1,function1},{2,function2}}; … | |
Hi I'm having trouble with this program I am working on. It is to simulate a grocery store. The program will read in a file which is called inventory.dat the file will have items in it like: 11012 gallon-milk 1.99 F 11014 butter 2.59 F Then a customer will input … | |
I am doing a project in which i need to find the coordinates of a red laser dot on a screen. The screen can be plain or the desktop can be projected on a screen. Kindly tell me how do i detect the red spot? Thank you in advance. | |
How to move (or Duplicate) a Microsoft SQL Server Database from One Physical Server to another server (like backup) in vb.net 2.0 ? | |
I need to get a pointer to a particular member variable of a structure Here's what i have done [code] typedef struct { int var1; other variables ... } structname; ---some other code here--- structname* structptr; int* intptr; intptr=(int*)&(structptr->var1) [/code] but this isn't working. What's the correct way to do … | |
Pls. tell me what's wrong with this code, I really need a big help..... tnx in advance... [code] Imports System.Data.OleDb Module Module1 Public admin As Boolean 'Use to identify if current user is Administrator End Module Public Class LoginForm1 Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles … | |
hi Alls, I really need your help regarding this method, Actually i need to create one search box using textbox and the result will display on listbox. I have textbox1 as inputbox, button1 as search button , listbox1 to display the value , Database1.mdb as my database. Can u guide … | |
i am porting over PHP code that was running prior to PHP5. Server is apache. i cannot get _GET or _POST to return a value that normally be obtained from an HTML page. I do know that in this version of PHP, the $HTTP_GET_whatever function has been deprecated. I am … | |
Hi I have made a website where it is possible to see the days program on one page, it updates itself so it is only for that day. But now I wan't to be able to insert a picture that changes position according to what time it is. For example … | |
I would like to have a singleton class along the lines of the Meyer's Singleton but which is private to a single thread. The singleton should automatically destroy itself when the thread dies. Any suggestions are appreciated! Harald | |
![]() | hi again im doing the spell checker program in the projects for the beginner thing and i have this code: [ICODE] dict = open("DictionaryE.txt", "r").readlines() test = "Hello my nmae is george" correct = [] for line in test: if line in dict: correct.append(line) print line print correct [/ICODE] but … ![]() |
Hi, Is there any way to change the check mark color of a checkbox control?.Thanks in advance...... | |
I have a script which uploads image in a folder then then path to the database. it works well. the problem is that i can`t display the image using the path. [code=php] <?php $sql=mysql_query("SELECT path,user,date,filename FROM picha WHERE user='peacemaker'"); $row = mysql_fetch_array($sql); $user=$row['user']; $filename=$row['filename']; $path=$row['path'];//here you get path where you … | |
Hi all of you people out there! Can anyone please help me on this problem....? I want solutions manuals for different books that i have just for study purposes(not commercial strictly) Can anyone please tell me where i might be able to find the required solutions manual(s)....for free.! :-) I … | |
i tried to use multiple updated panel control on a single page by setting there update mode to 'conditional' <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Button runat="server" ID="Panel1Button" Text="Panel 1 button" /> </ContentTemplate> </asp:UpdatePanel> <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Button runat="server" ID="Panel2Button" Text="panel 2 button" /> </ContentTemplate> … |
The End.