199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SpecialForce

Hello everyone, I am trying to take a screenshot and save it as jpg. I have found a code and save it as bmp but the file size is pretty big. After searching a lot I found this thread [url]http://www.daniweb.com/forums/thread327090.html[/url] but I can't compile the code... :( I am trying …

Member Avatar for daviddoria
0
6K
Member Avatar for jakizak

Ahhhh! OK, so I've been learning PHP for about 7 years now on and off, but never have I taken the time to look into URL rewriting. Until now I've not needed it, but you can guarantee the one thing you think you wont need, you need! I have the …

Member Avatar for blocblue
0
357
Member Avatar for tultul

Sorry.... i have posted this question before in JavaRanch Forum but i did not get any satisfactory answer to my question. probably no one notices there. I am posting here with the hope that someone will come forward and give me some suggestion. i am using java swing and i …

Member Avatar for tultul
0
887
Member Avatar for Inevitable x7

I have a JList that becomes populated from click on buttons. My question that i need help with is, is it possible to use a function of the JList to get the string from a selected index and make a substring? thanks.

Member Avatar for javaAddict
0
356
Member Avatar for pallen

Hi folks, I have 2 very similar html contact forms on my site that run through PHP and get the results to the staff in an email. I use strip_tags to remove malicious content on each step of the form. Recently, a user sent an email that included some URL's. …

Member Avatar for diafol
0
158
Member Avatar for tracieam

I am trying to write the code for a face that winks. My code doesn't give me any errors however when I try to run it the window comes up as a blank window. It does have the corredt title but no face is drawn in it and I'm not …

Member Avatar for tracieam
0
104
Member Avatar for ronnieaka

firstly, please suggest some tags i should put for this post. onto the problem.. i saw this programming problem on projecteuler.net and wanted to solve it for fun. i solved it, but i tried first till 142857 the output was good, ok, satisfying here's the link where the problem is …

Member Avatar for ronnieaka
0
209
Member Avatar for shadowscape

hey everyone, i am attempting to create a simple dll in c++ that creates a timestamp, in the following format... [B]17042011233200[/B] Which is: [B]17/04/2011[/B] @ [B]23:32:00[/B] thus far, i have found a code ([B]see below[/B]), but after compiling with devc++ it doesnt seem to work, i am new with dll's …

Member Avatar for JasonHippy
0
161
Member Avatar for Nirmeen Ased

i have a as an array b also .. how can i find the summation of there content .. thank you ..

Member Avatar for Nirmeen Ased
0
103
Member Avatar for yashsaxena

Hello All I have some confusion in Declaration and defination of variables. Declaration means ===> where the variables are declared and no memory is allocated. Defination means ===> where the variable is declared and defination is allocated. For eg. if we write (1) int a; printf("%d",a); then it will print …

Member Avatar for nezachem
0
131
Member Avatar for cafegeo

I have this function which reads in a workers.age from a structure. It determines how much taxes that worker will have to pay based on a base[i] salary that is also passed to that function. I am able to print out the net salary and amount of taxes paid for …

Member Avatar for cafegeo
0
472
Member Avatar for bangor_boy

My understanding of this subject is - Two or more processes accessing a semaphore concurrently can cause Deadlock The provelms with semaphores is that you can forget to call the release method and it can cause deadlock Starvation Both processes can change the P and V counters of the semaphore …

Member Avatar for Old Doctor Ed
0
193
Member Avatar for samreen36

i place two forms one contain 2 picturebox and 2 button and 2nd form contain 2 picturebox and one button when insert image in 1st form it automaticaly load on 2nd form when 2nd form load. plzzzzzzzzzzzzzz help me to do this

Member Avatar for abelLazm
0
295
Member Avatar for Labdabeta

