199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Awah Mohamed

hey people seriously , this code is going to kill me i wrote it yesterday and upto now it cant work i wrote it more than one time and i review it more than 10 times but i didnt found the error so this is my code and bellow is …

Member Avatar for chrishea
0
101
Member Avatar for micke

Hello, I have been reading tutorials on c++ for a while, and made a few simple applications. Now I've started looking at win32, and while all the tutorials I've looked at are quite good, they miss out on some simple points. I know how to make a window, a menu, …

Member Avatar for hiddepolen
0
215
Member Avatar for georgeee123

Hi, I am working on a chat program. When a user logs in, a value in the database is set to 1 (online), and when he/she logs out it is set to 0 (offline). The problem is, when the user exits the browser, naturally the value is still set to …

Member Avatar for georgeee123
0
416
Member Avatar for Mollier

Hi, this is my first post here at Daniweb. Seems like an active and friendly environment. I have very limited experience with programming in general, and even more so with GUI programming. As the title suggests, I want to stop a while loop by the use of buttons. When I …

Member Avatar for richieking
0
3K
Member Avatar for hazeeel

Hey guys! Much help needed here! I am a student doing a protein structure alignment algorithm which is my final year project, using various forms of translation, rotation & computing the RMSD. From line 164: This is my loop calculation, basically it computes the Root Mean Square Deviation (RMSD) of …

Member Avatar for hazeeel
0
178
Member Avatar for Pokenerd

I know this is strange, but i have a simple syntax question. Right now I'm working with a thread in the following format. The use of "setDaemon" in the run function does not work, as you apparently must set Daemon before you start the thread. [ICODE]new Thread() { @Override public …

Member Avatar for Pokenerd
0
143
Member Avatar for Misklahr

Hi I'm new to java, and I'm trying to make a very basic game. The problem is that i have 3 classes that cooperates and I can't get one of the values from class "Board.java" to "gp1.java". In Board i have a button that "rolls the dice" x2 and adds …

Member Avatar for Misklahr
0
359
Member Avatar for merse

I've made an empty mynote.txt in the same directory, and open the following code with Internet Explorer, and allow to write on hard disk (when IE asked) but nothing in the text file: mynote.txt after the run. what is the problem? [CODE]<html> <body> <script type="text/javascript"> function WriteFile() { var fh …

Member Avatar for scrappedcola
0
336
Member Avatar for Anthony Cameron

Hello, I need help to fix a perl script that obtains a DNA file with a FASTA sequence and randomly shuffle the sequence while maintaining the overall distribution of bases. I must also randomly shuffle the sequence 10-20 times. Then measure the similarity between the shuffled sequence versus the original …

Member Avatar for d5e5
0
1K
Member Avatar for pikkas

