64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for neuro

i tried my writing my first script today :) it is the solving the quadratic equation script and i found it in an older C++ book i'm working through i made some edits to the script since i'm using Dev C++ as my compiler (had this problem but fixed it …

Member Avatar for neuro
0
179
Member Avatar for b1izzard

Binary search tree for strings. I tried my best to trace out the error but in vain Need help. [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> struct bstree { char keyword[25]; struct bstree *lnode,*rnode; }*root; void insert(struct bstree *new,struct bstree *old) { if((strcmp(new->keyword,old->keyword))<0 && old->lnode==NULL) { old->lnode=new; } else if((strcmp(new->keyword,old->keyword))<0 && old->lnode!=NULL) { …

Member Avatar for b1izzard
0
948
Member Avatar for mmhp

Hi, I'm trying to learn delphi. I'm writing a binary tree unit and so far I only have insert and check size. I'm having trouble with inserting a new node into a nonempty tree. Got access violation at runtime and while in debugging mode, the value of sRoot^.Data is in …

Member Avatar for mmhp
0
148
Member Avatar for McvR

Hello all, As a newbie in C# I am searching numerous forums and tutorial to do my reading and learning. I was also searching for a solutin for Login by a separate form and found on this forum a tread from May 14th 2010 called : Enabling and disabling a …

Member Avatar for McvR
0
174
Member Avatar for MasterGberry

I am trying to write a simple Batch File to launch an exe using some basic CMD PRMPT functions. I know exactly what I need to do, but my only problem is I don't know how to detect the Desktop Folder? What if its in Documents and Settings, or if …

Member Avatar for MasterGberry
0
2K
Member Avatar for ayarton

Here is my current code, and it works fine to choose one image and copy it, however, I cannot figure out how to allow multiple file selections then copy them to a new folder. Please help! [CODE]Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Member Avatar for codeorder
0
2K
Member Avatar for tape enterprise

I want to output my data into a list ordered like this [CODE] <ul> <li>[I]category name[/I]</li> <ul> <li>[I]category item[/I]</li> </ul> <li>[I]category name[/I]</li> <ul> <li>[I]category item[/I]</li> </ul> </ul>[/CODE] when I try a foreach loop like this [CODE]<? $previous_catagory = null; ?> <? foreach ($providers as $provider): ?> <? if ($provider['catname'] !=$previous_catagory) …

Member Avatar for tape enterprise
0
100
Member Avatar for z00t

I'm trying to construct a rectangle & compute its area using the getWidth & getHeight methods.. but i cant figure out for to construct a freakin rectangle!! I keep getting the same error when i go to complie it.. no matter how hard i try :p "Cannot find symbol" [CODE]import …

Member Avatar for ajst
0
160
Member Avatar for ntrncx

hey,thats my first post,i started recently to have for hobby programming,and i am really interesting to learn. anyway i have a problem i write a program that use some classes objects my problem is probably fundamental but i couldnt find answer on net. i have one header file that i …

Member Avatar for ntrncx
1
452
Member Avatar for f_atencia

I have a bunch of code [CODE] var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.3.0"); xmlDoc.async=false; xmlDoc.loadXML(sHTTP); var rootElement = new String(xmlDoc.documentElement.Name); Response.Write(rootElement); [/CODE] The problem is that when I try to display the rootElement Node Name, it appears as 'undefined' on my browser. I also tried xmlDoc.documentElement.NodeName. Any help will be greatly …

Member Avatar for hielo
0
83
Member Avatar for warlord902

I configured a logger namely "My Log" in my main class which can write errors in a log file named mylog.txt Now I want to use this same file for all packages and classes there in. I tried to put this in other class Logger.getLogger("My Log") //Did nothing Now what …

0
133
Member Avatar for moni94

Hello. How can I run a thread and get an event raised when it runs for a certain amount of time? For example: Let's say I have an encryption program. When the user presses encrypt the thread Encrypt starts. But when the thread Encrypt has been running for more than …

Member Avatar for moni94
0
116
Member Avatar for Mr.BunyRabit

Hey there. How do i execute the code in button1 when i click on button2? I have no idea and will save me alot of coding thank you =)

Member Avatar for Mr.BunyRabit
0
77
Member Avatar for jfunchio

I'm writing a program for a class that does operations with rational numbers. I'm not finished with it, but right now i'm working on the is_negative() function which is required to be in the program by the teacher. He has set up a make file to test each part of …

Member Avatar for Fbody
0
355
Member Avatar for Mr.BunyRabit

Hey there. I was wondering if it was possible to stop execution at a certain point without closing the Program? For example Private some button is clicked code code code code But here i want execution to stop as the user did something wrong code code code code I have …

Member Avatar for Mr.BunyRabit
0
147
Member Avatar for Adami

I try to imitate the first stage of pre-processor, which is to remove comments from a *.c file. The main principle is that a *.c will be read and the program will create another file *.c1 which is an exact copy of *.c but without comments(c/c++ comments). Example(in Linux): >./myprog …

Member Avatar for Banfa
0
125
Member Avatar for RenanLazarotto

Hey guys! I'm trying to change a textbox font size at run time with a track bar. But, when I add to my code: [CODE]Textbox1.Font.Size = Trackbar1.Value[/CODE] It says that Font.Size is a read only value. I haven't found any other way to do it. There is a way to …

Member Avatar for RenanLazarotto
0
10K
Member Avatar for puvi

Hi ppl, I am facing this weird problem with php newline character. [CODE] <?php echo"Hello World!! \n Im new to php"; ?> [/CODE] can anyone pls point out what is wrong in the above code?? the output should be: Hello World!! Im new to php but the output goes on …

Member Avatar for lyrico
0
167
Member Avatar for soomro_moon

how to change the texebox properties through php? plz give syntx or any little example.

Member Avatar for soomro_moon
0
124
Member Avatar for masterfact18

...here is the scenario...in my inventory system i have database and it's fields are "Item Number,Description,Last Week Stocks,Deliveries,Total Stocks,Total Withdrawal and Current Stock...this is my logic if adding new stock it will add to 'Current Stock' and to 'Total Stocks' and if withdrawing stocks 'it will add to 'Total Withdrawal' …

Member Avatar for AndreRet
0
544
Member Avatar for Tech B

[CODE] #include "windows.h" #include "loadbmp.h" // from http://gpwiki.org/index.php/LoadBMPCpp #include "fdlib.h" void main(int argc, char *argv[]) { int i, n, x[256], y[256], size[256], w, h, threshold; BMPImg *bi; unsigned char *bgrdata, *graydata; if (argc==1) { printf("usage: fdtest bmpfilename [threshold]n"); exit(0); } bi = new BMPImg(); printf("nloading %sn", argv[1]); bi->Load(argv[1]); w = …

Member Avatar for Mahnaum
0
187
Member Avatar for johnt68

Hello If I have one radio button list with one required field validator and I press a submit button without making a choice I get an error message, I can make a choice and everything is fine and dandy. The problem that I am having is that if I have …

0
82
Member Avatar for DragoDraco

I could sure use some help. Here is what I have and it shows a problem which is : int tempCelcius = (int)((Double.parseDouble(tempTextField.getText())) (5 / 9) × (Fahrenheit – 32)); and here is all that I have: /** * * @author TJ */ public class FahrenheitConverterGUI extends javax.swing.JFrame { /** …

Member Avatar for masijade
0
127
Member Avatar for BLUEC0RE

My program has a function that reads in information until it hits a designated character, takes the text just before that character, does something with it, and then comes back for more text starting at that designated character. So... Special character is: 'z' Text file: "This is a lot of …

Member Avatar for WaltP
0
178
Member Avatar for chaoticabyss99

I recently installed MS SQL Server 2008 Developer Edition (on my home PC with Win7 Ultimate 64-bit). I have been trying to get it set up for use, but am having some issue. I keep getting an error when trying to connect to the server. On the "Connect to Server" …

Member Avatar for chaoticabyss99
0
205
Member Avatar for drdream100

hello!!! i would really appreciate a little help. here's the deal: i have a folder with some fotos in it. all i'm trying to do is make a program in whitch you can write the name of a foto in a textbox, click the "Search" button and find that picture …

Member Avatar for RenanLazarotto
0
127
Member Avatar for Mr.BunyRabit

Hey there, im stuck now with the datagridview not being able to discard the old headings in it and load another table in access. this is how the test program works i have 2 buttons. start the program, and press one button - the datatable loads close the program, and …

Member Avatar for Mr.BunyRabit
0
159
Member Avatar for zlloyd1

I have an html file that is supposed to do a search and return of a database I have created in phpMyadmin but is giving me nothing but one error after another!!:'( This is the html form[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Directory List Request</title> …

Member Avatar for zlloyd1
0
147
Member Avatar for cirno

More like general MySQL than vb.net itself, but still need help. The MySQL code below: [CODE] SELECT * FROM (SELECT resit_no,SUBSTRING(resit_time,1,19) AS entrystamp FROM DB1.receiptdetails WHERE terminal LIKE '%99' AND resitdate BETWEEN '2010-12-01' AND '2011-01-31' AND productcode BETWEEN '91000001' AND '91000009') res1, (SELECT expdate_resitno, SUBSTRING(TimeModified,1,19) AS moded_time FROM DB2.mtransactionstatus WHERE …

Member Avatar for cirno
0
168
Member Avatar for CD1

Hello I have some trouble interpreting a string and I hope you can help me. I have to convert a string, or a word in a number. Like five hundred fifty in 550. I dont know exactly how to do it. I was thinking to try to analize each word, …

Member Avatar for CD1
0
82
Member Avatar for RenanLazarotto

Hey guys, its me again. I think that wasn't 10 minutes since my last post :) Now is another thing. I run a external app that has exit codes, it is all in its own documentation. How can I get these codes inside my app? And, can I add this …

Member Avatar for RenanLazarotto
0
230
Member Avatar for javanoob101

Hello! I have to make a "Dice Applet" for school. It is all finished but the dice pictures do not display properly. It only appears in a line (not the full image.) But they seem to display fine if you maximize the applet then restore the applet to its original …

Member Avatar for javanoob101
0
134
Member Avatar for sirlink99

Hello Everyone. I am trying to use a string to set a color. i have tried Color is the string which says a color like black or red [code] g.setColor (Color.color); [/code] and [code] g.setColor (Color."color"); [/code] lets say the string color was red it should have this effect [code] …

Member Avatar for sirlink99
0
7K
Member Avatar for Neversleepin

Hello, in java, if we want to extract all values between 10 and 100, how could we express between in java. Is there any symbol like && || ..? Thank you

Member Avatar for Ezzaral
0
85
Member Avatar for simpleonline123

Okay down to the niddy griddy.... I am creating an application where I can log into my social networking sites that I have accounts with and entering my new websites url's. This is by no way spamming or anything since those type sites are designed accept new website urls. I …

Member Avatar for HG&C
0
143
Member Avatar for scranton

RegisterClientScript and all variations are missing vb.net 1.1 there's nothing under page or me or clientscript or anything else i can think of

Member Avatar for alc6379
0
125
Member Avatar for LianaN

Hi! I need my own file extension for SWING desktop application (image processing tool). In fact, I want a user to be able to save locations of JLabel components on a screen. Please, give me a hint on how to implement this task. Thanks!

Member Avatar for LianaN
0
162
Member Avatar for jordan0420

am adding a GUI into a python database and i was wondering if there is any way for text to be already in an entry box when it appears. The window is for adding movies to the database so i would like the following, please enter the movies title: [Title …

Member Avatar for TrustyTony
0
2K
Member Avatar for Ankita B

Hi..I wish to prevent users from entering the web pages of my application again using back button once they've logged out.How can i achieve this?..I do not wish to use no-cache,history() etc as they're not fool proof. Also i want to know how can i prevent users from directly entering …

Member Avatar for jc364
0
924
Member Avatar for samm22

Hi, Am trying to create a multipage (or multitab) user form and each one of page (tab) has several textboxes in it. After user enters the input in the textboxes, the data goes into an xml file. All I wannna know is, what is the syntax for getting inputs from …

Member Avatar for codeorder
0
135
Member Avatar for DecreaseEntropy

[code] # nth_prime.py def nth_prime(n): primes = [2] test_int = 1 while len(primes) < n: test_int += 2 for p in primes: if test_int % p is 0: break else: if p is primes[len(primes)]: primes.add(test_int) return primes[n - 1] while True: try: num = int(input("Enter a number:\n")) print(nth_prime(num)) except ValueError: …

Member Avatar for woooee
0
236
Member Avatar for ben.marks

Hi there, Got a javscript problem that im working on where the validation doesn't do what I think it should. From stepping through the code, when the [B]pound and pence fields on the form are blank[/B], but the [B]name is filled in[/B], it should error at "Please fill in value …

Member Avatar for hielo
0
147
Member Avatar for LianaN

Hi! I'm trying to create borders around JLabel components. However, the line [ICODE]c[i].setBorder(border)[/ICODE] cannot be compiled. Please, help me to improve this code. Thanks! [CODE] public void mouseReleased(MouseEvent e) { if (Menu.getgroup()) { Component[] c = getComponents(); Border border = LineBorder.createGrayLineBorder(); for(int i = 0; i < c.length; i++) { …

Member Avatar for LianaN
0
94
Member Avatar for SpecialForce

Here I have a small piece of code: [CODE]ofstream hello ("hello.txt"); hello << "Γειά σου!"; //hello in greek hello.close();[/CODE] And here is the output: [CODE]Output on greek windows: "Γειά σου!"[/CODE] [CODE]Output on english windows: "ÃåéÜ óïõ!"[/CODE] Can someone, please, help me find out how to fix this?

Member Avatar for danb737
0
110
Member Avatar for Waldek

Hello All! Does anyone know how to list all the paths to one or several (if they exist) versions of msaccess.exe on a PC. I'm using VB2005 and have a project with an Access backend that contains reports which are called at various points. These need to be opened with …

Member Avatar for lolafuertes
0
119
Member Avatar for Duki

What happens if I have a method declaration of: [code=c++]int method( char * a, char * b, int * c );[/code] and then I pass in: [code=c++] char a; char b; int c; method(a, b, &c); [/code] This has me a little puzzled. What values will be passed by reference?

Member Avatar for Duki
0
216
Member Avatar for MrCapuchino

Hello I created a setup project for an application. The output goes to the program files folder. I create a shorcut on desktop too. The thing is that the application works with some text files embeded. When I run the application and click new there is an error saying that …

Member Avatar for Ketsuekiame
0
152
Member Avatar for flipper828

Hello, I am fairly new to PHP and MySQL so I apologize if I am just being lazy and/or stupid on this. I searched previous threads and found this one [URL="http://www.daniweb.com/forums/thread178612.html"]Insert data into two tables using php and mysql[/URL] It helped me tremendously but only to a point. Below is …

Member Avatar for flipper828
0
179
Member Avatar for vanzhyme

ahmm.. guys could u please help me about tab control . I have a text input in textbox1 in tab page 1 and i want that text from textbox1 will be displayed in textbox2 in tab page 2. please help me ..

Member Avatar for vanzhyme
0
152
Member Avatar for hanslim77

I'm trying to run audio in a different thread but I have no idea why but when I call wait(), my entire program seems to wait or hang.. not sure if it's deadlock since all it does is wait(), though if I set a time period, after that period it'll …

Member Avatar for hanslim77
0
214

The End.