I have the following trig functions, but I am wondering if there is a faster algorithm that I could implement: [CODE]static const double SINMIN=0.0009999998333333; static const double COSMIN=0.9999995000000417; static const double TANMIN=0.0010000003333334; static const double E=2.718281828459045235360; static const double PI=3.14159265358979323846; static const double MINVAL=0.01; double sin(double ax) { double x=aabs(ax); …

Member Avatar for mrnutty
0
638
Member Avatar for rouse

My script is dies at the start when I try to devine a SplFixedArray and I don't know how to find the error. Help would be appreciated... [CODE] <? error_reporting( E_ALL ); // Initialize the array with a fixed length $array = new SplFixedArray(5); [/CODE] Thanks! WBR

Member Avatar for rouse
0
141
Member Avatar for michaelzip

Hi. Can you help me how to balance a chemical equation using linear algebra. I know how to do it on a piece of paper using the usual method of balancing. I just don't get the principle how to do it on the other method. Please give me a step …

Member Avatar for michaelzip
0
261
Member Avatar for NinjaLink

I receive the correct results when I use Microsoft Internet Explorer. However, when I use Ubuntu and try to get the output, I receive a blank screen except for the title "Book Finder Search Results" which appears at the top. Are there any adjustments I can make, so I can …

Member Avatar for zizuno
0
202
Member Avatar for shine_jose
Member Avatar for makman99
0
161
Member Avatar for tubby123

Why do we have to initialize a pointer to a string when it is declared globally ? I mean , [B]This doesnt work[/B] [code=c] #include<stdio.h> #include<conio.h> char *str; int main(void) { gets(str); printf("%s",str); } [/code] [B]But this works[/B] [code=c] char *str="1"; int main(void) { gets(str); printf("%s",str); } [/code] Even upon …

Member Avatar for rubberman
0
139
Member Avatar for shanki himanshu

suppose i have 3 functions: a() b() and c() both a() and b() can called c(). if function c() is called how do i know who is the caller??

Member Avatar for rubberman
0
235
Member Avatar for jimmymack

[CODE]// petcount.cpp - Script 9.1 #include <iostream> #include <string> // Declare the class. class Pet { public: // Constructor and destructor. Pet(std::string theName); ~Pet(); void eat(); void sleep(); // Static method that will // return the current value of count: static int getCount(); protected: std::string name; private: // count will …

Member Avatar for jimmymack
0
154
Member Avatar for Efficience

Hello Everyone , I have written a simple piece of code for reading an Image file(.png) in c but this code doesn't seem to work properly.Can anyone help me solve this problem of reading an image file in C ? Code I have written is :- [CODE] FILE *file; char …

Member Avatar for Efficience
0
2K
Member Avatar for hoangtuepchai
Member Avatar for HiHe
0
84
Member Avatar for dnk

Hi, I try to change all first letter of the words in the textbox to uppercase. THis how far i try to change it but just the first word not the entire words. [CODE] Private Sub txtQuote_Change() txtQuote.Text = UCase$(Left(txtQuote.Text, 1)) & LCase$(Mid$(txtQuote.Text, 2)) txtQuote.SelStart = Len(txtQuote.Text) End Sub [/CODE] …

Member Avatar for dnk
0
174
Member Avatar for PM312

i have Msflexgrid with two column (Invoice No and Amount) say 5 rows Invoice no column is left align and amount column is right align i want to transfer this 5 rows data to a single text box i.e entire grid data to single text box invoice no should be …

Member Avatar for Jx_Man
0
1K
Member Avatar for Na'Vi

Hi, this is a multiple choice question from my AP CS review book. I can't seem to figure out the right answer even after looking at the answer. Which of the following will evaluate to true only if boolean expression A, B, and C are all false? A) !A && …

Member Avatar for rubberman
0
172
Member Avatar for Labdabeta

I need a way to do the following and I cannot think of one, this is what I have so far: [CODE]typedef Obj2*(*Reaction)(); class Obj1 { public: Reaction reaction; }; class Obj2 { public: unsigned int numobj1; Obj1 *objects; }; class Obj3:Obj2 {};[/CODE] Can you find any way of doing …

Member Avatar for Labdabeta
0
93
Member Avatar for tracydo

Hi, I'm trying to create an array for converting Octal number from input to Binary later...print out for table look-up. Please help! [CODE] import java.util.*; // Scanner class public class check1 { public static void main(String [] args) { int i; String biArray[]={"000", "001", "010", "011", "100", "101", "110", "111"}; …

Member Avatar for JamesCherrill
0
167
Member Avatar for HiHe

I was exploring random art and modified this nice example from vegaseat: [code]# random circles in Tkinter # a left mouse double click will idle action for 5 seconds # modified vegaseat's code from: # http://www.daniweb.com/software-development/python/code/216626 import random as rn import time try: # Python2 import Tkinter as tk except …

Member Avatar for HiHe
0
18K
Member Avatar for Tellalca

Hey; I am currently busy with multiprocessing and multithreading. There I saw a signal SIGCHLD which is an excellent zombie process cleaner by handling that signal. But when we are writing our handler function why we declaring it with an signal number arguement ? Is this arguement is automatically passed …

Member Avatar for nezachem
0
169
Member Avatar for ankit.4aug
Member Avatar for -==Zero==-

Hello My Problem May Be Very Easy Or Very Hard Iam Still Noob In Php I Developed This Site [url]http://www.e-alriyadh.com/[/url] The Pagination Works Fine In The Index Page Like This [url]http://www.e-alriyadh.com/index.php?p=2[/url] Now There's A Problem In The Category Section Pagination This Is A Section [url]http://www.e-alriyadh.com/cat.php?id=22[/url] When I Try To Go …

Member Avatar for -==Zero==-
0
139
Member Avatar for Thisisnotanid

Hi all, I was working on a MATLab program and I came to a point where I wanted to define a function such that one of the arguments would be used as a command. To clarify, the function being defined was an implementation of Simpson's rule that would integrate using …

Member Avatar for TrustyTony
0
251
Member Avatar for scranton

i'm trying to make an IComparer that will sort numbers in ascending order with the exception that any negative values (in my case, all -1's) will sort to the end. the sequence would be 0, 1, 2, 3, -1, -1, -1... but i'm wasting all dam day and getting nowhere …

Member Avatar for scranton
0
297
Member Avatar for jkrueger

Hi, Noticed on the Mac that after a script runs the terminal is still there and not usable, one has to control q it to go away. Is there a way to have the script quit the terminal from the script when it ends? Thanks, jkrueger

