199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for markbautista19

can you help me to this code... need mcEnemy follow my mcMain... help pls,., this can be appriciated much.... here's the code enemyTime ++; if(enemyTime == enemyLimit){ _root.attachMovie('mcEnemy', 'en'+enemyTotal,_root.getNextHighestDepth()); _root['en'+enemyTotal]._y = int(Math.random()*Stage.width); _root['en'+enemyTotal]._y = -50; _root['en'+enemyTotal].onEnterFrame = function(){ \\ i dont know what is the problem here this._y = mcMain._y …

Member Avatar for JasonHippy
0
135
Member Avatar for koricha

i get an error "org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 18" i think my exception code is wrong. i don't know how to return an empty string when the user doesn't enter any number and clicks "continue". any suggestions <%@ page import="java.io.*"%><%@ page import="java.util.*"%><?xml version="1.0" encoding="UTF-8"?> …

Member Avatar for thines01
0
189
Member Avatar for sdr001

Hey everyone, I am having some trouble parsing a string in java. I get a string from a databse, then I want to put it into a String Array to access two elements in the array (x and y positions). I think my problem is when I try to split …

Member Avatar for NormR1
0
227
Member Avatar for hussain shabbir

somebody pleae post some basic C++ excersices of loops.please help me i am a beginner. thANKSS

Member Avatar for thines01
0
82
Member Avatar for idiotguy

