199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pong pong

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 …

Member Avatar for mitchems
0
188
Member Avatar for apollokid

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

Member Avatar for marcosjp
0
131
Member Avatar for marcosjp

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 …

Member Avatar for marcosjp
0
165
Member Avatar for accessviolation

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

Member Avatar for accessviolation
0
214
Member Avatar for NexusX

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 …

Member Avatar for NexusX
0
117
Member Avatar for ade92uk

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 …

Member Avatar for death_oclock
0
73
Member Avatar for VBNick

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?

Member Avatar for VBNick
0
311
Member Avatar for queenc

can somebody tell me what the error is [B]Call to a member function insertseek1() on a non-object[/B]

Member Avatar for death_oclock
0
47
Member Avatar for akim_atl

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 …

Member Avatar for h3xc0de
0
80
Member Avatar for smb1384

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 …

Member Avatar for death_oclock
0
91
Member Avatar for BestJewSinceJC

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 …

Member Avatar for Ezzaral
0
124
Member Avatar for elliotwinner

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 …

Member Avatar for Ramy Mahrous
0
83
Member Avatar for wheatontrue

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 …

Member Avatar for wheatontrue
0
143
Member Avatar for leegeorg07

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

Member Avatar for leegeorg07
0
701
Member Avatar for Bill Purkins

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

Member Avatar for Bill Purkins
0
135
Member Avatar for starzstar

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 …

Member Avatar for starzstar
0
114
Member Avatar for rosenberg_a

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

Member Avatar for VernonDozier
0
137
Member Avatar for kishore84

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

Member Avatar for VernonDozier
0
3K
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
150
Member Avatar for jls7168

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.

Member Avatar for jls7168
0
168
Member Avatar for serkan sendur

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

Member Avatar for BevoX
0
72
Member Avatar for Nikhar

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

Member Avatar for Nikhar
0
136
Member Avatar for mcnally

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

Member Avatar for mcnally
0
98
Member Avatar for abczxy124
Member Avatar for Stefano Mtangoo
0
140
Member Avatar for appy33

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

Member Avatar for Freaky_Chris
0
201
Member Avatar for breatheasier

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 …

Member Avatar for Stefano Mtangoo
0
99
Member Avatar for kischi

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 …

Member Avatar for Ramy Mahrous
0
192
Member Avatar for tuttie

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 …

Member Avatar for tuttie
0
966
Member Avatar for easouza

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 …

Member Avatar for Ezzaral
0
110
Member Avatar for luckyads

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 …

Member Avatar for luckyads
0
114
Member Avatar for rlaknar

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 …

Member Avatar for rlaknar
0
113
Member Avatar for supermodel

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 …

Member Avatar for GDICommander
0
271
Member Avatar for yssirhc

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 …

Member Avatar for LizR
0
122
Member Avatar for mauro21pl

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

Member Avatar for Narue
0
140
Member Avatar for serkan sendur

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}}; …

Member Avatar for serkan sendur
0
104
Member Avatar for yingfo

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 …

Member Avatar for arseniew
0
1K
Member Avatar for Thamizh Bharat

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.

Member Avatar for Thamizh Bharat
0
111
Member Avatar for sierrasoft

How to move (or Duplicate) a Microsoft SQL Server Database from One Physical Server to another server (like backup) in vb.net 2.0 ?

Member Avatar for samir_ibrahim
0
213
Member Avatar for SagarVaze

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 …

Member Avatar for Aia
0
2K
Member Avatar for lerkei

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 …

Member Avatar for Comatose
0
121
Member Avatar for kerek2

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 …

Member Avatar for Comatose
0
205
Member Avatar for ubaldc

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 …

Member Avatar for ubaldc
0
246
Member Avatar for kischi

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 …

0
105
Member Avatar for Soleng

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

Member Avatar for _adam_
0
515
Member Avatar for priyasha2009

hello.u ppl r jst mstrs,bt plz can u ppl tell me how to design a telephone directory using RDBMS

Member Avatar for Ramy Mahrous
0
85
Member Avatar for leegeorg07

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 …

Member Avatar for leegeorg07
0
389
Member Avatar for bhaskerlee

Hi, Is there any way to change the check mark color of a checkbox control?.Thanks in advance......

Member Avatar for LizR
0
79
Member Avatar for mrcniceguy

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 …

Member Avatar for mrcniceguy
0
295
Member Avatar for acardiac

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 …

Member Avatar for acardiac
0
2K
Member Avatar for geletaabate

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

Member Avatar for ram_tps
0
206

The End.