Member Avatar for jkrueger
0
958
Member Avatar for jarograv

Currently I am making code to be used to make my playing of an online conquest video game easier. The first program the user would run is the initialize program. This is how the program looks: [CODE] #initialize import csv x=1 y=1 n=0 citiesx=[] citiesy=[] city_names=[] total=input("How many cities do …

Member Avatar for griswolf
0
2K
Member Avatar for neverine

Hallo, Can somebody help me how to find combination between code´s. i have 30+ codes like this 7zv7pj. xjdcsa, efzlfl, xkaadt etd but i dont know any program or something what can i help me get more combination or understand how codes work. Ty for help

Member Avatar for neverine
0
125
Member Avatar for dandixon

Im a noob to asp.net, im a web designer with html, css and basic php experience and want to learn more about asp.net/vb. Does anyone have any time to explain to me a good place to start, books, websites etc or the best place to start, do i need to …

Member Avatar for koki55
0
136
Member Avatar for penguino138

Ok so i want to make a program that calculates pi. Ive done that already but it only gives me so many decimal places. I want it to give me tons. Im using Dev C++ if that helps too. Here's my code: [CODE] #include <iostream.h> #include <math.h> int main() { …

Member Avatar for Derek Elensar
0
916
Member Avatar for anish99virgo

Hii all!! Well i want to know about how to check for the password entered by the user in a textbox?? When a user enters some characters in textbox, i want to show a label which will tell about the strength of password, that is it strong, weak , poor... …

Member Avatar for anish99virgo
0
6K
Member Avatar for stonybony

Hi, First up, I am a little lost with events. I am trying to do this and I can almost say that its not doable: [code] "one.php" <?php echo '<input type="text" maxlength="5" name="bill" value="" /><br />'; $get_pass = 5; $get_pass1 = 10; ?> <a href="two.php?getpass=<? echo $get_pass ?>&getpass1=<? echo $get_pass1 …

Member Avatar for stonybony
0
131
Member Avatar for Derek Elensar

Ok, so this is going to be a basic question that I should probably know, but it's baffling me right now... Also, be prewarned that this is a homework assignment I'm working on. I don't want answers, just guidance. I understand what I need top do(for the most part. obviously …

Member Avatar for Derek Elensar
0
177
Member Avatar for tubby123

Hello people, I am using Turbo-C Can anyone give me a sample program using the bool array I tried compiling the following code snippet. But it doesnt work. [code] #include<stdio.h> #include<conio.h> int main() { bool a[10]={true}; clrscr(); printf("\nHello World"); getch(); } [/code] It gives the error [B]Undefined Symbol bool[/B]. But …

Member Avatar for Narue
0
118
Member Avatar for PM312

i want to change the font type to "Courier New" for my outlook message sent through VB [CODE]Dim oOApp As Outlook.Application Dim oOMail As Outlook.MailItem Set oOApp = CreateObject("Outlook.Application") Set oOMail = oOApp.CreateItem(olMailItem) MsgBox 2 With oOMail .To = Text1.Text .CC = Text2.Text & ";" & Text3.Text .Subject = Text4.Text …

Member Avatar for BitBlt
0
160
Member Avatar for rb1234567

What would the diagram look like and what [B]relationships[/B] would there be? It [B]stores[/B] the [B]customers (patients)[/B][B] details [/B]and [B]drug information(prescrip?)[/B]What[B] entities [/B]would there be ? e.g. customer/patient, pharmacist or doctor? or both?

Member Avatar for BitBlt
0
185
Member Avatar for manny23

[CODE]ifndef POLY_H #define POLY_H class Poly { public: Poly() : first(0) { } void addTerm(double coeff, unsigned exponent); // add term (coeff^exponent) to the polynomial; // might just change coefficient of existing term, // or might insert new term; maintains terms // in order from greatest to least exponent private: …

Member Avatar for mrnutty
0
145
Member Avatar for programing

what the wrong for this code : [CODE]if (head==NULL)//1 if the list is embty cout<<"NO element in linked list "; else if { if (head==tail){ ///2- if we have one node delete head ; } [/CODE] how i can write the other case if valid addrese if the addrese in …

Member Avatar for programing
0
119
Member Avatar for missc

I have a C# WinForm application. On my Buttons I use the '&' (in the .Text properties) for Hotkey access. The strange behavior is that the '&' is converted to the appropriate underscore while in design mode BUT DOES NOT appear at Runtime. At runtime the Hotkey functionality works, but …

Member Avatar for missc
0
89
Member Avatar for choboja621

can you tell me what is the equivalent of: [CODE]flushall()[/CODE] in Turbo c++? Thanks! Im having a problem because of that. Or, what is the header file of it? Thanks AGAIN :D

Member Avatar for Narue
0
130
Member Avatar for pavankumarr

Hi, I want sample code to validate the dates that is to be in the format YYYY-MM-DD(2011-04-21). I had created two Textboxes to enter date and one Button Control. The date format to be entered in the Textbox should be exactly like YYYY-MM-DD(2011-04-21). If user enters any other format like …

Member Avatar for pavankumarr
0
2K

The End.