Hi friend! I want to get the code which helps daniweb to show the preview of every site/link it gets. For example let me give a link [here](http://www.google.com) whenever i hover my cursor to that link,it shows me a preview of that site. Can you give me the code which …

Member Avatar for idiotguy
0
199
Member Avatar for gfp91

Hi i need help with moving a light. at the start of the program i define the floats. `GLfloat Light_Ambient[] = {0.7f, 0.7f, 0.7f, 255.0f};` `GLfloat Light_Diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f};` `GLfloat Light_Position[]= {0.0f, 1.0f, 3.5f, 1.0f};` but later on in the program while the scene is running i …

Member Avatar for mitrmkar
0
184
Member Avatar for veledrom

Hi, I want to know what would be your preferences in this case. I'll have a login and sign up process and want to develop its database tables. - 1:1 version needs JOIN everytime when loging in, T-SQL when signin up new user. - Single table version doesn't need two …

Member Avatar for veledrom
0
206
Member Avatar for jumbowat

Hi every one, #include <stdio.h> #include <conio.h> #define SIZE 4 int main(){ char Menu[SIZE] = {'A','B','C','D'}; int i; for(i=0; i<(SIZE); i++){ // print the array elements printf("\t%c",Menu[i]); } getch(); } I want to swap the elements of the array for e.g. if I pass A and D or Menu[0], Menu[3], …

Member Avatar for jumbowat
0
7K
Member Avatar for Sgt. Pepper

Hello, My assignment in class is to write a notepad program in java, using only the .io and .awt extensions (I believe that's what they're called). Now, I've got every part of the program working, except the save and saveAs functions. I've spent roughly 5 hours looking for and trying …

Member Avatar for JamesCherrill
0
786
Member Avatar for PoovenM

I'm creating a custom `ComboBox` that allows the user to select a date; the calendar display is localized making the built-in `DateTimePicker` undesirable (see [here](http://support.microsoft.com/Default.aspx?scid=kb;en-us;889834&x=18&y=19) for more information). I need the UI control to mirror the look and feel or the existing components. Here's what I've tried and the problems …

0
179
Member Avatar for JasonWung

Hi, Can anyone give me some examples with threads with win forms. I have one form which make post request to a server. When i start form and hit "start" button my form read one .txt file. I want to make when start .. read 50 rows then stop and …

Member Avatar for JasonWung
0
121
Member Avatar for sarrrry92

Never mind my last post(I don't know how to detete) How to do the main? Write a program that has an array of 5 Strings, and determines which ones are palindromes (letter-case does not matter) . Your code will be written in one class Palindrome.java and has a main() method. …

Member Avatar for joankim
0
172
Member Avatar for bgx90

I have not found anything that addresses these questions. Any help is appreciated. If I have a class that has pointers to objects of a user-defined class as members, is there any problem with initializing those pointers with the initialization list of the constructor? For example, where A, B, and …

Member Avatar for bgx90
0
3K
Member Avatar for Yoink

Hi, I have a program that deals with stacks and queues in python. Part of the program compares items in 3 stacks that contain objects. The loop will run and compare all items in the top of the stacks and pop the item that has the highest value and appends …

Member Avatar for scudzilla
0
266
Member Avatar for doctorphp

Hey everyone, Parsing RSS is not my strong point and I am making a news feed for a client and they want me to use the Yahoo News RSS feed. I am using the following code. <?php $url = "http://news.yahoo.com/rss/europe"; $xml = simplexml_load_file( $url ); ?> <h3 id="ln">Latest News</h3> <?php …

Member Avatar for mschroeder
0
377
Member Avatar for ccbuilder

Can anyone show or explain how to do a base conversions ? I'm new so this concept is confusing so far i got to but I have no clue to get answer from base 10 to any base 2 to base 16 #include <cstdlib> #include <iostream> #include <string> using namespace …

Member Avatar for ccbuilder
0
227
Member Avatar for Nimrod7676

Hello everybody, I'm using Ubuntu 11.10 and I don't know about assembler for linux, but I think there is. Do anybody know about Assembler for linux? Thanks. =]

Member Avatar for rubberman
0
142
Member Avatar for freddyk

I was just experiminting with the following C code and i noticed something interesting.. The first loop runs fine, but from the second loop the variable r1 occupies the kernel address space(ffffffffe) and instead of randomly changing as it is supposed to, all the consecutive loops show r1 as occupying …

Member Avatar for rubberman
0
163
Member Avatar for NerdPC

I have googled this and I see how to do the clock function with insertion and I was pretty sure I implemented it right but the insertion sort never shows any time. I am not sure if I am not waiting long enough but I have had the program up …

Member Avatar for rubberman
0
224
Member Avatar for oscargrower11

I'm sure I'm missing something basic here, but I cannot get this to compile. Using codeblocks 10.05 with mingw build of gcc 4.4.1. I've included unistd.h and tried replacing MAXPATHLEN with PATH_MAX but every time, it gives me: error: 'MAXPATHLEN' was not declared in this scope or error: 'PATH_MAX' was …

Member Avatar for oscargrower11
0
1K
Member Avatar for brandon66

Hey guys im new to java in the process of learning how would i go buy adding exceptions to my code with a try/catch when i divide by zero or enter a word instead of and integer. package errorapp; /** * * @author Brandon */ import javax.swing.JOptionPane; import java.util.InputMismatchException; public …

Member Avatar for NormR1
0
213
Member Avatar for |-|x

Ok, so the scenario is a database which stores customer contracts (to keep it simple) so that every time a contract is expired and renewed a new version is created in the database to reflect any changes (terms, price etc). My page needs to display a list of the latest …

Member Avatar for |-|x
0
155
Member Avatar for DavidAntaramian

# Introduction to the Issue # I'm currently working on a piece of code that was put together by someone else on my team. All of his logic was in the `index.html` file, so I'm trying to factor it out into a modular library. Part of the reason is that …

Member Avatar for DavidAntaramian
0
237
Member Avatar for MasterHacker110

I want to start writing a os, but doesnt really know how. I need a simple boot and kernel to demonstrate how its done. nothing fancy just simple one that will boot and load a kernal. if it isnt to much work maby make it that is can hold files, …

Member Avatar for AceStryker
0
252
Member Avatar for riahc3

Hey I want to search for a text string but I dont know what table or column it is in. I just know the database that it is in. I know also that the type is a text type. Any query I can do or in MySQL Workbench? Thanks!

Member Avatar for smantscheff
0
438
Member Avatar for grozadani2007

Hello there, This is my form: <form method="post" enctype="multipart/form-data" action="upload.php"> <input type="text" name="nume" id="nume"/> <select name="an" id="an" > <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2010">2016</option> <option value="2011">2017</option> <option value="2012">2018</option> <option value="2013">2019</option> <option value="2014">2020</option> <option value="2015">2021</option> </select> <input type="file" name="images" id="images" multiple /> <button …

Member Avatar for grozadani2007
0
295
Member Avatar for ghada ali

this part give object reference not set to an instance of an object massege problem : Form1 f1 = new Form1(); f1.Show(); //////after this line this.Close();

Member Avatar for skatamatic
0
161
Member Avatar for gerard4143

I have a question about istream iterators and reading the input to the EOL. How do you do it? I tried the following but had to revert to a hack to get it to work. My first attempt reads from the istream but a word at a time. first.cpp #include …

Member Avatar for gerard4143
0
354
Member Avatar for Dani

How can I convert a DOM node to a jQuery object? I am using a javascript library that is returning a DOM node. I don't know any of its properties. I want to convert it to a jQuery object so that I can work with it.

Member Avatar for Troy III
0
8K
Member Avatar for ITOzann

Hello guys, I've been trying to finish a project. But I seem to be stuck. I'm suppose to get the following output: [1:18:10, 2:33:10, 3:21:10] Remove customer:1:18:10 Remove customer:2:33:10 Remove customer:3:21:10 [Cashier:1001:0-0:Customer:null, Cashier:1002:0-0:Customer:null, Cashier:1003:0- 0:Customer:null, Cashier:1004:0-0:Customer:null] Remove free cashier:Cashier:1001:0-0:Customer:null Remove free cashier:Cashier:1002:0-0:Customer:null Remove free cashier:Cashier:1003:0-0:Customer:null Remove free cashier:Cashier:1004:0-0:Customer:null [Cashier:1001:13-31:Customer:1:18:10, Cashier:1002:13-46:Customer:2:33:10, …

Member Avatar for ITOzann
0
382
Member Avatar for marifard

Hi, I make a page to display all applications from table and few of these applications have an interview dates, location etc in another table. I use this code pasted in this article below. The problem is showing the applications with interviews only and the interviews without interviews are not …

Member Avatar for diafol
0
160
Member Avatar for jrpaarlberg

I was wondering if anyone could help me. I am working on a program in VS2008 with C# which has a datagridview populated from 2 SQL Express tables and needs to save to only 1 database. Below is the code I have working so far: public frmGrid() { BindingSource bs …

0
120
Member Avatar for koricha

i am trying to get the sum of 2 number.. it should give me a message if the sum is correct. i get an error "21 in the jsp file: /index.jsp Incompatible operand types String and int" .any suggestions whats wrong with the program. <%@ page import="java.io.*"%><%@ page import="java.util.*"%><?xml version="1.0" …

Member Avatar for IIM
0
2K
Member Avatar for sing1006

the coding will works if the data type of my primary key is integer.but when i try to change the primary key in string data type i cant delete oe edit. below is my coding for that 2 button that is working. coding for edit button ` Private Sub Button4_Click(ByVal …

Member Avatar for Begginnerdev
0
240
Member Avatar for how_too

Objectives: • Use an object with a list • Use a list of objects Write a class that encapsulates data for a sales person. Class SalesPerson has an ID number (int), a name (string), and a list of sales (float). It provides a constructor __init__ that initializes ID and name, …

Member Avatar for Lardmeister
0
239
Member Avatar for lena1990

hi i want to move from one applet that is displayed in html to another applet that is also displayed in html how i can do that thanks for help

Member Avatar for NormR1
0
91
Member Avatar for ubercat

Hi, all. I need a little advice on a school web project. I'm using VS2010/VB/ASP Some background: I have a listbox(LBX) and a dropdown list(DDL). Each are bound to their own AccessDataSource objects, which in turn are bound to different tables in a database. Each is successfully populated from their …

Member Avatar for ubercat
0
2K
Member Avatar for DavidKroukamp

Hmm i really like what applications like Windows Media Player and VLC player can do, and by this i mean: you know when you are watching a movie or listening to music and you minimize the window? Well if you hover the taskbar icon of the minized window with your …

0
191
Member Avatar for jp071

Hello, Could anyone explain details about three different case and output. Here is the code and output: #include <stdio.h> void foo(int n) { n = 6; } void fooWithRef(int& n) { n = 6; } int main() { int n; foo(n); printf("Case_1 Result: %d \n", n); n = 4; foo(n); …

Member Avatar for MandrewP
0
137
Member Avatar for T0pAz

The problem is simple. I have LoadLibrary on my c++ app and I want to load c# library but I don't know the entry point.

Member Avatar for T0pAz
0
2K
Member Avatar for riahc3

Hey What is the easiest way to read and write XML file to my C# program? Im looking for Localiziation Configuration I imagine that the only difference is that I have to load the localization as soon as I load the program.... Thanks! :)

Member Avatar for skatamatic
0
744
Member Avatar for marifard

I use this code. It works correctly before I made minor changes, I mean, make other input fields and the table field name in mysql but I have some problems from line 14 onwards. With this code I Show some data from database table in a form. can anyone check …

Member Avatar for marifard
0
172
Member Avatar for avirooge

Hi, I have created a project in which i am printing Hall ticket for an examination. i am using vb6.0 as front end and Access 2003 as backend. I have created a reprot in crystal reprot 8.0. I have added photographs of students in the report. Everything works fine. The …

Member Avatar for dhaval.2cool
0
246
Member Avatar for BlackJavaBean

I'm trying my hand at OpenCV and have run into a problem that Dr. Google hasn't been able to help me out with. According to O'Reilly, the following code should play an AVI file in a window the program creates. [CODE] #include "highgui.h" #include <stdio.h> int main( int argc, char** …

Member Avatar for nhadley
0
663
Member Avatar for Valten1992

I'm currently adding a dashboard-like view to my web project, which polls data from OIDs using SNMP. My current step is to use AJAX to reload the page but I'm running into some design issues on that front. Accessing the servlet class on the server will generate hello.jsp, which displays …

0
139
Member Avatar for Dendari

Hello everyone. I'm trying to work with this kind of file: http://www.mediafire.com/?da0ad07pzfogdl0 (you may use Notepad++ to open it) I think it's a binary data file but I'm not sure. Anyways what I need to do it's to edit some of the text part inside it. Example: http://img403.imageshack.us/img403/8017/94022290.jpg I'd like …

Member Avatar for Dendari
0
226
Member Avatar for breakzzzz20

Good Day Experts,,can anyone help me,,i have a codes for inserting,selecting and deleting row data from original table into archieve table: this is the original table `Username password fullname year course breakzzz breakzzzz romel first year prog.` and this is my archieve table: `username password fullnae year course` my plan …

Member Avatar for breakzzzz20
0
236
Member Avatar for xxxartistxxx

Hello Everyone,I'm new at DaniWeb I have a problem with my file download function. This's my function Private Function download_files(ByVal _URL As System.Uri, ByVal _SaveAs As String) If InternetConnection() = True Then Dim _WebClient As New System.Net.WebClient() Try AddHandler _WebClient.DownloadProgressChanged, AddressOf _DownloadProgressChanged lblStatus.Text = "Downloading File :" & _SaveAs _WebClient.DownloadFileAsync(_URL, …

0
149
Member Avatar for kletig

Hi there! I'm using PHP together with jQuery/AJAX to submit a login form without reloading the page. Basically the code works like this: Login.php (The actual form) -> process-login-admin.php (server-side validation and authentication) -> Echo error message The error messages is displayed in a hidden div (#feedback) on "Login.php" that …

Member Avatar for kletig
0
7K
Member Avatar for Venom Rush

Hi I need to manipulate a soap call before it's sent off to the soap server. Currently my soap call is constructed as follows: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.xxxxxxx.co.za/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:SubmitStringLead> <xmlLead xsi:type="xsd:string"> <strXml> <Lead> <General> <dealer>419</dealer> <source ref="1334923054">randomstring</source> <enquiry>1</enquiry> <subtype>4</subtype> <comment /> </General> <Prospect> …

Member Avatar for Venom Rush
0
2K

The End.