hi guys, i am trying to populate a listbox the number of the current month in listbox. and i am using an onload event of the body but it doesnt works. any help please?. i am new on javascript. [CODE] function dat(){ var date=new Date(); var Month= toString(date.getMonth()+1) this.Monthlistbox.options=new Option(Month,Month,true,true); …

Member Avatar for mahavir123
0
147
Member Avatar for ceyesuma

Hello I am not sure what is getting serialized. I would like to serialize a JInternalFrame. So what do I send my SaveFrame.java. because it puts a file "null.dat" in the folder. I sent the frame got null.dat sent something I thought was the class of the frame (as shown …

Member Avatar for ceyesuma
0
146
Member Avatar for dhanh90

I have the problem like that ". Write a short Java program that outputs all possible strings formed by using the character ‘c’, ‘a’,’r’, ‘b’, ‘o’ , and ‘n’ exactly one."..and the code here: [CODE]public class StringPermutation { //---------------------------------------------------------------------------- private static char source[] = {'c', 'a', 'r', 'b', 'o', 'n'}; …

Member Avatar for apines
0
430
Member Avatar for roachae

I'm pulling a date value (not a datetime value) from a MySQL database, but I need to subtract 30 days from that date, and not sure how to do it. I found a sample using mktime() to break up the day-month-year and subtracting 30 days from the 'day' component, but …

Member Avatar for hielo
0
365
Member Avatar for pearll

[CODE]<tr> <td colspan="2" align="center"> <input type="button" class="btn" value="New" name="New" onClick="window.location.href='new2.php'" onMouseOver="hov(this,'btn btnhov')" onMouseOut="hov(this,'btn')" align="absmiddle"> &nbsp; <input type="submit" value="Delete" name="delete" class="btn" onMouseOver="hov(this,'btn btnhov')" onMouseOut="hov(this,'btn')" ></td> </tr>[/CODE] I am unable to make thses two buttons centred .... any help?? TIA

Member Avatar for nonshatter
0
86
Member Avatar for hoong

The runtime error -2147217396 (8004100c) keep occurs once i attempt to run this code to get the received signal strength of my WLAN card from WMI by using VB6 in Windows Vista. So is there any solution to solve this automation error ? Is VB6 cant access to certain WMI …

Member Avatar for hoong
0
1K
Member Avatar for alviss_88

Hi! i trying to take the same value from 2 arrays and then count how many time of it. However, when i compile, it run ok. but it did not print out the value of coutting. I did not know why, i had tried several times to fixing. please help …

Member Avatar for Perry31
0
308
Member Avatar for jengels

I have an assignment to write a java class. What I need to do is write a class and a driver. I need to write a class that stores instance data as members names. Golfmember(name : String) then in the driver I would have something like: golfer1 = new Golfmember(); …

Member Avatar for apines
0
167
Member Avatar for amandureja

Hey guys! This is my very first post on this website. Anyways, I just started learning Python, and am reading an ebook, called "A Byte Of Python". So at the end, it says to create an address book application. In my application, it basically just creates a text file with …

Member Avatar for richieking
0
2K
Member Avatar for apanimesh061

[CODE]create table items_avail ( pro_id varchar2(10) primary key, mod_id varchar2(5), comp_name varchar2(25) ); [/CODE] I wish to remove the primary key constraint......and add make the prod_id and mod_id as primary keys together. i.e. primary key(prod_id, mod_id) But he thing is this table is already connected to three more tables by …

Member Avatar for Perry31
0
99
Member Avatar for icccapital

I am wanting to have a select box populate from a database query based on the information pulled from another select box as the user chooses it (ie a user chooses a state and the city choices populate or something like that). I am using JSP, Servlets and Beans. Seems …

Member Avatar for icccapital
0
185
Member Avatar for jasleen12345

pls someone give me a c++ program to insert and delete an element from a linked list...i tried a lot but i am stuck..

Member Avatar for alaa sam
0
101
Member Avatar for knarffrank

Help I'm having trouble on passing value to another page, I'm using PHP. My goal is when i click a link it will move to another page and the value of that link will be received by the other page. make sense? can someone help me with this? thanks..

Member Avatar for Borzoi
0
225
Member Avatar for elsiekins

theoretically - when using unint16_t (unsigned integer of size 16) I have two arrays of these unsigned int and i am going to use [CODE]memcmp[/CODE] for example: [CODE] uint16_t a[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10}; uint16_t b[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10}; if (memcmp(a,b , sizeof(uint16_t) * 16) == 0) { return true; }else { return …

Member Avatar for Ancient Dragon
0
125
Member Avatar for burcin erek

there are two scripts, first, square.h second square.cpp this test program is trying to calculate square and cube of the given number but i have a problem with cube function definition. [CODE] #include <iostream> #include <conio.h> using namespace std; class square { int x; public: void set_values (int); int erek …

Member Avatar for alaa sam
0
138
Member Avatar for medamineb

hi everyone, i'm trying to do a program in c, GCC UNIX and i have this error: warning: passing argument 2 of `write` makes pointer from integer without a cast i try to use TUBE, communication between process and i use `write(fd[1],2,1);` but it gives this error please i nead …

Member Avatar for medamineb
0
1K
Member Avatar for LONGWAY

Hi, i have four tables:books, info, autor, publisher and columns under tables; books........... info............ autor............. publisher ------------... -------------... ---------------... -------------- id............. id............... id.................id bookname .......type .............name ..............publisher name autor_id .......year .............second name .......quantity publisher_id ...autor............. year..............country I tried with this relations but it did not work (is this normalization ok) …

Member Avatar for LONGWAY
0
143
Member Avatar for sariberri

This might be a stupid question but I can't figure out how to set my array equal to my method which returns an array. This is what I did and there's an error. :/ [CODE]array=array.resize();[/CODE] Thanks guys

Member Avatar for apines
0
116
Member Avatar for neosonic

I put one smaller picture box inside the bigger picturebox. The annoying thing is, I cannot have a good picture, because the my smaller picture is in rectangle shape, while the smaller picture box is in square. So there is a residual space in the smaller picture box that I …

Member Avatar for AndreRet
0
285
Member Avatar for dhanh90

I have the code here but still can not figure out why it can not work why I enter X=2, and N>= 31.... [CODE].data str: .asciiz " Inter X:" str1: .asciiz " Inter N:" str2: .asciiz " X to the power of N is : " .text main: la $a0,str …

Member Avatar for dhanh90
0
7K
Member Avatar for jlininger

Hi I am new to the programming world . I took a certification course for my MCTS .net I passed one of two certs for MS. But even though i undersatnd syntax i don't get coding in its entirity. I don't want to see that my time and money went …

Member Avatar for Diamonddrake
0
101
Member Avatar for tunde011

Hello all, I am hoping you point me in the right path here. How do I open a workbook when a value in the listbox is clicked? Thankyou

Member Avatar for AndreRet
0
209
Member Avatar for appooti

[code]import java.io.*; import java.io.File; import java.net.*; import java.net.UnknownHostException; import java.net.InetAddress; public class Rfc{ protected String ip; protected int host; public BufferedReader reader; protected PrintWriter writer; public static void main(String[] args){ try{InetAddress address = InetAddress.getLocalHost(); String ip = address.getHostAddress(); System.out.println(ip); }catch(Exception e){ System.out.println("error2"+e); } Rfc rfc =new Rfc(ip,80); rfc.setUpConnection(); String s …

Member Avatar for apines
0
136
Member Avatar for LianaN

Hi! I want to create a stopwatch that will counter seconds starting from 0. This code worked in case of a real time counter (using Calendar). However, now the counter is fixed on 0. Does anybody know what could cause an error? Thanks! [CODE] timer = new javax.swing.Timer(1000, new ActionListener() …

Member Avatar for apines
0
104
Member Avatar for gee_azizi

Hi, in my VB6 app, there are ADMIN and USER type that can log in. Is it possible that ADMIN can monitor USER activities like when they delete the data, who had log in into the app and else? Thank you

Member Avatar for AndreRet
0
256
Member Avatar for nagatron

I would like to know to remove spaces from start and end of a string without removing the middle space. Ex. _ _String _ Sample _ _ = String sample I have a code: [CODE]Text1.text = Replace(Text1, " ", "")[/CODE] The code removes all the space in a text. Ex. …

Member Avatar for AndreRet
0
169
Member Avatar for Naveed_786

I am using this method to take print of data peresent in textboxes but it prints on top left corner i want to take print in a sequence and distance as it apears on form also want to increase font size waht should i do please help me. [CODE]Printer.Print txtstudentid.Text …

Member Avatar for AndreRet
0
283
Member Avatar for SkyVValker

I am using the code below to update the fields in a table.bt it update only first recorde ..where m i doin wrong plzz. help me..! [CODE] StChk.Open "SELECT * From SPINF WHERE STATUS='Active'", Con, adOpenDynamic, adLockOptimistic FeeTrans.Open "select * from TBLFEE ORDER BY VOUCHERNO", Con, adOpenDynamic, adLockOptimistic Do While …

Member Avatar for AndreRet
0
90
Member Avatar for Dean_Grobler

Hi there, In my little code snipet below I am trying to convert an arraylist to an array of type contact. Obviously it's expecting an arraylist of type contact to convert it to an array of type contact. But it's picking up the arraylist as type object for some reason. …

Member Avatar for Dean_Grobler
0
140
Member Avatar for Tiny_trixer

I was wondering. Is there a way to write something from one method in to a result file instead of outputting to screen? To describe a little better, in pseudocode: [CODE] #include <iostream> #include <fstream> using namespace std; class Inputoutput { private: ifstream fileOne; ofstream fileTwo; int i; //More variables …

Member Avatar for drkybelk
0
139
Member Avatar for jeffcogswell

[ATTACH=left]17212[/ATTACH]In the past, the word [I]embedded[/I] was limited to specialty devices that a lot of us used, but few programmers really cared about. Embedded devices meant things like the controllers on your microwave oven or the computer that ran your car's fuel injection system. There are certainly a lot of …

Member Avatar for charmmarkin
0
461
Member Avatar for keeda

Hi, I have to read a file up to a fixed size, how can I do that? Any help is appreciated. example: I have a huge text file and I want to read 1000 bits at a time. How can I achieve this? Thanks,

Member Avatar for chiwawa10
0
80
Member Avatar for rolyestemonio

Hi Guys, Can anyone help me out about displaying 10 data from my database?My codes goes like this. I have 4 fields (id, local_title, local_desc, local_date ) [CODE] <?php $last_date = ""; $result = mysql_query("SELECT * FROM tbl_localnews ORDER BY local_date DESC"); while ($row = mysql_fetch_array($result)) { for($i=0; $i<10; $i++){ …

Member Avatar for rolyestemonio
0
174
Member Avatar for qvyhnl

Prblem: Implement a base class Account and derived classes Savings and Checking. In the base class,supply member functions deposit(), withdraw(), and print() which prints out the ownerand balance. Create constructors that take a string (for the owner's name) and a double for the initialbalance. All methods should return void. I …

Member Avatar for chiwawa10
0
220
Member Avatar for purvi12345

It involves ASP ADO for connecting to database..I'm using microsoft access table... I'm a novice to web-development field... :( I know how to make table choice and display it through VB-Script,but don't have a clear idea for display of only desirable coloums,PLZ HELP..with it's ASP-code ,I tried a LOT! ITS …

Member Avatar for purvi12345
0
84
Member Avatar for Jaily

I've written a program that outputs text from a file as hex. And this works like a charm. But in the example in the assignment the output starts with: 000000 ...... 000010 ...... 000020 ...... And that part I haven't figured out how to do! Any pointers? Any links/tutorials I …

Member Avatar for Jaily
0
100
Member Avatar for malayasthana

in the program i am creating a file with specific path.. file name is to be entered by user and then we have to create a file but the code is giving the error written after the code. void f_Createfile() { string dirpath; // stores final name for file with …

Member Avatar for jonsca
0
132
Member Avatar for krip_101

I am getting an array out of index error 26 pls I really need help. [code]import java.util.*; import java.util.Random; import java.lang.*; public class testing1 { public static void main(String[] args) { String pass = new String("ENTER THE HAMLET HAM TO BE OR NOT TO BE THAT IS THE QUESTION WHETHER …

Member Avatar for JamesCherrill
0
103
Member Avatar for Bonesawed

Hi All. Im in the process of writing a basic payroll program in Java. It is for some school work and I am really struggling with it. I have been working with it over the last 3 weeks and have not accomplished much. Below is what I have done so …

Member Avatar for apines
0
231
Member Avatar for rolyestemonio

Hi Guys, I have a problem regarding of archiving. How we are going to archives data by month? I have 4 fields(id, dates, title,description). I want to archives my data by month in which you can see the Month automatically from database MySQL. Example [b]Month retrieved from database[/b] News for …

Member Avatar for rolyestemonio
0
436
Member Avatar for MarleyM

Hey DW. I'm trying to figure out a way so my TCP Server and client can seamlessly send messages back and forth without having to take turns sending the message. Python isn't my language of choice but it's the one i have to use for this assessment. I'm also using …

Member Avatar for convoluted
0
178

The End.