199,114 Archived Topics
Remove Filter ![]() | |
Hi , I have this problem, where I want the query to find slimier results, Like '%BandName%' for a static query it's easy, but when I use a string from a textBox I am not sure what should be the syntax. [code] public static DataRow SearchByBandName(string bandToFind) { return DbUtils.SelectDataRow("SELECT … | |
Can anyone put a quick patch on this script I want it to send the email even if a file does not exist right now I get an error if I try to send it with no file [CODE]<%@ Page Language="C#" %> <%@ Import Namespace="System.Web.Mail" %> <%@ Import Namespace="System.IO" %> … | |
I'm writing a program where I have a variety of input commands. Lets say here are my three commands: info playlist # quit info - gives me information quit - terminates the program The problem: playlist # - The command playlist # means I need to cout a number of … ![]() | |
Hello, I am working on a java program that finds perfect numbers. I need to make it run more efficiently by touching up the computation I have in my factorSum method. Heres what I have so far: [CODE] public static int factorSum(int testNum) { //Initialize local variable accumulator to zero. … | |
Hi! all Let me explain the problem:- I have two tables A(aid,aname,adesc),B(bid,aid,bdesc). I want a query which will extract all records of 'aid' in 'B'. means aid bid aname bdesc 1 1 qw eeg 2 null re null 3 4 sd v tyuy 4 null dffg null Hope to get … | |
Dear all, First time posting. I have a piece of javascript like the following. What it does is when you click on the text 'Click me', it will prompt you for password; if you enter 'test', it will show the url 'picasa' in a div. The code works in FF3 … | |
Hi all, I have made 2 drop down box naming client, project . All values in this drop down box are coming from database. I am fetching all value through sql query. First drop down box is showing all client which are in database. Second drop down box is also … | |
Hi! Is there any consensus as to the best way to handle dynamic button clicks? The buttons are being created dynamically and conditionally placed, depending on business logic. Our problem is that on clicking such a button, the postback calls the Page_Load but not the Button_OnClick. I notice that if … | |
what is array of void and why am I getting it in the following program? I finally have the first part done where I can loop the input. However, I cannot figure out what this array of void is. I'm getting "declaration of 'lastname' as array of void" in lines … | |
Are there any chances that I could resize an image using the fileconnection inputstream? FileConnection fc = (FileConnection) Connector.open("file:///" + filePath + "/",Connector.READ); InputStream fis = (InputStream) fc.openInputStream(); I want to resize the image from here because if I use Image.createImage(fis); I am encountering "Out of Memory error", if the … | |
When I tried to compile my HelloWorldApp.java file using the following command: javac HelloWorldApp.java it worked (for being able to do this simple thing I had to change a lot of variables). But then when I tried to Run the program using: java HelloWorldApp it gave me the error: Exception … | |
Hi All, I have the following string: "AND Category 07|Spec 01|ABC 01 AND Category 07|Spec 02|XYZ 02 AND Category 07|Spec 03|PQR 03 " It is stored in a string variable. I want to remove only the "ABC 01", "XYZ 02", "PQR 03", etc from the original string. The new string … | |
Hey guys, I have been learning c++ while working with memory management i seem to have gotten stuck, There are 2 classes Stack and Queue the stack works on the LIFO principle (last in first out) and the queue the opposite FIFO (first in first out). Now the program runs … | |
Hi.. i want to use mysql without installing on client system.. So i planned to use mxj.. but this was not helping .. It is trying to access my mysql which i installed.. Can somebody help me.. Iam using mysql-connector-java-5.1.5-bin.jar,aspectjrt.jar,mysql-connector-mxj-gpl-5-0-9.jar,mysql-connector-mxj-gpl-5-0-9-db-files.jar files.. Process i followed: 1. Set the classpath for all … | |
Hi, I am writing a code that will get a file in the linux server(server.logs). Can anyone help me out with that. I am using a java se in a windows. and i dont knw how to retireve file on it. I need to log the files and parse the … | |
I've tried just about everything. Can anyone give me some help. | |
Hi, I want to write a code which takes an array of 20 characters and deletes all spaces between characters, it should leave only letters. For example: input :[B] d a n i w e b[/B] I want to make it :[B] daniweb[/B] I wrote this code, but it didn't … | |
for example, the blogs, how they divide the entries in pages? i have kinda of a idea like if ur on page 2 and ur blog shows 5 post per page the $row=mysql_fetch_assoc would execute 5 times before starting to post, thats the only way i can think about, is … | |
Hi all, I decided to learn PHP, I am an Ubuntu user, I installed, php5, mysql, apache2.2 and phpmyadmin. But I don't know where to put the files to see them on my web browser, when I write [CODE]http://localhost/phpMyAdmin/[/CODE] I get [CODE]Not Found The requested URL /phpMyAdmin/ was not found … | |
Just recently we were given an assignment. We had to construct a GUI which maps out tomtom(navigator) coordinates into google maps and linear graphs. For bonus marks a feature was to be able to change the language of the gui (english to spanish etc) Our tutor had instructed us that … | |
Hi frnds.. this query having a small error at where condition....plz solve this.. [CODE] $sql="insert into customer (sizeindustry) values ('$sindustry') where (sno = '$sno')"; echo $sql; mysql_query($sql)or die(mysql_error()); [/CODE] $sql= insert into customer (sizeindustry) values ('Small') where (sno = '4') error: You have an error in your SQL syntax; check … | |
Hi all, In my windows application written in C#, I am calling one windows utility...but it is likely to fail the execution of that windows utility execution...How do I log the error of that utility into my C# application? regards Jeet | |
I have a web site and am trying to produce an RSS feed for it for when things are changed. The following code is the RSS generated (from dreamweaver). Google Reader acknowledges it as a valid feed, but some other RSS feeders, such as Bloglines, do not recognise it as … | |
i am using vs 2005.can i have rich text box for a web form? i am not finding it in tool box.if rich text box is not possible ,how can i have text box with rich text features in a web form? | |
Hi, I'm new to the C++ community hope you guys can give me some guidance. The program I'm making is suppose to read information from a file called music.txt Inside this file there is information about songs in the following format: Bandname, Songname, Duration of the Song, Here a partial … | |
Hi. with reference to my previous posts, im able to write a text file with a specific values from excel sheet. i just wanted to knw how to get rid of the prompt of " there is an existing file, do you want to overwrite it ?" i tried Application.Displayalerts=false … | |
Hello, my first post here, mostly due to every question I placed on google the answer is here (normally answered by a fellow Anime fan called Narue, someone's got their thinking cap on ^_^) Anyhow the problem is as follows, I'm writing a 2D game engine using DirectX9 (not relivent … | |
Hi, I was wondering if there was another way to redirect a user to an other page other that the header("Location: URL") function. My problem is that I am itterating through a buch of if statements and if i use the header function it gives me an error as the … | |
Ok so im totally new to C++......we use Dev in our labs I cnt seem to figure out how to store the column of a text file into an array. I understand how to input the file usinf ifstream.The columns have Lastname(initial), Id#, Age and Gpa. i thought js doin … | |
How would I make a program that can insert text into a text field in another program? Or click a button in another program? | |
Hi folks, In my c# epos app, i have a method which does two things: It calls a method to update the Form with the change to be given to the customer. It then calls a method to print the receipt to the serial printer. Even though the update Form … | |
Hey guys. I'm working on my game engine, and I'm making development diary. I hope you like it. Youtube video: [url=http://www.youtube.com/watch?v=XxKdFTcF9N8]Development of FPX-Game engine episode 2[/url] New things: -Level files and loading system -Viewer -Game Editor -Sky Cube/Box -Small demo game, screenshot of it: [img]http://img89.imageshack.us/img89/8681/1842009engine.png[/img] enjoy.. p.s. what do you … | |
[U][B]5x5 MATCHING WORDS AND IMAGE [/B][/U] Each time the user plays the game, the application should reshuffle a matching pair of ten words into the 5x5 Matrix. Include 5 pair of words and 5 pair of matching graphics. New Game button should terminate the current game and clear everything on … | |
Hello Once again I must seek help from those who know what it is that they are doing and I am not... Right now we are usng Visual Studio 2005 for VB and C++ and my visual studio is defaulting to C++ upon opening the program. How do I stop … | |
Hi, I 'm using c#.net(3.0),I want to extract audio from an AVI file(Audio/Video file *.avi) in wav format(*.wav) could anyone please tell how to do this using C#.net. please don't suggest this link-http://www.codeproject.com/KB/audio-video/avifilewrapper.aspx (as the example given is not working on all *.avi files). thank you | |
Hi. I am having problems getting PHP to insert data into a MYSQL data base. I am using the following variations of syntax. [code=php] mysql_query("INSERT INTO table member VALUES ('$var1', '$var2', '$var3')") or die("couldn't add new user"); [/code] and also with session variables as well [code=php] mysql_query("INSERT INTO table member … | |
Hi, i created a program but i need some help. I made it so the user must enter the ip address and then click the button CONNECT. But in java it outputs the same thing. Is there any way i can get rid of it and just start the program … | |
I'm making a game for a project due this Tuesday. You're in a dungeon with rows and columns, and for each coordinate there is a cell and there are 3 trap cells that you instantly die from if you walk into them. Also, you die if you hit 3 walls. … | |
Hello Friends I am developing an application in C# , basically it intercept all the event of Visual Source Safe. Earlier code was in VB.net but Now we are migrating to C#. Now I am unable to find replacement of following funtion of VB. --------------------------------------------------------------------------------- VB code Starts here: --------------------------------------------------------------------------------- … | |
Okay, I've got a serious problem with std::vector, the code I'm working with is huge and it's got vectors left, right and center. The problem is that one of the vectors is having to reallocate itself elsewhere. This is causing the references to point to random things. For illustrative purposes: … | |
i've had a pretty good day today up to now.... i have a method calcFinalOCAS() which should take an average of a list, replace the lowest value (if its lower than the substitution score), do the average again. now this works but when its compiled and i run it but … | |
Hello everyone, i have been trying to complete this program on a letting agency where a user gets a choice of options 1. Add a property 2. Remove a property 3. Display all properties 4. Exit the system I have no idea what syntax to use within each case option … | |
Hello, please, i am developing an application which is initially working fine but i later copied it into an hard drive to another system which am currently using but the problem is that after copying it, any image i add into it will not display at runtime. i mean the … | |
[code] import java.io.*; import java.util.*; public class MainTwo { public static void main(String[] args) { for(File file : File.listRoots()){ search(file); } } public static void search(File f) { ArrayList<File> arrayList = new ArrayList<File>(); f.listFiles(); arrayList.add(f); System.out.println (f.getName()); } } [/code] Why does it print nothing? | |
Hi folks, Fresh newbie here. I'm taking a c++ class and I'm just a beginner. We have started to learn pointers and I discovered some puzzling behavior while messing around with the address operator [ICODE]&[/ICODE]. Here is my code snippet: [CODE] char letter = 'a'; int integer = 1; char … | |
I'm having some problems trying to solve an apparent circular dependency in a project of mine. I'm working with OpenGL and FLTK to create a Robotics Simulation. The problem is that I've created a Class FLGLWindow which basically manages a window with rendering capabilities. I also have a Menu class … | |
[code] import javax.swing.*; import java.awt.*; public class keyboard { public static void main(String args[]) { String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau"}; JButton j[] = new JButton[s.length]; for(int i=0;i<s.length;i++) j[i].setText(s[i]); JFrame f = new JFrame(); for(int i=0;i<s.length;i++) f.add(j[i],JFrame.LEFT_ALIGNMENT); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); } } [/code] I need Instant Help!. Code is giving me … | |
I'm trying to port some existing C++ code to OS X. The problem is that it doesn't want to load files to read from them. The code bellow illustrates this problem; when run from Finder it outputs "Failed to open input file.", however when run from Xcode it runs correctly. … | |
[B]Please help me how to do it. Thanks![/B] A 5-star hotel has 3 room types below: - Room type A, Price 80 USD / day. - Room type B, Price 60 USD / day. - Room type C, Price 40 USD / day. Room rental is calculated by formula: Price … | |
Problem Description: Multi automobile movement simulation in a multi lane road Consider a road (street) consisting of NL lanes with NC cars moving in one direction. Each car has to move in a certain lane with possibility of changing lanes. Each lane is divided into NP positions. Cars movement is … |
The End.